[2025-03-22 00:00:05] Production.INFO: next invoice date [2025-03-22 00:00:05] Production.INFO: 2025-04-22 [2025-03-22 00:00:05] Production.INFO: getdaysdiff [2025-03-22 00:00:05] Production.INFO: +31 [2025-03-22 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,31,31,'RMScheduler',2025-03-22 00:00:05,1,0,,,0) [2025-03-22 00:00:05] Production.INFO: next invoice date [2025-03-22 00:00:05] Production.INFO: 2025-04-22 [2025-03-22 00:00:05] Production.INFO: getdaysdiff [2025-03-22 00:00:05] Production.INFO: +31 [2025-03-22 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,31,31,'RMScheduler',2025-03-22 00:00:05,1,0,,,0) [2025-03-22 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:00:06 [end_date_ymd] => 2025-03-22 00:00:06 [RateCDR] => 1 ) [2025-03-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-03-21 21:00:06' and `end` < '2025-03-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-03-22 00:00:19] Production.INFO: count ==1332 [2025-03-22 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-21 21:00:06 - End Time 2025-03-22 00:00:06 [2025-03-22 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733702', 'tblTempUsageDetail_20' ) start [2025-03-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733702', 'tblTempUsageDetail_20' ) end [2025-03-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733702', 'tblTempVendorCDR_20' ) start [2025-03-22 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733702', 'tblTempVendorCDR_20' ) end [2025-03-22 00:00:20] Production.INFO: ProcessCDR(1,14733702,1,1,2) [2025-03-22 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733702', 'tblTempUsageDetail_20' ) start [2025-03-22 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733702', 'tblTempUsageDetail_20' ) end [2025-03-22 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:00:24] Production.INFO: ==25348== Releasing lock... [2025-03-22 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:00:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:01:05 [end_date_ymd] => 2025-03-22 00:01:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:01:05' and `end` < '2025-03-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-03-22 00:01:18] Production.INFO: count ==587 [2025-03-22 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-21 21:01:05 - End Time 2025-03-22 00:01:05 [2025-03-22 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733707', 'tblTempUsageDetail_20' ) start [2025-03-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733707', 'tblTempUsageDetail_20' ) end [2025-03-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733707', 'tblTempVendorCDR_20' ) start [2025-03-22 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733707', 'tblTempVendorCDR_20' ) end [2025-03-22 00:01:19] Production.INFO: ProcessCDR(1,14733707,1,1,2) [2025-03-22 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733707', 'tblTempUsageDetail_20' ) start [2025-03-22 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733707', 'tblTempUsageDetail_20' ) end [2025-03-22 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:01:24] Production.INFO: ==25465== Releasing lock... [2025-03-22 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:01:24] Production.INFO: 33 MB #Memory Used# [2025-03-22 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:02:06 [end_date_ymd] => 2025-03-22 00:02:06 [RateCDR] => 1 ) [2025-03-22 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:02:06' and `end` < '2025-03-22 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:02:18] Production.INFO: count ==569 [2025-03-22 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-21 21:02:06 - End Time 2025-03-22 00:02:06 [2025-03-22 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733712', 'tblTempUsageDetail_20' ) start [2025-03-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733712', 'tblTempUsageDetail_20' ) end [2025-03-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733712', 'tblTempVendorCDR_20' ) start [2025-03-22 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733712', 'tblTempVendorCDR_20' ) end [2025-03-22 00:02:19] Production.INFO: ProcessCDR(1,14733712,1,1,2) [2025-03-22 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733712', 'tblTempUsageDetail_20' ) start [2025-03-22 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733712', 'tblTempUsageDetail_20' ) end [2025-03-22 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:02:22] Production.INFO: ==25571== Releasing lock... [2025-03-22 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:03:05 [end_date_ymd] => 2025-03-22 00:03:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:03:05' and `end` < '2025-03-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-03-22 00:03:18] Production.INFO: count ==559 [2025-03-22 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:03:05 - End Time 2025-03-22 00:03:05 [2025-03-22 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733717', 'tblTempUsageDetail_20' ) start [2025-03-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733717', 'tblTempUsageDetail_20' ) end [2025-03-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733717', 'tblTempVendorCDR_20' ) start [2025-03-22 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733717', 'tblTempVendorCDR_20' ) end [2025-03-22 00:03:18] Production.INFO: ProcessCDR(1,14733717,1,1,2) [2025-03-22 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733717', 'tblTempUsageDetail_20' ) start [2025-03-22 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733717', 'tblTempUsageDetail_20' ) end [2025-03-22 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:03:23] Production.INFO: ==25671== Releasing lock... [2025-03-22 00:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:03:23] Production.INFO: 33 MB #Memory Used# [2025-03-22 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:04:05 [end_date_ymd] => 2025-03-22 00:04:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:04:05' and `end` < '2025-03-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-03-22 00:04:24] Production.INFO: count ==554 [2025-03-22 00:04:24] Production.ERROR: pbx CDR StartTime 2025-03-21 21:04:05 - End Time 2025-03-22 00:04:05 [2025-03-22 00:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733722', 'tblTempUsageDetail_20' ) start [2025-03-22 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733722', 'tblTempUsageDetail_20' ) end [2025-03-22 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733722', 'tblTempVendorCDR_20' ) start [2025-03-22 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733722', 'tblTempVendorCDR_20' ) end [2025-03-22 00:04:24] Production.INFO: ProcessCDR(1,14733722,1,1,2) [2025-03-22 00:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733722', 'tblTempUsageDetail_20' ) start [2025-03-22 00:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733722', 'tblTempUsageDetail_20' ) end [2025-03-22 00:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:04:28] Production.INFO: ==25771== Releasing lock... [2025-03-22 00:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:04:28] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:05:05 [end_date_ymd] => 2025-03-22 00:05:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:05:05' and `end` < '2025-03-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-03-22 00:05:28] Production.INFO: count ==542 [2025-03-22 00:05:28] Production.ERROR: pbx CDR StartTime 2025-03-21 21:05:05 - End Time 2025-03-22 00:05:05 [2025-03-22 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733727', 'tblTempUsageDetail_20' ) start [2025-03-22 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733727', 'tblTempUsageDetail_20' ) end [2025-03-22 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733727', 'tblTempVendorCDR_20' ) start [2025-03-22 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733727', 'tblTempVendorCDR_20' ) end [2025-03-22 00:05:28] Production.INFO: ProcessCDR(1,14733727,1,1,2) [2025-03-22 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733727', 'tblTempUsageDetail_20' ) start [2025-03-22 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733727', 'tblTempUsageDetail_20' ) end [2025-03-22 00:05:31] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:05:31] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:05:31] Production.INFO: ==25877== Releasing lock... [2025-03-22 00:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:05:31] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:06:06 [end_date_ymd] => 2025-03-22 00:06:06 [RateCDR] => 1 ) [2025-03-22 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:06:06' and `end` < '2025-03-22 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:06:31] Production.INFO: count ==530 [2025-03-22 00:06:31] Production.ERROR: pbx CDR StartTime 2025-03-21 21:06:06 - End Time 2025-03-22 00:06:06 [2025-03-22 00:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733732', 'tblTempUsageDetail_20' ) start [2025-03-22 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733732', 'tblTempUsageDetail_20' ) end [2025-03-22 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733732', 'tblTempVendorCDR_20' ) start [2025-03-22 00:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733732', 'tblTempVendorCDR_20' ) end [2025-03-22 00:06:31] Production.INFO: ProcessCDR(1,14733732,1,1,2) [2025-03-22 00:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733732', 'tblTempUsageDetail_20' ) start [2025-03-22 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733732', 'tblTempUsageDetail_20' ) end [2025-03-22 00:06:35] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:06:35] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:06:35] Production.INFO: ==26020== Releasing lock... [2025-03-22 00:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:06:35] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:07:05 [end_date_ymd] => 2025-03-22 00:07:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:07:05' and `end` < '2025-03-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-03-22 00:07:26] Production.INFO: count ==525 [2025-03-22 00:07:27] Production.ERROR: pbx CDR StartTime 2025-03-21 21:07:05 - End Time 2025-03-22 00:07:05 [2025-03-22 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733737', 'tblTempUsageDetail_20' ) start [2025-03-22 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733737', 'tblTempUsageDetail_20' ) end [2025-03-22 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733737', 'tblTempVendorCDR_20' ) start [2025-03-22 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733737', 'tblTempVendorCDR_20' ) end [2025-03-22 00:07:27] Production.INFO: ProcessCDR(1,14733737,1,1,2) [2025-03-22 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733737', 'tblTempUsageDetail_20' ) start [2025-03-22 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733737', 'tblTempUsageDetail_20' ) end [2025-03-22 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:07:30] Production.INFO: ==26123== Releasing lock... [2025-03-22 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:07:30] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:08:05 [end_date_ymd] => 2025-03-22 00:08:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:08:05' and `end` < '2025-03-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-03-22 00:08:27] Production.INFO: count ==519 [2025-03-22 00:08:27] Production.ERROR: pbx CDR StartTime 2025-03-21 21:08:05 - End Time 2025-03-22 00:08:05 [2025-03-22 00:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733742', 'tblTempUsageDetail_20' ) start [2025-03-22 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733742', 'tblTempUsageDetail_20' ) end [2025-03-22 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733742', 'tblTempVendorCDR_20' ) start [2025-03-22 00:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733742', 'tblTempVendorCDR_20' ) end [2025-03-22 00:08:27] Production.INFO: ProcessCDR(1,14733742,1,1,2) [2025-03-22 00:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733742', 'tblTempUsageDetail_20' ) start [2025-03-22 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733742', 'tblTempUsageDetail_20' ) end [2025-03-22 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:08:32] Production.INFO: ==26228== Releasing lock... [2025-03-22 00:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:08:32] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:09:05 [end_date_ymd] => 2025-03-22 00:09:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:09:05' and `end` < '2025-03-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-03-22 00:09:26] Production.INFO: count ==511 [2025-03-22 00:09:26] Production.ERROR: pbx CDR StartTime 2025-03-21 21:09:05 - End Time 2025-03-22 00:09:05 [2025-03-22 00:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733747', 'tblTempUsageDetail_20' ) start [2025-03-22 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733747', 'tblTempUsageDetail_20' ) end [2025-03-22 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733747', 'tblTempVendorCDR_20' ) start [2025-03-22 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733747', 'tblTempVendorCDR_20' ) end [2025-03-22 00:09:26] Production.INFO: ProcessCDR(1,14733747,1,1,2) [2025-03-22 00:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733747', 'tblTempUsageDetail_20' ) start [2025-03-22 00:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733747', 'tblTempUsageDetail_20' ) end [2025-03-22 00:09:30] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:09:30] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:09:30] Production.INFO: ==26332== Releasing lock... [2025-03-22 00:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:09:30] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:10:06 [end_date_ymd] => 2025-03-22 00:10:06 [RateCDR] => 1 ) [2025-03-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-03-21 21:10:06' and `end` < '2025-03-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-03-22 00:10:18] Production.INFO: count ==508 [2025-03-22 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:10:06 - End Time 2025-03-22 00:10:06 [2025-03-22 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733752', 'tblTempUsageDetail_20' ) start [2025-03-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733752', 'tblTempUsageDetail_20' ) end [2025-03-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733752', 'tblTempVendorCDR_20' ) start [2025-03-22 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733752', 'tblTempVendorCDR_20' ) end [2025-03-22 00:10:18] Production.INFO: ProcessCDR(1,14733752,1,1,2) [2025-03-22 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733752', 'tblTempUsageDetail_20' ) start [2025-03-22 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733752', 'tblTempUsageDetail_20' ) end [2025-03-22 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:10:22] Production.INFO: ==26435== Releasing lock... [2025-03-22 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:11:05 [end_date_ymd] => 2025-03-22 00:11:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:11:05' and `end` < '2025-03-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-03-22 00:11:17] Production.INFO: count ==510 [2025-03-22 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:11:05 - End Time 2025-03-22 00:11:05 [2025-03-22 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733758', 'tblTempUsageDetail_20' ) start [2025-03-22 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733758', 'tblTempUsageDetail_20' ) end [2025-03-22 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733758', 'tblTempVendorCDR_20' ) start [2025-03-22 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733758', 'tblTempVendorCDR_20' ) end [2025-03-22 00:11:18] Production.INFO: ProcessCDR(1,14733758,1,1,2) [2025-03-22 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733758', 'tblTempUsageDetail_20' ) start [2025-03-22 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733758', 'tblTempUsageDetail_20' ) end [2025-03-22 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:11:21] Production.INFO: ==26538== Releasing lock... [2025-03-22 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:12:05 [end_date_ymd] => 2025-03-22 00:12:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:12:05' and `end` < '2025-03-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-03-22 00:12:18] Production.INFO: count ==500 [2025-03-22 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:12:05 - End Time 2025-03-22 00:12:05 [2025-03-22 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733763', 'tblTempUsageDetail_20' ) start [2025-03-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733763', 'tblTempUsageDetail_20' ) end [2025-03-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733763', 'tblTempVendorCDR_20' ) start [2025-03-22 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733763', 'tblTempVendorCDR_20' ) end [2025-03-22 00:12:18] Production.INFO: ProcessCDR(1,14733763,1,1,2) [2025-03-22 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733763', 'tblTempUsageDetail_20' ) start [2025-03-22 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733763', 'tblTempUsageDetail_20' ) end [2025-03-22 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:12:21] Production.INFO: ==26654== Releasing lock... [2025-03-22 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:12:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:13:05 [end_date_ymd] => 2025-03-22 00:13:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:13:05' and `end` < '2025-03-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-03-22 00:13:17] Production.INFO: count ==494 [2025-03-22 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:13:05 - End Time 2025-03-22 00:13:05 [2025-03-22 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733768', 'tblTempUsageDetail_20' ) start [2025-03-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733768', 'tblTempUsageDetail_20' ) end [2025-03-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733768', 'tblTempVendorCDR_20' ) start [2025-03-22 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733768', 'tblTempVendorCDR_20' ) end [2025-03-22 00:13:17] Production.INFO: ProcessCDR(1,14733768,1,1,2) [2025-03-22 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733768', 'tblTempUsageDetail_20' ) start [2025-03-22 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733768', 'tblTempUsageDetail_20' ) end [2025-03-22 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:13:21] Production.INFO: ==26756== Releasing lock... [2025-03-22 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:14:05 [end_date_ymd] => 2025-03-22 00:14:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:14:05' and `end` < '2025-03-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-03-22 00:14:18] Production.INFO: count ==479 [2025-03-22 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:14:05 - End Time 2025-03-22 00:14:05 [2025-03-22 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733773', 'tblTempUsageDetail_20' ) start [2025-03-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733773', 'tblTempUsageDetail_20' ) end [2025-03-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733773', 'tblTempVendorCDR_20' ) start [2025-03-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733773', 'tblTempVendorCDR_20' ) end [2025-03-22 00:14:18] Production.INFO: ProcessCDR(1,14733773,1,1,2) [2025-03-22 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733773', 'tblTempUsageDetail_20' ) start [2025-03-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733773', 'tblTempUsageDetail_20' ) end [2025-03-22 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:14:21] Production.INFO: ==26858== Releasing lock... [2025-03-22 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:14:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:15:05 [end_date_ymd] => 2025-03-22 00:15:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:15:05' and `end` < '2025-03-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-03-22 00:15:17] Production.INFO: count ==465 [2025-03-22 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:15:05 - End Time 2025-03-22 00:15:05 [2025-03-22 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733778', 'tblTempUsageDetail_20' ) start [2025-03-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733778', 'tblTempUsageDetail_20' ) end [2025-03-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733778', 'tblTempVendorCDR_20' ) start [2025-03-22 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733778', 'tblTempVendorCDR_20' ) end [2025-03-22 00:15:17] Production.INFO: ProcessCDR(1,14733778,1,1,2) [2025-03-22 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733778', 'tblTempUsageDetail_20' ) start [2025-03-22 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733778', 'tblTempUsageDetail_20' ) end [2025-03-22 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:15:20] Production.INFO: ==26964== Releasing lock... [2025-03-22 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:15:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:16:05 [end_date_ymd] => 2025-03-22 00:16:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:16:05' and `end` < '2025-03-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-03-22 00:16:18] Production.INFO: count ==462 [2025-03-22 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:16:05 - End Time 2025-03-22 00:16:05 [2025-03-22 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733783', 'tblTempUsageDetail_20' ) start [2025-03-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733783', 'tblTempUsageDetail_20' ) end [2025-03-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733783', 'tblTempVendorCDR_20' ) start [2025-03-22 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733783', 'tblTempVendorCDR_20' ) end [2025-03-22 00:16:18] Production.INFO: ProcessCDR(1,14733783,1,1,2) [2025-03-22 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733783', 'tblTempUsageDetail_20' ) start [2025-03-22 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733783', 'tblTempUsageDetail_20' ) end [2025-03-22 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:16:21] Production.INFO: ==27070== Releasing lock... [2025-03-22 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:16:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:17:06 [end_date_ymd] => 2025-03-22 00:17:06 [RateCDR] => 1 ) [2025-03-22 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:17:06' and `end` < '2025-03-22 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:17:18] Production.INFO: count ==461 [2025-03-22 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:17:06 - End Time 2025-03-22 00:17:06 [2025-03-22 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733788', 'tblTempUsageDetail_20' ) start [2025-03-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733788', 'tblTempUsageDetail_20' ) end [2025-03-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733788', 'tblTempVendorCDR_20' ) start [2025-03-22 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733788', 'tblTempVendorCDR_20' ) end [2025-03-22 00:17:18] Production.INFO: ProcessCDR(1,14733788,1,1,2) [2025-03-22 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733788', 'tblTempUsageDetail_20' ) start [2025-03-22 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733788', 'tblTempUsageDetail_20' ) end [2025-03-22 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:17:22] Production.INFO: ==27174== Releasing lock... [2025-03-22 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:17:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:18:06 [end_date_ymd] => 2025-03-22 00:18:06 [RateCDR] => 1 ) [2025-03-22 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:18:06' and `end` < '2025-03-22 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:18:18] Production.INFO: count ==461 [2025-03-22 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:18:06 - End Time 2025-03-22 00:18:06 [2025-03-22 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733793', 'tblTempUsageDetail_20' ) start [2025-03-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733793', 'tblTempUsageDetail_20' ) end [2025-03-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733793', 'tblTempVendorCDR_20' ) start [2025-03-22 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733793', 'tblTempVendorCDR_20' ) end [2025-03-22 00:18:18] Production.INFO: ProcessCDR(1,14733793,1,1,2) [2025-03-22 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733793', 'tblTempUsageDetail_20' ) start [2025-03-22 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733793', 'tblTempUsageDetail_20' ) end [2025-03-22 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:18:22] Production.INFO: ==27279== Releasing lock... [2025-03-22 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:19:05 [end_date_ymd] => 2025-03-22 00:19:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:19:05' and `end` < '2025-03-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-03-22 00:19:18] Production.INFO: count ==459 [2025-03-22 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:19:05 - End Time 2025-03-22 00:19:05 [2025-03-22 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733798', 'tblTempUsageDetail_20' ) start [2025-03-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733798', 'tblTempUsageDetail_20' ) end [2025-03-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733798', 'tblTempVendorCDR_20' ) start [2025-03-22 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733798', 'tblTempVendorCDR_20' ) end [2025-03-22 00:19:18] Production.INFO: ProcessCDR(1,14733798,1,1,2) [2025-03-22 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733798', 'tblTempUsageDetail_20' ) start [2025-03-22 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733798', 'tblTempUsageDetail_20' ) end [2025-03-22 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:19:21] Production.INFO: ==27387== Releasing lock... [2025-03-22 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:20:06 [end_date_ymd] => 2025-03-22 00:20:06 [RateCDR] => 1 ) [2025-03-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-03-21 21:20:06' and `end` < '2025-03-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-03-22 00:20:18] Production.INFO: count ==469 [2025-03-22 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:20:06 - End Time 2025-03-22 00:20:06 [2025-03-22 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733803', 'tblTempUsageDetail_20' ) start [2025-03-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733803', 'tblTempUsageDetail_20' ) end [2025-03-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733803', 'tblTempVendorCDR_20' ) start [2025-03-22 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733803', 'tblTempVendorCDR_20' ) end [2025-03-22 00:20:18] Production.INFO: ProcessCDR(1,14733803,1,1,2) [2025-03-22 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733803', 'tblTempUsageDetail_20' ) start [2025-03-22 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733803', 'tblTempUsageDetail_20' ) end [2025-03-22 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:20:21] Production.INFO: ==27490== Releasing lock... [2025-03-22 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:21:05 [end_date_ymd] => 2025-03-22 00:21:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:21:05' and `end` < '2025-03-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-03-22 00:21:18] Production.INFO: count ==478 [2025-03-22 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:21:05 - End Time 2025-03-22 00:21:05 [2025-03-22 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733809', 'tblTempUsageDetail_20' ) start [2025-03-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733809', 'tblTempUsageDetail_20' ) end [2025-03-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733809', 'tblTempVendorCDR_20' ) start [2025-03-22 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733809', 'tblTempVendorCDR_20' ) end [2025-03-22 00:21:18] Production.INFO: ProcessCDR(1,14733809,1,1,2) [2025-03-22 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733809', 'tblTempUsageDetail_20' ) start [2025-03-22 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733809', 'tblTempUsageDetail_20' ) end [2025-03-22 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:21:21] Production.INFO: ==27599== Releasing lock... [2025-03-22 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:22:05 [end_date_ymd] => 2025-03-22 00:22:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:22:05' and `end` < '2025-03-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-03-22 00:22:17] Production.INFO: count ==474 [2025-03-22 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:22:05 - End Time 2025-03-22 00:22:05 [2025-03-22 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733814', 'tblTempUsageDetail_20' ) start [2025-03-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733814', 'tblTempUsageDetail_20' ) end [2025-03-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733814', 'tblTempVendorCDR_20' ) start [2025-03-22 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733814', 'tblTempVendorCDR_20' ) end [2025-03-22 00:22:18] Production.INFO: ProcessCDR(1,14733814,1,1,2) [2025-03-22 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733814', 'tblTempUsageDetail_20' ) start [2025-03-22 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733814', 'tblTempUsageDetail_20' ) end [2025-03-22 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:22:21] Production.INFO: ==27741== Releasing lock... [2025-03-22 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:23:06 [end_date_ymd] => 2025-03-22 00:23:06 [RateCDR] => 1 ) [2025-03-22 00:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:23:06' and `end` < '2025-03-22 00:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:23:18] Production.INFO: count ==472 [2025-03-22 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:23:06 - End Time 2025-03-22 00:23:06 [2025-03-22 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733819', 'tblTempUsageDetail_20' ) start [2025-03-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733819', 'tblTempUsageDetail_20' ) end [2025-03-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733819', 'tblTempVendorCDR_20' ) start [2025-03-22 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733819', 'tblTempVendorCDR_20' ) end [2025-03-22 00:23:18] Production.INFO: ProcessCDR(1,14733819,1,1,2) [2025-03-22 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733819', 'tblTempUsageDetail_20' ) start [2025-03-22 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733819', 'tblTempUsageDetail_20' ) end [2025-03-22 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:23:21] Production.INFO: ==27844== Releasing lock... [2025-03-22 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:24:05 [end_date_ymd] => 2025-03-22 00:24:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:24:05' and `end` < '2025-03-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-03-22 00:24:17] Production.INFO: count ==470 [2025-03-22 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:24:05 - End Time 2025-03-22 00:24:05 [2025-03-22 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733824', 'tblTempUsageDetail_20' ) start [2025-03-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733824', 'tblTempUsageDetail_20' ) end [2025-03-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733824', 'tblTempVendorCDR_20' ) start [2025-03-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733824', 'tblTempVendorCDR_20' ) end [2025-03-22 00:24:17] Production.INFO: ProcessCDR(1,14733824,1,1,2) [2025-03-22 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733824', 'tblTempUsageDetail_20' ) start [2025-03-22 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733824', 'tblTempUsageDetail_20' ) end [2025-03-22 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:24:22] Production.INFO: ==27949== Releasing lock... [2025-03-22 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:24:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:25:05 [end_date_ymd] => 2025-03-22 00:25:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:25:05' and `end` < '2025-03-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-03-22 00:25:17] Production.INFO: count ==470 [2025-03-22 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:25:05 - End Time 2025-03-22 00:25:05 [2025-03-22 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733829', 'tblTempUsageDetail_20' ) start [2025-03-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733829', 'tblTempUsageDetail_20' ) end [2025-03-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733829', 'tblTempVendorCDR_20' ) start [2025-03-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733829', 'tblTempVendorCDR_20' ) end [2025-03-22 00:25:17] Production.INFO: ProcessCDR(1,14733829,1,1,2) [2025-03-22 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733829', 'tblTempUsageDetail_20' ) start [2025-03-22 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733829', 'tblTempUsageDetail_20' ) end [2025-03-22 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:25:21] Production.INFO: ==28056== Releasing lock... [2025-03-22 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:26:05 [end_date_ymd] => 2025-03-22 00:26:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:26:05' and `end` < '2025-03-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-03-22 00:26:17] Production.INFO: count ==467 [2025-03-22 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:26:05 - End Time 2025-03-22 00:26:05 [2025-03-22 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733834', 'tblTempUsageDetail_20' ) start [2025-03-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733834', 'tblTempUsageDetail_20' ) end [2025-03-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733834', 'tblTempVendorCDR_20' ) start [2025-03-22 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733834', 'tblTempVendorCDR_20' ) end [2025-03-22 00:26:17] Production.INFO: ProcessCDR(1,14733834,1,1,2) [2025-03-22 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733834', 'tblTempUsageDetail_20' ) start [2025-03-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733834', 'tblTempUsageDetail_20' ) end [2025-03-22 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:26:21] Production.INFO: ==28159== Releasing lock... [2025-03-22 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:27:05 [end_date_ymd] => 2025-03-22 00:27:05 [RateCDR] => 1 ) [2025-03-22 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:27:05' and `end` < '2025-03-22 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:27:17] Production.INFO: count ==466 [2025-03-22 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:27:05 - End Time 2025-03-22 00:27:05 [2025-03-22 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733839', 'tblTempUsageDetail_20' ) start [2025-03-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733839', 'tblTempUsageDetail_20' ) end [2025-03-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733839', 'tblTempVendorCDR_20' ) start [2025-03-22 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733839', 'tblTempVendorCDR_20' ) end [2025-03-22 00:27:18] Production.INFO: ProcessCDR(1,14733839,1,1,2) [2025-03-22 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733839', 'tblTempUsageDetail_20' ) start [2025-03-22 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733839', 'tblTempUsageDetail_20' ) end [2025-03-22 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:27:21] Production.INFO: ==28287== Releasing lock... [2025-03-22 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:28:05 [end_date_ymd] => 2025-03-22 00:28:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:28:05' and `end` < '2025-03-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-03-22 00:28:17] Production.INFO: count ==466 [2025-03-22 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:28:05 - End Time 2025-03-22 00:28:05 [2025-03-22 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733844', 'tblTempUsageDetail_20' ) start [2025-03-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733844', 'tblTempUsageDetail_20' ) end [2025-03-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733844', 'tblTempVendorCDR_20' ) start [2025-03-22 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733844', 'tblTempVendorCDR_20' ) end [2025-03-22 00:28:17] Production.INFO: ProcessCDR(1,14733844,1,1,2) [2025-03-22 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733844', 'tblTempUsageDetail_20' ) start [2025-03-22 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733844', 'tblTempUsageDetail_20' ) end [2025-03-22 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:28:20] Production.INFO: ==28390== Releasing lock... [2025-03-22 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:28:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:29:05 [end_date_ymd] => 2025-03-22 00:29:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:29:05' and `end` < '2025-03-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-03-22 00:29:17] Production.INFO: count ==460 [2025-03-22 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:29:05 - End Time 2025-03-22 00:29:05 [2025-03-22 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733849', 'tblTempUsageDetail_20' ) start [2025-03-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733849', 'tblTempUsageDetail_20' ) end [2025-03-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733849', 'tblTempVendorCDR_20' ) start [2025-03-22 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733849', 'tblTempVendorCDR_20' ) end [2025-03-22 00:29:17] Production.INFO: ProcessCDR(1,14733849,1,1,2) [2025-03-22 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733849', 'tblTempUsageDetail_20' ) start [2025-03-22 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733849', 'tblTempUsageDetail_20' ) end [2025-03-22 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:29:21] Production.INFO: ==28491== Releasing lock... [2025-03-22 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:29:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:30:06 [end_date_ymd] => 2025-03-22 00:30:06 [RateCDR] => 1 ) [2025-03-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-03-21 21:30:06' and `end` < '2025-03-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-03-22 00:30:19] Production.INFO: count ==458 [2025-03-22 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 21:30:06 - End Time 2025-03-22 00:30:06 [2025-03-22 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733855', 'tblTempUsageDetail_20' ) start [2025-03-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733855', 'tblTempUsageDetail_20' ) end [2025-03-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733855', 'tblTempVendorCDR_20' ) start [2025-03-22 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733855', 'tblTempVendorCDR_20' ) end [2025-03-22 00:30:19] Production.INFO: ProcessCDR(1,14733855,1,1,2) [2025-03-22 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733855', 'tblTempUsageDetail_20' ) start [2025-03-22 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733855', 'tblTempUsageDetail_20' ) end [2025-03-22 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:30:22] Production.INFO: ==28596== Releasing lock... [2025-03-22 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:31:05 [end_date_ymd] => 2025-03-22 00:31:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:31:05' and `end` < '2025-03-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-03-22 00:31:17] Production.INFO: count ==456 [2025-03-22 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:31:05 - End Time 2025-03-22 00:31:05 [2025-03-22 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733860', 'tblTempUsageDetail_20' ) start [2025-03-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733860', 'tblTempUsageDetail_20' ) end [2025-03-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733860', 'tblTempVendorCDR_20' ) start [2025-03-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733860', 'tblTempVendorCDR_20' ) end [2025-03-22 00:31:17] Production.INFO: ProcessCDR(1,14733860,1,1,2) [2025-03-22 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733860', 'tblTempUsageDetail_20' ) start [2025-03-22 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733860', 'tblTempUsageDetail_20' ) end [2025-03-22 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:31:20] Production.INFO: ==28707== Releasing lock... [2025-03-22 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:31:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:32:05 [end_date_ymd] => 2025-03-22 00:32:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:32:05' and `end` < '2025-03-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-03-22 00:32:17] Production.INFO: count ==455 [2025-03-22 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:32:05 - End Time 2025-03-22 00:32:05 [2025-03-22 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733865', 'tblTempUsageDetail_20' ) start [2025-03-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733865', 'tblTempUsageDetail_20' ) end [2025-03-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733865', 'tblTempVendorCDR_20' ) start [2025-03-22 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733865', 'tblTempVendorCDR_20' ) end [2025-03-22 00:32:18] Production.INFO: ProcessCDR(1,14733865,1,1,2) [2025-03-22 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733865', 'tblTempUsageDetail_20' ) start [2025-03-22 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733865', 'tblTempUsageDetail_20' ) end [2025-03-22 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:32:21] Production.INFO: ==28806== Releasing lock... [2025-03-22 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:32:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:33:05 [end_date_ymd] => 2025-03-22 00:33:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:33:05' and `end` < '2025-03-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-03-22 00:33:17] Production.INFO: count ==452 [2025-03-22 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:33:05 - End Time 2025-03-22 00:33:05 [2025-03-22 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733870', 'tblTempUsageDetail_20' ) start [2025-03-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733870', 'tblTempUsageDetail_20' ) end [2025-03-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733870', 'tblTempVendorCDR_20' ) start [2025-03-22 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733870', 'tblTempVendorCDR_20' ) end [2025-03-22 00:33:17] Production.INFO: ProcessCDR(1,14733870,1,1,2) [2025-03-22 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733870', 'tblTempUsageDetail_20' ) start [2025-03-22 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733870', 'tblTempUsageDetail_20' ) end [2025-03-22 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:33:20] Production.INFO: ==28906== Releasing lock... [2025-03-22 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:33:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:34:05 [end_date_ymd] => 2025-03-22 00:34:05 [RateCDR] => 1 ) [2025-03-22 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:34:05' and `end` < '2025-03-22 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:34:17] Production.INFO: count ==449 [2025-03-22 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:34:05 - End Time 2025-03-22 00:34:05 [2025-03-22 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733875', 'tblTempUsageDetail_20' ) start [2025-03-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733875', 'tblTempUsageDetail_20' ) end [2025-03-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733875', 'tblTempVendorCDR_20' ) start [2025-03-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733875', 'tblTempVendorCDR_20' ) end [2025-03-22 00:34:17] Production.INFO: ProcessCDR(1,14733875,1,1,2) [2025-03-22 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733875', 'tblTempUsageDetail_20' ) start [2025-03-22 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733875', 'tblTempUsageDetail_20' ) end [2025-03-22 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:34:21] Production.INFO: ==29014== Releasing lock... [2025-03-22 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:34:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:35:05 [end_date_ymd] => 2025-03-22 00:35:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:35:05' and `end` < '2025-03-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-03-22 00:35:17] Production.INFO: count ==451 [2025-03-22 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:35:05 - End Time 2025-03-22 00:35:05 [2025-03-22 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733880', 'tblTempUsageDetail_20' ) start [2025-03-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733880', 'tblTempUsageDetail_20' ) end [2025-03-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733880', 'tblTempVendorCDR_20' ) start [2025-03-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733880', 'tblTempVendorCDR_20' ) end [2025-03-22 00:35:17] Production.INFO: ProcessCDR(1,14733880,1,1,2) [2025-03-22 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733880', 'tblTempUsageDetail_20' ) start [2025-03-22 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733880', 'tblTempUsageDetail_20' ) end [2025-03-22 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:35:20] Production.INFO: ==29114== Releasing lock... [2025-03-22 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:35:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:36:06 [end_date_ymd] => 2025-03-22 00:36:06 [RateCDR] => 1 ) [2025-03-22 00:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:36:06' and `end` < '2025-03-22 00:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:36:18] Production.INFO: count ==450 [2025-03-22 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:36:06 - End Time 2025-03-22 00:36:06 [2025-03-22 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733885', 'tblTempUsageDetail_20' ) start [2025-03-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733885', 'tblTempUsageDetail_20' ) end [2025-03-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733885', 'tblTempVendorCDR_20' ) start [2025-03-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733885', 'tblTempVendorCDR_20' ) end [2025-03-22 00:36:18] Production.INFO: ProcessCDR(1,14733885,1,1,2) [2025-03-22 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733885', 'tblTempUsageDetail_20' ) start [2025-03-22 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733885', 'tblTempUsageDetail_20' ) end [2025-03-22 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:36:21] Production.INFO: ==29216== Releasing lock... [2025-03-22 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:37:05 [end_date_ymd] => 2025-03-22 00:37:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:37:05' and `end` < '2025-03-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-03-22 00:37:17] Production.INFO: count ==445 [2025-03-22 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:37:05 - End Time 2025-03-22 00:37:05 [2025-03-22 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733890', 'tblTempUsageDetail_20' ) start [2025-03-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733890', 'tblTempUsageDetail_20' ) end [2025-03-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733890', 'tblTempVendorCDR_20' ) start [2025-03-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733890', 'tblTempVendorCDR_20' ) end [2025-03-22 00:37:17] Production.INFO: ProcessCDR(1,14733890,1,1,2) [2025-03-22 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733890', 'tblTempUsageDetail_20' ) start [2025-03-22 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733890', 'tblTempUsageDetail_20' ) end [2025-03-22 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:37:20] Production.INFO: ==29363== Releasing lock... [2025-03-22 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:37:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:38:05 [end_date_ymd] => 2025-03-22 00:38:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:38:05' and `end` < '2025-03-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-03-22 00:38:17] Production.INFO: count ==439 [2025-03-22 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:38:05 - End Time 2025-03-22 00:38:05 [2025-03-22 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733895', 'tblTempUsageDetail_20' ) start [2025-03-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733895', 'tblTempUsageDetail_20' ) end [2025-03-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733895', 'tblTempVendorCDR_20' ) start [2025-03-22 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733895', 'tblTempVendorCDR_20' ) end [2025-03-22 00:38:18] Production.INFO: ProcessCDR(1,14733895,1,1,2) [2025-03-22 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733895', 'tblTempUsageDetail_20' ) start [2025-03-22 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733895', 'tblTempUsageDetail_20' ) end [2025-03-22 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:38:21] Production.INFO: ==29483== Releasing lock... [2025-03-22 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:39:05 [end_date_ymd] => 2025-03-22 00:39:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:39:05' and `end` < '2025-03-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-03-22 00:39:17] Production.INFO: count ==442 [2025-03-22 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:39:05 - End Time 2025-03-22 00:39:05 [2025-03-22 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733900', 'tblTempUsageDetail_20' ) start [2025-03-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733900', 'tblTempUsageDetail_20' ) end [2025-03-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733900', 'tblTempVendorCDR_20' ) start [2025-03-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733900', 'tblTempVendorCDR_20' ) end [2025-03-22 00:39:18] Production.INFO: ProcessCDR(1,14733900,1,1,2) [2025-03-22 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733900', 'tblTempUsageDetail_20' ) start [2025-03-22 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733900', 'tblTempUsageDetail_20' ) end [2025-03-22 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:39:21] Production.INFO: ==29594== Releasing lock... [2025-03-22 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:40:06 [end_date_ymd] => 2025-03-22 00:40:06 [RateCDR] => 1 ) [2025-03-22 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:40:06' and `end` < '2025-03-22 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:40:19] Production.INFO: count ==451 [2025-03-22 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 21:40:06 - End Time 2025-03-22 00:40:06 [2025-03-22 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733906', 'tblTempUsageDetail_20' ) start [2025-03-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733906', 'tblTempUsageDetail_20' ) end [2025-03-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733906', 'tblTempVendorCDR_20' ) start [2025-03-22 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733906', 'tblTempVendorCDR_20' ) end [2025-03-22 00:40:19] Production.INFO: ProcessCDR(1,14733906,1,1,2) [2025-03-22 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733906', 'tblTempUsageDetail_20' ) start [2025-03-22 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733906', 'tblTempUsageDetail_20' ) end [2025-03-22 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:40:22] Production.INFO: ==29711== Releasing lock... [2025-03-22 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:40:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:41:06 [end_date_ymd] => 2025-03-22 00:41:06 [RateCDR] => 1 ) [2025-03-22 00:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:41:06' and `end` < '2025-03-22 00:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:41:18] Production.INFO: count ==453 [2025-03-22 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:41:06 - End Time 2025-03-22 00:41:06 [2025-03-22 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733911', 'tblTempUsageDetail_20' ) start [2025-03-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733911', 'tblTempUsageDetail_20' ) end [2025-03-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733911', 'tblTempVendorCDR_20' ) start [2025-03-22 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733911', 'tblTempVendorCDR_20' ) end [2025-03-22 00:41:18] Production.INFO: ProcessCDR(1,14733911,1,1,2) [2025-03-22 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733911', 'tblTempUsageDetail_20' ) start [2025-03-22 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733911', 'tblTempUsageDetail_20' ) end [2025-03-22 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:41:22] Production.INFO: ==29826== Releasing lock... [2025-03-22 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:42:05 [end_date_ymd] => 2025-03-22 00:42:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:42:05' and `end` < '2025-03-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-03-22 00:42:17] Production.INFO: count ==452 [2025-03-22 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:42:05 - End Time 2025-03-22 00:42:05 [2025-03-22 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733916', 'tblTempUsageDetail_20' ) start [2025-03-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733916', 'tblTempUsageDetail_20' ) end [2025-03-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733916', 'tblTempVendorCDR_20' ) start [2025-03-22 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733916', 'tblTempVendorCDR_20' ) end [2025-03-22 00:42:17] Production.INFO: ProcessCDR(1,14733916,1,1,2) [2025-03-22 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733916', 'tblTempUsageDetail_20' ) start [2025-03-22 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733916', 'tblTempUsageDetail_20' ) end [2025-03-22 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:42:21] Production.INFO: ==29938== Releasing lock... [2025-03-22 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:43:06 [end_date_ymd] => 2025-03-22 00:43:06 [RateCDR] => 1 ) [2025-03-22 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:43:06' and `end` < '2025-03-22 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:43:18] Production.INFO: count ==452 [2025-03-22 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:43:06 - End Time 2025-03-22 00:43:06 [2025-03-22 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733921', 'tblTempUsageDetail_20' ) start [2025-03-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733921', 'tblTempUsageDetail_20' ) end [2025-03-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733921', 'tblTempVendorCDR_20' ) start [2025-03-22 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733921', 'tblTempVendorCDR_20' ) end [2025-03-22 00:43:18] Production.INFO: ProcessCDR(1,14733921,1,1,2) [2025-03-22 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733921', 'tblTempUsageDetail_20' ) start [2025-03-22 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733921', 'tblTempUsageDetail_20' ) end [2025-03-22 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:43:22] Production.INFO: ==30051== Releasing lock... [2025-03-22 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:44:05 [end_date_ymd] => 2025-03-22 00:44:05 [RateCDR] => 1 ) [2025-03-22 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:44:05' and `end` < '2025-03-22 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:44:17] Production.INFO: count ==450 [2025-03-22 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:44:05 - End Time 2025-03-22 00:44:05 [2025-03-22 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733926', 'tblTempUsageDetail_20' ) start [2025-03-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733926', 'tblTempUsageDetail_20' ) end [2025-03-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733926', 'tblTempVendorCDR_20' ) start [2025-03-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733926', 'tblTempVendorCDR_20' ) end [2025-03-22 00:44:18] Production.INFO: ProcessCDR(1,14733926,1,1,2) [2025-03-22 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733926', 'tblTempUsageDetail_20' ) start [2025-03-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733926', 'tblTempUsageDetail_20' ) end [2025-03-22 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:44:21] Production.INFO: ==30163== Releasing lock... [2025-03-22 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:45:05 [end_date_ymd] => 2025-03-22 00:45:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:45:05' and `end` < '2025-03-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-03-22 00:45:17] Production.INFO: count ==440 [2025-03-22 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:45:05 - End Time 2025-03-22 00:45:05 [2025-03-22 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733931', 'tblTempUsageDetail_20' ) start [2025-03-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733931', 'tblTempUsageDetail_20' ) end [2025-03-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733931', 'tblTempVendorCDR_20' ) start [2025-03-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733931', 'tblTempVendorCDR_20' ) end [2025-03-22 00:45:17] Production.INFO: ProcessCDR(1,14733931,1,1,2) [2025-03-22 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733931', 'tblTempUsageDetail_20' ) start [2025-03-22 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733931', 'tblTempUsageDetail_20' ) end [2025-03-22 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:45:21] Production.INFO: ==30276== Releasing lock... [2025-03-22 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:45:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:46:05 [end_date_ymd] => 2025-03-22 00:46:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:46:05' and `end` < '2025-03-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-03-22 00:46:17] Production.INFO: count ==443 [2025-03-22 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:46:05 - End Time 2025-03-22 00:46:05 [2025-03-22 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733936', 'tblTempUsageDetail_20' ) start [2025-03-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733936', 'tblTempUsageDetail_20' ) end [2025-03-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733936', 'tblTempVendorCDR_20' ) start [2025-03-22 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733936', 'tblTempVendorCDR_20' ) end [2025-03-22 00:46:17] Production.INFO: ProcessCDR(1,14733936,1,1,2) [2025-03-22 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733936', 'tblTempUsageDetail_20' ) start [2025-03-22 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733936', 'tblTempUsageDetail_20' ) end [2025-03-22 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:46:21] Production.INFO: ==30388== Releasing lock... [2025-03-22 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:47:05 [end_date_ymd] => 2025-03-22 00:47:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:47:05' and `end` < '2025-03-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-03-22 00:47:18] Production.INFO: count ==445 [2025-03-22 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:47:05 - End Time 2025-03-22 00:47:05 [2025-03-22 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733941', 'tblTempUsageDetail_20' ) start [2025-03-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733941', 'tblTempUsageDetail_20' ) end [2025-03-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733941', 'tblTempVendorCDR_20' ) start [2025-03-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733941', 'tblTempVendorCDR_20' ) end [2025-03-22 00:47:18] Production.INFO: ProcessCDR(1,14733941,1,1,2) [2025-03-22 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733941', 'tblTempUsageDetail_20' ) start [2025-03-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733941', 'tblTempUsageDetail_20' ) end [2025-03-22 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:47:21] Production.INFO: ==30505== Releasing lock... [2025-03-22 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:48:04 [end_date_ymd] => 2025-03-22 00:48:04 [RateCDR] => 1 ) [2025-03-22 00:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:48:04' and `end` < '2025-03-22 00:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:48:17] Production.INFO: count ==441 [2025-03-22 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:48:04 - End Time 2025-03-22 00:48:04 [2025-03-22 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733946', 'tblTempUsageDetail_20' ) start [2025-03-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733946', 'tblTempUsageDetail_20' ) end [2025-03-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733946', 'tblTempVendorCDR_20' ) start [2025-03-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733946', 'tblTempVendorCDR_20' ) end [2025-03-22 00:48:17] Production.INFO: ProcessCDR(1,14733946,1,1,2) [2025-03-22 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733946', 'tblTempUsageDetail_20' ) start [2025-03-22 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733946', 'tblTempUsageDetail_20' ) end [2025-03-22 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:48:20] Production.INFO: ==30619== Releasing lock... [2025-03-22 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:48:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:49:05 [end_date_ymd] => 2025-03-22 00:49:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:49:05' and `end` < '2025-03-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-03-22 00:49:17] Production.INFO: count ==438 [2025-03-22 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:49:05 - End Time 2025-03-22 00:49:05 [2025-03-22 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733951', 'tblTempUsageDetail_20' ) start [2025-03-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733951', 'tblTempUsageDetail_20' ) end [2025-03-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733951', 'tblTempVendorCDR_20' ) start [2025-03-22 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733951', 'tblTempVendorCDR_20' ) end [2025-03-22 00:49:17] Production.INFO: ProcessCDR(1,14733951,1,1,2) [2025-03-22 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733951', 'tblTempUsageDetail_20' ) start [2025-03-22 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733951', 'tblTempUsageDetail_20' ) end [2025-03-22 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:49:21] Production.INFO: ==30726== Releasing lock... [2025-03-22 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:50:07 [end_date_ymd] => 2025-03-22 00:50:07 [RateCDR] => 1 ) [2025-03-22 00:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:50:07' and `end` < '2025-03-22 00:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:50:19] Production.INFO: count ==442 [2025-03-22 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 21:50:07 - End Time 2025-03-22 00:50:07 [2025-03-22 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733957', 'tblTempUsageDetail_20' ) start [2025-03-22 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733957', 'tblTempUsageDetail_20' ) end [2025-03-22 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733957', 'tblTempVendorCDR_20' ) start [2025-03-22 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733957', 'tblTempVendorCDR_20' ) end [2025-03-22 00:50:19] Production.INFO: ProcessCDR(1,14733957,1,1,2) [2025-03-22 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733957', 'tblTempUsageDetail_20' ) start [2025-03-22 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733957', 'tblTempUsageDetail_20' ) end [2025-03-22 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:50:23] Production.INFO: ==30849== Releasing lock... [2025-03-22 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:50:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:51:05 [end_date_ymd] => 2025-03-22 00:51:05 [RateCDR] => 1 ) [2025-03-22 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:51:05' and `end` < '2025-03-22 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:51:17] Production.INFO: count ==442 [2025-03-22 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:51:05 - End Time 2025-03-22 00:51:05 [2025-03-22 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733962', 'tblTempUsageDetail_20' ) start [2025-03-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733962', 'tblTempUsageDetail_20' ) end [2025-03-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733962', 'tblTempVendorCDR_20' ) start [2025-03-22 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733962', 'tblTempVendorCDR_20' ) end [2025-03-22 00:51:17] Production.INFO: ProcessCDR(1,14733962,1,1,2) [2025-03-22 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733962', 'tblTempUsageDetail_20' ) start [2025-03-22 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733962', 'tblTempUsageDetail_20' ) end [2025-03-22 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:51:21] Production.INFO: ==30965== Releasing lock... [2025-03-22 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:52:05 [end_date_ymd] => 2025-03-22 00:52:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:52:05' and `end` < '2025-03-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-03-22 00:52:18] Production.INFO: count ==427 [2025-03-22 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:52:05 - End Time 2025-03-22 00:52:05 [2025-03-22 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733967', 'tblTempUsageDetail_20' ) start [2025-03-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733967', 'tblTempUsageDetail_20' ) end [2025-03-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733967', 'tblTempVendorCDR_20' ) start [2025-03-22 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733967', 'tblTempVendorCDR_20' ) end [2025-03-22 00:52:18] Production.INFO: ProcessCDR(1,14733967,1,1,2) [2025-03-22 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733967', 'tblTempUsageDetail_20' ) start [2025-03-22 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733967', 'tblTempUsageDetail_20' ) end [2025-03-22 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:52:21] Production.INFO: ==31075== Releasing lock... [2025-03-22 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:53:05 [end_date_ymd] => 2025-03-22 00:53:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:53:05' and `end` < '2025-03-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-03-22 00:53:17] Production.INFO: count ==419 [2025-03-22 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:53:05 - End Time 2025-03-22 00:53:05 [2025-03-22 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733972', 'tblTempUsageDetail_20' ) start [2025-03-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733972', 'tblTempUsageDetail_20' ) end [2025-03-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733972', 'tblTempVendorCDR_20' ) start [2025-03-22 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733972', 'tblTempVendorCDR_20' ) end [2025-03-22 00:53:17] Production.INFO: ProcessCDR(1,14733972,1,1,2) [2025-03-22 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733972', 'tblTempUsageDetail_20' ) start [2025-03-22 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733972', 'tblTempUsageDetail_20' ) end [2025-03-22 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:53:20] Production.INFO: ==31227== Releasing lock... [2025-03-22 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:53:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:54:05 [end_date_ymd] => 2025-03-22 00:54:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:54:05' and `end` < '2025-03-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-03-22 00:54:17] Production.INFO: count ==407 [2025-03-22 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:54:05 - End Time 2025-03-22 00:54:05 [2025-03-22 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733977', 'tblTempUsageDetail_20' ) start [2025-03-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733977', 'tblTempUsageDetail_20' ) end [2025-03-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733977', 'tblTempVendorCDR_20' ) start [2025-03-22 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733977', 'tblTempVendorCDR_20' ) end [2025-03-22 00:54:18] Production.INFO: ProcessCDR(1,14733977,1,1,2) [2025-03-22 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733977', 'tblTempUsageDetail_20' ) start [2025-03-22 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733977', 'tblTempUsageDetail_20' ) end [2025-03-22 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:54:21] Production.INFO: ==31345== Releasing lock... [2025-03-22 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:55:04 [end_date_ymd] => 2025-03-22 00:55:04 [RateCDR] => 1 ) [2025-03-22 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:55:04' and `end` < '2025-03-22 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:55:17] Production.INFO: count ==401 [2025-03-22 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:55:04 - End Time 2025-03-22 00:55:04 [2025-03-22 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733982', 'tblTempUsageDetail_20' ) start [2025-03-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733982', 'tblTempUsageDetail_20' ) end [2025-03-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733982', 'tblTempVendorCDR_20' ) start [2025-03-22 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733982', 'tblTempVendorCDR_20' ) end [2025-03-22 00:55:17] Production.INFO: ProcessCDR(1,14733982,1,1,2) [2025-03-22 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733982', 'tblTempUsageDetail_20' ) start [2025-03-22 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733982', 'tblTempUsageDetail_20' ) end [2025-03-22 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:55:22] Production.INFO: ==31455== Releasing lock... [2025-03-22 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:56:05 [end_date_ymd] => 2025-03-22 00:56:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:56:05' and `end` < '2025-03-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-03-22 00:56:17] Production.INFO: count ==398 [2025-03-22 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:56:05 - End Time 2025-03-22 00:56:05 [2025-03-22 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733987', 'tblTempUsageDetail_20' ) start [2025-03-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733987', 'tblTempUsageDetail_20' ) end [2025-03-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733987', 'tblTempVendorCDR_20' ) start [2025-03-22 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733987', 'tblTempVendorCDR_20' ) end [2025-03-22 00:56:17] Production.INFO: ProcessCDR(1,14733987,1,1,2) [2025-03-22 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733987', 'tblTempUsageDetail_20' ) start [2025-03-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733987', 'tblTempUsageDetail_20' ) end [2025-03-22 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:56:21] Production.INFO: ==31567== Releasing lock... [2025-03-22 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:57:06 [end_date_ymd] => 2025-03-22 00:57:06 [RateCDR] => 1 ) [2025-03-22 00:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 21:57:06' and `end` < '2025-03-22 00:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 00:57:18] Production.INFO: count ==398 [2025-03-22 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:57:06 - End Time 2025-03-22 00:57:06 [2025-03-22 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733992', 'tblTempUsageDetail_20' ) start [2025-03-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733992', 'tblTempUsageDetail_20' ) end [2025-03-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733992', 'tblTempVendorCDR_20' ) start [2025-03-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733992', 'tblTempVendorCDR_20' ) end [2025-03-22 00:57:18] Production.INFO: ProcessCDR(1,14733992,1,1,2) [2025-03-22 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733992', 'tblTempUsageDetail_20' ) start [2025-03-22 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733992', 'tblTempUsageDetail_20' ) end [2025-03-22 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:57:21] Production.INFO: ==31682== Releasing lock... [2025-03-22 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:58:05 [end_date_ymd] => 2025-03-22 00:58:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:58:05' and `end` < '2025-03-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-03-22 00:58:17] Production.INFO: count ==394 [2025-03-22 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-21 21:58:05 - End Time 2025-03-22 00:58:05 [2025-03-22 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733997', 'tblTempUsageDetail_20' ) start [2025-03-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733997', 'tblTempUsageDetail_20' ) end [2025-03-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733997', 'tblTempVendorCDR_20' ) start [2025-03-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733997', 'tblTempVendorCDR_20' ) end [2025-03-22 00:58:17] Production.INFO: ProcessCDR(1,14733997,1,1,2) [2025-03-22 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733997', 'tblTempUsageDetail_20' ) start [2025-03-22 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733997', 'tblTempUsageDetail_20' ) end [2025-03-22 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:58:20] Production.INFO: ==31799== Releasing lock... [2025-03-22 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:58:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 21:59:05 [end_date_ymd] => 2025-03-22 00:59:05 [RateCDR] => 1 ) [2025-03-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-03-21 21:59:05' and `end` < '2025-03-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-03-22 00:59:18] Production.INFO: count ==383 [2025-03-22 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-21 21:59:05 - End Time 2025-03-22 00:59:05 [2025-03-22 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734002', 'tblTempUsageDetail_20' ) start [2025-03-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734002', 'tblTempUsageDetail_20' ) end [2025-03-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734002', 'tblTempVendorCDR_20' ) start [2025-03-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734002', 'tblTempVendorCDR_20' ) end [2025-03-22 00:59:18] Production.INFO: ProcessCDR(1,14734002,1,1,2) [2025-03-22 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734002', 'tblTempUsageDetail_20' ) start [2025-03-22 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734002', 'tblTempUsageDetail_20' ) end [2025-03-22 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 00:59:21] Production.INFO: ==31912== Releasing lock... [2025-03-22 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 00:59:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:00:06 [end_date_ymd] => 2025-03-22 01:00:06 [RateCDR] => 1 ) [2025-03-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-03-21 22:00:06' and `end` < '2025-03-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-03-22 01:00:18] Production.INFO: count ==396 [2025-03-22 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:00:06 - End Time 2025-03-22 01:00:06 [2025-03-22 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734008', 'tblTempUsageDetail_20' ) start [2025-03-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734008', 'tblTempUsageDetail_20' ) end [2025-03-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734008', 'tblTempVendorCDR_20' ) start [2025-03-22 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734008', 'tblTempVendorCDR_20' ) end [2025-03-22 01:00:18] Production.INFO: ProcessCDR(1,14734008,1,1,2) [2025-03-22 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734008', 'tblTempUsageDetail_20' ) start [2025-03-22 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734008', 'tblTempUsageDetail_20' ) end [2025-03-22 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:00:22] Production.INFO: ==32028== Releasing lock... [2025-03-22 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:00:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:01:05 [end_date_ymd] => 2025-03-22 01:01:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:01:05' and `end` < '2025-03-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-03-22 01:01:18] Production.INFO: count ==401 [2025-03-22 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:01:05 - End Time 2025-03-22 01:01:05 [2025-03-22 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734013', 'tblTempUsageDetail_20' ) start [2025-03-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734013', 'tblTempUsageDetail_20' ) end [2025-03-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734013', 'tblTempVendorCDR_20' ) start [2025-03-22 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734013', 'tblTempVendorCDR_20' ) end [2025-03-22 01:01:18] Production.INFO: ProcessCDR(1,14734013,1,1,2) [2025-03-22 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734013', 'tblTempUsageDetail_20' ) start [2025-03-22 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734013', 'tblTempUsageDetail_20' ) end [2025-03-22 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:01:21] Production.INFO: ==32166== Releasing lock... [2025-03-22 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-22 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:02:05 [end_date_ymd] => 2025-03-22 01:02:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:02:05' and `end` < '2025-03-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-03-22 01:02:18] Production.INFO: count ==401 [2025-03-22 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:02:05 - End Time 2025-03-22 01:02:05 [2025-03-22 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734018', 'tblTempUsageDetail_20' ) start [2025-03-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734018', 'tblTempUsageDetail_20' ) end [2025-03-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734018', 'tblTempVendorCDR_20' ) start [2025-03-22 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734018', 'tblTempVendorCDR_20' ) end [2025-03-22 01:02:18] Production.INFO: ProcessCDR(1,14734018,1,1,2) [2025-03-22 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734018', 'tblTempUsageDetail_20' ) start [2025-03-22 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734018', 'tblTempUsageDetail_20' ) end [2025-03-22 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:02:21] Production.INFO: ==32276== Releasing lock... [2025-03-22 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-22 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:03:06 [end_date_ymd] => 2025-03-22 01:03:06 [RateCDR] => 1 ) [2025-03-22 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:03:06' and `end` < '2025-03-22 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:03:18] Production.INFO: count ==400 [2025-03-22 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:03:06 - End Time 2025-03-22 01:03:06 [2025-03-22 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734023', 'tblTempUsageDetail_20' ) start [2025-03-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734023', 'tblTempUsageDetail_20' ) end [2025-03-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734023', 'tblTempVendorCDR_20' ) start [2025-03-22 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734023', 'tblTempVendorCDR_20' ) end [2025-03-22 01:03:18] Production.INFO: ProcessCDR(1,14734023,1,1,2) [2025-03-22 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734023', 'tblTempUsageDetail_20' ) start [2025-03-22 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734023', 'tblTempUsageDetail_20' ) end [2025-03-22 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:03:21] Production.INFO: ==32391== Releasing lock... [2025-03-22 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:04:05 [end_date_ymd] => 2025-03-22 01:04:05 [RateCDR] => 1 ) [2025-03-22 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:04:05' and `end` < '2025-03-22 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:04:17] Production.INFO: count ==403 [2025-03-22 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:04:05 - End Time 2025-03-22 01:04:05 [2025-03-22 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734028', 'tblTempUsageDetail_20' ) start [2025-03-22 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734028', 'tblTempUsageDetail_20' ) end [2025-03-22 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734028', 'tblTempVendorCDR_20' ) start [2025-03-22 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734028', 'tblTempVendorCDR_20' ) end [2025-03-22 01:04:18] Production.INFO: ProcessCDR(1,14734028,1,1,2) [2025-03-22 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734028', 'tblTempUsageDetail_20' ) start [2025-03-22 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734028', 'tblTempUsageDetail_20' ) end [2025-03-22 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:04:21] Production.INFO: ==32507== Releasing lock... [2025-03-22 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:05:05 [end_date_ymd] => 2025-03-22 01:05:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:05:05' and `end` < '2025-03-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-03-22 01:05:17] Production.INFO: count ==407 [2025-03-22 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:05:05 - End Time 2025-03-22 01:05:05 [2025-03-22 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734033', 'tblTempUsageDetail_20' ) start [2025-03-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734033', 'tblTempUsageDetail_20' ) end [2025-03-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734033', 'tblTempVendorCDR_20' ) start [2025-03-22 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734033', 'tblTempVendorCDR_20' ) end [2025-03-22 01:05:18] Production.INFO: ProcessCDR(1,14734033,1,1,2) [2025-03-22 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734033', 'tblTempUsageDetail_20' ) start [2025-03-22 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734033', 'tblTempUsageDetail_20' ) end [2025-03-22 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:05:21] Production.INFO: ==32622== Releasing lock... [2025-03-22 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:06:05 [end_date_ymd] => 2025-03-22 01:06:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:06:05' and `end` < '2025-03-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-03-22 01:06:18] Production.INFO: count ==408 [2025-03-22 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:06:05 - End Time 2025-03-22 01:06:05 [2025-03-22 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734038', 'tblTempUsageDetail_20' ) start [2025-03-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734038', 'tblTempUsageDetail_20' ) end [2025-03-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734038', 'tblTempVendorCDR_20' ) start [2025-03-22 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734038', 'tblTempVendorCDR_20' ) end [2025-03-22 01:06:18] Production.INFO: ProcessCDR(1,14734038,1,1,2) [2025-03-22 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734038', 'tblTempUsageDetail_20' ) start [2025-03-22 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734038', 'tblTempUsageDetail_20' ) end [2025-03-22 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:06:23] Production.INFO: ==32735== Releasing lock... [2025-03-22 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:06:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:07:05 [end_date_ymd] => 2025-03-22 01:07:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:07:05' and `end` < '2025-03-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-03-22 01:07:17] Production.INFO: count ==410 [2025-03-22 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:07:05 - End Time 2025-03-22 01:07:05 [2025-03-22 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734043', 'tblTempUsageDetail_20' ) start [2025-03-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734043', 'tblTempUsageDetail_20' ) end [2025-03-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734043', 'tblTempVendorCDR_20' ) start [2025-03-22 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734043', 'tblTempVendorCDR_20' ) end [2025-03-22 01:07:18] Production.INFO: ProcessCDR(1,14734043,1,1,2) [2025-03-22 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734043', 'tblTempUsageDetail_20' ) start [2025-03-22 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734043', 'tblTempUsageDetail_20' ) end [2025-03-22 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:07:22] Production.INFO: ==403== Releasing lock... [2025-03-22 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:08:05 [end_date_ymd] => 2025-03-22 01:08:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:08:05' and `end` < '2025-03-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-03-22 01:08:17] Production.INFO: count ==398 [2025-03-22 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:08:05 - End Time 2025-03-22 01:08:05 [2025-03-22 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734048', 'tblTempUsageDetail_20' ) start [2025-03-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734048', 'tblTempUsageDetail_20' ) end [2025-03-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734048', 'tblTempVendorCDR_20' ) start [2025-03-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734048', 'tblTempVendorCDR_20' ) end [2025-03-22 01:08:17] Production.INFO: ProcessCDR(1,14734048,1,1,2) [2025-03-22 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734048', 'tblTempUsageDetail_20' ) start [2025-03-22 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734048', 'tblTempUsageDetail_20' ) end [2025-03-22 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:08:20] Production.INFO: ==560== Releasing lock... [2025-03-22 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:08:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:09:06 [end_date_ymd] => 2025-03-22 01:09:06 [RateCDR] => 1 ) [2025-03-22 01:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:09:06' and `end` < '2025-03-22 01:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:09:18] Production.INFO: count ==399 [2025-03-22 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:09:06 - End Time 2025-03-22 01:09:06 [2025-03-22 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734053', 'tblTempUsageDetail_20' ) start [2025-03-22 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734053', 'tblTempUsageDetail_20' ) end [2025-03-22 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734053', 'tblTempVendorCDR_20' ) start [2025-03-22 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734053', 'tblTempVendorCDR_20' ) end [2025-03-22 01:09:18] Production.INFO: ProcessCDR(1,14734053,1,1,2) [2025-03-22 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734053', 'tblTempUsageDetail_20' ) start [2025-03-22 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734053', 'tblTempUsageDetail_20' ) end [2025-03-22 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:09:21] Production.INFO: ==704== Releasing lock... [2025-03-22 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:10:05 [end_date_ymd] => 2025-03-22 01:10:05 [RateCDR] => 1 ) [2025-03-22 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:10:05' and `end` < '2025-03-22 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:10:18] Production.INFO: count ==404 [2025-03-22 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:10:05 - End Time 2025-03-22 01:10:05 [2025-03-22 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734059', 'tblTempUsageDetail_20' ) start [2025-03-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734059', 'tblTempUsageDetail_20' ) end [2025-03-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734059', 'tblTempVendorCDR_20' ) start [2025-03-22 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734059', 'tblTempVendorCDR_20' ) end [2025-03-22 01:10:18] Production.INFO: ProcessCDR(1,14734059,1,1,2) [2025-03-22 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734059', 'tblTempUsageDetail_20' ) start [2025-03-22 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734059', 'tblTempUsageDetail_20' ) end [2025-03-22 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:10:21] Production.INFO: ==827== Releasing lock... [2025-03-22 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:10:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:11:06 [end_date_ymd] => 2025-03-22 01:11:06 [RateCDR] => 1 ) [2025-03-22 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:11:06' and `end` < '2025-03-22 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:11:18] Production.INFO: count ==405 [2025-03-22 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:11:06 - End Time 2025-03-22 01:11:06 [2025-03-22 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734064', 'tblTempUsageDetail_20' ) start [2025-03-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734064', 'tblTempUsageDetail_20' ) end [2025-03-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734064', 'tblTempVendorCDR_20' ) start [2025-03-22 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734064', 'tblTempVendorCDR_20' ) end [2025-03-22 01:11:18] Production.INFO: ProcessCDR(1,14734064,1,1,2) [2025-03-22 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734064', 'tblTempUsageDetail_20' ) start [2025-03-22 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734064', 'tblTempUsageDetail_20' ) end [2025-03-22 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:11:21] Production.INFO: ==942== Releasing lock... [2025-03-22 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:12:04 [end_date_ymd] => 2025-03-22 01:12:04 [RateCDR] => 1 ) [2025-03-22 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:12:04' and `end` < '2025-03-22 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:12:17] Production.INFO: count ==411 [2025-03-22 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:12:04 - End Time 2025-03-22 01:12:04 [2025-03-22 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734069', 'tblTempUsageDetail_20' ) start [2025-03-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734069', 'tblTempUsageDetail_20' ) end [2025-03-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734069', 'tblTempVendorCDR_20' ) start [2025-03-22 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734069', 'tblTempVendorCDR_20' ) end [2025-03-22 01:12:17] Production.INFO: ProcessCDR(1,14734069,1,1,2) [2025-03-22 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734069', 'tblTempUsageDetail_20' ) start [2025-03-22 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734069', 'tblTempUsageDetail_20' ) end [2025-03-22 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:12:20] Production.INFO: ==1059== Releasing lock... [2025-03-22 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:12:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:13:05 [end_date_ymd] => 2025-03-22 01:13:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:13:05' and `end` < '2025-03-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-03-22 01:13:17] Production.INFO: count ==409 [2025-03-22 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:13:05 - End Time 2025-03-22 01:13:05 [2025-03-22 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734074', 'tblTempUsageDetail_20' ) start [2025-03-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734074', 'tblTempUsageDetail_20' ) end [2025-03-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734074', 'tblTempVendorCDR_20' ) start [2025-03-22 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734074', 'tblTempVendorCDR_20' ) end [2025-03-22 01:13:18] Production.INFO: ProcessCDR(1,14734074,1,1,2) [2025-03-22 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734074', 'tblTempUsageDetail_20' ) start [2025-03-22 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734074', 'tblTempUsageDetail_20' ) end [2025-03-22 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:13:21] Production.INFO: ==1178== Releasing lock... [2025-03-22 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:14:05 [end_date_ymd] => 2025-03-22 01:14:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:14:05' and `end` < '2025-03-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-03-22 01:14:17] Production.INFO: count ==408 [2025-03-22 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:14:05 - End Time 2025-03-22 01:14:05 [2025-03-22 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734079', 'tblTempUsageDetail_20' ) start [2025-03-22 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734079', 'tblTempUsageDetail_20' ) end [2025-03-22 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734079', 'tblTempVendorCDR_20' ) start [2025-03-22 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734079', 'tblTempVendorCDR_20' ) end [2025-03-22 01:14:17] Production.INFO: ProcessCDR(1,14734079,1,1,2) [2025-03-22 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734079', 'tblTempUsageDetail_20' ) start [2025-03-22 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734079', 'tblTempUsageDetail_20' ) end [2025-03-22 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:14:20] Production.INFO: ==1305== Releasing lock... [2025-03-22 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:14:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:15:05 [end_date_ymd] => 2025-03-22 01:15:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:15:05' and `end` < '2025-03-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-03-22 01:15:18] Production.INFO: count ==415 [2025-03-22 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:15:05 - End Time 2025-03-22 01:15:05 [2025-03-22 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734084', 'tblTempUsageDetail_20' ) start [2025-03-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734084', 'tblTempUsageDetail_20' ) end [2025-03-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734084', 'tblTempVendorCDR_20' ) start [2025-03-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734084', 'tblTempVendorCDR_20' ) end [2025-03-22 01:15:18] Production.INFO: ProcessCDR(1,14734084,1,1,2) [2025-03-22 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734084', 'tblTempUsageDetail_20' ) start [2025-03-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734084', 'tblTempUsageDetail_20' ) end [2025-03-22 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:15:21] Production.INFO: ==1417== Releasing lock... [2025-03-22 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:16:05 [end_date_ymd] => 2025-03-22 01:16:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:16:05' and `end` < '2025-03-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-03-22 01:16:17] Production.INFO: count ==418 [2025-03-22 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:16:05 - End Time 2025-03-22 01:16:05 [2025-03-22 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734089', 'tblTempUsageDetail_20' ) start [2025-03-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734089', 'tblTempUsageDetail_20' ) end [2025-03-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734089', 'tblTempVendorCDR_20' ) start [2025-03-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734089', 'tblTempVendorCDR_20' ) end [2025-03-22 01:16:17] Production.INFO: ProcessCDR(1,14734089,1,1,2) [2025-03-22 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734089', 'tblTempUsageDetail_20' ) start [2025-03-22 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734089', 'tblTempUsageDetail_20' ) end [2025-03-22 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:16:21] Production.INFO: ==1564== Releasing lock... [2025-03-22 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:16:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:17:05 [end_date_ymd] => 2025-03-22 01:17:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:17:05' and `end` < '2025-03-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-03-22 01:17:17] Production.INFO: count ==421 [2025-03-22 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:17:05 - End Time 2025-03-22 01:17:05 [2025-03-22 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734094', 'tblTempUsageDetail_20' ) start [2025-03-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734094', 'tblTempUsageDetail_20' ) end [2025-03-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734094', 'tblTempVendorCDR_20' ) start [2025-03-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734094', 'tblTempVendorCDR_20' ) end [2025-03-22 01:17:17] Production.INFO: ProcessCDR(1,14734094,1,1,2) [2025-03-22 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734094', 'tblTempUsageDetail_20' ) start [2025-03-22 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734094', 'tblTempUsageDetail_20' ) end [2025-03-22 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:17:21] Production.INFO: ==1684== Releasing lock... [2025-03-22 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:18:06 [end_date_ymd] => 2025-03-22 01:18:06 [RateCDR] => 1 ) [2025-03-22 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:18:06' and `end` < '2025-03-22 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:18:18] Production.INFO: count ==419 [2025-03-22 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:18:06 - End Time 2025-03-22 01:18:06 [2025-03-22 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734099', 'tblTempUsageDetail_20' ) start [2025-03-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734099', 'tblTempUsageDetail_20' ) end [2025-03-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734099', 'tblTempVendorCDR_20' ) start [2025-03-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734099', 'tblTempVendorCDR_20' ) end [2025-03-22 01:18:18] Production.INFO: ProcessCDR(1,14734099,1,1,2) [2025-03-22 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734099', 'tblTempUsageDetail_20' ) start [2025-03-22 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734099', 'tblTempUsageDetail_20' ) end [2025-03-22 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:18:22] Production.INFO: ==1809== Releasing lock... [2025-03-22 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:18:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:19:05 [end_date_ymd] => 2025-03-22 01:19:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:19:05' and `end` < '2025-03-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-03-22 01:19:17] Production.INFO: count ==417 [2025-03-22 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:19:05 - End Time 2025-03-22 01:19:05 [2025-03-22 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734104', 'tblTempUsageDetail_20' ) start [2025-03-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734104', 'tblTempUsageDetail_20' ) end [2025-03-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734104', 'tblTempVendorCDR_20' ) start [2025-03-22 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734104', 'tblTempVendorCDR_20' ) end [2025-03-22 01:19:18] Production.INFO: ProcessCDR(1,14734104,1,1,2) [2025-03-22 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734104', 'tblTempUsageDetail_20' ) start [2025-03-22 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734104', 'tblTempUsageDetail_20' ) end [2025-03-22 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:19:21] Production.INFO: ==1929== Releasing lock... [2025-03-22 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:20:06 [end_date_ymd] => 2025-03-22 01:20:06 [RateCDR] => 1 ) [2025-03-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-03-21 22:20:06' and `end` < '2025-03-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-03-22 01:20:19] Production.INFO: count ==417 [2025-03-22 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-21 22:20:06 - End Time 2025-03-22 01:20:06 [2025-03-22 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734110', 'tblTempUsageDetail_20' ) start [2025-03-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734110', 'tblTempUsageDetail_20' ) end [2025-03-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734110', 'tblTempVendorCDR_20' ) start [2025-03-22 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734110', 'tblTempVendorCDR_20' ) end [2025-03-22 01:20:19] Production.INFO: ProcessCDR(1,14734110,1,1,2) [2025-03-22 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734110', 'tblTempUsageDetail_20' ) start [2025-03-22 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734110', 'tblTempUsageDetail_20' ) end [2025-03-22 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:20:22] Production.INFO: ==2046== Releasing lock... [2025-03-22 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:21:05 [end_date_ymd] => 2025-03-22 01:21:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:21:05' and `end` < '2025-03-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-03-22 01:21:17] Production.INFO: count ==417 [2025-03-22 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:21:05 - End Time 2025-03-22 01:21:05 [2025-03-22 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734115', 'tblTempUsageDetail_20' ) start [2025-03-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734115', 'tblTempUsageDetail_20' ) end [2025-03-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734115', 'tblTempVendorCDR_20' ) start [2025-03-22 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734115', 'tblTempVendorCDR_20' ) end [2025-03-22 01:21:17] Production.INFO: ProcessCDR(1,14734115,1,1,2) [2025-03-22 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734115', 'tblTempUsageDetail_20' ) start [2025-03-22 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734115', 'tblTempUsageDetail_20' ) end [2025-03-22 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:21:20] Production.INFO: ==2153== Releasing lock... [2025-03-22 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:21:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:22:05 [end_date_ymd] => 2025-03-22 01:22:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:22:05' and `end` < '2025-03-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-03-22 01:22:18] Production.INFO: count ==410 [2025-03-22 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:22:05 - End Time 2025-03-22 01:22:05 [2025-03-22 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734120', 'tblTempUsageDetail_20' ) start [2025-03-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734120', 'tblTempUsageDetail_20' ) end [2025-03-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734120', 'tblTempVendorCDR_20' ) start [2025-03-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734120', 'tblTempVendorCDR_20' ) end [2025-03-22 01:22:18] Production.INFO: ProcessCDR(1,14734120,1,1,2) [2025-03-22 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734120', 'tblTempUsageDetail_20' ) start [2025-03-22 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734120', 'tblTempUsageDetail_20' ) end [2025-03-22 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:22:21] Production.INFO: ==2271== Releasing lock... [2025-03-22 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:23:05 [end_date_ymd] => 2025-03-22 01:23:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:23:05' and `end` < '2025-03-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-03-22 01:23:17] Production.INFO: count ==410 [2025-03-22 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:23:05 - End Time 2025-03-22 01:23:05 [2025-03-22 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734125', 'tblTempUsageDetail_20' ) start [2025-03-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734125', 'tblTempUsageDetail_20' ) end [2025-03-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734125', 'tblTempVendorCDR_20' ) start [2025-03-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734125', 'tblTempVendorCDR_20' ) end [2025-03-22 01:23:17] Production.INFO: ProcessCDR(1,14734125,1,1,2) [2025-03-22 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734125', 'tblTempUsageDetail_20' ) start [2025-03-22 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734125', 'tblTempUsageDetail_20' ) end [2025-03-22 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:23:21] Production.INFO: ==2420== Releasing lock... [2025-03-22 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:24:05 [end_date_ymd] => 2025-03-22 01:24:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:24:05' and `end` < '2025-03-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-03-22 01:24:18] Production.INFO: count ==405 [2025-03-22 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:24:05 - End Time 2025-03-22 01:24:05 [2025-03-22 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734130', 'tblTempUsageDetail_20' ) start [2025-03-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734130', 'tblTempUsageDetail_20' ) end [2025-03-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734130', 'tblTempVendorCDR_20' ) start [2025-03-22 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734130', 'tblTempVendorCDR_20' ) end [2025-03-22 01:24:18] Production.INFO: ProcessCDR(1,14734130,1,1,2) [2025-03-22 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734130', 'tblTempUsageDetail_20' ) start [2025-03-22 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734130', 'tblTempUsageDetail_20' ) end [2025-03-22 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:24:21] Production.INFO: ==2538== Releasing lock... [2025-03-22 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:25:05 [end_date_ymd] => 2025-03-22 01:25:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:25:05' and `end` < '2025-03-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-03-22 01:25:17] Production.INFO: count ==400 [2025-03-22 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:25:05 - End Time 2025-03-22 01:25:05 [2025-03-22 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734135', 'tblTempUsageDetail_20' ) start [2025-03-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734135', 'tblTempUsageDetail_20' ) end [2025-03-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734135', 'tblTempVendorCDR_20' ) start [2025-03-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734135', 'tblTempVendorCDR_20' ) end [2025-03-22 01:25:17] Production.INFO: ProcessCDR(1,14734135,1,1,2) [2025-03-22 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734135', 'tblTempUsageDetail_20' ) start [2025-03-22 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734135', 'tblTempUsageDetail_20' ) end [2025-03-22 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:25:21] Production.INFO: ==2653== Releasing lock... [2025-03-22 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:26:05 [end_date_ymd] => 2025-03-22 01:26:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:26:05' and `end` < '2025-03-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-03-22 01:26:18] Production.INFO: count ==398 [2025-03-22 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:26:05 - End Time 2025-03-22 01:26:05 [2025-03-22 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734140', 'tblTempUsageDetail_20' ) start [2025-03-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734140', 'tblTempUsageDetail_20' ) end [2025-03-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734140', 'tblTempVendorCDR_20' ) start [2025-03-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734140', 'tblTempVendorCDR_20' ) end [2025-03-22 01:26:18] Production.INFO: ProcessCDR(1,14734140,1,1,2) [2025-03-22 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734140', 'tblTempUsageDetail_20' ) start [2025-03-22 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734140', 'tblTempUsageDetail_20' ) end [2025-03-22 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:26:21] Production.INFO: ==2769== Releasing lock... [2025-03-22 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:27:05 [end_date_ymd] => 2025-03-22 01:27:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:27:05' and `end` < '2025-03-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-03-22 01:27:17] Production.INFO: count ==398 [2025-03-22 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:27:05 - End Time 2025-03-22 01:27:05 [2025-03-22 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734145', 'tblTempUsageDetail_20' ) start [2025-03-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734145', 'tblTempUsageDetail_20' ) end [2025-03-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734145', 'tblTempVendorCDR_20' ) start [2025-03-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734145', 'tblTempVendorCDR_20' ) end [2025-03-22 01:27:17] Production.INFO: ProcessCDR(1,14734145,1,1,2) [2025-03-22 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734145', 'tblTempUsageDetail_20' ) start [2025-03-22 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734145', 'tblTempUsageDetail_20' ) end [2025-03-22 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:27:20] Production.INFO: ==2879== Releasing lock... [2025-03-22 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:27:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:28:05 [end_date_ymd] => 2025-03-22 01:28:05 [RateCDR] => 1 ) [2025-03-22 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:28:05' and `end` < '2025-03-22 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:28:17] Production.INFO: count ==393 [2025-03-22 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:28:05 - End Time 2025-03-22 01:28:05 [2025-03-22 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734150', 'tblTempUsageDetail_20' ) start [2025-03-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734150', 'tblTempUsageDetail_20' ) end [2025-03-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734150', 'tblTempVendorCDR_20' ) start [2025-03-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734150', 'tblTempVendorCDR_20' ) end [2025-03-22 01:28:17] Production.INFO: ProcessCDR(1,14734150,1,1,2) [2025-03-22 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734150', 'tblTempUsageDetail_20' ) start [2025-03-22 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734150', 'tblTempUsageDetail_20' ) end [2025-03-22 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:28:21] Production.INFO: ==2989== Releasing lock... [2025-03-22 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:29:06 [end_date_ymd] => 2025-03-22 01:29:06 [RateCDR] => 1 ) [2025-03-22 01:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:29:06' and `end` < '2025-03-22 01:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:29:18] Production.INFO: count ==390 [2025-03-22 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:29:06 - End Time 2025-03-22 01:29:06 [2025-03-22 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734155', 'tblTempUsageDetail_20' ) start [2025-03-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734155', 'tblTempUsageDetail_20' ) end [2025-03-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734155', 'tblTempVendorCDR_20' ) start [2025-03-22 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734155', 'tblTempVendorCDR_20' ) end [2025-03-22 01:29:18] Production.INFO: ProcessCDR(1,14734155,1,1,2) [2025-03-22 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734155', 'tblTempUsageDetail_20' ) start [2025-03-22 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734155', 'tblTempUsageDetail_20' ) end [2025-03-22 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:29:22] Production.INFO: ==3109== Releasing lock... [2025-03-22 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:30:06 [end_date_ymd] => 2025-03-22 01:30:06 [RateCDR] => 1 ) [2025-03-22 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:30:06' and `end` < '2025-03-22 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:30:18] Production.INFO: count ==396 [2025-03-22 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:30:06 - End Time 2025-03-22 01:30:06 [2025-03-22 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734161', 'tblTempUsageDetail_20' ) start [2025-03-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734161', 'tblTempUsageDetail_20' ) end [2025-03-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734161', 'tblTempVendorCDR_20' ) start [2025-03-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734161', 'tblTempVendorCDR_20' ) end [2025-03-22 01:30:18] Production.INFO: ProcessCDR(1,14734161,1,1,2) [2025-03-22 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734161', 'tblTempUsageDetail_20' ) start [2025-03-22 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734161', 'tblTempUsageDetail_20' ) end [2025-03-22 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:30:22] Production.INFO: ==3224== Releasing lock... [2025-03-22 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:31:05 [end_date_ymd] => 2025-03-22 01:31:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:31:05' and `end` < '2025-03-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-03-22 01:31:18] Production.INFO: count ==405 [2025-03-22 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:31:05 - End Time 2025-03-22 01:31:05 [2025-03-22 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734162', 'tblTempUsageDetail_20' ) start [2025-03-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734162', 'tblTempUsageDetail_20' ) end [2025-03-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734162', 'tblTempVendorCDR_20' ) start [2025-03-22 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734162', 'tblTempVendorCDR_20' ) end [2025-03-22 01:31:18] Production.INFO: ProcessCDR(1,14734162,1,1,2) [2025-03-22 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734162', 'tblTempUsageDetail_20' ) start [2025-03-22 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734162', 'tblTempUsageDetail_20' ) end [2025-03-22 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:31:21] Production.INFO: ==3342== Releasing lock... [2025-03-22 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:32:06 [end_date_ymd] => 2025-03-22 01:32:06 [RateCDR] => 1 ) [2025-03-22 01:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:32:06' and `end` < '2025-03-22 01:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:32:18] Production.INFO: count ==406 [2025-03-22 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:32:06 - End Time 2025-03-22 01:32:06 [2025-03-22 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734171', 'tblTempUsageDetail_20' ) start [2025-03-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734171', 'tblTempUsageDetail_20' ) end [2025-03-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734171', 'tblTempVendorCDR_20' ) start [2025-03-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734171', 'tblTempVendorCDR_20' ) end [2025-03-22 01:32:18] Production.INFO: ProcessCDR(1,14734171,1,1,2) [2025-03-22 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734171', 'tblTempUsageDetail_20' ) start [2025-03-22 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734171', 'tblTempUsageDetail_20' ) end [2025-03-22 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:32:23] Production.INFO: ==3454== Releasing lock... [2025-03-22 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:32:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:33:06 [end_date_ymd] => 2025-03-22 01:33:06 [RateCDR] => 1 ) [2025-03-22 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:33:06' and `end` < '2025-03-22 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:33:18] Production.INFO: count ==407 [2025-03-22 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:33:06 - End Time 2025-03-22 01:33:06 [2025-03-22 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734176', 'tblTempUsageDetail_20' ) start [2025-03-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734176', 'tblTempUsageDetail_20' ) end [2025-03-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734176', 'tblTempVendorCDR_20' ) start [2025-03-22 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734176', 'tblTempVendorCDR_20' ) end [2025-03-22 01:33:18] Production.INFO: ProcessCDR(1,14734176,1,1,2) [2025-03-22 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734176', 'tblTempUsageDetail_20' ) start [2025-03-22 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734176', 'tblTempUsageDetail_20' ) end [2025-03-22 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:33:21] Production.INFO: ==3558== Releasing lock... [2025-03-22 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:34:06 [end_date_ymd] => 2025-03-22 01:34:06 [RateCDR] => 1 ) [2025-03-22 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:34:06' and `end` < '2025-03-22 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:34:18] Production.INFO: count ==414 [2025-03-22 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:34:06 - End Time 2025-03-22 01:34:06 [2025-03-22 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734181', 'tblTempUsageDetail_20' ) start [2025-03-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734181', 'tblTempUsageDetail_20' ) end [2025-03-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734181', 'tblTempVendorCDR_20' ) start [2025-03-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734181', 'tblTempVendorCDR_20' ) end [2025-03-22 01:34:18] Production.INFO: ProcessCDR(1,14734181,1,1,2) [2025-03-22 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734181', 'tblTempUsageDetail_20' ) start [2025-03-22 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734181', 'tblTempUsageDetail_20' ) end [2025-03-22 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:34:21] Production.INFO: ==3656== Releasing lock... [2025-03-22 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:35:05 [end_date_ymd] => 2025-03-22 01:35:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:35:05' and `end` < '2025-03-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-03-22 01:35:17] Production.INFO: count ==414 [2025-03-22 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:35:05 - End Time 2025-03-22 01:35:05 [2025-03-22 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734186', 'tblTempUsageDetail_20' ) start [2025-03-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734186', 'tblTempUsageDetail_20' ) end [2025-03-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734186', 'tblTempVendorCDR_20' ) start [2025-03-22 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734186', 'tblTempVendorCDR_20' ) end [2025-03-22 01:35:18] Production.INFO: ProcessCDR(1,14734186,1,1,2) [2025-03-22 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734186', 'tblTempUsageDetail_20' ) start [2025-03-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734186', 'tblTempUsageDetail_20' ) end [2025-03-22 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:35:21] Production.INFO: ==3757== Releasing lock... [2025-03-22 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:36:05 [end_date_ymd] => 2025-03-22 01:36:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:36:05' and `end` < '2025-03-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-03-22 01:36:18] Production.INFO: count ==414 [2025-03-22 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:36:05 - End Time 2025-03-22 01:36:05 [2025-03-22 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734191', 'tblTempUsageDetail_20' ) start [2025-03-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734191', 'tblTempUsageDetail_20' ) end [2025-03-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734191', 'tblTempVendorCDR_20' ) start [2025-03-22 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734191', 'tblTempVendorCDR_20' ) end [2025-03-22 01:36:18] Production.INFO: ProcessCDR(1,14734191,1,1,2) [2025-03-22 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734191', 'tblTempUsageDetail_20' ) start [2025-03-22 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734191', 'tblTempUsageDetail_20' ) end [2025-03-22 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:36:21] Production.INFO: ==3858== Releasing lock... [2025-03-22 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:37:06 [end_date_ymd] => 2025-03-22 01:37:06 [RateCDR] => 1 ) [2025-03-22 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:37:06' and `end` < '2025-03-22 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:37:18] Production.INFO: count ==410 [2025-03-22 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:37:06 - End Time 2025-03-22 01:37:06 [2025-03-22 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734196', 'tblTempUsageDetail_20' ) start [2025-03-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734196', 'tblTempUsageDetail_20' ) end [2025-03-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734196', 'tblTempVendorCDR_20' ) start [2025-03-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734196', 'tblTempVendorCDR_20' ) end [2025-03-22 01:37:18] Production.INFO: ProcessCDR(1,14734196,1,1,2) [2025-03-22 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734196', 'tblTempUsageDetail_20' ) start [2025-03-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734196', 'tblTempUsageDetail_20' ) end [2025-03-22 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:37:21] Production.INFO: ==3966== Releasing lock... [2025-03-22 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:37:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:38:05 [end_date_ymd] => 2025-03-22 01:38:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:38:05' and `end` < '2025-03-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-03-22 01:38:18] Production.INFO: count ==407 [2025-03-22 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:38:05 - End Time 2025-03-22 01:38:05 [2025-03-22 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734201', 'tblTempUsageDetail_20' ) start [2025-03-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734201', 'tblTempUsageDetail_20' ) end [2025-03-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734201', 'tblTempVendorCDR_20' ) start [2025-03-22 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734201', 'tblTempVendorCDR_20' ) end [2025-03-22 01:38:18] Production.INFO: ProcessCDR(1,14734201,1,1,2) [2025-03-22 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734201', 'tblTempUsageDetail_20' ) start [2025-03-22 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734201', 'tblTempUsageDetail_20' ) end [2025-03-22 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:38:21] Production.INFO: ==4078== Releasing lock... [2025-03-22 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:39:05 [end_date_ymd] => 2025-03-22 01:39:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:39:05' and `end` < '2025-03-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-03-22 01:39:18] Production.INFO: count ==409 [2025-03-22 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:39:05 - End Time 2025-03-22 01:39:05 [2025-03-22 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734206', 'tblTempUsageDetail_20' ) start [2025-03-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734206', 'tblTempUsageDetail_20' ) end [2025-03-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734206', 'tblTempVendorCDR_20' ) start [2025-03-22 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734206', 'tblTempVendorCDR_20' ) end [2025-03-22 01:39:18] Production.INFO: ProcessCDR(1,14734206,1,1,2) [2025-03-22 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734206', 'tblTempUsageDetail_20' ) start [2025-03-22 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734206', 'tblTempUsageDetail_20' ) end [2025-03-22 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:39:22] Production.INFO: ==4229== Releasing lock... [2025-03-22 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:40:06 [end_date_ymd] => 2025-03-22 01:40:06 [RateCDR] => 1 ) [2025-03-22 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:40:06' and `end` < '2025-03-22 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:40:18] Production.INFO: count ==417 [2025-03-22 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:40:06 - End Time 2025-03-22 01:40:06 [2025-03-22 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734212', 'tblTempUsageDetail_20' ) start [2025-03-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734212', 'tblTempUsageDetail_20' ) end [2025-03-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734212', 'tblTempVendorCDR_20' ) start [2025-03-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734212', 'tblTempVendorCDR_20' ) end [2025-03-22 01:40:18] Production.INFO: ProcessCDR(1,14734212,1,1,2) [2025-03-22 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734212', 'tblTempUsageDetail_20' ) start [2025-03-22 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734212', 'tblTempUsageDetail_20' ) end [2025-03-22 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:40:23] Production.INFO: ==4337== Releasing lock... [2025-03-22 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:40:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:41:06 [end_date_ymd] => 2025-03-22 01:41:06 [RateCDR] => 1 ) [2025-03-22 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:41:06' and `end` < '2025-03-22 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:41:18] Production.INFO: count ==425 [2025-03-22 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:41:06 - End Time 2025-03-22 01:41:06 [2025-03-22 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734217', 'tblTempUsageDetail_20' ) start [2025-03-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734217', 'tblTempUsageDetail_20' ) end [2025-03-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734217', 'tblTempVendorCDR_20' ) start [2025-03-22 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734217', 'tblTempVendorCDR_20' ) end [2025-03-22 01:41:18] Production.INFO: ProcessCDR(1,14734217,1,1,2) [2025-03-22 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734217', 'tblTempUsageDetail_20' ) start [2025-03-22 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734217', 'tblTempUsageDetail_20' ) end [2025-03-22 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:41:21] Production.INFO: ==4449== Releasing lock... [2025-03-22 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:41:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:42:05 [end_date_ymd] => 2025-03-22 01:42:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:42:05' and `end` < '2025-03-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-03-22 01:42:17] Production.INFO: count ==429 [2025-03-22 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:42:05 - End Time 2025-03-22 01:42:05 [2025-03-22 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734222', 'tblTempUsageDetail_20' ) start [2025-03-22 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734222', 'tblTempUsageDetail_20' ) end [2025-03-22 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734222', 'tblTempVendorCDR_20' ) start [2025-03-22 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734222', 'tblTempVendorCDR_20' ) end [2025-03-22 01:42:17] Production.INFO: ProcessCDR(1,14734222,1,1,2) [2025-03-22 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734222', 'tblTempUsageDetail_20' ) start [2025-03-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734222', 'tblTempUsageDetail_20' ) end [2025-03-22 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:42:21] Production.INFO: ==4563== Releasing lock... [2025-03-22 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:42:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:43:05 [end_date_ymd] => 2025-03-22 01:43:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:43:05' and `end` < '2025-03-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-03-22 01:43:18] Production.INFO: count ==434 [2025-03-22 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:43:05 - End Time 2025-03-22 01:43:05 [2025-03-22 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734227', 'tblTempUsageDetail_20' ) start [2025-03-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734227', 'tblTempUsageDetail_20' ) end [2025-03-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734227', 'tblTempVendorCDR_20' ) start [2025-03-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734227', 'tblTempVendorCDR_20' ) end [2025-03-22 01:43:18] Production.INFO: ProcessCDR(1,14734227,1,1,2) [2025-03-22 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734227', 'tblTempUsageDetail_20' ) start [2025-03-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734227', 'tblTempUsageDetail_20' ) end [2025-03-22 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:43:21] Production.INFO: ==4680== Releasing lock... [2025-03-22 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:44:05 [end_date_ymd] => 2025-03-22 01:44:05 [RateCDR] => 1 ) [2025-03-22 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:44:05' and `end` < '2025-03-22 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:44:17] Production.INFO: count ==433 [2025-03-22 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:44:05 - End Time 2025-03-22 01:44:05 [2025-03-22 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734232', 'tblTempUsageDetail_20' ) start [2025-03-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734232', 'tblTempUsageDetail_20' ) end [2025-03-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734232', 'tblTempVendorCDR_20' ) start [2025-03-22 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734232', 'tblTempVendorCDR_20' ) end [2025-03-22 01:44:17] Production.INFO: ProcessCDR(1,14734232,1,1,2) [2025-03-22 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734232', 'tblTempUsageDetail_20' ) start [2025-03-22 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734232', 'tblTempUsageDetail_20' ) end [2025-03-22 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:44:21] Production.INFO: ==4789== Releasing lock... [2025-03-22 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:44:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:45:05 [end_date_ymd] => 2025-03-22 01:45:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:45:05' and `end` < '2025-03-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-03-22 01:45:17] Production.INFO: count ==429 [2025-03-22 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:45:05 - End Time 2025-03-22 01:45:05 [2025-03-22 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734237', 'tblTempUsageDetail_20' ) start [2025-03-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734237', 'tblTempUsageDetail_20' ) end [2025-03-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734237', 'tblTempVendorCDR_20' ) start [2025-03-22 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734237', 'tblTempVendorCDR_20' ) end [2025-03-22 01:45:18] Production.INFO: ProcessCDR(1,14734237,1,1,2) [2025-03-22 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734237', 'tblTempUsageDetail_20' ) start [2025-03-22 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734237', 'tblTempUsageDetail_20' ) end [2025-03-22 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:45:21] Production.INFO: ==4904== Releasing lock... [2025-03-22 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:45:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:46:06 [end_date_ymd] => 2025-03-22 01:46:06 [RateCDR] => 1 ) [2025-03-22 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:46:06' and `end` < '2025-03-22 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:46:18] Production.INFO: count ==426 [2025-03-22 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:46:06 - End Time 2025-03-22 01:46:06 [2025-03-22 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734242', 'tblTempUsageDetail_20' ) start [2025-03-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734242', 'tblTempUsageDetail_20' ) end [2025-03-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734242', 'tblTempVendorCDR_20' ) start [2025-03-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734242', 'tblTempVendorCDR_20' ) end [2025-03-22 01:46:18] Production.INFO: ProcessCDR(1,14734242,1,1,2) [2025-03-22 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734242', 'tblTempUsageDetail_20' ) start [2025-03-22 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734242', 'tblTempUsageDetail_20' ) end [2025-03-22 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:46:22] Production.INFO: ==5014== Releasing lock... [2025-03-22 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:46:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:47:05 [end_date_ymd] => 2025-03-22 01:47:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:47:05' and `end` < '2025-03-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-03-22 01:47:17] Production.INFO: count ==426 [2025-03-22 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:47:05 - End Time 2025-03-22 01:47:05 [2025-03-22 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734247', 'tblTempUsageDetail_20' ) start [2025-03-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734247', 'tblTempUsageDetail_20' ) end [2025-03-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734247', 'tblTempVendorCDR_20' ) start [2025-03-22 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734247', 'tblTempVendorCDR_20' ) end [2025-03-22 01:47:17] Production.INFO: ProcessCDR(1,14734247,1,1,2) [2025-03-22 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734247', 'tblTempUsageDetail_20' ) start [2025-03-22 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734247', 'tblTempUsageDetail_20' ) end [2025-03-22 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:47:21] Production.INFO: ==5125== Releasing lock... [2025-03-22 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:48:06 [end_date_ymd] => 2025-03-22 01:48:06 [RateCDR] => 1 ) [2025-03-22 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:48:06' and `end` < '2025-03-22 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:48:18] Production.INFO: count ==420 [2025-03-22 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:48:06 - End Time 2025-03-22 01:48:06 [2025-03-22 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734252', 'tblTempUsageDetail_20' ) start [2025-03-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734252', 'tblTempUsageDetail_20' ) end [2025-03-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734252', 'tblTempVendorCDR_20' ) start [2025-03-22 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734252', 'tblTempVendorCDR_20' ) end [2025-03-22 01:48:18] Production.INFO: ProcessCDR(1,14734252,1,1,2) [2025-03-22 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734252', 'tblTempUsageDetail_20' ) start [2025-03-22 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734252', 'tblTempUsageDetail_20' ) end [2025-03-22 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:48:22] Production.INFO: ==5236== Releasing lock... [2025-03-22 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:48:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:49:05 [end_date_ymd] => 2025-03-22 01:49:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:49:05' and `end` < '2025-03-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-03-22 01:49:17] Production.INFO: count ==417 [2025-03-22 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:49:05 - End Time 2025-03-22 01:49:05 [2025-03-22 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734257', 'tblTempUsageDetail_20' ) start [2025-03-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734257', 'tblTempUsageDetail_20' ) end [2025-03-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734257', 'tblTempVendorCDR_20' ) start [2025-03-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734257', 'tblTempVendorCDR_20' ) end [2025-03-22 01:49:17] Production.INFO: ProcessCDR(1,14734257,1,1,2) [2025-03-22 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734257', 'tblTempUsageDetail_20' ) start [2025-03-22 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734257', 'tblTempUsageDetail_20' ) end [2025-03-22 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:49:21] Production.INFO: ==5355== Releasing lock... [2025-03-22 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:50:06 [end_date_ymd] => 2025-03-22 01:50:06 [RateCDR] => 1 ) [2025-03-22 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:50:06' and `end` < '2025-03-22 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:50:19] Production.INFO: count ==421 [2025-03-22 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 22:50:06 - End Time 2025-03-22 01:50:06 [2025-03-22 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734263', 'tblTempUsageDetail_20' ) start [2025-03-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734263', 'tblTempUsageDetail_20' ) end [2025-03-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734263', 'tblTempVendorCDR_20' ) start [2025-03-22 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734263', 'tblTempVendorCDR_20' ) end [2025-03-22 01:50:19] Production.INFO: ProcessCDR(1,14734263,1,1,2) [2025-03-22 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734263', 'tblTempUsageDetail_20' ) start [2025-03-22 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734263', 'tblTempUsageDetail_20' ) end [2025-03-22 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:50:22] Production.INFO: ==5473== Releasing lock... [2025-03-22 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:50:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:51:05 [end_date_ymd] => 2025-03-22 01:51:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:51:05' and `end` < '2025-03-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-03-22 01:51:17] Production.INFO: count ==429 [2025-03-22 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:51:05 - End Time 2025-03-22 01:51:05 [2025-03-22 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734268', 'tblTempUsageDetail_20' ) start [2025-03-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734268', 'tblTempUsageDetail_20' ) end [2025-03-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734268', 'tblTempVendorCDR_20' ) start [2025-03-22 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734268', 'tblTempVendorCDR_20' ) end [2025-03-22 01:51:17] Production.INFO: ProcessCDR(1,14734268,1,1,2) [2025-03-22 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734268', 'tblTempUsageDetail_20' ) start [2025-03-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734268', 'tblTempUsageDetail_20' ) end [2025-03-22 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:51:21] Production.INFO: ==5581== Releasing lock... [2025-03-22 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:51:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:52:06 [end_date_ymd] => 2025-03-22 01:52:06 [RateCDR] => 1 ) [2025-03-22 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:52:06' and `end` < '2025-03-22 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:52:18] Production.INFO: count ==427 [2025-03-22 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:52:06 - End Time 2025-03-22 01:52:06 [2025-03-22 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734273', 'tblTempUsageDetail_20' ) start [2025-03-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734273', 'tblTempUsageDetail_20' ) end [2025-03-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734273', 'tblTempVendorCDR_20' ) start [2025-03-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734273', 'tblTempVendorCDR_20' ) end [2025-03-22 01:52:18] Production.INFO: ProcessCDR(1,14734273,1,1,2) [2025-03-22 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734273', 'tblTempUsageDetail_20' ) start [2025-03-22 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734273', 'tblTempUsageDetail_20' ) end [2025-03-22 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:52:21] Production.INFO: ==5697== Releasing lock... [2025-03-22 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:53:05 [end_date_ymd] => 2025-03-22 01:53:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:53:05' and `end` < '2025-03-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-03-22 01:53:17] Production.INFO: count ==427 [2025-03-22 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:53:05 - End Time 2025-03-22 01:53:05 [2025-03-22 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734275', 'tblTempUsageDetail_20' ) start [2025-03-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734275', 'tblTempUsageDetail_20' ) end [2025-03-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734275', 'tblTempVendorCDR_20' ) start [2025-03-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734275', 'tblTempVendorCDR_20' ) end [2025-03-22 01:53:17] Production.INFO: ProcessCDR(1,14734275,1,1,2) [2025-03-22 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734275', 'tblTempUsageDetail_20' ) start [2025-03-22 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734275', 'tblTempUsageDetail_20' ) end [2025-03-22 01:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:53:20] Production.INFO: ==5815== Releasing lock... [2025-03-22 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:53:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:54:06 [end_date_ymd] => 2025-03-22 01:54:06 [RateCDR] => 1 ) [2025-03-22 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:54:06' and `end` < '2025-03-22 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:54:18] Production.INFO: count ==427 [2025-03-22 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:54:06 - End Time 2025-03-22 01:54:06 [2025-03-22 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734283', 'tblTempUsageDetail_20' ) start [2025-03-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734283', 'tblTempUsageDetail_20' ) end [2025-03-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734283', 'tblTempVendorCDR_20' ) start [2025-03-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734283', 'tblTempVendorCDR_20' ) end [2025-03-22 01:54:18] Production.INFO: ProcessCDR(1,14734283,1,1,2) [2025-03-22 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734283', 'tblTempUsageDetail_20' ) start [2025-03-22 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734283', 'tblTempUsageDetail_20' ) end [2025-03-22 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:54:21] Production.INFO: ==5965== Releasing lock... [2025-03-22 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:54:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:55:05 [end_date_ymd] => 2025-03-22 01:55:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:55:05' and `end` < '2025-03-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-03-22 01:55:17] Production.INFO: count ==427 [2025-03-22 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:55:05 - End Time 2025-03-22 01:55:05 [2025-03-22 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734288', 'tblTempUsageDetail_20' ) start [2025-03-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734288', 'tblTempUsageDetail_20' ) end [2025-03-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734288', 'tblTempVendorCDR_20' ) start [2025-03-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734288', 'tblTempVendorCDR_20' ) end [2025-03-22 01:55:17] Production.INFO: ProcessCDR(1,14734288,1,1,2) [2025-03-22 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734288', 'tblTempUsageDetail_20' ) start [2025-03-22 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734288', 'tblTempUsageDetail_20' ) end [2025-03-22 01:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:55:20] Production.INFO: ==6081== Releasing lock... [2025-03-22 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:55:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:56:06 [end_date_ymd] => 2025-03-22 01:56:06 [RateCDR] => 1 ) [2025-03-22 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 22:56:06' and `end` < '2025-03-22 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 01:56:18] Production.INFO: count ==419 [2025-03-22 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:56:06 - End Time 2025-03-22 01:56:06 [2025-03-22 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734293', 'tblTempUsageDetail_20' ) start [2025-03-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734293', 'tblTempUsageDetail_20' ) end [2025-03-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734293', 'tblTempVendorCDR_20' ) start [2025-03-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734293', 'tblTempVendorCDR_20' ) end [2025-03-22 01:56:18] Production.INFO: ProcessCDR(1,14734293,1,1,2) [2025-03-22 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734293', 'tblTempUsageDetail_20' ) start [2025-03-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734293', 'tblTempUsageDetail_20' ) end [2025-03-22 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:56:21] Production.INFO: ==6203== Releasing lock... [2025-03-22 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:57:05 [end_date_ymd] => 2025-03-22 01:57:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:57:05' and `end` < '2025-03-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-03-22 01:57:17] Production.INFO: count ==418 [2025-03-22 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:57:05 - End Time 2025-03-22 01:57:05 [2025-03-22 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734298', 'tblTempUsageDetail_20' ) start [2025-03-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734298', 'tblTempUsageDetail_20' ) end [2025-03-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734298', 'tblTempVendorCDR_20' ) start [2025-03-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734298', 'tblTempVendorCDR_20' ) end [2025-03-22 01:57:18] Production.INFO: ProcessCDR(1,14734298,1,1,2) [2025-03-22 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734298', 'tblTempUsageDetail_20' ) start [2025-03-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734298', 'tblTempUsageDetail_20' ) end [2025-03-22 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:57:21] Production.INFO: ==6323== Releasing lock... [2025-03-22 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:57:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:58:05 [end_date_ymd] => 2025-03-22 01:58:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:58:05' and `end` < '2025-03-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-03-22 01:58:18] Production.INFO: count ==419 [2025-03-22 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 22:58:05 - End Time 2025-03-22 01:58:05 [2025-03-22 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734303', 'tblTempUsageDetail_20' ) start [2025-03-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734303', 'tblTempUsageDetail_20' ) end [2025-03-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734303', 'tblTempVendorCDR_20' ) start [2025-03-22 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734303', 'tblTempVendorCDR_20' ) end [2025-03-22 01:58:18] Production.INFO: ProcessCDR(1,14734303,1,1,2) [2025-03-22 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734303', 'tblTempUsageDetail_20' ) start [2025-03-22 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734303', 'tblTempUsageDetail_20' ) end [2025-03-22 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:58:21] Production.INFO: ==6440== Releasing lock... [2025-03-22 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:58:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 22:59:05 [end_date_ymd] => 2025-03-22 01:59:05 [RateCDR] => 1 ) [2025-03-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-03-21 22:59:05' and `end` < '2025-03-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-03-22 01:59:17] Production.INFO: count ==418 [2025-03-22 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-21 22:59:05 - End Time 2025-03-22 01:59:05 [2025-03-22 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734308', 'tblTempUsageDetail_20' ) start [2025-03-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734308', 'tblTempUsageDetail_20' ) end [2025-03-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734308', 'tblTempVendorCDR_20' ) start [2025-03-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734308', 'tblTempVendorCDR_20' ) end [2025-03-22 01:59:17] Production.INFO: ProcessCDR(1,14734308,1,1,2) [2025-03-22 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734308', 'tblTempUsageDetail_20' ) start [2025-03-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734308', 'tblTempUsageDetail_20' ) end [2025-03-22 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 01:59:21] Production.INFO: ==6556== Releasing lock... [2025-03-22 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 01:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:00:06 [end_date_ymd] => 2025-03-22 02:00:06 [RateCDR] => 1 ) [2025-03-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-03-21 23:00:06' and `end` < '2025-03-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-03-22 02:00:18] Production.INFO: count ==430 [2025-03-22 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 23:00:06 - End Time 2025-03-22 02:00:06 [2025-03-22 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734314', 'tblTempUsageDetail_20' ) start [2025-03-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734314', 'tblTempUsageDetail_20' ) end [2025-03-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734314', 'tblTempVendorCDR_20' ) start [2025-03-22 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734314', 'tblTempVendorCDR_20' ) end [2025-03-22 02:00:19] Production.INFO: ProcessCDR(1,14734314,1,1,2) [2025-03-22 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734314', 'tblTempUsageDetail_20' ) start [2025-03-22 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734314', 'tblTempUsageDetail_20' ) end [2025-03-22 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:00:22] Production.INFO: ==6675== Releasing lock... [2025-03-22 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:01:06 [end_date_ymd] => 2025-03-22 02:01:06 [RateCDR] => 1 ) [2025-03-22 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:01:06' and `end` < '2025-03-22 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:01:19] Production.INFO: count ==439 [2025-03-22 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-21 23:01:06 - End Time 2025-03-22 02:01:06 [2025-03-22 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734319', 'tblTempUsageDetail_20' ) start [2025-03-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734319', 'tblTempUsageDetail_20' ) end [2025-03-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734319', 'tblTempVendorCDR_20' ) start [2025-03-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734319', 'tblTempVendorCDR_20' ) end [2025-03-22 02:01:19] Production.INFO: ProcessCDR(1,14734319,1,1,2) [2025-03-22 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734319', 'tblTempUsageDetail_20' ) start [2025-03-22 02:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734319', 'tblTempUsageDetail_20' ) end [2025-03-22 02:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:01:25] Production.INFO: ==6811== Releasing lock... [2025-03-22 02:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:01:25] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:02:05 [end_date_ymd] => 2025-03-22 02:02:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:02:05' and `end` < '2025-03-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-03-22 02:02:18] Production.INFO: count ==439 [2025-03-22 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:02:05 - End Time 2025-03-22 02:02:05 [2025-03-22 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734324', 'tblTempUsageDetail_20' ) start [2025-03-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734324', 'tblTempUsageDetail_20' ) end [2025-03-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734324', 'tblTempVendorCDR_20' ) start [2025-03-22 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734324', 'tblTempVendorCDR_20' ) end [2025-03-22 02:02:18] Production.INFO: ProcessCDR(1,14734324,1,1,2) [2025-03-22 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734324', 'tblTempUsageDetail_20' ) start [2025-03-22 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734324', 'tblTempUsageDetail_20' ) end [2025-03-22 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:02:22] Production.INFO: ==7019== Releasing lock... [2025-03-22 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:03:05 [end_date_ymd] => 2025-03-22 02:03:05 [RateCDR] => 1 ) [2025-03-22 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:03:05' and `end` < '2025-03-22 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:03:18] Production.INFO: count ==442 [2025-03-22 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:03:05 - End Time 2025-03-22 02:03:05 [2025-03-22 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734329', 'tblTempUsageDetail_20' ) start [2025-03-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734329', 'tblTempUsageDetail_20' ) end [2025-03-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734329', 'tblTempVendorCDR_20' ) start [2025-03-22 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734329', 'tblTempVendorCDR_20' ) end [2025-03-22 02:03:18] Production.INFO: ProcessCDR(1,14734329,1,1,2) [2025-03-22 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734329', 'tblTempUsageDetail_20' ) start [2025-03-22 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734329', 'tblTempUsageDetail_20' ) end [2025-03-22 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:03:21] Production.INFO: ==7133== Releasing lock... [2025-03-22 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:04:05 [end_date_ymd] => 2025-03-22 02:04:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:04:05' and `end` < '2025-03-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-03-22 02:04:17] Production.INFO: count ==447 [2025-03-22 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:04:05 - End Time 2025-03-22 02:04:05 [2025-03-22 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734334', 'tblTempUsageDetail_20' ) start [2025-03-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734334', 'tblTempUsageDetail_20' ) end [2025-03-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734334', 'tblTempVendorCDR_20' ) start [2025-03-22 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734334', 'tblTempVendorCDR_20' ) end [2025-03-22 02:04:17] Production.INFO: ProcessCDR(1,14734334,1,1,2) [2025-03-22 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734334', 'tblTempUsageDetail_20' ) start [2025-03-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734334', 'tblTempUsageDetail_20' ) end [2025-03-22 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:04:22] Production.INFO: ==7249== Releasing lock... [2025-03-22 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:05:06 [end_date_ymd] => 2025-03-22 02:05:06 [RateCDR] => 1 ) [2025-03-22 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:05:06' and `end` < '2025-03-22 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:05:18] Production.INFO: count ==446 [2025-03-22 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:05:06 - End Time 2025-03-22 02:05:06 [2025-03-22 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734339', 'tblTempUsageDetail_20' ) start [2025-03-22 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734339', 'tblTempUsageDetail_20' ) end [2025-03-22 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734339', 'tblTempVendorCDR_20' ) start [2025-03-22 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734339', 'tblTempVendorCDR_20' ) end [2025-03-22 02:05:18] Production.INFO: ProcessCDR(1,14734339,1,1,2) [2025-03-22 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734339', 'tblTempUsageDetail_20' ) start [2025-03-22 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734339', 'tblTempUsageDetail_20' ) end [2025-03-22 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:05:21] Production.INFO: ==7371== Releasing lock... [2025-03-22 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:06:05 [end_date_ymd] => 2025-03-22 02:06:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:06:05' and `end` < '2025-03-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-03-22 02:06:17] Production.INFO: count ==445 [2025-03-22 02:06:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:06:05 - End Time 2025-03-22 02:06:05 [2025-03-22 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734344', 'tblTempUsageDetail_20' ) start [2025-03-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734344', 'tblTempUsageDetail_20' ) end [2025-03-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734344', 'tblTempVendorCDR_20' ) start [2025-03-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734344', 'tblTempVendorCDR_20' ) end [2025-03-22 02:06:17] Production.INFO: ProcessCDR(1,14734344,1,1,2) [2025-03-22 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734344', 'tblTempUsageDetail_20' ) start [2025-03-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734344', 'tblTempUsageDetail_20' ) end [2025-03-22 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:06:21] Production.INFO: ==7481== Releasing lock... [2025-03-22 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:07:05 [end_date_ymd] => 2025-03-22 02:07:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:07:05' and `end` < '2025-03-22 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:07:18] Production.INFO: count ==444 [2025-03-22 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:07:05 - End Time 2025-03-22 02:07:05 [2025-03-22 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734349', 'tblTempUsageDetail_20' ) start [2025-03-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734349', 'tblTempUsageDetail_20' ) end [2025-03-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734349', 'tblTempVendorCDR_20' ) start [2025-03-22 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734349', 'tblTempVendorCDR_20' ) end [2025-03-22 02:07:18] Production.INFO: ProcessCDR(1,14734349,1,1,2) [2025-03-22 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734349', 'tblTempUsageDetail_20' ) start [2025-03-22 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734349', 'tblTempUsageDetail_20' ) end [2025-03-22 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:07:21] Production.INFO: ==7596== Releasing lock... [2025-03-22 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:07:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:08:05 [end_date_ymd] => 2025-03-22 02:08:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:08:05' and `end` < '2025-03-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-03-22 02:08:18] Production.INFO: count ==440 [2025-03-22 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:08:05 - End Time 2025-03-22 02:08:05 [2025-03-22 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734354', 'tblTempUsageDetail_20' ) start [2025-03-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734354', 'tblTempUsageDetail_20' ) end [2025-03-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734354', 'tblTempVendorCDR_20' ) start [2025-03-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734354', 'tblTempVendorCDR_20' ) end [2025-03-22 02:08:18] Production.INFO: ProcessCDR(1,14734354,1,1,2) [2025-03-22 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734354', 'tblTempUsageDetail_20' ) start [2025-03-22 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734354', 'tblTempUsageDetail_20' ) end [2025-03-22 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:08:21] Production.INFO: ==7721== Releasing lock... [2025-03-22 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:09:05 [end_date_ymd] => 2025-03-22 02:09:05 [RateCDR] => 1 ) [2025-03-22 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:09:05' and `end` < '2025-03-22 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:09:18] Production.INFO: count ==440 [2025-03-22 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:09:05 - End Time 2025-03-22 02:09:05 [2025-03-22 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734359', 'tblTempUsageDetail_20' ) start [2025-03-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734359', 'tblTempUsageDetail_20' ) end [2025-03-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734359', 'tblTempVendorCDR_20' ) start [2025-03-22 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734359', 'tblTempVendorCDR_20' ) end [2025-03-22 02:09:18] Production.INFO: ProcessCDR(1,14734359,1,1,2) [2025-03-22 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734359', 'tblTempUsageDetail_20' ) start [2025-03-22 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734359', 'tblTempUsageDetail_20' ) end [2025-03-22 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:09:21] Production.INFO: ==7842== Releasing lock... [2025-03-22 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:10:06 [end_date_ymd] => 2025-03-22 02:10:06 [RateCDR] => 1 ) [2025-03-22 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:10:06' and `end` < '2025-03-22 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:10:18] Production.INFO: count ==438 [2025-03-22 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:10:06 - End Time 2025-03-22 02:10:06 [2025-03-22 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734365', 'tblTempUsageDetail_20' ) start [2025-03-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734365', 'tblTempUsageDetail_20' ) end [2025-03-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734365', 'tblTempVendorCDR_20' ) start [2025-03-22 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734365', 'tblTempVendorCDR_20' ) end [2025-03-22 02:10:18] Production.INFO: ProcessCDR(1,14734365,1,1,2) [2025-03-22 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734365', 'tblTempUsageDetail_20' ) start [2025-03-22 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734365', 'tblTempUsageDetail_20' ) end [2025-03-22 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:10:22] Production.INFO: ==8016== Releasing lock... [2025-03-22 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:11:05 [end_date_ymd] => 2025-03-22 02:11:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:11:05' and `end` < '2025-03-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-03-22 02:11:17] Production.INFO: count ==434 [2025-03-22 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:11:05 - End Time 2025-03-22 02:11:05 [2025-03-22 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734370', 'tblTempUsageDetail_20' ) start [2025-03-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734370', 'tblTempUsageDetail_20' ) end [2025-03-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734370', 'tblTempVendorCDR_20' ) start [2025-03-22 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734370', 'tblTempVendorCDR_20' ) end [2025-03-22 02:11:17] Production.INFO: ProcessCDR(1,14734370,1,1,2) [2025-03-22 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734370', 'tblTempUsageDetail_20' ) start [2025-03-22 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734370', 'tblTempUsageDetail_20' ) end [2025-03-22 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:11:21] Production.INFO: ==8151== Releasing lock... [2025-03-22 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:12:05 [end_date_ymd] => 2025-03-22 02:12:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:12:05' and `end` < '2025-03-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-03-22 02:12:18] Production.INFO: count ==436 [2025-03-22 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:12:05 - End Time 2025-03-22 02:12:05 [2025-03-22 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734375', 'tblTempUsageDetail_20' ) start [2025-03-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734375', 'tblTempUsageDetail_20' ) end [2025-03-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734375', 'tblTempVendorCDR_20' ) start [2025-03-22 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734375', 'tblTempVendorCDR_20' ) end [2025-03-22 02:12:18] Production.INFO: ProcessCDR(1,14734375,1,1,2) [2025-03-22 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734375', 'tblTempUsageDetail_20' ) start [2025-03-22 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734375', 'tblTempUsageDetail_20' ) end [2025-03-22 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:12:21] Production.INFO: ==8276== Releasing lock... [2025-03-22 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:13:05 [end_date_ymd] => 2025-03-22 02:13:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:13:05' and `end` < '2025-03-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-03-22 02:13:17] Production.INFO: count ==434 [2025-03-22 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:13:05 - End Time 2025-03-22 02:13:05 [2025-03-22 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734380', 'tblTempUsageDetail_20' ) start [2025-03-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734380', 'tblTempUsageDetail_20' ) end [2025-03-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734380', 'tblTempVendorCDR_20' ) start [2025-03-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734380', 'tblTempVendorCDR_20' ) end [2025-03-22 02:13:17] Production.INFO: ProcessCDR(1,14734380,1,1,2) [2025-03-22 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734380', 'tblTempUsageDetail_20' ) start [2025-03-22 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734380', 'tblTempUsageDetail_20' ) end [2025-03-22 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:13:21] Production.INFO: ==8386== Releasing lock... [2025-03-22 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:14:04 [end_date_ymd] => 2025-03-22 02:14:04 [RateCDR] => 1 ) [2025-03-22 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:14:04' and `end` < '2025-03-22 02:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:14:16] Production.INFO: count ==434 [2025-03-22 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:14:04 - End Time 2025-03-22 02:14:04 [2025-03-22 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734385', 'tblTempUsageDetail_20' ) start [2025-03-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734385', 'tblTempUsageDetail_20' ) end [2025-03-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734385', 'tblTempVendorCDR_20' ) start [2025-03-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734385', 'tblTempVendorCDR_20' ) end [2025-03-22 02:14:17] Production.INFO: ProcessCDR(1,14734385,1,1,2) [2025-03-22 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734385', 'tblTempUsageDetail_20' ) start [2025-03-22 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734385', 'tblTempUsageDetail_20' ) end [2025-03-22 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:14:20] Production.INFO: ==8502== Releasing lock... [2025-03-22 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:14:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:15:05 [end_date_ymd] => 2025-03-22 02:15:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:15:05' and `end` < '2025-03-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-03-22 02:15:17] Production.INFO: count ==434 [2025-03-22 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:15:05 - End Time 2025-03-22 02:15:05 [2025-03-22 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734390', 'tblTempUsageDetail_20' ) start [2025-03-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734390', 'tblTempUsageDetail_20' ) end [2025-03-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734390', 'tblTempVendorCDR_20' ) start [2025-03-22 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734390', 'tblTempVendorCDR_20' ) end [2025-03-22 02:15:18] Production.INFO: ProcessCDR(1,14734390,1,1,2) [2025-03-22 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734390', 'tblTempUsageDetail_20' ) start [2025-03-22 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734390', 'tblTempUsageDetail_20' ) end [2025-03-22 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:15:21] Production.INFO: ==8618== Releasing lock... [2025-03-22 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:16:06 [end_date_ymd] => 2025-03-22 02:16:06 [RateCDR] => 1 ) [2025-03-22 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:16:06' and `end` < '2025-03-22 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:16:18] Production.INFO: count ==438 [2025-03-22 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:16:06 - End Time 2025-03-22 02:16:06 [2025-03-22 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734395', 'tblTempUsageDetail_20' ) start [2025-03-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734395', 'tblTempUsageDetail_20' ) end [2025-03-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734395', 'tblTempVendorCDR_20' ) start [2025-03-22 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734395', 'tblTempVendorCDR_20' ) end [2025-03-22 02:16:18] Production.INFO: ProcessCDR(1,14734395,1,1,2) [2025-03-22 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734395', 'tblTempUsageDetail_20' ) start [2025-03-22 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734395', 'tblTempUsageDetail_20' ) end [2025-03-22 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:16:21] Production.INFO: ==8722== Releasing lock... [2025-03-22 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:17:05 [end_date_ymd] => 2025-03-22 02:17:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:17:05' and `end` < '2025-03-22 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:17:17] Production.INFO: count ==435 [2025-03-22 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:17:05 - End Time 2025-03-22 02:17:05 [2025-03-22 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734400', 'tblTempUsageDetail_20' ) start [2025-03-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734400', 'tblTempUsageDetail_20' ) end [2025-03-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734400', 'tblTempVendorCDR_20' ) start [2025-03-22 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734400', 'tblTempVendorCDR_20' ) end [2025-03-22 02:17:17] Production.INFO: ProcessCDR(1,14734400,1,1,2) [2025-03-22 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734400', 'tblTempUsageDetail_20' ) start [2025-03-22 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734400', 'tblTempUsageDetail_20' ) end [2025-03-22 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:17:21] Production.INFO: ==8827== Releasing lock... [2025-03-22 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:18:06 [end_date_ymd] => 2025-03-22 02:18:06 [RateCDR] => 1 ) [2025-03-22 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:18:06' and `end` < '2025-03-22 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:18:18] Production.INFO: count ==436 [2025-03-22 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:18:06 - End Time 2025-03-22 02:18:06 [2025-03-22 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734405', 'tblTempUsageDetail_20' ) start [2025-03-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734405', 'tblTempUsageDetail_20' ) end [2025-03-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734405', 'tblTempVendorCDR_20' ) start [2025-03-22 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734405', 'tblTempVendorCDR_20' ) end [2025-03-22 02:18:18] Production.INFO: ProcessCDR(1,14734405,1,1,2) [2025-03-22 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734405', 'tblTempUsageDetail_20' ) start [2025-03-22 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734405', 'tblTempUsageDetail_20' ) end [2025-03-22 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:18:23] Production.INFO: ==8933== Releasing lock... [2025-03-22 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:18:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:19:05 [end_date_ymd] => 2025-03-22 02:19:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:19:05' and `end` < '2025-03-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-03-22 02:19:17] Production.INFO: count ==432 [2025-03-22 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:19:05 - End Time 2025-03-22 02:19:05 [2025-03-22 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734410', 'tblTempUsageDetail_20' ) start [2025-03-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734410', 'tblTempUsageDetail_20' ) end [2025-03-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734410', 'tblTempVendorCDR_20' ) start [2025-03-22 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734410', 'tblTempVendorCDR_20' ) end [2025-03-22 02:19:17] Production.INFO: ProcessCDR(1,14734410,1,1,2) [2025-03-22 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734410', 'tblTempUsageDetail_20' ) start [2025-03-22 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734410', 'tblTempUsageDetail_20' ) end [2025-03-22 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:19:21] Production.INFO: ==9034== Releasing lock... [2025-03-22 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:20:06 [end_date_ymd] => 2025-03-22 02:20:06 [RateCDR] => 1 ) [2025-03-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-03-21 23:20:06' and `end` < '2025-03-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-03-22 02:20:18] Production.INFO: count ==443 [2025-03-22 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:20:06 - End Time 2025-03-22 02:20:06 [2025-03-22 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734416', 'tblTempUsageDetail_20' ) start [2025-03-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734416', 'tblTempUsageDetail_20' ) end [2025-03-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734416', 'tblTempVendorCDR_20' ) start [2025-03-22 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734416', 'tblTempVendorCDR_20' ) end [2025-03-22 02:20:18] Production.INFO: ProcessCDR(1,14734416,1,1,2) [2025-03-22 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734416', 'tblTempUsageDetail_20' ) start [2025-03-22 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734416', 'tblTempUsageDetail_20' ) end [2025-03-22 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:20:22] Production.INFO: ==9143== Releasing lock... [2025-03-22 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:21:05 [end_date_ymd] => 2025-03-22 02:21:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:21:05' and `end` < '2025-03-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-03-22 02:21:17] Production.INFO: count ==444 [2025-03-22 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:21:05 - End Time 2025-03-22 02:21:05 [2025-03-22 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734421', 'tblTempUsageDetail_20' ) start [2025-03-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734421', 'tblTempUsageDetail_20' ) end [2025-03-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734421', 'tblTempVendorCDR_20' ) start [2025-03-22 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734421', 'tblTempVendorCDR_20' ) end [2025-03-22 02:21:17] Production.INFO: ProcessCDR(1,14734421,1,1,2) [2025-03-22 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734421', 'tblTempUsageDetail_20' ) start [2025-03-22 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734421', 'tblTempUsageDetail_20' ) end [2025-03-22 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:21:20] Production.INFO: ==9252== Releasing lock... [2025-03-22 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:21:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:22:06 [end_date_ymd] => 2025-03-22 02:22:06 [RateCDR] => 1 ) [2025-03-22 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:22:06' and `end` < '2025-03-22 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:22:18] Production.INFO: count ==447 [2025-03-22 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:22:06 - End Time 2025-03-22 02:22:06 [2025-03-22 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734426', 'tblTempUsageDetail_20' ) start [2025-03-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734426', 'tblTempUsageDetail_20' ) end [2025-03-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734426', 'tblTempVendorCDR_20' ) start [2025-03-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734426', 'tblTempVendorCDR_20' ) end [2025-03-22 02:22:18] Production.INFO: ProcessCDR(1,14734426,1,1,2) [2025-03-22 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734426', 'tblTempUsageDetail_20' ) start [2025-03-22 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734426', 'tblTempUsageDetail_20' ) end [2025-03-22 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:22:22] Production.INFO: ==9357== Releasing lock... [2025-03-22 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:22:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:23:05 [end_date_ymd] => 2025-03-22 02:23:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:23:05' and `end` < '2025-03-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-03-22 02:23:17] Production.INFO: count ==447 [2025-03-22 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:23:05 - End Time 2025-03-22 02:23:05 [2025-03-22 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734431', 'tblTempUsageDetail_20' ) start [2025-03-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734431', 'tblTempUsageDetail_20' ) end [2025-03-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734431', 'tblTempVendorCDR_20' ) start [2025-03-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734431', 'tblTempVendorCDR_20' ) end [2025-03-22 02:23:17] Production.INFO: ProcessCDR(1,14734431,1,1,2) [2025-03-22 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734431', 'tblTempUsageDetail_20' ) start [2025-03-22 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734431', 'tblTempUsageDetail_20' ) end [2025-03-22 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:23:21] Production.INFO: ==9462== Releasing lock... [2025-03-22 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:24:06 [end_date_ymd] => 2025-03-22 02:24:06 [RateCDR] => 1 ) [2025-03-22 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:24:06' and `end` < '2025-03-22 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:24:18] Production.INFO: count ==446 [2025-03-22 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:24:06 - End Time 2025-03-22 02:24:06 [2025-03-22 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734436', 'tblTempUsageDetail_20' ) start [2025-03-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734436', 'tblTempUsageDetail_20' ) end [2025-03-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734436', 'tblTempVendorCDR_20' ) start [2025-03-22 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734436', 'tblTempVendorCDR_20' ) end [2025-03-22 02:24:18] Production.INFO: ProcessCDR(1,14734436,1,1,2) [2025-03-22 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734436', 'tblTempUsageDetail_20' ) start [2025-03-22 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734436', 'tblTempUsageDetail_20' ) end [2025-03-22 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:24:21] Production.INFO: ==9572== Releasing lock... [2025-03-22 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:25:05 [end_date_ymd] => 2025-03-22 02:25:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:25:05' and `end` < '2025-03-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-03-22 02:25:17] Production.INFO: count ==446 [2025-03-22 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:25:05 - End Time 2025-03-22 02:25:05 [2025-03-22 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734441', 'tblTempUsageDetail_20' ) start [2025-03-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734441', 'tblTempUsageDetail_20' ) end [2025-03-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734441', 'tblTempVendorCDR_20' ) start [2025-03-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734441', 'tblTempVendorCDR_20' ) end [2025-03-22 02:25:17] Production.INFO: ProcessCDR(1,14734441,1,1,2) [2025-03-22 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734441', 'tblTempUsageDetail_20' ) start [2025-03-22 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734441', 'tblTempUsageDetail_20' ) end [2025-03-22 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:25:20] Production.INFO: ==9712== Releasing lock... [2025-03-22 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:25:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:26:06 [end_date_ymd] => 2025-03-22 02:26:06 [RateCDR] => 1 ) [2025-03-22 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:26:06' and `end` < '2025-03-22 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:26:18] Production.INFO: count ==444 [2025-03-22 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:26:06 - End Time 2025-03-22 02:26:06 [2025-03-22 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734446', 'tblTempUsageDetail_20' ) start [2025-03-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734446', 'tblTempUsageDetail_20' ) end [2025-03-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734446', 'tblTempVendorCDR_20' ) start [2025-03-22 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734446', 'tblTempVendorCDR_20' ) end [2025-03-22 02:26:18] Production.INFO: ProcessCDR(1,14734446,1,1,2) [2025-03-22 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734446', 'tblTempUsageDetail_20' ) start [2025-03-22 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734446', 'tblTempUsageDetail_20' ) end [2025-03-22 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:26:22] Production.INFO: ==9812== Releasing lock... [2025-03-22 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:26:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:27:05 [end_date_ymd] => 2025-03-22 02:27:05 [RateCDR] => 1 ) [2025-03-22 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:27:05' and `end` < '2025-03-22 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:27:17] Production.INFO: count ==444 [2025-03-22 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:27:05 - End Time 2025-03-22 02:27:05 [2025-03-22 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734451', 'tblTempUsageDetail_20' ) start [2025-03-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734451', 'tblTempUsageDetail_20' ) end [2025-03-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734451', 'tblTempVendorCDR_20' ) start [2025-03-22 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734451', 'tblTempVendorCDR_20' ) end [2025-03-22 02:27:17] Production.INFO: ProcessCDR(1,14734451,1,1,2) [2025-03-22 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734451', 'tblTempUsageDetail_20' ) start [2025-03-22 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734451', 'tblTempUsageDetail_20' ) end [2025-03-22 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:27:20] Production.INFO: ==9915== Releasing lock... [2025-03-22 02:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:27:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:28:05 [end_date_ymd] => 2025-03-22 02:28:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:28:05' and `end` < '2025-03-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-03-22 02:28:18] Production.INFO: count ==446 [2025-03-22 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:28:05 - End Time 2025-03-22 02:28:05 [2025-03-22 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734456', 'tblTempUsageDetail_20' ) start [2025-03-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734456', 'tblTempUsageDetail_20' ) end [2025-03-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734456', 'tblTempVendorCDR_20' ) start [2025-03-22 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734456', 'tblTempVendorCDR_20' ) end [2025-03-22 02:28:18] Production.INFO: ProcessCDR(1,14734456,1,1,2) [2025-03-22 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734456', 'tblTempUsageDetail_20' ) start [2025-03-22 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734456', 'tblTempUsageDetail_20' ) end [2025-03-22 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:28:21] Production.INFO: ==10015== Releasing lock... [2025-03-22 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:29:04 [end_date_ymd] => 2025-03-22 02:29:04 [RateCDR] => 1 ) [2025-03-22 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:29:04' and `end` < '2025-03-22 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:29:17] Production.INFO: count ==447 [2025-03-22 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:29:04 - End Time 2025-03-22 02:29:04 [2025-03-22 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734461', 'tblTempUsageDetail_20' ) start [2025-03-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734461', 'tblTempUsageDetail_20' ) end [2025-03-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734461', 'tblTempVendorCDR_20' ) start [2025-03-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734461', 'tblTempVendorCDR_20' ) end [2025-03-22 02:29:17] Production.INFO: ProcessCDR(1,14734461,1,1,2) [2025-03-22 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734461', 'tblTempUsageDetail_20' ) start [2025-03-22 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734461', 'tblTempUsageDetail_20' ) end [2025-03-22 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:29:22] Production.INFO: ==10110== Releasing lock... [2025-03-22 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:30:05 [end_date_ymd] => 2025-03-22 02:30:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:30:05' and `end` < '2025-03-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-03-22 02:30:18] Production.INFO: count ==454 [2025-03-22 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:30:05 - End Time 2025-03-22 02:30:05 [2025-03-22 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734466', 'tblTempUsageDetail_20' ) start [2025-03-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734466', 'tblTempUsageDetail_20' ) end [2025-03-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734466', 'tblTempVendorCDR_20' ) start [2025-03-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734466', 'tblTempVendorCDR_20' ) end [2025-03-22 02:30:18] Production.INFO: ProcessCDR(1,14734466,1,1,2) [2025-03-22 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734466', 'tblTempUsageDetail_20' ) start [2025-03-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734466', 'tblTempUsageDetail_20' ) end [2025-03-22 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:30:21] Production.INFO: ==10217== Releasing lock... [2025-03-22 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:31:06 [end_date_ymd] => 2025-03-22 02:31:06 [RateCDR] => 1 ) [2025-03-22 02:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:31:06' and `end` < '2025-03-22 02:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:31:18] Production.INFO: count ==456 [2025-03-22 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:31:06 - End Time 2025-03-22 02:31:06 [2025-03-22 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734472', 'tblTempUsageDetail_20' ) start [2025-03-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734472', 'tblTempUsageDetail_20' ) end [2025-03-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734472', 'tblTempVendorCDR_20' ) start [2025-03-22 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734472', 'tblTempVendorCDR_20' ) end [2025-03-22 02:31:18] Production.INFO: ProcessCDR(1,14734472,1,1,2) [2025-03-22 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734472', 'tblTempUsageDetail_20' ) start [2025-03-22 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734472', 'tblTempUsageDetail_20' ) end [2025-03-22 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:31:21] Production.INFO: ==10324== Releasing lock... [2025-03-22 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:32:05 [end_date_ymd] => 2025-03-22 02:32:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:32:05' and `end` < '2025-03-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-03-22 02:32:17] Production.INFO: count ==456 [2025-03-22 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:32:05 - End Time 2025-03-22 02:32:05 [2025-03-22 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734477', 'tblTempUsageDetail_20' ) start [2025-03-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734477', 'tblTempUsageDetail_20' ) end [2025-03-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734477', 'tblTempVendorCDR_20' ) start [2025-03-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734477', 'tblTempVendorCDR_20' ) end [2025-03-22 02:32:17] Production.INFO: ProcessCDR(1,14734477,1,1,2) [2025-03-22 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734477', 'tblTempUsageDetail_20' ) start [2025-03-22 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734477', 'tblTempUsageDetail_20' ) end [2025-03-22 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:32:21] Production.INFO: ==10420== Releasing lock... [2025-03-22 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:33:06 [end_date_ymd] => 2025-03-22 02:33:06 [RateCDR] => 1 ) [2025-03-22 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:33:06' and `end` < '2025-03-22 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:33:18] Production.INFO: count ==457 [2025-03-22 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:33:06 - End Time 2025-03-22 02:33:06 [2025-03-22 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734482', 'tblTempUsageDetail_20' ) start [2025-03-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734482', 'tblTempUsageDetail_20' ) end [2025-03-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734482', 'tblTempVendorCDR_20' ) start [2025-03-22 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734482', 'tblTempVendorCDR_20' ) end [2025-03-22 02:33:18] Production.INFO: ProcessCDR(1,14734482,1,1,2) [2025-03-22 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734482', 'tblTempUsageDetail_20' ) start [2025-03-22 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734482', 'tblTempUsageDetail_20' ) end [2025-03-22 02:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:33:23] Production.INFO: ==10516== Releasing lock... [2025-03-22 02:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:33:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:34:06 [end_date_ymd] => 2025-03-22 02:34:06 [RateCDR] => 1 ) [2025-03-22 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:34:06' and `end` < '2025-03-22 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:34:18] Production.INFO: count ==457 [2025-03-22 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:34:06 - End Time 2025-03-22 02:34:06 [2025-03-22 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734487', 'tblTempUsageDetail_20' ) start [2025-03-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734487', 'tblTempUsageDetail_20' ) end [2025-03-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734487', 'tblTempVendorCDR_20' ) start [2025-03-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734487', 'tblTempVendorCDR_20' ) end [2025-03-22 02:34:18] Production.INFO: ProcessCDR(1,14734487,1,1,2) [2025-03-22 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734487', 'tblTempUsageDetail_20' ) start [2025-03-22 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734487', 'tblTempUsageDetail_20' ) end [2025-03-22 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:34:22] Production.INFO: ==10608== Releasing lock... [2025-03-22 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:34:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:35:06 [end_date_ymd] => 2025-03-22 02:35:06 [RateCDR] => 1 ) [2025-03-22 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:35:06' and `end` < '2025-03-22 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:35:19] Production.INFO: count ==457 [2025-03-22 02:35:19] Production.ERROR: pbx CDR StartTime 2025-03-21 23:35:06 - End Time 2025-03-22 02:35:06 [2025-03-22 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734492', 'tblTempUsageDetail_20' ) start [2025-03-22 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734492', 'tblTempUsageDetail_20' ) end [2025-03-22 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734492', 'tblTempVendorCDR_20' ) start [2025-03-22 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734492', 'tblTempVendorCDR_20' ) end [2025-03-22 02:35:19] Production.INFO: ProcessCDR(1,14734492,1,1,2) [2025-03-22 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734492', 'tblTempUsageDetail_20' ) start [2025-03-22 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734492', 'tblTempUsageDetail_20' ) end [2025-03-22 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:35:23] Production.INFO: ==10701== Releasing lock... [2025-03-22 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:35:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:36:06 [end_date_ymd] => 2025-03-22 02:36:06 [RateCDR] => 1 ) [2025-03-22 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:36:06' and `end` < '2025-03-22 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:36:18] Production.INFO: count ==456 [2025-03-22 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:36:06 - End Time 2025-03-22 02:36:06 [2025-03-22 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734497', 'tblTempUsageDetail_20' ) start [2025-03-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734497', 'tblTempUsageDetail_20' ) end [2025-03-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734497', 'tblTempVendorCDR_20' ) start [2025-03-22 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734497', 'tblTempVendorCDR_20' ) end [2025-03-22 02:36:18] Production.INFO: ProcessCDR(1,14734497,1,1,2) [2025-03-22 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734497', 'tblTempUsageDetail_20' ) start [2025-03-22 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734497', 'tblTempUsageDetail_20' ) end [2025-03-22 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:36:22] Production.INFO: ==10789== Releasing lock... [2025-03-22 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:37:05 [end_date_ymd] => 2025-03-22 02:37:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:37:05' and `end` < '2025-03-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-03-22 02:37:17] Production.INFO: count ==455 [2025-03-22 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:37:05 - End Time 2025-03-22 02:37:05 [2025-03-22 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734502', 'tblTempUsageDetail_20' ) start [2025-03-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734502', 'tblTempUsageDetail_20' ) end [2025-03-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734502', 'tblTempVendorCDR_20' ) start [2025-03-22 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734502', 'tblTempVendorCDR_20' ) end [2025-03-22 02:37:18] Production.INFO: ProcessCDR(1,14734502,1,1,2) [2025-03-22 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734502', 'tblTempUsageDetail_20' ) start [2025-03-22 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734502', 'tblTempUsageDetail_20' ) end [2025-03-22 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:37:21] Production.INFO: ==10885== Releasing lock... [2025-03-22 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:38:06 [end_date_ymd] => 2025-03-22 02:38:06 [RateCDR] => 1 ) [2025-03-22 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:38:06' and `end` < '2025-03-22 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:38:18] Production.INFO: count ==455 [2025-03-22 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:38:06 - End Time 2025-03-22 02:38:06 [2025-03-22 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734507', 'tblTempUsageDetail_20' ) start [2025-03-22 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734507', 'tblTempUsageDetail_20' ) end [2025-03-22 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734507', 'tblTempVendorCDR_20' ) start [2025-03-22 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734507', 'tblTempVendorCDR_20' ) end [2025-03-22 02:38:19] Production.INFO: ProcessCDR(1,14734507,1,1,2) [2025-03-22 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734507', 'tblTempUsageDetail_20' ) start [2025-03-22 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734507', 'tblTempUsageDetail_20' ) end [2025-03-22 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:38:23] Production.INFO: ==10985== Releasing lock... [2025-03-22 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:38:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:39:05 [end_date_ymd] => 2025-03-22 02:39:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:39:05' and `end` < '2025-03-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-03-22 02:39:18] Production.INFO: count ==454 [2025-03-22 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:39:05 - End Time 2025-03-22 02:39:05 [2025-03-22 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734512', 'tblTempUsageDetail_20' ) start [2025-03-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734512', 'tblTempUsageDetail_20' ) end [2025-03-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734512', 'tblTempVendorCDR_20' ) start [2025-03-22 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734512', 'tblTempVendorCDR_20' ) end [2025-03-22 02:39:18] Production.INFO: ProcessCDR(1,14734512,1,1,2) [2025-03-22 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734512', 'tblTempUsageDetail_20' ) start [2025-03-22 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734512', 'tblTempUsageDetail_20' ) end [2025-03-22 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:39:22] Production.INFO: ==11073== Releasing lock... [2025-03-22 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:40:07 [end_date_ymd] => 2025-03-22 02:40:07 [RateCDR] => 1 ) [2025-03-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-03-21 23:40:07' and `end` < '2025-03-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-03-22 02:40:19] Production.INFO: count ==454 [2025-03-22 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-21 23:40:07 - End Time 2025-03-22 02:40:07 [2025-03-22 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734517', 'tblTempUsageDetail_20' ) start [2025-03-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734517', 'tblTempUsageDetail_20' ) end [2025-03-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734517', 'tblTempVendorCDR_20' ) start [2025-03-22 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734517', 'tblTempVendorCDR_20' ) end [2025-03-22 02:40:20] Production.INFO: ProcessCDR(1,14734517,1,1,2) [2025-03-22 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734517', 'tblTempUsageDetail_20' ) start [2025-03-22 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734517', 'tblTempUsageDetail_20' ) end [2025-03-22 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:40:23] Production.INFO: ==11173== Releasing lock... [2025-03-22 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:40:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:41:05 [end_date_ymd] => 2025-03-22 02:41:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:41:05' and `end` < '2025-03-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-03-22 02:41:17] Production.INFO: count ==455 [2025-03-22 02:41:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:41:05 - End Time 2025-03-22 02:41:05 [2025-03-22 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734523', 'tblTempUsageDetail_20' ) start [2025-03-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734523', 'tblTempUsageDetail_20' ) end [2025-03-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734523', 'tblTempVendorCDR_20' ) start [2025-03-22 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734523', 'tblTempVendorCDR_20' ) end [2025-03-22 02:41:17] Production.INFO: ProcessCDR(1,14734523,1,1,2) [2025-03-22 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734523', 'tblTempUsageDetail_20' ) start [2025-03-22 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734523', 'tblTempUsageDetail_20' ) end [2025-03-22 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:41:22] Production.INFO: ==11315== Releasing lock... [2025-03-22 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:42:06 [end_date_ymd] => 2025-03-22 02:42:06 [RateCDR] => 1 ) [2025-03-22 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:42:06' and `end` < '2025-03-22 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:42:18] Production.INFO: count ==455 [2025-03-22 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:42:06 - End Time 2025-03-22 02:42:06 [2025-03-22 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734528', 'tblTempUsageDetail_20' ) start [2025-03-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734528', 'tblTempUsageDetail_20' ) end [2025-03-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734528', 'tblTempVendorCDR_20' ) start [2025-03-22 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734528', 'tblTempVendorCDR_20' ) end [2025-03-22 02:42:18] Production.INFO: ProcessCDR(1,14734528,1,1,2) [2025-03-22 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734528', 'tblTempUsageDetail_20' ) start [2025-03-22 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734528', 'tblTempUsageDetail_20' ) end [2025-03-22 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:42:22] Production.INFO: ==11412== Releasing lock... [2025-03-22 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:43:05 [end_date_ymd] => 2025-03-22 02:43:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:43:05' and `end` < '2025-03-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-03-22 02:43:18] Production.INFO: count ==454 [2025-03-22 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:43:05 - End Time 2025-03-22 02:43:05 [2025-03-22 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734533', 'tblTempUsageDetail_20' ) start [2025-03-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734533', 'tblTempUsageDetail_20' ) end [2025-03-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734533', 'tblTempVendorCDR_20' ) start [2025-03-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734533', 'tblTempVendorCDR_20' ) end [2025-03-22 02:43:18] Production.INFO: ProcessCDR(1,14734533,1,1,2) [2025-03-22 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734533', 'tblTempUsageDetail_20' ) start [2025-03-22 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734533', 'tblTempUsageDetail_20' ) end [2025-03-22 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:43:22] Production.INFO: ==11513== Releasing lock... [2025-03-22 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:44:06 [end_date_ymd] => 2025-03-22 02:44:06 [RateCDR] => 1 ) [2025-03-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-03-21 23:44:06' and `end` < '2025-03-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-03-22 02:44:18] Production.INFO: count ==448 [2025-03-22 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:44:06 - End Time 2025-03-22 02:44:06 [2025-03-22 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734538', 'tblTempUsageDetail_20' ) start [2025-03-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734538', 'tblTempUsageDetail_20' ) end [2025-03-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734538', 'tblTempVendorCDR_20' ) start [2025-03-22 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734538', 'tblTempVendorCDR_20' ) end [2025-03-22 02:44:18] Production.INFO: ProcessCDR(1,14734538,1,1,2) [2025-03-22 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734538', 'tblTempUsageDetail_20' ) start [2025-03-22 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734538', 'tblTempUsageDetail_20' ) end [2025-03-22 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:44:22] Production.INFO: ==11614== Releasing lock... [2025-03-22 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:45:05 [end_date_ymd] => 2025-03-22 02:45:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:45:05' and `end` < '2025-03-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-03-22 02:45:17] Production.INFO: count ==447 [2025-03-22 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:45:05 - End Time 2025-03-22 02:45:05 [2025-03-22 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734543', 'tblTempUsageDetail_20' ) start [2025-03-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734543', 'tblTempUsageDetail_20' ) end [2025-03-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734543', 'tblTempVendorCDR_20' ) start [2025-03-22 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734543', 'tblTempVendorCDR_20' ) end [2025-03-22 02:45:18] Production.INFO: ProcessCDR(1,14734543,1,1,2) [2025-03-22 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734543', 'tblTempUsageDetail_20' ) start [2025-03-22 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734543', 'tblTempUsageDetail_20' ) end [2025-03-22 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:45:21] Production.INFO: ==11709== Releasing lock... [2025-03-22 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:46:06 [end_date_ymd] => 2025-03-22 02:46:06 [RateCDR] => 1 ) [2025-03-22 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:46:06' and `end` < '2025-03-22 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:46:18] Production.INFO: count ==459 [2025-03-22 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:46:06 - End Time 2025-03-22 02:46:06 [2025-03-22 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734548', 'tblTempUsageDetail_20' ) start [2025-03-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734548', 'tblTempUsageDetail_20' ) end [2025-03-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734548', 'tblTempVendorCDR_20' ) start [2025-03-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734548', 'tblTempVendorCDR_20' ) end [2025-03-22 02:46:18] Production.INFO: ProcessCDR(1,14734548,1,1,2) [2025-03-22 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734548', 'tblTempUsageDetail_20' ) start [2025-03-22 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734548', 'tblTempUsageDetail_20' ) end [2025-03-22 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:46:22] Production.INFO: ==11782== Releasing lock... [2025-03-22 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:46:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:47:05 [end_date_ymd] => 2025-03-22 02:47:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:47:05' and `end` < '2025-03-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-03-22 02:47:17] Production.INFO: count ==463 [2025-03-22 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:47:05 - End Time 2025-03-22 02:47:05 [2025-03-22 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734553', 'tblTempUsageDetail_20' ) start [2025-03-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734553', 'tblTempUsageDetail_20' ) end [2025-03-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734553', 'tblTempVendorCDR_20' ) start [2025-03-22 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734553', 'tblTempVendorCDR_20' ) end [2025-03-22 02:47:18] Production.INFO: ProcessCDR(1,14734553,1,1,2) [2025-03-22 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734553', 'tblTempUsageDetail_20' ) start [2025-03-22 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734553', 'tblTempUsageDetail_20' ) end [2025-03-22 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:47:21] Production.INFO: ==11866== Releasing lock... [2025-03-22 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:48:06 [end_date_ymd] => 2025-03-22 02:48:06 [RateCDR] => 1 ) [2025-03-22 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:48:06' and `end` < '2025-03-22 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:48:18] Production.INFO: count ==480 [2025-03-22 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:48:06 - End Time 2025-03-22 02:48:06 [2025-03-22 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734558', 'tblTempUsageDetail_20' ) start [2025-03-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734558', 'tblTempUsageDetail_20' ) end [2025-03-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734558', 'tblTempVendorCDR_20' ) start [2025-03-22 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734558', 'tblTempVendorCDR_20' ) end [2025-03-22 02:48:18] Production.INFO: ProcessCDR(1,14734558,1,1,2) [2025-03-22 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734558', 'tblTempUsageDetail_20' ) start [2025-03-22 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734558', 'tblTempUsageDetail_20' ) end [2025-03-22 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:48:22] Production.INFO: ==11946== Releasing lock... [2025-03-22 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:49:06 [end_date_ymd] => 2025-03-22 02:49:06 [RateCDR] => 1 ) [2025-03-22 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:49:06' and `end` < '2025-03-22 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:49:18] Production.INFO: count ==480 [2025-03-22 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:49:06 - End Time 2025-03-22 02:49:06 [2025-03-22 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734563', 'tblTempUsageDetail_20' ) start [2025-03-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734563', 'tblTempUsageDetail_20' ) end [2025-03-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734563', 'tblTempVendorCDR_20' ) start [2025-03-22 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734563', 'tblTempVendorCDR_20' ) end [2025-03-22 02:49:18] Production.INFO: ProcessCDR(1,14734563,1,1,2) [2025-03-22 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734563', 'tblTempUsageDetail_20' ) start [2025-03-22 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734563', 'tblTempUsageDetail_20' ) end [2025-03-22 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:49:22] Production.INFO: ==12017== Releasing lock... [2025-03-22 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:50:07 [end_date_ymd] => 2025-03-22 02:50:07 [RateCDR] => 1 ) [2025-03-22 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:50:07' and `end` < '2025-03-22 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:50:19] Production.INFO: count ==489 [2025-03-22 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 23:50:07 - End Time 2025-03-22 02:50:07 [2025-03-22 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734569', 'tblTempUsageDetail_20' ) start [2025-03-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734569', 'tblTempUsageDetail_20' ) end [2025-03-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734569', 'tblTempVendorCDR_20' ) start [2025-03-22 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734569', 'tblTempVendorCDR_20' ) end [2025-03-22 02:50:19] Production.INFO: ProcessCDR(1,14734569,1,1,2) [2025-03-22 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734569', 'tblTempUsageDetail_20' ) start [2025-03-22 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734569', 'tblTempUsageDetail_20' ) end [2025-03-22 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:50:23] Production.INFO: ==12096== Releasing lock... [2025-03-22 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:51:05 [end_date_ymd] => 2025-03-22 02:51:05 [RateCDR] => 1 ) [2025-03-22 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:51:05' and `end` < '2025-03-22 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:51:17] Production.INFO: count ==484 [2025-03-22 02:51:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:51:05 - End Time 2025-03-22 02:51:05 [2025-03-22 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734574', 'tblTempUsageDetail_20' ) start [2025-03-22 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734574', 'tblTempUsageDetail_20' ) end [2025-03-22 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734574', 'tblTempVendorCDR_20' ) start [2025-03-22 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734574', 'tblTempVendorCDR_20' ) end [2025-03-22 02:51:17] Production.INFO: ProcessCDR(1,14734574,1,1,2) [2025-03-22 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734574', 'tblTempUsageDetail_20' ) start [2025-03-22 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734574', 'tblTempUsageDetail_20' ) end [2025-03-22 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:51:21] Production.INFO: ==12172== Releasing lock... [2025-03-22 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:52:06 [end_date_ymd] => 2025-03-22 02:52:06 [RateCDR] => 1 ) [2025-03-22 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:52:06' and `end` < '2025-03-22 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:52:18] Production.INFO: count ==478 [2025-03-22 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:52:06 - End Time 2025-03-22 02:52:06 [2025-03-22 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734579', 'tblTempUsageDetail_20' ) start [2025-03-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734579', 'tblTempUsageDetail_20' ) end [2025-03-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734579', 'tblTempVendorCDR_20' ) start [2025-03-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734579', 'tblTempVendorCDR_20' ) end [2025-03-22 02:52:18] Production.INFO: ProcessCDR(1,14734579,1,1,2) [2025-03-22 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734579', 'tblTempUsageDetail_20' ) start [2025-03-22 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734579', 'tblTempUsageDetail_20' ) end [2025-03-22 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:52:22] Production.INFO: ==12243== Releasing lock... [2025-03-22 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:53:06 [end_date_ymd] => 2025-03-22 02:53:06 [RateCDR] => 1 ) [2025-03-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-03-21 23:53:06' and `end` < '2025-03-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-03-22 02:53:18] Production.INFO: count ==480 [2025-03-22 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:53:06 - End Time 2025-03-22 02:53:06 [2025-03-22 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734584', 'tblTempUsageDetail_20' ) start [2025-03-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734584', 'tblTempUsageDetail_20' ) end [2025-03-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734584', 'tblTempVendorCDR_20' ) start [2025-03-22 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734584', 'tblTempVendorCDR_20' ) end [2025-03-22 02:53:18] Production.INFO: ProcessCDR(1,14734584,1,1,2) [2025-03-22 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734584', 'tblTempUsageDetail_20' ) start [2025-03-22 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734584', 'tblTempUsageDetail_20' ) end [2025-03-22 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:53:22] Production.INFO: ==12319== Releasing lock... [2025-03-22 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:54:06 [end_date_ymd] => 2025-03-22 02:54:06 [RateCDR] => 1 ) [2025-03-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-03-21 23:54:06' and `end` < '2025-03-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-03-22 02:54:18] Production.INFO: count ==479 [2025-03-22 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:54:06 - End Time 2025-03-22 02:54:06 [2025-03-22 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734589', 'tblTempUsageDetail_20' ) start [2025-03-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734589', 'tblTempUsageDetail_20' ) end [2025-03-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734589', 'tblTempVendorCDR_20' ) start [2025-03-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734589', 'tblTempVendorCDR_20' ) end [2025-03-22 02:54:18] Production.INFO: ProcessCDR(1,14734589,1,1,2) [2025-03-22 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734589', 'tblTempUsageDetail_20' ) start [2025-03-22 02:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734589', 'tblTempUsageDetail_20' ) end [2025-03-22 02:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:54:24] Production.INFO: ==12393== Releasing lock... [2025-03-22 02:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:54:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:55:05 [end_date_ymd] => 2025-03-22 02:55:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:55:05' and `end` < '2025-03-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-03-22 02:55:18] Production.INFO: count ==479 [2025-03-22 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:55:05 - End Time 2025-03-22 02:55:05 [2025-03-22 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734594', 'tblTempUsageDetail_20' ) start [2025-03-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734594', 'tblTempUsageDetail_20' ) end [2025-03-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734594', 'tblTempVendorCDR_20' ) start [2025-03-22 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734594', 'tblTempVendorCDR_20' ) end [2025-03-22 02:55:18] Production.INFO: ProcessCDR(1,14734594,1,1,2) [2025-03-22 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734594', 'tblTempUsageDetail_20' ) start [2025-03-22 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734594', 'tblTempUsageDetail_20' ) end [2025-03-22 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:55:22] Production.INFO: ==12464== Releasing lock... [2025-03-22 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:56:05 [end_date_ymd] => 2025-03-22 02:56:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:56:05' and `end` < '2025-03-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-03-22 02:56:18] Production.INFO: count ==472 [2025-03-22 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:56:05 - End Time 2025-03-22 02:56:05 [2025-03-22 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734599', 'tblTempUsageDetail_20' ) start [2025-03-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734599', 'tblTempUsageDetail_20' ) end [2025-03-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734599', 'tblTempVendorCDR_20' ) start [2025-03-22 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734599', 'tblTempVendorCDR_20' ) end [2025-03-22 02:56:18] Production.INFO: ProcessCDR(1,14734599,1,1,2) [2025-03-22 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734599', 'tblTempUsageDetail_20' ) start [2025-03-22 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734599', 'tblTempUsageDetail_20' ) end [2025-03-22 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:56:22] Production.INFO: ==12575== Releasing lock... [2025-03-22 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:56:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:57:06 [end_date_ymd] => 2025-03-22 02:57:06 [RateCDR] => 1 ) [2025-03-22 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 23:57:06' and `end` < '2025-03-22 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 02:57:18] Production.INFO: count ==468 [2025-03-22 02:57:19] Production.ERROR: pbx CDR StartTime 2025-03-21 23:57:06 - End Time 2025-03-22 02:57:06 [2025-03-22 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734604', 'tblTempUsageDetail_20' ) start [2025-03-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734604', 'tblTempUsageDetail_20' ) end [2025-03-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734604', 'tblTempVendorCDR_20' ) start [2025-03-22 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734604', 'tblTempVendorCDR_20' ) end [2025-03-22 02:57:19] Production.INFO: ProcessCDR(1,14734604,1,1,2) [2025-03-22 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734604', 'tblTempUsageDetail_20' ) start [2025-03-22 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734604', 'tblTempUsageDetail_20' ) end [2025-03-22 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:57:22] Production.INFO: ==12649== Releasing lock... [2025-03-22 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:57:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:58:05 [end_date_ymd] => 2025-03-22 02:58:05 [RateCDR] => 1 ) [2025-03-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-03-21 23:58:05' and `end` < '2025-03-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-03-22 02:58:17] Production.INFO: count ==475 [2025-03-22 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-21 23:58:05 - End Time 2025-03-22 02:58:05 [2025-03-22 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734609', 'tblTempUsageDetail_20' ) start [2025-03-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734609', 'tblTempUsageDetail_20' ) end [2025-03-22 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734609', 'tblTempVendorCDR_20' ) start [2025-03-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734609', 'tblTempVendorCDR_20' ) end [2025-03-22 02:58:18] Production.INFO: ProcessCDR(1,14734609,1,1,2) [2025-03-22 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734609', 'tblTempUsageDetail_20' ) start [2025-03-22 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734609', 'tblTempUsageDetail_20' ) end [2025-03-22 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:58:21] Production.INFO: ==12721== Releasing lock... [2025-03-22 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 23:59:06 [end_date_ymd] => 2025-03-22 02:59:06 [RateCDR] => 1 ) [2025-03-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-03-21 23:59:06' and `end` < '2025-03-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-03-22 02:59:18] Production.INFO: count ==488 [2025-03-22 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-21 23:59:06 - End Time 2025-03-22 02:59:06 [2025-03-22 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734614', 'tblTempUsageDetail_20' ) start [2025-03-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734614', 'tblTempUsageDetail_20' ) end [2025-03-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734614', 'tblTempVendorCDR_20' ) start [2025-03-22 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734614', 'tblTempVendorCDR_20' ) end [2025-03-22 02:59:18] Production.INFO: ProcessCDR(1,14734614,1,1,2) [2025-03-22 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734614', 'tblTempUsageDetail_20' ) start [2025-03-22 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734614', 'tblTempUsageDetail_20' ) end [2025-03-22 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 02:59:22] Production.INFO: ==12794== Releasing lock... [2025-03-22 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 02:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:00:06 [end_date_ymd] => 2025-03-22 03:00:06 [RateCDR] => 1 ) [2025-03-22 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:00:06' and `end` < '2025-03-22 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:00:19] Production.INFO: count ==506 [2025-03-22 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:00:06 - End Time 2025-03-22 03:00:06 [2025-03-22 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734620', 'tblTempUsageDetail_20' ) start [2025-03-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734620', 'tblTempUsageDetail_20' ) end [2025-03-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734620', 'tblTempVendorCDR_20' ) start [2025-03-22 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734620', 'tblTempVendorCDR_20' ) end [2025-03-22 03:00:19] Production.INFO: ProcessCDR(1,14734620,1,1,2) [2025-03-22 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734620', 'tblTempUsageDetail_20' ) start [2025-03-22 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734620', 'tblTempUsageDetail_20' ) end [2025-03-22 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:00:23] Production.INFO: ==12870== Releasing lock... [2025-03-22 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:01:06 [end_date_ymd] => 2025-03-22 03:01:06 [RateCDR] => 1 ) [2025-03-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-03-22 00:01:06' and `end` < '2025-03-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-03-22 03:01:18] Production.INFO: count ==534 [2025-03-22 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:01:06 - End Time 2025-03-22 03:01:06 [2025-03-22 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734625', 'tblTempUsageDetail_20' ) start [2025-03-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734625', 'tblTempUsageDetail_20' ) end [2025-03-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734625', 'tblTempVendorCDR_20' ) start [2025-03-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734625', 'tblTempVendorCDR_20' ) end [2025-03-22 03:01:18] Production.INFO: ProcessCDR(1,14734625,1,1,2) [2025-03-22 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734625', 'tblTempUsageDetail_20' ) start [2025-03-22 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734625', 'tblTempUsageDetail_20' ) end [2025-03-22 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:01:22] Production.INFO: ==12958== Releasing lock... [2025-03-22 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:01:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:02:06 [end_date_ymd] => 2025-03-22 03:02:06 [RateCDR] => 1 ) [2025-03-22 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:02:06' and `end` < '2025-03-22 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:02:18] Production.INFO: count ==533 [2025-03-22 03:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:02:06 - End Time 2025-03-22 03:02:06 [2025-03-22 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734630', 'tblTempUsageDetail_20' ) start [2025-03-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734630', 'tblTempUsageDetail_20' ) end [2025-03-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734630', 'tblTempVendorCDR_20' ) start [2025-03-22 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734630', 'tblTempVendorCDR_20' ) end [2025-03-22 03:02:19] Production.INFO: ProcessCDR(1,14734630,1,1,2) [2025-03-22 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734630', 'tblTempUsageDetail_20' ) start [2025-03-22 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734630', 'tblTempUsageDetail_20' ) end [2025-03-22 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:02:23] Production.INFO: ==13105== Releasing lock... [2025-03-22 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:02:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:03:05 [end_date_ymd] => 2025-03-22 03:03:05 [RateCDR] => 1 ) [2025-03-22 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:03:05' and `end` < '2025-03-22 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:03:17] Production.INFO: count ==540 [2025-03-22 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:03:05 - End Time 2025-03-22 03:03:05 [2025-03-22 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734635', 'tblTempUsageDetail_20' ) start [2025-03-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734635', 'tblTempUsageDetail_20' ) end [2025-03-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734635', 'tblTempVendorCDR_20' ) start [2025-03-22 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734635', 'tblTempVendorCDR_20' ) end [2025-03-22 03:03:18] Production.INFO: ProcessCDR(1,14734635,1,1,2) [2025-03-22 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734635', 'tblTempUsageDetail_20' ) start [2025-03-22 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734635', 'tblTempUsageDetail_20' ) end [2025-03-22 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:03:21] Production.INFO: ==13179== Releasing lock... [2025-03-22 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:04:05 [end_date_ymd] => 2025-03-22 03:04:05 [RateCDR] => 1 ) [2025-03-22 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:04:05' and `end` < '2025-03-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-03-22 03:04:18] Production.INFO: count ==543 [2025-03-22 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:04:05 - End Time 2025-03-22 03:04:05 [2025-03-22 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734640', 'tblTempUsageDetail_20' ) start [2025-03-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734640', 'tblTempUsageDetail_20' ) end [2025-03-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734640', 'tblTempVendorCDR_20' ) start [2025-03-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734640', 'tblTempVendorCDR_20' ) end [2025-03-22 03:04:18] Production.INFO: ProcessCDR(1,14734640,1,1,2) [2025-03-22 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734640', 'tblTempUsageDetail_20' ) start [2025-03-22 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734640', 'tblTempUsageDetail_20' ) end [2025-03-22 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:04:22] Production.INFO: ==13255== Releasing lock... [2025-03-22 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:05:06 [end_date_ymd] => 2025-03-22 03:05:06 [RateCDR] => 1 ) [2025-03-22 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:05:06' and `end` < '2025-03-22 03:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:05:18] Production.INFO: count ==547 [2025-03-22 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:05:06 - End Time 2025-03-22 03:05:06 [2025-03-22 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734645', 'tblTempUsageDetail_20' ) start [2025-03-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734645', 'tblTempUsageDetail_20' ) end [2025-03-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734645', 'tblTempVendorCDR_20' ) start [2025-03-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734645', 'tblTempVendorCDR_20' ) end [2025-03-22 03:05:18] Production.INFO: ProcessCDR(1,14734645,1,1,2) [2025-03-22 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734645', 'tblTempUsageDetail_20' ) start [2025-03-22 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734645', 'tblTempUsageDetail_20' ) end [2025-03-22 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:05:22] Production.INFO: ==13325== Releasing lock... [2025-03-22 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:06:05 [end_date_ymd] => 2025-03-22 03:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:06:05' and `end` < '2025-03-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-03-22 03:06:18] Production.INFO: count ==546 [2025-03-22 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:06:05 - End Time 2025-03-22 03:06:05 [2025-03-22 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734650', 'tblTempUsageDetail_20' ) start [2025-03-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734650', 'tblTempUsageDetail_20' ) end [2025-03-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734650', 'tblTempVendorCDR_20' ) start [2025-03-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734650', 'tblTempVendorCDR_20' ) end [2025-03-22 03:06:18] Production.INFO: ProcessCDR(1,14734650,1,1,2) [2025-03-22 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734650', 'tblTempUsageDetail_20' ) start [2025-03-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734650', 'tblTempUsageDetail_20' ) end [2025-03-22 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:06:21] Production.INFO: ==13480== Releasing lock... [2025-03-22 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:07:05 [end_date_ymd] => 2025-03-22 03:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:07:05' and `end` < '2025-03-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-03-22 03:07:17] Production.INFO: count ==556 [2025-03-22 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:07:05 - End Time 2025-03-22 03:07:05 [2025-03-22 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734655', 'tblTempUsageDetail_20' ) start [2025-03-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734655', 'tblTempUsageDetail_20' ) end [2025-03-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734655', 'tblTempVendorCDR_20' ) start [2025-03-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734655', 'tblTempVendorCDR_20' ) end [2025-03-22 03:07:17] Production.INFO: ProcessCDR(1,14734655,1,1,2) [2025-03-22 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734655', 'tblTempUsageDetail_20' ) start [2025-03-22 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734655', 'tblTempUsageDetail_20' ) end [2025-03-22 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:07:21] Production.INFO: ==13550== Releasing lock... [2025-03-22 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:08:05 [end_date_ymd] => 2025-03-22 03:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:08:05' and `end` < '2025-03-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-03-22 03:08:17] Production.INFO: count ==551 [2025-03-22 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:08:05 - End Time 2025-03-22 03:08:05 [2025-03-22 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734660', 'tblTempUsageDetail_20' ) start [2025-03-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734660', 'tblTempUsageDetail_20' ) end [2025-03-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734660', 'tblTempVendorCDR_20' ) start [2025-03-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734660', 'tblTempVendorCDR_20' ) end [2025-03-22 03:08:18] Production.INFO: ProcessCDR(1,14734660,1,1,2) [2025-03-22 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734660', 'tblTempUsageDetail_20' ) start [2025-03-22 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734660', 'tblTempUsageDetail_20' ) end [2025-03-22 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:08:21] Production.INFO: ==13620== Releasing lock... [2025-03-22 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:08:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:09:06 [end_date_ymd] => 2025-03-22 03:09:06 [RateCDR] => 1 ) [2025-03-22 03:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:09:06' and `end` < '2025-03-22 03:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:09:18] Production.INFO: count ==557 [2025-03-22 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:09:06 - End Time 2025-03-22 03:09:06 [2025-03-22 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734665', 'tblTempUsageDetail_20' ) start [2025-03-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734665', 'tblTempUsageDetail_20' ) end [2025-03-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734665', 'tblTempVendorCDR_20' ) start [2025-03-22 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734665', 'tblTempVendorCDR_20' ) end [2025-03-22 03:09:18] Production.INFO: ProcessCDR(1,14734665,1,1,2) [2025-03-22 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734665', 'tblTempUsageDetail_20' ) start [2025-03-22 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734665', 'tblTempUsageDetail_20' ) end [2025-03-22 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:09:22] Production.INFO: ==13770== Releasing lock... [2025-03-22 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:10:05 [end_date_ymd] => 2025-03-22 03:10:05 [RateCDR] => 1 ) [2025-03-22 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:10:05' and `end` < '2025-03-22 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:10:18] Production.INFO: count ==567 [2025-03-22 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:10:05 - End Time 2025-03-22 03:10:05 [2025-03-22 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734671', 'tblTempUsageDetail_20' ) start [2025-03-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734671', 'tblTempUsageDetail_20' ) end [2025-03-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734671', 'tblTempVendorCDR_20' ) start [2025-03-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734671', 'tblTempVendorCDR_20' ) end [2025-03-22 03:10:18] Production.INFO: ProcessCDR(1,14734671,1,1,2) [2025-03-22 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734671', 'tblTempUsageDetail_20' ) start [2025-03-22 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734671', 'tblTempUsageDetail_20' ) end [2025-03-22 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:10:21] Production.INFO: ==13843== Releasing lock... [2025-03-22 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:11:06 [end_date_ymd] => 2025-03-22 03:11:06 [RateCDR] => 1 ) [2025-03-22 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:11:06' and `end` < '2025-03-22 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:11:18] Production.INFO: count ==551 [2025-03-22 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:11:06 - End Time 2025-03-22 03:11:06 [2025-03-22 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734676', 'tblTempUsageDetail_20' ) start [2025-03-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734676', 'tblTempUsageDetail_20' ) end [2025-03-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734676', 'tblTempVendorCDR_20' ) start [2025-03-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734676', 'tblTempVendorCDR_20' ) end [2025-03-22 03:11:18] Production.INFO: ProcessCDR(1,14734676,1,1,2) [2025-03-22 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734676', 'tblTempUsageDetail_20' ) start [2025-03-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734676', 'tblTempUsageDetail_20' ) end [2025-03-22 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:11:21] Production.INFO: ==13915== Releasing lock... [2025-03-22 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:12:05 [end_date_ymd] => 2025-03-22 03:12:05 [RateCDR] => 1 ) [2025-03-22 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:12:05' and `end` < '2025-03-22 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:12:18] Production.INFO: count ==557 [2025-03-22 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:12:05 - End Time 2025-03-22 03:12:05 [2025-03-22 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734681', 'tblTempUsageDetail_20' ) start [2025-03-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734681', 'tblTempUsageDetail_20' ) end [2025-03-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734681', 'tblTempVendorCDR_20' ) start [2025-03-22 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734681', 'tblTempVendorCDR_20' ) end [2025-03-22 03:12:18] Production.INFO: ProcessCDR(1,14734681,1,1,2) [2025-03-22 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734681', 'tblTempUsageDetail_20' ) start [2025-03-22 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734681', 'tblTempUsageDetail_20' ) end [2025-03-22 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:12:22] Production.INFO: ==14024== Releasing lock... [2025-03-22 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:13:06 [end_date_ymd] => 2025-03-22 03:13:06 [RateCDR] => 1 ) [2025-03-22 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:13:06' and `end` < '2025-03-22 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:13:18] Production.INFO: count ==568 [2025-03-22 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:13:06 - End Time 2025-03-22 03:13:06 [2025-03-22 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734686', 'tblTempUsageDetail_20' ) start [2025-03-22 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734686', 'tblTempUsageDetail_20' ) end [2025-03-22 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734686', 'tblTempVendorCDR_20' ) start [2025-03-22 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734686', 'tblTempVendorCDR_20' ) end [2025-03-22 03:13:18] Production.INFO: ProcessCDR(1,14734686,1,1,2) [2025-03-22 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734686', 'tblTempUsageDetail_20' ) start [2025-03-22 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734686', 'tblTempUsageDetail_20' ) end [2025-03-22 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:13:22] Production.INFO: ==14176== Releasing lock... [2025-03-22 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:13:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:14:05 [end_date_ymd] => 2025-03-22 03:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:14:05' and `end` < '2025-03-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-03-22 03:14:18] Production.INFO: count ==586 [2025-03-22 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:14:05 - End Time 2025-03-22 03:14:05 [2025-03-22 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734691', 'tblTempUsageDetail_20' ) start [2025-03-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734691', 'tblTempUsageDetail_20' ) end [2025-03-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734691', 'tblTempVendorCDR_20' ) start [2025-03-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734691', 'tblTempVendorCDR_20' ) end [2025-03-22 03:14:18] Production.INFO: ProcessCDR(1,14734691,1,1,2) [2025-03-22 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734691', 'tblTempUsageDetail_20' ) start [2025-03-22 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734691', 'tblTempUsageDetail_20' ) end [2025-03-22 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:14:21] Production.INFO: ==14253== Releasing lock... [2025-03-22 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:15:05 [end_date_ymd] => 2025-03-22 03:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:15:05' and `end` < '2025-03-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-03-22 03:15:17] Production.INFO: count ==594 [2025-03-22 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:15:05 - End Time 2025-03-22 03:15:05 [2025-03-22 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734696', 'tblTempUsageDetail_20' ) start [2025-03-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734696', 'tblTempUsageDetail_20' ) end [2025-03-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734696', 'tblTempVendorCDR_20' ) start [2025-03-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734696', 'tblTempVendorCDR_20' ) end [2025-03-22 03:15:17] Production.INFO: ProcessCDR(1,14734696,1,1,2) [2025-03-22 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734696', 'tblTempUsageDetail_20' ) start [2025-03-22 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734696', 'tblTempUsageDetail_20' ) end [2025-03-22 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:15:21] Production.INFO: ==14326== Releasing lock... [2025-03-22 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:15:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:16:05 [end_date_ymd] => 2025-03-22 03:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:16:05' and `end` < '2025-03-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-03-22 03:16:18] Production.INFO: count ==607 [2025-03-22 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:16:05 - End Time 2025-03-22 03:16:05 [2025-03-22 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734701', 'tblTempUsageDetail_20' ) start [2025-03-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734701', 'tblTempUsageDetail_20' ) end [2025-03-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734701', 'tblTempVendorCDR_20' ) start [2025-03-22 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734701', 'tblTempVendorCDR_20' ) end [2025-03-22 03:16:18] Production.INFO: ProcessCDR(1,14734701,1,1,2) [2025-03-22 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734701', 'tblTempUsageDetail_20' ) start [2025-03-22 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734701', 'tblTempUsageDetail_20' ) end [2025-03-22 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:16:21] Production.INFO: ==14401== Releasing lock... [2025-03-22 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:17:05 [end_date_ymd] => 2025-03-22 03:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:17:05' and `end` < '2025-03-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-03-22 03:17:18] Production.INFO: count ==611 [2025-03-22 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:17:05 - End Time 2025-03-22 03:17:05 [2025-03-22 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734706', 'tblTempUsageDetail_20' ) start [2025-03-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734706', 'tblTempUsageDetail_20' ) end [2025-03-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734706', 'tblTempVendorCDR_20' ) start [2025-03-22 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734706', 'tblTempVendorCDR_20' ) end [2025-03-22 03:17:18] Production.INFO: ProcessCDR(1,14734706,1,1,2) [2025-03-22 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734706', 'tblTempUsageDetail_20' ) start [2025-03-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734706', 'tblTempUsageDetail_20' ) end [2025-03-22 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:17:21] Production.INFO: ==14554== Releasing lock... [2025-03-22 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:18:05 [end_date_ymd] => 2025-03-22 03:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:18:05' and `end` < '2025-03-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-03-22 03:18:17] Production.INFO: count ==611 [2025-03-22 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:18:05 - End Time 2025-03-22 03:18:05 [2025-03-22 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734711', 'tblTempUsageDetail_20' ) start [2025-03-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734711', 'tblTempUsageDetail_20' ) end [2025-03-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734711', 'tblTempVendorCDR_20' ) start [2025-03-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734711', 'tblTempVendorCDR_20' ) end [2025-03-22 03:18:17] Production.INFO: ProcessCDR(1,14734711,1,1,2) [2025-03-22 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734711', 'tblTempUsageDetail_20' ) start [2025-03-22 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734711', 'tblTempUsageDetail_20' ) end [2025-03-22 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:18:21] Production.INFO: ==14623== Releasing lock... [2025-03-22 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:18:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:19:05 [end_date_ymd] => 2025-03-22 03:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:19:05' and `end` < '2025-03-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-03-22 03:19:18] Production.INFO: count ==618 [2025-03-22 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:19:05 - End Time 2025-03-22 03:19:05 [2025-03-22 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734716', 'tblTempUsageDetail_20' ) start [2025-03-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734716', 'tblTempUsageDetail_20' ) end [2025-03-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734716', 'tblTempVendorCDR_20' ) start [2025-03-22 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734716', 'tblTempVendorCDR_20' ) end [2025-03-22 03:19:18] Production.INFO: ProcessCDR(1,14734716,1,1,2) [2025-03-22 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734716', 'tblTempUsageDetail_20' ) start [2025-03-22 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734716', 'tblTempUsageDetail_20' ) end [2025-03-22 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:19:21] Production.INFO: ==14694== Releasing lock... [2025-03-22 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:20:05 [end_date_ymd] => 2025-03-22 03:20:05 [RateCDR] => 1 ) [2025-03-22 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:20:05' and `end` < '2025-03-22 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:20:17] Production.INFO: count ==627 [2025-03-22 03:20:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:20:05 - End Time 2025-03-22 03:20:05 [2025-03-22 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734721', 'tblTempUsageDetail_20' ) start [2025-03-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734721', 'tblTempUsageDetail_20' ) end [2025-03-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734721', 'tblTempVendorCDR_20' ) start [2025-03-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734721', 'tblTempVendorCDR_20' ) end [2025-03-22 03:20:17] Production.INFO: ProcessCDR(1,14734721,1,1,2) [2025-03-22 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734721', 'tblTempUsageDetail_20' ) start [2025-03-22 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734721', 'tblTempUsageDetail_20' ) end [2025-03-22 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:20:21] Production.INFO: ==14769== Releasing lock... [2025-03-22 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:20:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:21:05 [end_date_ymd] => 2025-03-22 03:21:05 [RateCDR] => 1 ) [2025-03-22 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:21:05' and `end` < '2025-03-22 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:21:18] Production.INFO: count ==641 [2025-03-22 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:21:05 - End Time 2025-03-22 03:21:05 [2025-03-22 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734727', 'tblTempUsageDetail_20' ) start [2025-03-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734727', 'tblTempUsageDetail_20' ) end [2025-03-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734727', 'tblTempVendorCDR_20' ) start [2025-03-22 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734727', 'tblTempVendorCDR_20' ) end [2025-03-22 03:21:18] Production.INFO: ProcessCDR(1,14734727,1,1,2) [2025-03-22 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734727', 'tblTempUsageDetail_20' ) start [2025-03-22 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734727', 'tblTempUsageDetail_20' ) end [2025-03-22 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:21:23] Production.INFO: ==14839== Releasing lock... [2025-03-22 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:21:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:22:05 [end_date_ymd] => 2025-03-22 03:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:22:05' and `end` < '2025-03-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-03-22 03:22:17] Production.INFO: count ==647 [2025-03-22 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:22:05 - End Time 2025-03-22 03:22:05 [2025-03-22 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734732', 'tblTempUsageDetail_20' ) start [2025-03-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734732', 'tblTempUsageDetail_20' ) end [2025-03-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734732', 'tblTempVendorCDR_20' ) start [2025-03-22 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734732', 'tblTempVendorCDR_20' ) end [2025-03-22 03:22:17] Production.INFO: ProcessCDR(1,14734732,1,1,2) [2025-03-22 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734732', 'tblTempUsageDetail_20' ) start [2025-03-22 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734732', 'tblTempUsageDetail_20' ) end [2025-03-22 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:22:21] Production.INFO: ==14911== Releasing lock... [2025-03-22 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:23:05 [end_date_ymd] => 2025-03-22 03:23:05 [RateCDR] => 1 ) [2025-03-22 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:23:05' and `end` < '2025-03-22 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:23:17] Production.INFO: count ==650 [2025-03-22 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:23:05 - End Time 2025-03-22 03:23:05 [2025-03-22 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734737', 'tblTempUsageDetail_20' ) start [2025-03-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734737', 'tblTempUsageDetail_20' ) end [2025-03-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734737', 'tblTempVendorCDR_20' ) start [2025-03-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734737', 'tblTempVendorCDR_20' ) end [2025-03-22 03:23:17] Production.INFO: ProcessCDR(1,14734737,1,1,2) [2025-03-22 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734737', 'tblTempUsageDetail_20' ) start [2025-03-22 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734737', 'tblTempUsageDetail_20' ) end [2025-03-22 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:23:20] Production.INFO: ==14983== Releasing lock... [2025-03-22 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:23:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:24:04 [end_date_ymd] => 2025-03-22 03:24:04 [RateCDR] => 1 ) [2025-03-22 03: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-03-22 00:24:04' and `end` < '2025-03-22 03: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-03-22 03:24:17] Production.INFO: count ==649 [2025-03-22 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:24:04 - End Time 2025-03-22 03:24:04 [2025-03-22 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734742', 'tblTempUsageDetail_20' ) start [2025-03-22 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734742', 'tblTempUsageDetail_20' ) end [2025-03-22 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734742', 'tblTempVendorCDR_20' ) start [2025-03-22 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734742', 'tblTempVendorCDR_20' ) end [2025-03-22 03:24:17] Production.INFO: ProcessCDR(1,14734742,1,1,2) [2025-03-22 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734742', 'tblTempUsageDetail_20' ) start [2025-03-22 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734742', 'tblTempUsageDetail_20' ) end [2025-03-22 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:24:20] Production.INFO: ==15053== Releasing lock... [2025-03-22 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:24:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:25:05 [end_date_ymd] => 2025-03-22 03:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:25:05' and `end` < '2025-03-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-03-22 03:25:17] Production.INFO: count ==653 [2025-03-22 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:25:05 - End Time 2025-03-22 03:25:05 [2025-03-22 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734747', 'tblTempUsageDetail_20' ) start [2025-03-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734747', 'tblTempUsageDetail_20' ) end [2025-03-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734747', 'tblTempVendorCDR_20' ) start [2025-03-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734747', 'tblTempVendorCDR_20' ) end [2025-03-22 03:25:17] Production.INFO: ProcessCDR(1,14734747,1,1,2) [2025-03-22 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734747', 'tblTempUsageDetail_20' ) start [2025-03-22 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734747', 'tblTempUsageDetail_20' ) end [2025-03-22 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:25:20] Production.INFO: ==15130== Releasing lock... [2025-03-22 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:25:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:26:05 [end_date_ymd] => 2025-03-22 03:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:26:05' and `end` < '2025-03-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-03-22 03:26:17] Production.INFO: count ==665 [2025-03-22 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:26:05 - End Time 2025-03-22 03:26:05 [2025-03-22 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734751', 'tblTempUsageDetail_20' ) start [2025-03-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734751', 'tblTempUsageDetail_20' ) end [2025-03-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734751', 'tblTempVendorCDR_20' ) start [2025-03-22 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734751', 'tblTempVendorCDR_20' ) end [2025-03-22 03:26:18] Production.INFO: ProcessCDR(1,14734751,1,1,2) [2025-03-22 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734751', 'tblTempUsageDetail_20' ) start [2025-03-22 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734751', 'tblTempUsageDetail_20' ) end [2025-03-22 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:26:22] Production.INFO: ==15205== Releasing lock... [2025-03-22 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:27:05 [end_date_ymd] => 2025-03-22 03:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:27:05' and `end` < '2025-03-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-03-22 03:27:18] Production.INFO: count ==665 [2025-03-22 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:27:05 - End Time 2025-03-22 03:27:05 [2025-03-22 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734757', 'tblTempUsageDetail_20' ) start [2025-03-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734757', 'tblTempUsageDetail_20' ) end [2025-03-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734757', 'tblTempVendorCDR_20' ) start [2025-03-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734757', 'tblTempVendorCDR_20' ) end [2025-03-22 03:27:18] Production.INFO: ProcessCDR(1,14734757,1,1,2) [2025-03-22 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734757', 'tblTempUsageDetail_20' ) start [2025-03-22 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734757', 'tblTempUsageDetail_20' ) end [2025-03-22 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:27:21] Production.INFO: ==15275== Releasing lock... [2025-03-22 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:28:05 [end_date_ymd] => 2025-03-22 03:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:28:05' and `end` < '2025-03-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-03-22 03:28:18] Production.INFO: count ==665 [2025-03-22 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:28:05 - End Time 2025-03-22 03:28:05 [2025-03-22 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734762', 'tblTempUsageDetail_20' ) start [2025-03-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734762', 'tblTempUsageDetail_20' ) end [2025-03-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734762', 'tblTempVendorCDR_20' ) start [2025-03-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734762', 'tblTempVendorCDR_20' ) end [2025-03-22 03:28:18] Production.INFO: ProcessCDR(1,14734762,1,1,2) [2025-03-22 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734762', 'tblTempUsageDetail_20' ) start [2025-03-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734762', 'tblTempUsageDetail_20' ) end [2025-03-22 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:28:21] Production.INFO: ==15347== Releasing lock... [2025-03-22 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:29:05 [end_date_ymd] => 2025-03-22 03:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:29:05' and `end` < '2025-03-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-03-22 03:29:18] Production.INFO: count ==665 [2025-03-22 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:29:05 - End Time 2025-03-22 03:29:05 [2025-03-22 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734767', 'tblTempUsageDetail_20' ) start [2025-03-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734767', 'tblTempUsageDetail_20' ) end [2025-03-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734767', 'tblTempVendorCDR_20' ) start [2025-03-22 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734767', 'tblTempVendorCDR_20' ) end [2025-03-22 03:29:18] Production.INFO: ProcessCDR(1,14734767,1,1,2) [2025-03-22 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734767', 'tblTempUsageDetail_20' ) start [2025-03-22 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734767', 'tblTempUsageDetail_20' ) end [2025-03-22 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:29:22] Production.INFO: ==15456== Releasing lock... [2025-03-22 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:30:06 [end_date_ymd] => 2025-03-22 03:30:06 [RateCDR] => 1 ) [2025-03-22 03:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:30:06' and `end` < '2025-03-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-03-22 03:30:19] Production.INFO: count ==673 [2025-03-22 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:30:06 - End Time 2025-03-22 03:30:06 [2025-03-22 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734772', 'tblTempUsageDetail_20' ) start [2025-03-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734772', 'tblTempUsageDetail_20' ) end [2025-03-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734772', 'tblTempVendorCDR_20' ) start [2025-03-22 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734772', 'tblTempVendorCDR_20' ) end [2025-03-22 03:30:19] Production.INFO: ProcessCDR(1,14734772,1,1,2) [2025-03-22 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734772', 'tblTempUsageDetail_20' ) start [2025-03-22 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734772', 'tblTempUsageDetail_20' ) end [2025-03-22 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:30:22] Production.INFO: ==15532== Releasing lock... [2025-03-22 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:31:05 [end_date_ymd] => 2025-03-22 03:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:31:05' and `end` < '2025-03-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-03-22 03:31:18] Production.INFO: count ==677 [2025-03-22 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:31:05 - End Time 2025-03-22 03:31:05 [2025-03-22 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734778', 'tblTempUsageDetail_20' ) start [2025-03-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734778', 'tblTempUsageDetail_20' ) end [2025-03-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734778', 'tblTempVendorCDR_20' ) start [2025-03-22 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734778', 'tblTempVendorCDR_20' ) end [2025-03-22 03:31:18] Production.INFO: ProcessCDR(1,14734778,1,1,2) [2025-03-22 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734778', 'tblTempUsageDetail_20' ) start [2025-03-22 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734778', 'tblTempUsageDetail_20' ) end [2025-03-22 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:31:22] Production.INFO: ==15603== Releasing lock... [2025-03-22 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:32:06 [end_date_ymd] => 2025-03-22 03:32:06 [RateCDR] => 1 ) [2025-03-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-03-22 00:32:06' and `end` < '2025-03-22 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:32:19] Production.INFO: count ==677 [2025-03-22 03:32:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:32:06 - End Time 2025-03-22 03:32:06 [2025-03-22 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734783', 'tblTempUsageDetail_20' ) start [2025-03-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734783', 'tblTempUsageDetail_20' ) end [2025-03-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734783', 'tblTempVendorCDR_20' ) start [2025-03-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734783', 'tblTempVendorCDR_20' ) end [2025-03-22 03:32:19] Production.INFO: ProcessCDR(1,14734783,1,1,2) [2025-03-22 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734783', 'tblTempUsageDetail_20' ) start [2025-03-22 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734783', 'tblTempUsageDetail_20' ) end [2025-03-22 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:32:23] Production.INFO: ==15674== Releasing lock... [2025-03-22 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:32:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:33:06 [end_date_ymd] => 2025-03-22 03:33:06 [RateCDR] => 1 ) [2025-03-22 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:33:06' and `end` < '2025-03-22 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:33:18] Production.INFO: count ==678 [2025-03-22 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:33:06 - End Time 2025-03-22 03:33:06 [2025-03-22 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734788', 'tblTempUsageDetail_20' ) start [2025-03-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734788', 'tblTempUsageDetail_20' ) end [2025-03-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734788', 'tblTempVendorCDR_20' ) start [2025-03-22 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734788', 'tblTempVendorCDR_20' ) end [2025-03-22 03:33:18] Production.INFO: ProcessCDR(1,14734788,1,1,2) [2025-03-22 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734788', 'tblTempUsageDetail_20' ) start [2025-03-22 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734788', 'tblTempUsageDetail_20' ) end [2025-03-22 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:33:23] Production.INFO: ==15743== Releasing lock... [2025-03-22 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:33:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:34:05 [end_date_ymd] => 2025-03-22 03:34:05 [RateCDR] => 1 ) [2025-03-22 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:34:05' and `end` < '2025-03-22 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:34:17] Production.INFO: count ==679 [2025-03-22 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:34:05 - End Time 2025-03-22 03:34:05 [2025-03-22 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734793', 'tblTempUsageDetail_20' ) start [2025-03-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734793', 'tblTempUsageDetail_20' ) end [2025-03-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734793', 'tblTempVendorCDR_20' ) start [2025-03-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734793', 'tblTempVendorCDR_20' ) end [2025-03-22 03:34:18] Production.INFO: ProcessCDR(1,14734793,1,1,2) [2025-03-22 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734793', 'tblTempUsageDetail_20' ) start [2025-03-22 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734793', 'tblTempUsageDetail_20' ) end [2025-03-22 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:34:21] Production.INFO: ==15818== Releasing lock... [2025-03-22 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:35:06 [end_date_ymd] => 2025-03-22 03:35:06 [RateCDR] => 1 ) [2025-03-22 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:35:06' and `end` < '2025-03-22 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:35:18] Production.INFO: count ==681 [2025-03-22 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:35:06 - End Time 2025-03-22 03:35:06 [2025-03-22 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734798', 'tblTempUsageDetail_20' ) start [2025-03-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734798', 'tblTempUsageDetail_20' ) end [2025-03-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734798', 'tblTempVendorCDR_20' ) start [2025-03-22 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734798', 'tblTempVendorCDR_20' ) end [2025-03-22 03:35:18] Production.INFO: ProcessCDR(1,14734798,1,1,2) [2025-03-22 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734798', 'tblTempUsageDetail_20' ) start [2025-03-22 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734798', 'tblTempUsageDetail_20' ) end [2025-03-22 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:35:22] Production.INFO: ==15888== Releasing lock... [2025-03-22 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:35:22] Production.INFO: 34 MB #Memory Used# [2025-03-22 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:36:06 [end_date_ymd] => 2025-03-22 03:36:06 [RateCDR] => 1 ) [2025-03-22 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:36:06' and `end` < '2025-03-22 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:36:18] Production.INFO: count ==679 [2025-03-22 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:36:06 - End Time 2025-03-22 03:36:06 [2025-03-22 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734803', 'tblTempUsageDetail_20' ) start [2025-03-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734803', 'tblTempUsageDetail_20' ) end [2025-03-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734803', 'tblTempVendorCDR_20' ) start [2025-03-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734803', 'tblTempVendorCDR_20' ) end [2025-03-22 03:36:18] Production.INFO: ProcessCDR(1,14734803,1,1,2) [2025-03-22 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734803', 'tblTempUsageDetail_20' ) start [2025-03-22 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734803', 'tblTempUsageDetail_20' ) end [2025-03-22 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:36:22] Production.INFO: ==15964== Releasing lock... [2025-03-22 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:36:22] Production.INFO: 34 MB #Memory Used# [2025-03-22 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:37:06 [end_date_ymd] => 2025-03-22 03:37:06 [RateCDR] => 1 ) [2025-03-22 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:37:06' and `end` < '2025-03-22 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:37:18] Production.INFO: count ==682 [2025-03-22 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:37:06 - End Time 2025-03-22 03:37:06 [2025-03-22 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734808', 'tblTempUsageDetail_20' ) start [2025-03-22 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734808', 'tblTempUsageDetail_20' ) end [2025-03-22 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734808', 'tblTempVendorCDR_20' ) start [2025-03-22 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734808', 'tblTempVendorCDR_20' ) end [2025-03-22 03:37:18] Production.INFO: ProcessCDR(1,14734808,1,1,2) [2025-03-22 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734808', 'tblTempUsageDetail_20' ) start [2025-03-22 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734808', 'tblTempUsageDetail_20' ) end [2025-03-22 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:37:22] Production.INFO: ==16034== Releasing lock... [2025-03-22 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:37:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:38:05 [end_date_ymd] => 2025-03-22 03:38:05 [RateCDR] => 1 ) [2025-03-22 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:38:05' and `end` < '2025-03-22 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:38:18] Production.INFO: count ==678 [2025-03-22 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:38:05 - End Time 2025-03-22 03:38:05 [2025-03-22 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734813', 'tblTempUsageDetail_20' ) start [2025-03-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734813', 'tblTempUsageDetail_20' ) end [2025-03-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734813', 'tblTempVendorCDR_20' ) start [2025-03-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734813', 'tblTempVendorCDR_20' ) end [2025-03-22 03:38:18] Production.INFO: ProcessCDR(1,14734813,1,1,2) [2025-03-22 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734813', 'tblTempUsageDetail_20' ) start [2025-03-22 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734813', 'tblTempUsageDetail_20' ) end [2025-03-22 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:38:22] Production.INFO: ==16107== Releasing lock... [2025-03-22 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:39:05 [end_date_ymd] => 2025-03-22 03:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:39:05' and `end` < '2025-03-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-03-22 03:39:18] Production.INFO: count ==672 [2025-03-22 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:39:05 - End Time 2025-03-22 03:39:05 [2025-03-22 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734818', 'tblTempUsageDetail_20' ) start [2025-03-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734818', 'tblTempUsageDetail_20' ) end [2025-03-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734818', 'tblTempVendorCDR_20' ) start [2025-03-22 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734818', 'tblTempVendorCDR_20' ) end [2025-03-22 03:39:18] Production.INFO: ProcessCDR(1,14734818,1,1,2) [2025-03-22 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734818', 'tblTempUsageDetail_20' ) start [2025-03-22 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734818', 'tblTempUsageDetail_20' ) end [2025-03-22 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:39:22] Production.INFO: ==16178== Releasing lock... [2025-03-22 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:40:06 [end_date_ymd] => 2025-03-22 03:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 00:40:06' and `end` < '2025-03-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-03-22 03:40:19] Production.INFO: count ==664 [2025-03-22 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:40:06 - End Time 2025-03-22 03:40:06 [2025-03-22 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734824', 'tblTempUsageDetail_20' ) start [2025-03-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734824', 'tblTempUsageDetail_20' ) end [2025-03-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734824', 'tblTempVendorCDR_20' ) start [2025-03-22 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734824', 'tblTempVendorCDR_20' ) end [2025-03-22 03:40:19] Production.INFO: ProcessCDR(1,14734824,1,1,2) [2025-03-22 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734824', 'tblTempUsageDetail_20' ) start [2025-03-22 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734824', 'tblTempUsageDetail_20' ) end [2025-03-22 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:40:23] Production.INFO: ==16249== Releasing lock... [2025-03-22 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:40:23] Production.INFO: 33 MB #Memory Used# [2025-03-22 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:41:06 [end_date_ymd] => 2025-03-22 03:41:06 [RateCDR] => 1 ) [2025-03-22 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:41:06' and `end` < '2025-03-22 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:41:18] Production.INFO: count ==661 [2025-03-22 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:41:06 - End Time 2025-03-22 03:41:06 [2025-03-22 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734829', 'tblTempUsageDetail_20' ) start [2025-03-22 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734829', 'tblTempUsageDetail_20' ) end [2025-03-22 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734829', 'tblTempVendorCDR_20' ) start [2025-03-22 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734829', 'tblTempVendorCDR_20' ) end [2025-03-22 03:41:18] Production.INFO: ProcessCDR(1,14734829,1,1,2) [2025-03-22 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734829', 'tblTempUsageDetail_20' ) start [2025-03-22 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734829', 'tblTempUsageDetail_20' ) end [2025-03-22 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:41:23] Production.INFO: ==16323== Releasing lock... [2025-03-22 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:41:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:42:05 [end_date_ymd] => 2025-03-22 03:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:42:05' and `end` < '2025-03-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-03-22 03:42:17] Production.INFO: count ==661 [2025-03-22 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:42:05 - End Time 2025-03-22 03:42:05 [2025-03-22 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734834', 'tblTempUsageDetail_20' ) start [2025-03-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734834', 'tblTempUsageDetail_20' ) end [2025-03-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734834', 'tblTempVendorCDR_20' ) start [2025-03-22 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734834', 'tblTempVendorCDR_20' ) end [2025-03-22 03:42:18] Production.INFO: ProcessCDR(1,14734834,1,1,2) [2025-03-22 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734834', 'tblTempUsageDetail_20' ) start [2025-03-22 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734834', 'tblTempUsageDetail_20' ) end [2025-03-22 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:42:22] Production.INFO: ==16394== Releasing lock... [2025-03-22 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:43:06 [end_date_ymd] => 2025-03-22 03:43:06 [RateCDR] => 1 ) [2025-03-22 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:43:06' and `end` < '2025-03-22 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:43:19] Production.INFO: count ==661 [2025-03-22 03:43:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:43:06 - End Time 2025-03-22 03:43:06 [2025-03-22 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734839', 'tblTempUsageDetail_20' ) start [2025-03-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734839', 'tblTempUsageDetail_20' ) end [2025-03-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734839', 'tblTempVendorCDR_20' ) start [2025-03-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734839', 'tblTempVendorCDR_20' ) end [2025-03-22 03:43:19] Production.INFO: ProcessCDR(1,14734839,1,1,2) [2025-03-22 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734839', 'tblTempUsageDetail_20' ) start [2025-03-22 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734839', 'tblTempUsageDetail_20' ) end [2025-03-22 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:43:23] Production.INFO: ==16477== Releasing lock... [2025-03-22 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:44:05 [end_date_ymd] => 2025-03-22 03:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:44:05' and `end` < '2025-03-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-03-22 03:44:17] Production.INFO: count ==661 [2025-03-22 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:44:05 - End Time 2025-03-22 03:44:05 [2025-03-22 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734844', 'tblTempUsageDetail_20' ) start [2025-03-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734844', 'tblTempUsageDetail_20' ) end [2025-03-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734844', 'tblTempVendorCDR_20' ) start [2025-03-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734844', 'tblTempVendorCDR_20' ) end [2025-03-22 03:44:18] Production.INFO: ProcessCDR(1,14734844,1,1,2) [2025-03-22 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734844', 'tblTempUsageDetail_20' ) start [2025-03-22 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734844', 'tblTempUsageDetail_20' ) end [2025-03-22 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:44:22] Production.INFO: ==16593== Releasing lock... [2025-03-22 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:45:06 [end_date_ymd] => 2025-03-22 03:45:06 [RateCDR] => 1 ) [2025-03-22 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:45:06' and `end` < '2025-03-22 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:45:18] Production.INFO: count ==655 [2025-03-22 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:45:06 - End Time 2025-03-22 03:45:06 [2025-03-22 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734849', 'tblTempUsageDetail_20' ) start [2025-03-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734849', 'tblTempUsageDetail_20' ) end [2025-03-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734849', 'tblTempVendorCDR_20' ) start [2025-03-22 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734849', 'tblTempVendorCDR_20' ) end [2025-03-22 03:45:18] Production.INFO: ProcessCDR(1,14734849,1,1,2) [2025-03-22 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734849', 'tblTempUsageDetail_20' ) start [2025-03-22 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734849', 'tblTempUsageDetail_20' ) end [2025-03-22 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:45:22] Production.INFO: ==16700== Releasing lock... [2025-03-22 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:46:05 [end_date_ymd] => 2025-03-22 03:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:46:05' and `end` < '2025-03-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-03-22 03:46:17] Production.INFO: count ==655 [2025-03-22 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:46:05 - End Time 2025-03-22 03:46:05 [2025-03-22 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734854', 'tblTempUsageDetail_20' ) start [2025-03-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734854', 'tblTempUsageDetail_20' ) end [2025-03-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734854', 'tblTempVendorCDR_20' ) start [2025-03-22 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734854', 'tblTempVendorCDR_20' ) end [2025-03-22 03:46:18] Production.INFO: ProcessCDR(1,14734854,1,1,2) [2025-03-22 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734854', 'tblTempUsageDetail_20' ) start [2025-03-22 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734854', 'tblTempUsageDetail_20' ) end [2025-03-22 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:46:21] Production.INFO: ==16772== Releasing lock... [2025-03-22 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:47:05 [end_date_ymd] => 2025-03-22 03:47:05 [RateCDR] => 1 ) [2025-03-22 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:47:05' and `end` < '2025-03-22 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:47:18] Production.INFO: count ==655 [2025-03-22 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:47:05 - End Time 2025-03-22 03:47:05 [2025-03-22 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734859', 'tblTempUsageDetail_20' ) start [2025-03-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734859', 'tblTempUsageDetail_20' ) end [2025-03-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734859', 'tblTempVendorCDR_20' ) start [2025-03-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734859', 'tblTempVendorCDR_20' ) end [2025-03-22 03:47:18] Production.INFO: ProcessCDR(1,14734859,1,1,2) [2025-03-22 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734859', 'tblTempUsageDetail_20' ) start [2025-03-22 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734859', 'tblTempUsageDetail_20' ) end [2025-03-22 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:47:22] Production.INFO: ==16842== Releasing lock... [2025-03-22 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:48:05 [end_date_ymd] => 2025-03-22 03:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:48:05' and `end` < '2025-03-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-03-22 03:48:17] Production.INFO: count ==656 [2025-03-22 03:48:17] Production.ERROR: pbx CDR StartTime 2025-03-22 00:48:05 - End Time 2025-03-22 03:48:05 [2025-03-22 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734864', 'tblTempUsageDetail_20' ) start [2025-03-22 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734864', 'tblTempUsageDetail_20' ) end [2025-03-22 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734864', 'tblTempVendorCDR_20' ) start [2025-03-22 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734864', 'tblTempVendorCDR_20' ) end [2025-03-22 03:48:17] Production.INFO: ProcessCDR(1,14734864,1,1,2) [2025-03-22 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734864', 'tblTempUsageDetail_20' ) start [2025-03-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734864', 'tblTempUsageDetail_20' ) end [2025-03-22 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:48:21] Production.INFO: ==16914== Releasing lock... [2025-03-22 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:49:05 [end_date_ymd] => 2025-03-22 03:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:49:05' and `end` < '2025-03-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-03-22 03:49:17] Production.INFO: count ==659 [2025-03-22 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:49:05 - End Time 2025-03-22 03:49:05 [2025-03-22 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734869', 'tblTempUsageDetail_20' ) start [2025-03-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734869', 'tblTempUsageDetail_20' ) end [2025-03-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734869', 'tblTempVendorCDR_20' ) start [2025-03-22 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734869', 'tblTempVendorCDR_20' ) end [2025-03-22 03:49:18] Production.INFO: ProcessCDR(1,14734869,1,1,2) [2025-03-22 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734869', 'tblTempUsageDetail_20' ) start [2025-03-22 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734869', 'tblTempUsageDetail_20' ) end [2025-03-22 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:49:21] Production.INFO: ==16986== Releasing lock... [2025-03-22 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:50:06 [end_date_ymd] => 2025-03-22 03:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 00:50:06' and `end` < '2025-03-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-03-22 03:50:18] Production.INFO: count ==659 [2025-03-22 03:50:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:50:06 - End Time 2025-03-22 03:50:06 [2025-03-22 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734875', 'tblTempUsageDetail_20' ) start [2025-03-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734875', 'tblTempUsageDetail_20' ) end [2025-03-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734875', 'tblTempVendorCDR_20' ) start [2025-03-22 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734875', 'tblTempVendorCDR_20' ) end [2025-03-22 03:50:18] Production.INFO: ProcessCDR(1,14734875,1,1,2) [2025-03-22 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734875', 'tblTempUsageDetail_20' ) start [2025-03-22 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734875', 'tblTempUsageDetail_20' ) end [2025-03-22 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:50:22] Production.INFO: ==17062== Releasing lock... [2025-03-22 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:51:06 [end_date_ymd] => 2025-03-22 03:51:06 [RateCDR] => 1 ) [2025-03-22 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:51:06' and `end` < '2025-03-22 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:51:18] Production.INFO: count ==659 [2025-03-22 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:51:06 - End Time 2025-03-22 03:51:06 [2025-03-22 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734880', 'tblTempUsageDetail_20' ) start [2025-03-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734880', 'tblTempUsageDetail_20' ) end [2025-03-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734880', 'tblTempVendorCDR_20' ) start [2025-03-22 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734880', 'tblTempVendorCDR_20' ) end [2025-03-22 03:51:18] Production.INFO: ProcessCDR(1,14734880,1,1,2) [2025-03-22 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734880', 'tblTempUsageDetail_20' ) start [2025-03-22 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734880', 'tblTempUsageDetail_20' ) end [2025-03-22 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:51:22] Production.INFO: ==17137== Releasing lock... [2025-03-22 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:52:05 [end_date_ymd] => 2025-03-22 03:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 00:52:05' and `end` < '2025-03-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-03-22 03:52:17] Production.INFO: count ==659 [2025-03-22 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:52:05 - End Time 2025-03-22 03:52:05 [2025-03-22 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734885', 'tblTempUsageDetail_20' ) start [2025-03-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734885', 'tblTempUsageDetail_20' ) end [2025-03-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734885', 'tblTempVendorCDR_20' ) start [2025-03-22 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734885', 'tblTempVendorCDR_20' ) end [2025-03-22 03:52:18] Production.INFO: ProcessCDR(1,14734885,1,1,2) [2025-03-22 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734885', 'tblTempUsageDetail_20' ) start [2025-03-22 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734885', 'tblTempUsageDetail_20' ) end [2025-03-22 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:52:21] Production.INFO: ==17210== Releasing lock... [2025-03-22 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:53:06 [end_date_ymd] => 2025-03-22 03:53:06 [RateCDR] => 1 ) [2025-03-22 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:53:06' and `end` < '2025-03-22 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:53:18] Production.INFO: count ==659 [2025-03-22 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:53:06 - End Time 2025-03-22 03:53:06 [2025-03-22 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734890', 'tblTempUsageDetail_20' ) start [2025-03-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734890', 'tblTempUsageDetail_20' ) end [2025-03-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734890', 'tblTempVendorCDR_20' ) start [2025-03-22 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734890', 'tblTempVendorCDR_20' ) end [2025-03-22 03:53:18] Production.INFO: ProcessCDR(1,14734890,1,1,2) [2025-03-22 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734890', 'tblTempUsageDetail_20' ) start [2025-03-22 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734890', 'tblTempUsageDetail_20' ) end [2025-03-22 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:53:22] Production.INFO: ==17287== Releasing lock... [2025-03-22 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:54:06 [end_date_ymd] => 2025-03-22 03:54:06 [RateCDR] => 1 ) [2025-03-22 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:54:06' and `end` < '2025-03-22 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:54:18] Production.INFO: count ==656 [2025-03-22 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:54:06 - End Time 2025-03-22 03:54:06 [2025-03-22 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734895', 'tblTempUsageDetail_20' ) start [2025-03-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734895', 'tblTempUsageDetail_20' ) end [2025-03-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734895', 'tblTempVendorCDR_20' ) start [2025-03-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734895', 'tblTempVendorCDR_20' ) end [2025-03-22 03:54:18] Production.INFO: ProcessCDR(1,14734895,1,1,2) [2025-03-22 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734895', 'tblTempUsageDetail_20' ) start [2025-03-22 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734895', 'tblTempUsageDetail_20' ) end [2025-03-22 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:54:22] Production.INFO: ==17360== Releasing lock... [2025-03-22 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:55:06 [end_date_ymd] => 2025-03-22 03:55:06 [RateCDR] => 1 ) [2025-03-22 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:55:06' and `end` < '2025-03-22 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:55:18] Production.INFO: count ==655 [2025-03-22 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:55:06 - End Time 2025-03-22 03:55:06 [2025-03-22 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734900', 'tblTempUsageDetail_20' ) start [2025-03-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734900', 'tblTempUsageDetail_20' ) end [2025-03-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734900', 'tblTempVendorCDR_20' ) start [2025-03-22 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734900', 'tblTempVendorCDR_20' ) end [2025-03-22 03:55:18] Production.INFO: ProcessCDR(1,14734900,1,1,2) [2025-03-22 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734900', 'tblTempUsageDetail_20' ) start [2025-03-22 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734900', 'tblTempUsageDetail_20' ) end [2025-03-22 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:55:22] Production.INFO: ==17432== Releasing lock... [2025-03-22 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:56:05 [end_date_ymd] => 2025-03-22 03:56:05 [RateCDR] => 1 ) [2025-03-22 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:56:05' and `end` < '2025-03-22 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:56:17] Production.INFO: count ==653 [2025-03-22 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:56:05 - End Time 2025-03-22 03:56:05 [2025-03-22 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734905', 'tblTempUsageDetail_20' ) start [2025-03-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734905', 'tblTempUsageDetail_20' ) end [2025-03-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734905', 'tblTempVendorCDR_20' ) start [2025-03-22 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734905', 'tblTempVendorCDR_20' ) end [2025-03-22 03:56:18] Production.INFO: ProcessCDR(1,14734905,1,1,2) [2025-03-22 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734905', 'tblTempUsageDetail_20' ) start [2025-03-22 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734905', 'tblTempUsageDetail_20' ) end [2025-03-22 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:56:21] Production.INFO: ==17509== Releasing lock... [2025-03-22 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:57:06 [end_date_ymd] => 2025-03-22 03:57:06 [RateCDR] => 1 ) [2025-03-22 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:57:06' and `end` < '2025-03-22 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:57:18] Production.INFO: count ==653 [2025-03-22 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:57:06 - End Time 2025-03-22 03:57:06 [2025-03-22 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734910', 'tblTempUsageDetail_20' ) start [2025-03-22 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734910', 'tblTempUsageDetail_20' ) end [2025-03-22 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734910', 'tblTempVendorCDR_20' ) start [2025-03-22 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734910', 'tblTempVendorCDR_20' ) end [2025-03-22 03:57:19] Production.INFO: ProcessCDR(1,14734910,1,1,2) [2025-03-22 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734910', 'tblTempUsageDetail_20' ) start [2025-03-22 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734910', 'tblTempUsageDetail_20' ) end [2025-03-22 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:57:22] Production.INFO: ==17581== Releasing lock... [2025-03-22 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:58:06 [end_date_ymd] => 2025-03-22 03:58:06 [RateCDR] => 1 ) [2025-03-22 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 00:58:06' and `end` < '2025-03-22 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 03:58:18] Production.INFO: count ==652 [2025-03-22 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 00:58:06 - End Time 2025-03-22 03:58:06 [2025-03-22 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734915', 'tblTempUsageDetail_20' ) start [2025-03-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734915', 'tblTempUsageDetail_20' ) end [2025-03-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734915', 'tblTempVendorCDR_20' ) start [2025-03-22 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734915', 'tblTempVendorCDR_20' ) end [2025-03-22 03:58:18] Production.INFO: ProcessCDR(1,14734915,1,1,2) [2025-03-22 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734915', 'tblTempUsageDetail_20' ) start [2025-03-22 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734915', 'tblTempUsageDetail_20' ) end [2025-03-22 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:58:22] Production.INFO: ==17654== Releasing lock... [2025-03-22 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 00:59:06 [end_date_ymd] => 2025-03-22 03:59:06 [RateCDR] => 1 ) [2025-03-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-03-22 00:59:06' and `end` < '2025-03-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-03-22 03:59:18] Production.INFO: count ==650 [2025-03-22 03:59:19] Production.ERROR: pbx CDR StartTime 2025-03-22 00:59:06 - End Time 2025-03-22 03:59:06 [2025-03-22 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734920', 'tblTempUsageDetail_20' ) start [2025-03-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734920', 'tblTempUsageDetail_20' ) end [2025-03-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734920', 'tblTempVendorCDR_20' ) start [2025-03-22 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734920', 'tblTempVendorCDR_20' ) end [2025-03-22 03:59:19] Production.INFO: ProcessCDR(1,14734920,1,1,2) [2025-03-22 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734920', 'tblTempUsageDetail_20' ) start [2025-03-22 03:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734920', 'tblTempUsageDetail_20' ) end [2025-03-22 03:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 03:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 03:59:23] Production.INFO: ==17727== Releasing lock... [2025-03-22 03:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 03:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:00:06 [end_date_ymd] => 2025-03-22 04:00:06 [RateCDR] => 1 ) [2025-03-22 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:00:06' and `end` < '2025-03-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-03-22 04:00:19] Production.INFO: count ==647 [2025-03-22 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:00:06 - End Time 2025-03-22 04:00:06 [2025-03-22 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734926', 'tblTempUsageDetail_20' ) start [2025-03-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734926', 'tblTempUsageDetail_20' ) end [2025-03-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734926', 'tblTempVendorCDR_20' ) start [2025-03-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734926', 'tblTempVendorCDR_20' ) end [2025-03-22 04:00:19] Production.INFO: ProcessCDR(1,14734926,1,1,2) [2025-03-22 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734926', 'tblTempUsageDetail_20' ) start [2025-03-22 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734926', 'tblTempUsageDetail_20' ) end [2025-03-22 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:00:23] Production.INFO: ==17840== Releasing lock... [2025-03-22 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:00:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:01:07 [end_date_ymd] => 2025-03-22 04:01:07 [RateCDR] => 1 ) [2025-03-22 04:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:01:07' and `end` < '2025-03-22 04:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:01:19] Production.INFO: count ==643 [2025-03-22 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:01:07 - End Time 2025-03-22 04:01:07 [2025-03-22 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734932', 'tblTempUsageDetail_20' ) start [2025-03-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734932', 'tblTempUsageDetail_20' ) end [2025-03-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734932', 'tblTempVendorCDR_20' ) start [2025-03-22 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734932', 'tblTempVendorCDR_20' ) end [2025-03-22 04:01:19] Production.INFO: ProcessCDR(1,14734932,1,1,2) [2025-03-22 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734932', 'tblTempUsageDetail_20' ) start [2025-03-22 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734932', 'tblTempUsageDetail_20' ) end [2025-03-22 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:01:23] Production.INFO: ==17932== Releasing lock... [2025-03-22 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:02:06 [end_date_ymd] => 2025-03-22 04:02:06 [RateCDR] => 1 ) [2025-03-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-03-22 01:02:06' and `end` < '2025-03-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-03-22 04:02:18] Production.INFO: count ==642 [2025-03-22 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:02:06 - End Time 2025-03-22 04:02:06 [2025-03-22 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734937', 'tblTempUsageDetail_20' ) start [2025-03-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734937', 'tblTempUsageDetail_20' ) end [2025-03-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734937', 'tblTempVendorCDR_20' ) start [2025-03-22 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734937', 'tblTempVendorCDR_20' ) end [2025-03-22 04:02:18] Production.INFO: ProcessCDR(1,14734937,1,1,2) [2025-03-22 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734937', 'tblTempUsageDetail_20' ) start [2025-03-22 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734937', 'tblTempUsageDetail_20' ) end [2025-03-22 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:02:22] Production.INFO: ==18004== Releasing lock... [2025-03-22 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:03:06 [end_date_ymd] => 2025-03-22 04:03:06 [RateCDR] => 1 ) [2025-03-22 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:03:06' and `end` < '2025-03-22 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:03:18] Production.INFO: count ==640 [2025-03-22 04:03:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:03:06 - End Time 2025-03-22 04:03:06 [2025-03-22 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734942', 'tblTempUsageDetail_20' ) start [2025-03-22 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734942', 'tblTempUsageDetail_20' ) end [2025-03-22 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734942', 'tblTempVendorCDR_20' ) start [2025-03-22 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734942', 'tblTempVendorCDR_20' ) end [2025-03-22 04:03:19] Production.INFO: ProcessCDR(1,14734942,1,1,2) [2025-03-22 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734942', 'tblTempUsageDetail_20' ) start [2025-03-22 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734942', 'tblTempUsageDetail_20' ) end [2025-03-22 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:03:22] Production.INFO: ==18076== Releasing lock... [2025-03-22 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:04:06 [end_date_ymd] => 2025-03-22 04:04:06 [RateCDR] => 1 ) [2025-03-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-03-22 01:04:06' and `end` < '2025-03-22 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:04:18] Production.INFO: count ==639 [2025-03-22 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:04:06 - End Time 2025-03-22 04:04:06 [2025-03-22 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734947', 'tblTempUsageDetail_20' ) start [2025-03-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734947', 'tblTempUsageDetail_20' ) end [2025-03-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734947', 'tblTempVendorCDR_20' ) start [2025-03-22 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734947', 'tblTempVendorCDR_20' ) end [2025-03-22 04:04:18] Production.INFO: ProcessCDR(1,14734947,1,1,2) [2025-03-22 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734947', 'tblTempUsageDetail_20' ) start [2025-03-22 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734947', 'tblTempUsageDetail_20' ) end [2025-03-22 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:04:22] Production.INFO: ==18154== Releasing lock... [2025-03-22 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:05:05 [end_date_ymd] => 2025-03-22 04:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:05:05' and `end` < '2025-03-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-03-22 04:05:17] Production.INFO: count ==635 [2025-03-22 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:05:05 - End Time 2025-03-22 04:05:05 [2025-03-22 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734952', 'tblTempUsageDetail_20' ) start [2025-03-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734952', 'tblTempUsageDetail_20' ) end [2025-03-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734952', 'tblTempVendorCDR_20' ) start [2025-03-22 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734952', 'tblTempVendorCDR_20' ) end [2025-03-22 04:05:18] Production.INFO: ProcessCDR(1,14734952,1,1,2) [2025-03-22 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734952', 'tblTempUsageDetail_20' ) start [2025-03-22 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734952', 'tblTempUsageDetail_20' ) end [2025-03-22 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:05:22] Production.INFO: ==18227== Releasing lock... [2025-03-22 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:06:06 [end_date_ymd] => 2025-03-22 04:06:06 [RateCDR] => 1 ) [2025-03-22 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:06:06' and `end` < '2025-03-22 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:06:18] Production.INFO: count ==631 [2025-03-22 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:06:06 - End Time 2025-03-22 04:06:06 [2025-03-22 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734957', 'tblTempUsageDetail_20' ) start [2025-03-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734957', 'tblTempUsageDetail_20' ) end [2025-03-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734957', 'tblTempVendorCDR_20' ) start [2025-03-22 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734957', 'tblTempVendorCDR_20' ) end [2025-03-22 04:06:18] Production.INFO: ProcessCDR(1,14734957,1,1,2) [2025-03-22 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734957', 'tblTempUsageDetail_20' ) start [2025-03-22 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734957', 'tblTempUsageDetail_20' ) end [2025-03-22 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:06:21] Production.INFO: ==18297== Releasing lock... [2025-03-22 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:07:05 [end_date_ymd] => 2025-03-22 04:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:07:05' and `end` < '2025-03-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-03-22 04:07:17] Production.INFO: count ==628 [2025-03-22 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:07:05 - End Time 2025-03-22 04:07:05 [2025-03-22 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734962', 'tblTempUsageDetail_20' ) start [2025-03-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734962', 'tblTempUsageDetail_20' ) end [2025-03-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734962', 'tblTempVendorCDR_20' ) start [2025-03-22 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734962', 'tblTempVendorCDR_20' ) end [2025-03-22 04:07:17] Production.INFO: ProcessCDR(1,14734962,1,1,2) [2025-03-22 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734962', 'tblTempUsageDetail_20' ) start [2025-03-22 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734962', 'tblTempUsageDetail_20' ) end [2025-03-22 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:07:21] Production.INFO: ==18369== Releasing lock... [2025-03-22 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:08:05 [end_date_ymd] => 2025-03-22 04:08:05 [RateCDR] => 1 ) [2025-03-22 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:08:05' and `end` < '2025-03-22 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:08:18] Production.INFO: count ==628 [2025-03-22 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:08:05 - End Time 2025-03-22 04:08:05 [2025-03-22 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734967', 'tblTempUsageDetail_20' ) start [2025-03-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734967', 'tblTempUsageDetail_20' ) end [2025-03-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734967', 'tblTempVendorCDR_20' ) start [2025-03-22 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734967', 'tblTempVendorCDR_20' ) end [2025-03-22 04:08:18] Production.INFO: ProcessCDR(1,14734967,1,1,2) [2025-03-22 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734967', 'tblTempUsageDetail_20' ) start [2025-03-22 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734967', 'tblTempUsageDetail_20' ) end [2025-03-22 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:08:22] Production.INFO: ==18441== Releasing lock... [2025-03-22 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:09:05 [end_date_ymd] => 2025-03-22 04:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:09:05' and `end` < '2025-03-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-03-22 04:09:17] Production.INFO: count ==624 [2025-03-22 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:09:05 - End Time 2025-03-22 04:09:05 [2025-03-22 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734972', 'tblTempUsageDetail_20' ) start [2025-03-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734972', 'tblTempUsageDetail_20' ) end [2025-03-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734972', 'tblTempVendorCDR_20' ) start [2025-03-22 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734972', 'tblTempVendorCDR_20' ) end [2025-03-22 04:09:17] Production.INFO: ProcessCDR(1,14734972,1,1,2) [2025-03-22 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734972', 'tblTempUsageDetail_20' ) start [2025-03-22 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734972', 'tblTempUsageDetail_20' ) end [2025-03-22 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:09:21] Production.INFO: ==18516== Releasing lock... [2025-03-22 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:10:06 [end_date_ymd] => 2025-03-22 04:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 01:10:06' and `end` < '2025-03-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-03-22 04:10:19] Production.INFO: count ==624 [2025-03-22 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:10:06 - End Time 2025-03-22 04:10:06 [2025-03-22 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734978', 'tblTempUsageDetail_20' ) start [2025-03-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734978', 'tblTempUsageDetail_20' ) end [2025-03-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734978', 'tblTempVendorCDR_20' ) start [2025-03-22 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734978', 'tblTempVendorCDR_20' ) end [2025-03-22 04:10:19] Production.INFO: ProcessCDR(1,14734978,1,1,2) [2025-03-22 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734978', 'tblTempUsageDetail_20' ) start [2025-03-22 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734978', 'tblTempUsageDetail_20' ) end [2025-03-22 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:10:22] Production.INFO: ==18597== Releasing lock... [2025-03-22 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:11:05 [end_date_ymd] => 2025-03-22 04:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:11:05' and `end` < '2025-03-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-03-22 04:11:17] Production.INFO: count ==615 [2025-03-22 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:11:05 - End Time 2025-03-22 04:11:05 [2025-03-22 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734983', 'tblTempUsageDetail_20' ) start [2025-03-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734983', 'tblTempUsageDetail_20' ) end [2025-03-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734983', 'tblTempVendorCDR_20' ) start [2025-03-22 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734983', 'tblTempVendorCDR_20' ) end [2025-03-22 04:11:18] Production.INFO: ProcessCDR(1,14734983,1,1,2) [2025-03-22 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734983', 'tblTempUsageDetail_20' ) start [2025-03-22 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734983', 'tblTempUsageDetail_20' ) end [2025-03-22 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:11:21] Production.INFO: ==18672== Releasing lock... [2025-03-22 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:12:05 [end_date_ymd] => 2025-03-22 04:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:12:05' and `end` < '2025-03-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-03-22 04:12:17] Production.INFO: count ==629 [2025-03-22 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:12:05 - End Time 2025-03-22 04:12:05 [2025-03-22 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734988', 'tblTempUsageDetail_20' ) start [2025-03-22 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734988', 'tblTempUsageDetail_20' ) end [2025-03-22 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734988', 'tblTempVendorCDR_20' ) start [2025-03-22 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734988', 'tblTempVendorCDR_20' ) end [2025-03-22 04:12:17] Production.INFO: ProcessCDR(1,14734988,1,1,2) [2025-03-22 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734988', 'tblTempUsageDetail_20' ) start [2025-03-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734988', 'tblTempUsageDetail_20' ) end [2025-03-22 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:12:21] Production.INFO: ==18746== Releasing lock... [2025-03-22 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:13:05 [end_date_ymd] => 2025-03-22 04:13:05 [RateCDR] => 1 ) [2025-03-22 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:13:05' and `end` < '2025-03-22 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:13:17] Production.INFO: count ==636 [2025-03-22 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:13:05 - End Time 2025-03-22 04:13:05 [2025-03-22 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734993', 'tblTempUsageDetail_20' ) start [2025-03-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734993', 'tblTempUsageDetail_20' ) end [2025-03-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734993', 'tblTempVendorCDR_20' ) start [2025-03-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734993', 'tblTempVendorCDR_20' ) end [2025-03-22 04:13:18] Production.INFO: ProcessCDR(1,14734993,1,1,2) [2025-03-22 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734993', 'tblTempUsageDetail_20' ) start [2025-03-22 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734993', 'tblTempUsageDetail_20' ) end [2025-03-22 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:13:21] Production.INFO: ==18833== Releasing lock... [2025-03-22 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:14:05 [end_date_ymd] => 2025-03-22 04:14:05 [RateCDR] => 1 ) [2025-03-22 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:14:05' and `end` < '2025-03-22 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:14:18] Production.INFO: count ==631 [2025-03-22 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:14:05 - End Time 2025-03-22 04:14:05 [2025-03-22 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734998', 'tblTempUsageDetail_20' ) start [2025-03-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14734998', 'tblTempUsageDetail_20' ) end [2025-03-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734998', 'tblTempVendorCDR_20' ) start [2025-03-22 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14734998', 'tblTempVendorCDR_20' ) end [2025-03-22 04:14:18] Production.INFO: ProcessCDR(1,14734998,1,1,2) [2025-03-22 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14734998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14734998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14734998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14734998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734998', 'tblTempUsageDetail_20' ) start [2025-03-22 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14734998', 'tblTempUsageDetail_20' ) end [2025-03-22 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:14:22] Production.INFO: ==18923== Releasing lock... [2025-03-22 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:15:05 [end_date_ymd] => 2025-03-22 04:15:05 [RateCDR] => 1 ) [2025-03-22 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:15:05' and `end` < '2025-03-22 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:15:18] Production.INFO: count ==628 [2025-03-22 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:15:05 - End Time 2025-03-22 04:15:05 [2025-03-22 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735003', 'tblTempUsageDetail_20' ) start [2025-03-22 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735003', 'tblTempUsageDetail_20' ) end [2025-03-22 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735003', 'tblTempVendorCDR_20' ) start [2025-03-22 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735003', 'tblTempVendorCDR_20' ) end [2025-03-22 04:15:18] Production.INFO: ProcessCDR(1,14735003,1,1,2) [2025-03-22 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735003', 'tblTempUsageDetail_20' ) start [2025-03-22 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735003', 'tblTempUsageDetail_20' ) end [2025-03-22 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:15:21] Production.INFO: ==19047== Releasing lock... [2025-03-22 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:16:06 [end_date_ymd] => 2025-03-22 04:16:06 [RateCDR] => 1 ) [2025-03-22 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:16:06' and `end` < '2025-03-22 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:16:18] Production.INFO: count ==627 [2025-03-22 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:16:06 - End Time 2025-03-22 04:16:06 [2025-03-22 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735008', 'tblTempUsageDetail_20' ) start [2025-03-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735008', 'tblTempUsageDetail_20' ) end [2025-03-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735008', 'tblTempVendorCDR_20' ) start [2025-03-22 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735008', 'tblTempVendorCDR_20' ) end [2025-03-22 04:16:18] Production.INFO: ProcessCDR(1,14735008,1,1,2) [2025-03-22 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735008', 'tblTempUsageDetail_20' ) start [2025-03-22 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735008', 'tblTempUsageDetail_20' ) end [2025-03-22 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:16:22] Production.INFO: ==19123== Releasing lock... [2025-03-22 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:16:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:17:05 [end_date_ymd] => 2025-03-22 04:17:05 [RateCDR] => 1 ) [2025-03-22 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:17:05' and `end` < '2025-03-22 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:17:18] Production.INFO: count ==627 [2025-03-22 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:17:05 - End Time 2025-03-22 04:17:05 [2025-03-22 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735013', 'tblTempUsageDetail_20' ) start [2025-03-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735013', 'tblTempUsageDetail_20' ) end [2025-03-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735013', 'tblTempVendorCDR_20' ) start [2025-03-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735013', 'tblTempVendorCDR_20' ) end [2025-03-22 04:17:18] Production.INFO: ProcessCDR(1,14735013,1,1,2) [2025-03-22 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735013', 'tblTempUsageDetail_20' ) start [2025-03-22 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735013', 'tblTempUsageDetail_20' ) end [2025-03-22 04:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:17:23] Production.INFO: ==19194== Releasing lock... [2025-03-22 04:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:17:23] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:18:06 [end_date_ymd] => 2025-03-22 04:18:06 [RateCDR] => 1 ) [2025-03-22 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:18:06' and `end` < '2025-03-22 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:18:18] Production.INFO: count ==627 [2025-03-22 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:18:06 - End Time 2025-03-22 04:18:06 [2025-03-22 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735018', 'tblTempUsageDetail_20' ) start [2025-03-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735018', 'tblTempUsageDetail_20' ) end [2025-03-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735018', 'tblTempVendorCDR_20' ) start [2025-03-22 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735018', 'tblTempVendorCDR_20' ) end [2025-03-22 04:18:18] Production.INFO: ProcessCDR(1,14735018,1,1,2) [2025-03-22 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735018', 'tblTempUsageDetail_20' ) start [2025-03-22 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735018', 'tblTempUsageDetail_20' ) end [2025-03-22 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:18:22] Production.INFO: ==19267== Releasing lock... [2025-03-22 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:18:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:19:05 [end_date_ymd] => 2025-03-22 04:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:19:05' and `end` < '2025-03-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-03-22 04:19:18] Production.INFO: count ==630 [2025-03-22 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:19:05 - End Time 2025-03-22 04:19:05 [2025-03-22 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735023', 'tblTempUsageDetail_20' ) start [2025-03-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735023', 'tblTempUsageDetail_20' ) end [2025-03-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735023', 'tblTempVendorCDR_20' ) start [2025-03-22 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735023', 'tblTempVendorCDR_20' ) end [2025-03-22 04:19:18] Production.INFO: ProcessCDR(1,14735023,1,1,2) [2025-03-22 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735023', 'tblTempUsageDetail_20' ) start [2025-03-22 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735023', 'tblTempUsageDetail_20' ) end [2025-03-22 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:19:21] Production.INFO: ==19337== Releasing lock... [2025-03-22 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:19:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:20:07 [end_date_ymd] => 2025-03-22 04:20:07 [RateCDR] => 1 ) [2025-03-22 04:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:20:07' and `end` < '2025-03-22 04:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:20:19] Production.INFO: count ==630 [2025-03-22 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:20:07 - End Time 2025-03-22 04:20:07 [2025-03-22 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735029', 'tblTempUsageDetail_20' ) start [2025-03-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735029', 'tblTempUsageDetail_20' ) end [2025-03-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735029', 'tblTempVendorCDR_20' ) start [2025-03-22 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735029', 'tblTempVendorCDR_20' ) end [2025-03-22 04:20:19] Production.INFO: ProcessCDR(1,14735029,1,1,2) [2025-03-22 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735029', 'tblTempUsageDetail_20' ) start [2025-03-22 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735029', 'tblTempUsageDetail_20' ) end [2025-03-22 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:20:22] Production.INFO: ==19412== Releasing lock... [2025-03-22 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:20:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:21:05 [end_date_ymd] => 2025-03-22 04:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:21:05' and `end` < '2025-03-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-03-22 04:21:17] Production.INFO: count ==628 [2025-03-22 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:21:05 - End Time 2025-03-22 04:21:05 [2025-03-22 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735034', 'tblTempUsageDetail_20' ) start [2025-03-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735034', 'tblTempUsageDetail_20' ) end [2025-03-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735034', 'tblTempVendorCDR_20' ) start [2025-03-22 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735034', 'tblTempVendorCDR_20' ) end [2025-03-22 04:21:17] Production.INFO: ProcessCDR(1,14735034,1,1,2) [2025-03-22 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735034', 'tblTempUsageDetail_20' ) start [2025-03-22 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735034', 'tblTempUsageDetail_20' ) end [2025-03-22 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:21:21] Production.INFO: ==19486== Releasing lock... [2025-03-22 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:22:06 [end_date_ymd] => 2025-03-22 04:22:06 [RateCDR] => 1 ) [2025-03-22 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:22:06' and `end` < '2025-03-22 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:22:19] Production.INFO: count ==628 [2025-03-22 04:22:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:22:06 - End Time 2025-03-22 04:22:06 [2025-03-22 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735039', 'tblTempUsageDetail_20' ) start [2025-03-22 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735039', 'tblTempUsageDetail_20' ) end [2025-03-22 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735039', 'tblTempVendorCDR_20' ) start [2025-03-22 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735039', 'tblTempVendorCDR_20' ) end [2025-03-22 04:22:19] Production.INFO: ProcessCDR(1,14735039,1,1,2) [2025-03-22 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735039', 'tblTempUsageDetail_20' ) start [2025-03-22 04:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735039', 'tblTempUsageDetail_20' ) end [2025-03-22 04:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:22:24] Production.INFO: ==19565== Releasing lock... [2025-03-22 04:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:22:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:23:05 [end_date_ymd] => 2025-03-22 04:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:23:05' and `end` < '2025-03-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-03-22 04:23:17] Production.INFO: count ==629 [2025-03-22 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:23:05 - End Time 2025-03-22 04:23:05 [2025-03-22 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735044', 'tblTempUsageDetail_20' ) start [2025-03-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735044', 'tblTempUsageDetail_20' ) end [2025-03-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735044', 'tblTempVendorCDR_20' ) start [2025-03-22 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735044', 'tblTempVendorCDR_20' ) end [2025-03-22 04:23:18] Production.INFO: ProcessCDR(1,14735044,1,1,2) [2025-03-22 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735044', 'tblTempUsageDetail_20' ) start [2025-03-22 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735044', 'tblTempUsageDetail_20' ) end [2025-03-22 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:23:22] Production.INFO: ==19650== Releasing lock... [2025-03-22 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:23:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:24:06 [end_date_ymd] => 2025-03-22 04:24:06 [RateCDR] => 1 ) [2025-03-22 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:24:06' and `end` < '2025-03-22 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:24:18] Production.INFO: count ==629 [2025-03-22 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:24:06 - End Time 2025-03-22 04:24:06 [2025-03-22 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735049', 'tblTempUsageDetail_20' ) start [2025-03-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735049', 'tblTempUsageDetail_20' ) end [2025-03-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735049', 'tblTempVendorCDR_20' ) start [2025-03-22 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735049', 'tblTempVendorCDR_20' ) end [2025-03-22 04:24:18] Production.INFO: ProcessCDR(1,14735049,1,1,2) [2025-03-22 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735049', 'tblTempUsageDetail_20' ) start [2025-03-22 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735049', 'tblTempUsageDetail_20' ) end [2025-03-22 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:24:22] Production.INFO: ==19724== Releasing lock... [2025-03-22 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:24:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:25:05 [end_date_ymd] => 2025-03-22 04:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:25:05' and `end` < '2025-03-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-03-22 04:25:17] Production.INFO: count ==629 [2025-03-22 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:25:05 - End Time 2025-03-22 04:25:05 [2025-03-22 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735054', 'tblTempUsageDetail_20' ) start [2025-03-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735054', 'tblTempUsageDetail_20' ) end [2025-03-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735054', 'tblTempVendorCDR_20' ) start [2025-03-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735054', 'tblTempVendorCDR_20' ) end [2025-03-22 04:25:17] Production.INFO: ProcessCDR(1,14735054,1,1,2) [2025-03-22 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735054', 'tblTempUsageDetail_20' ) start [2025-03-22 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735054', 'tblTempUsageDetail_20' ) end [2025-03-22 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:25:21] Production.INFO: ==19795== Releasing lock... [2025-03-22 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:25:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:26:06 [end_date_ymd] => 2025-03-22 04:26:06 [RateCDR] => 1 ) [2025-03-22 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:26:06' and `end` < '2025-03-22 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:26:18] Production.INFO: count ==632 [2025-03-22 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:26:06 - End Time 2025-03-22 04:26:06 [2025-03-22 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735059', 'tblTempUsageDetail_20' ) start [2025-03-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735059', 'tblTempUsageDetail_20' ) end [2025-03-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735059', 'tblTempVendorCDR_20' ) start [2025-03-22 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735059', 'tblTempVendorCDR_20' ) end [2025-03-22 04:26:18] Production.INFO: ProcessCDR(1,14735059,1,1,2) [2025-03-22 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735059', 'tblTempUsageDetail_20' ) start [2025-03-22 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735059', 'tblTempUsageDetail_20' ) end [2025-03-22 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:26:21] Production.INFO: ==19867== Releasing lock... [2025-03-22 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:27:05 [end_date_ymd] => 2025-03-22 04:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:27:05' and `end` < '2025-03-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-03-22 04:27:17] Production.INFO: count ==632 [2025-03-22 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:27:05 - End Time 2025-03-22 04:27:05 [2025-03-22 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735064', 'tblTempUsageDetail_20' ) start [2025-03-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735064', 'tblTempUsageDetail_20' ) end [2025-03-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735064', 'tblTempVendorCDR_20' ) start [2025-03-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735064', 'tblTempVendorCDR_20' ) end [2025-03-22 04:27:18] Production.INFO: ProcessCDR(1,14735064,1,1,2) [2025-03-22 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735064', 'tblTempUsageDetail_20' ) start [2025-03-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735064', 'tblTempUsageDetail_20' ) end [2025-03-22 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:27:21] Production.INFO: ==19941== Releasing lock... [2025-03-22 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:28:06 [end_date_ymd] => 2025-03-22 04:28:06 [RateCDR] => 1 ) [2025-03-22 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:28:06' and `end` < '2025-03-22 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:28:18] Production.INFO: count ==635 [2025-03-22 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:28:06 - End Time 2025-03-22 04:28:06 [2025-03-22 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735069', 'tblTempUsageDetail_20' ) start [2025-03-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735069', 'tblTempUsageDetail_20' ) end [2025-03-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735069', 'tblTempVendorCDR_20' ) start [2025-03-22 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735069', 'tblTempVendorCDR_20' ) end [2025-03-22 04:28:18] Production.INFO: ProcessCDR(1,14735069,1,1,2) [2025-03-22 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735069', 'tblTempUsageDetail_20' ) start [2025-03-22 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735069', 'tblTempUsageDetail_20' ) end [2025-03-22 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:28:22] Production.INFO: ==20014== Releasing lock... [2025-03-22 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:29:05 [end_date_ymd] => 2025-03-22 04:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:29:05' and `end` < '2025-03-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-03-22 04:29:17] Production.INFO: count ==636 [2025-03-22 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:29:05 - End Time 2025-03-22 04:29:05 [2025-03-22 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735074', 'tblTempUsageDetail_20' ) start [2025-03-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735074', 'tblTempUsageDetail_20' ) end [2025-03-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735074', 'tblTempVendorCDR_20' ) start [2025-03-22 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735074', 'tblTempVendorCDR_20' ) end [2025-03-22 04:29:18] Production.INFO: ProcessCDR(1,14735074,1,1,2) [2025-03-22 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735074', 'tblTempUsageDetail_20' ) start [2025-03-22 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735074', 'tblTempUsageDetail_20' ) end [2025-03-22 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:29:22] Production.INFO: ==20084== Releasing lock... [2025-03-22 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:30:06 [end_date_ymd] => 2025-03-22 04:30:06 [RateCDR] => 1 ) [2025-03-22 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:30:06' and `end` < '2025-03-22 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:30:18] Production.INFO: count ==635 [2025-03-22 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:30:06 - End Time 2025-03-22 04:30:06 [2025-03-22 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735080', 'tblTempUsageDetail_20' ) start [2025-03-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735080', 'tblTempUsageDetail_20' ) end [2025-03-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735080', 'tblTempVendorCDR_20' ) start [2025-03-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735080', 'tblTempVendorCDR_20' ) end [2025-03-22 04:30:19] Production.INFO: ProcessCDR(1,14735080,1,1,2) [2025-03-22 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735080', 'tblTempUsageDetail_20' ) start [2025-03-22 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735080', 'tblTempUsageDetail_20' ) end [2025-03-22 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:30:22] Production.INFO: ==20200== Releasing lock... [2025-03-22 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:31:05 [end_date_ymd] => 2025-03-22 04:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:31:05' and `end` < '2025-03-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-03-22 04:31:17] Production.INFO: count ==628 [2025-03-22 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:31:05 - End Time 2025-03-22 04:31:05 [2025-03-22 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735086', 'tblTempUsageDetail_20' ) start [2025-03-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735086', 'tblTempUsageDetail_20' ) end [2025-03-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735086', 'tblTempVendorCDR_20' ) start [2025-03-22 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735086', 'tblTempVendorCDR_20' ) end [2025-03-22 04:31:17] Production.INFO: ProcessCDR(1,14735086,1,1,2) [2025-03-22 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735086', 'tblTempUsageDetail_20' ) start [2025-03-22 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735086', 'tblTempUsageDetail_20' ) end [2025-03-22 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:31:21] Production.INFO: ==20306== Releasing lock... [2025-03-22 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:31:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:32:05 [end_date_ymd] => 2025-03-22 04:32:05 [RateCDR] => 1 ) [2025-03-22 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:32:05' and `end` < '2025-03-22 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:32:17] Production.INFO: count ==628 [2025-03-22 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:32:05 - End Time 2025-03-22 04:32:05 [2025-03-22 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735091', 'tblTempUsageDetail_20' ) start [2025-03-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735091', 'tblTempUsageDetail_20' ) end [2025-03-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735091', 'tblTempVendorCDR_20' ) start [2025-03-22 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735091', 'tblTempVendorCDR_20' ) end [2025-03-22 04:32:17] Production.INFO: ProcessCDR(1,14735091,1,1,2) [2025-03-22 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735091', 'tblTempUsageDetail_20' ) start [2025-03-22 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735091', 'tblTempUsageDetail_20' ) end [2025-03-22 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:32:21] Production.INFO: ==20376== Releasing lock... [2025-03-22 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:33:05 [end_date_ymd] => 2025-03-22 04:33:05 [RateCDR] => 1 ) [2025-03-22 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:33:05' and `end` < '2025-03-22 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:33:18] Production.INFO: count ==622 [2025-03-22 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:33:05 - End Time 2025-03-22 04:33:05 [2025-03-22 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735096', 'tblTempUsageDetail_20' ) start [2025-03-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735096', 'tblTempUsageDetail_20' ) end [2025-03-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735096', 'tblTempVendorCDR_20' ) start [2025-03-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735096', 'tblTempVendorCDR_20' ) end [2025-03-22 04:33:18] Production.INFO: ProcessCDR(1,14735096,1,1,2) [2025-03-22 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735096', 'tblTempUsageDetail_20' ) start [2025-03-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735096', 'tblTempUsageDetail_20' ) end [2025-03-22 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:33:21] Production.INFO: ==20454== Releasing lock... [2025-03-22 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:33:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:34:05 [end_date_ymd] => 2025-03-22 04:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:34:05' and `end` < '2025-03-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-03-22 04:34:17] Production.INFO: count ==619 [2025-03-22 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:34:05 - End Time 2025-03-22 04:34:05 [2025-03-22 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735101', 'tblTempUsageDetail_20' ) start [2025-03-22 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735101', 'tblTempUsageDetail_20' ) end [2025-03-22 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735101', 'tblTempVendorCDR_20' ) start [2025-03-22 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735101', 'tblTempVendorCDR_20' ) end [2025-03-22 04:34:17] Production.INFO: ProcessCDR(1,14735101,1,1,2) [2025-03-22 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735101', 'tblTempUsageDetail_20' ) start [2025-03-22 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735101', 'tblTempUsageDetail_20' ) end [2025-03-22 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:34:21] Production.INFO: ==20526== Releasing lock... [2025-03-22 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:34:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:35:05 [end_date_ymd] => 2025-03-22 04:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:35:05' and `end` < '2025-03-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-03-22 04:35:17] Production.INFO: count ==619 [2025-03-22 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:35:05 - End Time 2025-03-22 04:35:05 [2025-03-22 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735106', 'tblTempUsageDetail_20' ) start [2025-03-22 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735106', 'tblTempUsageDetail_20' ) end [2025-03-22 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735106', 'tblTempVendorCDR_20' ) start [2025-03-22 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735106', 'tblTempVendorCDR_20' ) end [2025-03-22 04:35:18] Production.INFO: ProcessCDR(1,14735106,1,1,2) [2025-03-22 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735106', 'tblTempUsageDetail_20' ) start [2025-03-22 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735106', 'tblTempUsageDetail_20' ) end [2025-03-22 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:35:21] Production.INFO: ==20599== Releasing lock... [2025-03-22 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:35:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:36:05 [end_date_ymd] => 2025-03-22 04:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:36:05' and `end` < '2025-03-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-03-22 04:36:18] Production.INFO: count ==619 [2025-03-22 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:36:05 - End Time 2025-03-22 04:36:05 [2025-03-22 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735111', 'tblTempUsageDetail_20' ) start [2025-03-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735111', 'tblTempUsageDetail_20' ) end [2025-03-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735111', 'tblTempVendorCDR_20' ) start [2025-03-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735111', 'tblTempVendorCDR_20' ) end [2025-03-22 04:36:18] Production.INFO: ProcessCDR(1,14735111,1,1,2) [2025-03-22 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735111', 'tblTempUsageDetail_20' ) start [2025-03-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735111', 'tblTempUsageDetail_20' ) end [2025-03-22 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:36:21] Production.INFO: ==20675== Releasing lock... [2025-03-22 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:36:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:37:05 [end_date_ymd] => 2025-03-22 04:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:37:05' and `end` < '2025-03-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-03-22 04:37:17] Production.INFO: count ==615 [2025-03-22 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:37:05 - End Time 2025-03-22 04:37:05 [2025-03-22 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735116', 'tblTempUsageDetail_20' ) start [2025-03-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735116', 'tblTempUsageDetail_20' ) end [2025-03-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735116', 'tblTempVendorCDR_20' ) start [2025-03-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735116', 'tblTempVendorCDR_20' ) end [2025-03-22 04:37:18] Production.INFO: ProcessCDR(1,14735116,1,1,2) [2025-03-22 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735116', 'tblTempUsageDetail_20' ) start [2025-03-22 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735116', 'tblTempUsageDetail_20' ) end [2025-03-22 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:37:21] Production.INFO: ==20756== Releasing lock... [2025-03-22 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:38:06 [end_date_ymd] => 2025-03-22 04:38:06 [RateCDR] => 1 ) [2025-03-22 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:38:06' and `end` < '2025-03-22 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:38:18] Production.INFO: count ==613 [2025-03-22 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:38:06 - End Time 2025-03-22 04:38:06 [2025-03-22 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735121', 'tblTempUsageDetail_20' ) start [2025-03-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735121', 'tblTempUsageDetail_20' ) end [2025-03-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735121', 'tblTempVendorCDR_20' ) start [2025-03-22 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735121', 'tblTempVendorCDR_20' ) end [2025-03-22 04:38:19] Production.INFO: ProcessCDR(1,14735121,1,1,2) [2025-03-22 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735121', 'tblTempUsageDetail_20' ) start [2025-03-22 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735121', 'tblTempUsageDetail_20' ) end [2025-03-22 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:38:22] Production.INFO: ==20834== Releasing lock... [2025-03-22 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:39:05 [end_date_ymd] => 2025-03-22 04:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:39:05' and `end` < '2025-03-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-03-22 04:39:17] Production.INFO: count ==610 [2025-03-22 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:39:05 - End Time 2025-03-22 04:39:05 [2025-03-22 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735126', 'tblTempUsageDetail_20' ) start [2025-03-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735126', 'tblTempUsageDetail_20' ) end [2025-03-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735126', 'tblTempVendorCDR_20' ) start [2025-03-22 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735126', 'tblTempVendorCDR_20' ) end [2025-03-22 04:39:18] Production.INFO: ProcessCDR(1,14735126,1,1,2) [2025-03-22 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735126', 'tblTempUsageDetail_20' ) start [2025-03-22 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735126', 'tblTempUsageDetail_20' ) end [2025-03-22 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:39:21] Production.INFO: ==20922== Releasing lock... [2025-03-22 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:40:07 [end_date_ymd] => 2025-03-22 04:40:07 [RateCDR] => 1 ) [2025-03-22 04:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:40:07' and `end` < '2025-03-22 04:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:40:19] Production.INFO: count ==593 [2025-03-22 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:40:07 - End Time 2025-03-22 04:40:07 [2025-03-22 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735132', 'tblTempUsageDetail_20' ) start [2025-03-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735132', 'tblTempUsageDetail_20' ) end [2025-03-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735132', 'tblTempVendorCDR_20' ) start [2025-03-22 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735132', 'tblTempVendorCDR_20' ) end [2025-03-22 04:40:19] Production.INFO: ProcessCDR(1,14735132,1,1,2) [2025-03-22 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735132', 'tblTempUsageDetail_20' ) start [2025-03-22 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735132', 'tblTempUsageDetail_20' ) end [2025-03-22 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:40:22] Production.INFO: ==21045== Releasing lock... [2025-03-22 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:40:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:41:05 [end_date_ymd] => 2025-03-22 04:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:41:05' and `end` < '2025-03-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-03-22 04:41:17] Production.INFO: count ==584 [2025-03-22 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:41:05 - End Time 2025-03-22 04:41:05 [2025-03-22 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735137', 'tblTempUsageDetail_20' ) start [2025-03-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735137', 'tblTempUsageDetail_20' ) end [2025-03-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735137', 'tblTempVendorCDR_20' ) start [2025-03-22 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735137', 'tblTempVendorCDR_20' ) end [2025-03-22 04:41:17] Production.INFO: ProcessCDR(1,14735137,1,1,2) [2025-03-22 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735137', 'tblTempUsageDetail_20' ) start [2025-03-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735137', 'tblTempUsageDetail_20' ) end [2025-03-22 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:41:21] Production.INFO: ==21169== Releasing lock... [2025-03-22 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:41:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:42:06 [end_date_ymd] => 2025-03-22 04:42:06 [RateCDR] => 1 ) [2025-03-22 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:42:06' and `end` < '2025-03-22 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:42:18] Production.INFO: count ==580 [2025-03-22 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:42:06 - End Time 2025-03-22 04:42:06 [2025-03-22 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735142', 'tblTempUsageDetail_20' ) start [2025-03-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735142', 'tblTempUsageDetail_20' ) end [2025-03-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735142', 'tblTempVendorCDR_20' ) start [2025-03-22 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735142', 'tblTempVendorCDR_20' ) end [2025-03-22 04:42:18] Production.INFO: ProcessCDR(1,14735142,1,1,2) [2025-03-22 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735142', 'tblTempUsageDetail_20' ) start [2025-03-22 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735142', 'tblTempUsageDetail_20' ) end [2025-03-22 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:42:22] Production.INFO: ==21293== Releasing lock... [2025-03-22 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:42:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:43:05 [end_date_ymd] => 2025-03-22 04:43:05 [RateCDR] => 1 ) [2025-03-22 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:43:05' and `end` < '2025-03-22 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:43:18] Production.INFO: count ==583 [2025-03-22 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:43:05 - End Time 2025-03-22 04:43:05 [2025-03-22 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735147', 'tblTempUsageDetail_20' ) start [2025-03-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735147', 'tblTempUsageDetail_20' ) end [2025-03-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735147', 'tblTempVendorCDR_20' ) start [2025-03-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735147', 'tblTempVendorCDR_20' ) end [2025-03-22 04:43:18] Production.INFO: ProcessCDR(1,14735147,1,1,2) [2025-03-22 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735147', 'tblTempUsageDetail_20' ) start [2025-03-22 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735147', 'tblTempUsageDetail_20' ) end [2025-03-22 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:43:22] Production.INFO: ==21420== Releasing lock... [2025-03-22 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:43:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:44:06 [end_date_ymd] => 2025-03-22 04:44:06 [RateCDR] => 1 ) [2025-03-22 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:44:06' and `end` < '2025-03-22 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:44:18] Production.INFO: count ==579 [2025-03-22 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:44:06 - End Time 2025-03-22 04:44:06 [2025-03-22 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735152', 'tblTempUsageDetail_20' ) start [2025-03-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735152', 'tblTempUsageDetail_20' ) end [2025-03-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735152', 'tblTempVendorCDR_20' ) start [2025-03-22 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735152', 'tblTempVendorCDR_20' ) end [2025-03-22 04:44:18] Production.INFO: ProcessCDR(1,14735152,1,1,2) [2025-03-22 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735152', 'tblTempUsageDetail_20' ) start [2025-03-22 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735152', 'tblTempUsageDetail_20' ) end [2025-03-22 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:44:22] Production.INFO: ==21543== Releasing lock... [2025-03-22 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:44:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:45:05 [end_date_ymd] => 2025-03-22 04:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:45:05' and `end` < '2025-03-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-03-22 04:45:18] Production.INFO: count ==578 [2025-03-22 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:45:05 - End Time 2025-03-22 04:45:05 [2025-03-22 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735157', 'tblTempUsageDetail_20' ) start [2025-03-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735157', 'tblTempUsageDetail_20' ) end [2025-03-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735157', 'tblTempVendorCDR_20' ) start [2025-03-22 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735157', 'tblTempVendorCDR_20' ) end [2025-03-22 04:45:18] Production.INFO: ProcessCDR(1,14735157,1,1,2) [2025-03-22 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735157', 'tblTempUsageDetail_20' ) start [2025-03-22 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735157', 'tblTempUsageDetail_20' ) end [2025-03-22 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:45:21] Production.INFO: ==21665== Releasing lock... [2025-03-22 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:45:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:46:06 [end_date_ymd] => 2025-03-22 04:46:06 [RateCDR] => 1 ) [2025-03-22 04:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:46:06' and `end` < '2025-03-22 04:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:46:18] Production.INFO: count ==578 [2025-03-22 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:46:06 - End Time 2025-03-22 04:46:06 [2025-03-22 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735162', 'tblTempUsageDetail_20' ) start [2025-03-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735162', 'tblTempUsageDetail_20' ) end [2025-03-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735162', 'tblTempVendorCDR_20' ) start [2025-03-22 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735162', 'tblTempVendorCDR_20' ) end [2025-03-22 04:46:18] Production.INFO: ProcessCDR(1,14735162,1,1,2) [2025-03-22 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735162', 'tblTempUsageDetail_20' ) start [2025-03-22 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735162', 'tblTempUsageDetail_20' ) end [2025-03-22 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:46:22] Production.INFO: ==21828== Releasing lock... [2025-03-22 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:46:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:47:05 [end_date_ymd] => 2025-03-22 04:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:47:05' and `end` < '2025-03-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-03-22 04:47:18] Production.INFO: count ==578 [2025-03-22 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:47:05 - End Time 2025-03-22 04:47:05 [2025-03-22 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735167', 'tblTempUsageDetail_20' ) start [2025-03-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735167', 'tblTempUsageDetail_20' ) end [2025-03-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735167', 'tblTempVendorCDR_20' ) start [2025-03-22 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735167', 'tblTempVendorCDR_20' ) end [2025-03-22 04:47:18] Production.INFO: ProcessCDR(1,14735167,1,1,2) [2025-03-22 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735167', 'tblTempUsageDetail_20' ) start [2025-03-22 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735167', 'tblTempUsageDetail_20' ) end [2025-03-22 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:47:22] Production.INFO: ==21952== Releasing lock... [2025-03-22 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:47:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:48:06 [end_date_ymd] => 2025-03-22 04:48:06 [RateCDR] => 1 ) [2025-03-22 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:48:06' and `end` < '2025-03-22 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:48:19] Production.INFO: count ==578 [2025-03-22 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:48:06 - End Time 2025-03-22 04:48:06 [2025-03-22 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735172', 'tblTempUsageDetail_20' ) start [2025-03-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735172', 'tblTempUsageDetail_20' ) end [2025-03-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735172', 'tblTempVendorCDR_20' ) start [2025-03-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735172', 'tblTempVendorCDR_20' ) end [2025-03-22 04:48:19] Production.INFO: ProcessCDR(1,14735172,1,1,2) [2025-03-22 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735172', 'tblTempUsageDetail_20' ) start [2025-03-22 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735172', 'tblTempUsageDetail_20' ) end [2025-03-22 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:48:22] Production.INFO: ==22074== Releasing lock... [2025-03-22 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:49:05 [end_date_ymd] => 2025-03-22 04:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:49:05' and `end` < '2025-03-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-03-22 04:49:19] Production.INFO: count ==579 [2025-03-22 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:49:05 - End Time 2025-03-22 04:49:05 [2025-03-22 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735177', 'tblTempUsageDetail_20' ) start [2025-03-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735177', 'tblTempUsageDetail_20' ) end [2025-03-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735177', 'tblTempVendorCDR_20' ) start [2025-03-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735177', 'tblTempVendorCDR_20' ) end [2025-03-22 04:49:19] Production.INFO: ProcessCDR(1,14735177,1,1,2) [2025-03-22 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735177', 'tblTempUsageDetail_20' ) start [2025-03-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735177', 'tblTempUsageDetail_20' ) end [2025-03-22 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:49:22] Production.INFO: ==22190== Releasing lock... [2025-03-22 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:50:06 [end_date_ymd] => 2025-03-22 04:50:06 [RateCDR] => 1 ) [2025-03-22 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:50:06' and `end` < '2025-03-22 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:50:18] Production.INFO: count ==574 [2025-03-22 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:50:06 - End Time 2025-03-22 04:50:06 [2025-03-22 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735183', 'tblTempUsageDetail_20' ) start [2025-03-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735183', 'tblTempUsageDetail_20' ) end [2025-03-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735183', 'tblTempVendorCDR_20' ) start [2025-03-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735183', 'tblTempVendorCDR_20' ) end [2025-03-22 04:50:19] Production.INFO: ProcessCDR(1,14735183,1,1,2) [2025-03-22 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735183', 'tblTempUsageDetail_20' ) start [2025-03-22 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735183', 'tblTempUsageDetail_20' ) end [2025-03-22 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:50:22] Production.INFO: ==22265== Releasing lock... [2025-03-22 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:50:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:51:05 [end_date_ymd] => 2025-03-22 04:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:51:05' and `end` < '2025-03-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-03-22 04:51:17] Production.INFO: count ==564 [2025-03-22 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:51:05 - End Time 2025-03-22 04:51:05 [2025-03-22 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735188', 'tblTempUsageDetail_20' ) start [2025-03-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735188', 'tblTempUsageDetail_20' ) end [2025-03-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735188', 'tblTempVendorCDR_20' ) start [2025-03-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735188', 'tblTempVendorCDR_20' ) end [2025-03-22 04:51:18] Production.INFO: ProcessCDR(1,14735188,1,1,2) [2025-03-22 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735188', 'tblTempUsageDetail_20' ) start [2025-03-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735188', 'tblTempUsageDetail_20' ) end [2025-03-22 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:51:21] Production.INFO: ==22339== Releasing lock... [2025-03-22 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:52:06 [end_date_ymd] => 2025-03-22 04:52:06 [RateCDR] => 1 ) [2025-03-22 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:52:06' and `end` < '2025-03-22 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:52:18] Production.INFO: count ==567 [2025-03-22 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:52:06 - End Time 2025-03-22 04:52:06 [2025-03-22 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735193', 'tblTempUsageDetail_20' ) start [2025-03-22 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735193', 'tblTempUsageDetail_20' ) end [2025-03-22 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735193', 'tblTempVendorCDR_20' ) start [2025-03-22 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735193', 'tblTempVendorCDR_20' ) end [2025-03-22 04:52:18] Production.INFO: ProcessCDR(1,14735193,1,1,2) [2025-03-22 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735193', 'tblTempUsageDetail_20' ) start [2025-03-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735193', 'tblTempUsageDetail_20' ) end [2025-03-22 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:52:22] Production.INFO: ==22415== Releasing lock... [2025-03-22 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:52:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:53:04 [end_date_ymd] => 2025-03-22 04:53:04 [RateCDR] => 1 ) [2025-03-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-03-22 01:53:04' and `end` < '2025-03-22 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:53:17] Production.INFO: count ==573 [2025-03-22 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-22 01:53:04 - End Time 2025-03-22 04:53:04 [2025-03-22 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735198', 'tblTempUsageDetail_20' ) start [2025-03-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735198', 'tblTempUsageDetail_20' ) end [2025-03-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735198', 'tblTempVendorCDR_20' ) start [2025-03-22 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735198', 'tblTempVendorCDR_20' ) end [2025-03-22 04:53:17] Production.INFO: ProcessCDR(1,14735198,1,1,2) [2025-03-22 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735198', 'tblTempUsageDetail_20' ) start [2025-03-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735198', 'tblTempUsageDetail_20' ) end [2025-03-22 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:53:21] Production.INFO: ==22504== Releasing lock... [2025-03-22 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:53:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:54:06 [end_date_ymd] => 2025-03-22 04:54:06 [RateCDR] => 1 ) [2025-03-22 04:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:54:06' and `end` < '2025-03-22 04:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:54:20] Production.INFO: count ==579 [2025-03-22 04:54:20] Production.ERROR: pbx CDR StartTime 2025-03-22 01:54:06 - End Time 2025-03-22 04:54:06 [2025-03-22 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735203', 'tblTempUsageDetail_20' ) start [2025-03-22 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735203', 'tblTempUsageDetail_20' ) end [2025-03-22 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735203', 'tblTempVendorCDR_20' ) start [2025-03-22 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735203', 'tblTempVendorCDR_20' ) end [2025-03-22 04:54:20] Production.INFO: ProcessCDR(1,14735203,1,1,2) [2025-03-22 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735203', 'tblTempUsageDetail_20' ) start [2025-03-22 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735203', 'tblTempUsageDetail_20' ) end [2025-03-22 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:54:23] Production.INFO: ==22577== Releasing lock... [2025-03-22 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:54:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:55:05 [end_date_ymd] => 2025-03-22 04:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:55:05' and `end` < '2025-03-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-03-22 04:55:18] Production.INFO: count ==587 [2025-03-22 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:55:05 - End Time 2025-03-22 04:55:05 [2025-03-22 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735208', 'tblTempUsageDetail_20' ) start [2025-03-22 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735208', 'tblTempUsageDetail_20' ) end [2025-03-22 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735208', 'tblTempVendorCDR_20' ) start [2025-03-22 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735208', 'tblTempVendorCDR_20' ) end [2025-03-22 04:55:18] Production.INFO: ProcessCDR(1,14735208,1,1,2) [2025-03-22 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735208', 'tblTempUsageDetail_20' ) start [2025-03-22 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735208', 'tblTempUsageDetail_20' ) end [2025-03-22 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:55:23] Production.INFO: ==22648== Releasing lock... [2025-03-22 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:55:23] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:56:06 [end_date_ymd] => 2025-03-22 04:56:06 [RateCDR] => 1 ) [2025-03-22 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 01:56:06' and `end` < '2025-03-22 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 04:56:18] Production.INFO: count ==646 [2025-03-22 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:56:06 - End Time 2025-03-22 04:56:06 [2025-03-22 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735213', 'tblTempUsageDetail_20' ) start [2025-03-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735213', 'tblTempUsageDetail_20' ) end [2025-03-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735213', 'tblTempVendorCDR_20' ) start [2025-03-22 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735213', 'tblTempVendorCDR_20' ) end [2025-03-22 04:56:18] Production.INFO: ProcessCDR(1,14735213,1,1,2) [2025-03-22 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735213', 'tblTempUsageDetail_20' ) start [2025-03-22 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735213', 'tblTempUsageDetail_20' ) end [2025-03-22 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:56:21] Production.INFO: ==22722== Releasing lock... [2025-03-22 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:57:05 [end_date_ymd] => 2025-03-22 04:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:57:05' and `end` < '2025-03-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-03-22 04:57:18] Production.INFO: count ==646 [2025-03-22 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:57:05 - End Time 2025-03-22 04:57:05 [2025-03-22 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735218', 'tblTempUsageDetail_20' ) start [2025-03-22 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735218', 'tblTempUsageDetail_20' ) end [2025-03-22 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735218', 'tblTempVendorCDR_20' ) start [2025-03-22 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735218', 'tblTempVendorCDR_20' ) end [2025-03-22 04:57:18] Production.INFO: ProcessCDR(1,14735218,1,1,2) [2025-03-22 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735218', 'tblTempUsageDetail_20' ) start [2025-03-22 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735218', 'tblTempUsageDetail_20' ) end [2025-03-22 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:57:21] Production.INFO: ==22797== Releasing lock... [2025-03-22 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:58:06 [end_date_ymd] => 2025-03-22 04:58:06 [RateCDR] => 1 ) [2025-03-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-03-22 01:58:06' and `end` < '2025-03-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-03-22 04:58:19] Production.INFO: count ==642 [2025-03-22 04:58:19] Production.ERROR: pbx CDR StartTime 2025-03-22 01:58:06 - End Time 2025-03-22 04:58:06 [2025-03-22 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735223', 'tblTempUsageDetail_20' ) start [2025-03-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735223', 'tblTempUsageDetail_20' ) end [2025-03-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735223', 'tblTempVendorCDR_20' ) start [2025-03-22 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735223', 'tblTempVendorCDR_20' ) end [2025-03-22 04:58:19] Production.INFO: ProcessCDR(1,14735223,1,1,2) [2025-03-22 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735223', 'tblTempUsageDetail_20' ) start [2025-03-22 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735223', 'tblTempUsageDetail_20' ) end [2025-03-22 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:58:23] Production.INFO: ==22867== Releasing lock... [2025-03-22 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:58:23] Production.INFO: 33 MB #Memory Used# [2025-03-22 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 01:59:05 [end_date_ymd] => 2025-03-22 04:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 01:59:05' and `end` < '2025-03-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-03-22 04:59:18] Production.INFO: count ==642 [2025-03-22 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 01:59:05 - End Time 2025-03-22 04:59:05 [2025-03-22 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735228', 'tblTempUsageDetail_20' ) start [2025-03-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735228', 'tblTempUsageDetail_20' ) end [2025-03-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735228', 'tblTempVendorCDR_20' ) start [2025-03-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735228', 'tblTempVendorCDR_20' ) end [2025-03-22 04:59:18] Production.INFO: ProcessCDR(1,14735228,1,1,2) [2025-03-22 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735228', 'tblTempUsageDetail_20' ) start [2025-03-22 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735228', 'tblTempUsageDetail_20' ) end [2025-03-22 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 04:59:21] Production.INFO: ==22940== Releasing lock... [2025-03-22 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 04:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:00:06 [end_date_ymd] => 2025-03-22 05:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 02:00:06' and `end` < '2025-03-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-03-22 05:00:19] Production.INFO: count ==630 [2025-03-22 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 02:00:06 - End Time 2025-03-22 05:00:06 [2025-03-22 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735234', 'tblTempUsageDetail_20' ) start [2025-03-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735234', 'tblTempUsageDetail_20' ) end [2025-03-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735234', 'tblTempVendorCDR_20' ) start [2025-03-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735234', 'tblTempVendorCDR_20' ) end [2025-03-22 05:00:19] Production.INFO: ProcessCDR(1,14735234,1,1,2) [2025-03-22 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735234', 'tblTempUsageDetail_20' ) start [2025-03-22 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735234', 'tblTempUsageDetail_20' ) end [2025-03-22 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:00:23] Production.INFO: ==23018== Releasing lock... [2025-03-22 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:00:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:01:05 [end_date_ymd] => 2025-03-22 05:01:05 [RateCDR] => 1 ) [2025-03-22 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:01:05' and `end` < '2025-03-22 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:01:18] Production.INFO: count ==621 [2025-03-22 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:01:05 - End Time 2025-03-22 05:01:05 [2025-03-22 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735239', 'tblTempUsageDetail_20' ) start [2025-03-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735239', 'tblTempUsageDetail_20' ) end [2025-03-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735239', 'tblTempVendorCDR_20' ) start [2025-03-22 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735239', 'tblTempVendorCDR_20' ) end [2025-03-22 05:01:18] Production.INFO: ProcessCDR(1,14735239,1,1,2) [2025-03-22 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735239', 'tblTempUsageDetail_20' ) start [2025-03-22 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735239', 'tblTempUsageDetail_20' ) end [2025-03-22 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:01:21] Production.INFO: ==23142== Releasing lock... [2025-03-22 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:02:06 [end_date_ymd] => 2025-03-22 05:02:06 [RateCDR] => 1 ) [2025-03-22 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:02:06' and `end` < '2025-03-22 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:02:19] Production.INFO: count ==616 [2025-03-22 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 02:02:06 - End Time 2025-03-22 05:02:06 [2025-03-22 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735244', 'tblTempUsageDetail_20' ) start [2025-03-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735244', 'tblTempUsageDetail_20' ) end [2025-03-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735244', 'tblTempVendorCDR_20' ) start [2025-03-22 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735244', 'tblTempVendorCDR_20' ) end [2025-03-22 05:02:19] Production.INFO: ProcessCDR(1,14735244,1,1,2) [2025-03-22 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735244', 'tblTempUsageDetail_20' ) start [2025-03-22 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735244', 'tblTempUsageDetail_20' ) end [2025-03-22 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:02:22] Production.INFO: ==23224== Releasing lock... [2025-03-22 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:03:05 [end_date_ymd] => 2025-03-22 05:03:05 [RateCDR] => 1 ) [2025-03-22 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:03:05' and `end` < '2025-03-22 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:03:17] Production.INFO: count ==620 [2025-03-22 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:03:05 - End Time 2025-03-22 05:03:05 [2025-03-22 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735249', 'tblTempUsageDetail_20' ) start [2025-03-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735249', 'tblTempUsageDetail_20' ) end [2025-03-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735249', 'tblTempVendorCDR_20' ) start [2025-03-22 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735249', 'tblTempVendorCDR_20' ) end [2025-03-22 05:03:18] Production.INFO: ProcessCDR(1,14735249,1,1,2) [2025-03-22 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735249', 'tblTempUsageDetail_20' ) start [2025-03-22 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735249', 'tblTempUsageDetail_20' ) end [2025-03-22 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:03:21] Production.INFO: ==23297== Releasing lock... [2025-03-22 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:04:05 [end_date_ymd] => 2025-03-22 05:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:04:05' and `end` < '2025-03-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-03-22 05:04:17] Production.INFO: count ==623 [2025-03-22 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:04:05 - End Time 2025-03-22 05:04:05 [2025-03-22 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735254', 'tblTempUsageDetail_20' ) start [2025-03-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735254', 'tblTempUsageDetail_20' ) end [2025-03-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735254', 'tblTempVendorCDR_20' ) start [2025-03-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735254', 'tblTempVendorCDR_20' ) end [2025-03-22 05:04:18] Production.INFO: ProcessCDR(1,14735254,1,1,2) [2025-03-22 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735254', 'tblTempUsageDetail_20' ) start [2025-03-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735254', 'tblTempUsageDetail_20' ) end [2025-03-22 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:04:21] Production.INFO: ==23370== Releasing lock... [2025-03-22 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:04:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:05:05 [end_date_ymd] => 2025-03-22 05:05:05 [RateCDR] => 1 ) [2025-03-22 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:05:05' and `end` < '2025-03-22 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:05:17] Production.INFO: count ==623 [2025-03-22 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:05:05 - End Time 2025-03-22 05:05:05 [2025-03-22 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735259', 'tblTempUsageDetail_20' ) start [2025-03-22 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735259', 'tblTempUsageDetail_20' ) end [2025-03-22 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735259', 'tblTempVendorCDR_20' ) start [2025-03-22 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735259', 'tblTempVendorCDR_20' ) end [2025-03-22 05:05:18] Production.INFO: ProcessCDR(1,14735259,1,1,2) [2025-03-22 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735259', 'tblTempUsageDetail_20' ) start [2025-03-22 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735259', 'tblTempUsageDetail_20' ) end [2025-03-22 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:05:21] Production.INFO: ==23442== Releasing lock... [2025-03-22 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:06:06 [end_date_ymd] => 2025-03-22 05:06:06 [RateCDR] => 1 ) [2025-03-22 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:06:06' and `end` < '2025-03-22 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:06:19] Production.INFO: count ==622 [2025-03-22 05:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 02:06:06 - End Time 2025-03-22 05:06:06 [2025-03-22 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735264', 'tblTempUsageDetail_20' ) start [2025-03-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735264', 'tblTempUsageDetail_20' ) end [2025-03-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735264', 'tblTempVendorCDR_20' ) start [2025-03-22 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735264', 'tblTempVendorCDR_20' ) end [2025-03-22 05:06:19] Production.INFO: ProcessCDR(1,14735264,1,1,2) [2025-03-22 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735264', 'tblTempUsageDetail_20' ) start [2025-03-22 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735264', 'tblTempUsageDetail_20' ) end [2025-03-22 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:06:22] Production.INFO: ==23516== Releasing lock... [2025-03-22 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:07:05 [end_date_ymd] => 2025-03-22 05:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:07:05' and `end` < '2025-03-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-03-22 05:07:17] Production.INFO: count ==622 [2025-03-22 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:07:05 - End Time 2025-03-22 05:07:05 [2025-03-22 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735269', 'tblTempUsageDetail_20' ) start [2025-03-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735269', 'tblTempUsageDetail_20' ) end [2025-03-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735269', 'tblTempVendorCDR_20' ) start [2025-03-22 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735269', 'tblTempVendorCDR_20' ) end [2025-03-22 05:07:18] Production.INFO: ProcessCDR(1,14735269,1,1,2) [2025-03-22 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735269', 'tblTempUsageDetail_20' ) start [2025-03-22 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735269', 'tblTempUsageDetail_20' ) end [2025-03-22 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:07:21] Production.INFO: ==23589== Releasing lock... [2025-03-22 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:08:05 [end_date_ymd] => 2025-03-22 05:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:08:05' and `end` < '2025-03-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-03-22 05:08:18] Production.INFO: count ==622 [2025-03-22 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:08:05 - End Time 2025-03-22 05:08:05 [2025-03-22 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735274', 'tblTempUsageDetail_20' ) start [2025-03-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735274', 'tblTempUsageDetail_20' ) end [2025-03-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735274', 'tblTempVendorCDR_20' ) start [2025-03-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735274', 'tblTempVendorCDR_20' ) end [2025-03-22 05:08:18] Production.INFO: ProcessCDR(1,14735274,1,1,2) [2025-03-22 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735274', 'tblTempUsageDetail_20' ) start [2025-03-22 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735274', 'tblTempUsageDetail_20' ) end [2025-03-22 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:08:22] Production.INFO: ==23661== Releasing lock... [2025-03-22 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:09:05 [end_date_ymd] => 2025-03-22 05:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:09:05' and `end` < '2025-03-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-03-22 05:09:17] Production.INFO: count ==625 [2025-03-22 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:09:05 - End Time 2025-03-22 05:09:05 [2025-03-22 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735279', 'tblTempUsageDetail_20' ) start [2025-03-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735279', 'tblTempUsageDetail_20' ) end [2025-03-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735279', 'tblTempVendorCDR_20' ) start [2025-03-22 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735279', 'tblTempVendorCDR_20' ) end [2025-03-22 05:09:17] Production.INFO: ProcessCDR(1,14735279,1,1,2) [2025-03-22 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735279', 'tblTempUsageDetail_20' ) start [2025-03-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735279', 'tblTempUsageDetail_20' ) end [2025-03-22 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:09:21] Production.INFO: ==23732== Releasing lock... [2025-03-22 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:09:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:10:06 [end_date_ymd] => 2025-03-22 05:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 02:10:06' and `end` < '2025-03-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-03-22 05:10:18] Production.INFO: count ==877 [2025-03-22 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 02:10:06 - End Time 2025-03-22 05:10:06 [2025-03-22 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735284', 'tblTempUsageDetail_20' ) start [2025-03-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735284', 'tblTempUsageDetail_20' ) end [2025-03-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735284', 'tblTempVendorCDR_20' ) start [2025-03-22 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735284', 'tblTempVendorCDR_20' ) end [2025-03-22 05:10:19] Production.INFO: ProcessCDR(1,14735284,1,1,2) [2025-03-22 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735284', 'tblTempUsageDetail_20' ) start [2025-03-22 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735284', 'tblTempUsageDetail_20' ) end [2025-03-22 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:10:22] Production.INFO: ==23809== Releasing lock... [2025-03-22 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:10:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:11:05 [end_date_ymd] => 2025-03-22 05:11:05 [RateCDR] => 1 ) [2025-03-22 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:11:05' and `end` < '2025-03-22 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:11:17] Production.INFO: count ==887 [2025-03-22 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:11:05 - End Time 2025-03-22 05:11:05 [2025-03-22 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735290', 'tblTempUsageDetail_20' ) start [2025-03-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735290', 'tblTempUsageDetail_20' ) end [2025-03-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735290', 'tblTempVendorCDR_20' ) start [2025-03-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735290', 'tblTempVendorCDR_20' ) end [2025-03-22 05:11:17] Production.INFO: ProcessCDR(1,14735290,1,1,2) [2025-03-22 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735290', 'tblTempUsageDetail_20' ) start [2025-03-22 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735290', 'tblTempUsageDetail_20' ) end [2025-03-22 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:11:21] Production.INFO: ==23883== Releasing lock... [2025-03-22 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:12:05 [end_date_ymd] => 2025-03-22 05:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:12:05' and `end` < '2025-03-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-03-22 05:12:17] Production.INFO: count ==893 [2025-03-22 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:12:05 - End Time 2025-03-22 05:12:05 [2025-03-22 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735295', 'tblTempUsageDetail_20' ) start [2025-03-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735295', 'tblTempUsageDetail_20' ) end [2025-03-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735295', 'tblTempVendorCDR_20' ) start [2025-03-22 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735295', 'tblTempVendorCDR_20' ) end [2025-03-22 05:12:18] Production.INFO: ProcessCDR(1,14735295,1,1,2) [2025-03-22 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735295', 'tblTempUsageDetail_20' ) start [2025-03-22 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735295', 'tblTempUsageDetail_20' ) end [2025-03-22 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:12:21] Production.INFO: ==23959== Releasing lock... [2025-03-22 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:12:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:13:05 [end_date_ymd] => 2025-03-22 05:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:13:05' and `end` < '2025-03-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-03-22 05:13:17] Production.INFO: count ==904 [2025-03-22 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:13:05 - End Time 2025-03-22 05:13:05 [2025-03-22 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735300', 'tblTempUsageDetail_20' ) start [2025-03-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735300', 'tblTempUsageDetail_20' ) end [2025-03-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735300', 'tblTempVendorCDR_20' ) start [2025-03-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735300', 'tblTempVendorCDR_20' ) end [2025-03-22 05:13:17] Production.INFO: ProcessCDR(1,14735300,1,1,2) [2025-03-22 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735300', 'tblTempUsageDetail_20' ) start [2025-03-22 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735300', 'tblTempUsageDetail_20' ) end [2025-03-22 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:13:21] Production.INFO: ==24031== Releasing lock... [2025-03-22 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:14:05 [end_date_ymd] => 2025-03-22 05:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:14:05' and `end` < '2025-03-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-03-22 05:14:18] Production.INFO: count ==904 [2025-03-22 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:14:05 - End Time 2025-03-22 05:14:05 [2025-03-22 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735305', 'tblTempUsageDetail_20' ) start [2025-03-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735305', 'tblTempUsageDetail_20' ) end [2025-03-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735305', 'tblTempVendorCDR_20' ) start [2025-03-22 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735305', 'tblTempVendorCDR_20' ) end [2025-03-22 05:14:18] Production.INFO: ProcessCDR(1,14735305,1,1,2) [2025-03-22 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735305', 'tblTempUsageDetail_20' ) start [2025-03-22 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735305', 'tblTempUsageDetail_20' ) end [2025-03-22 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:14:21] Production.INFO: ==24102== Releasing lock... [2025-03-22 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:14:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:15:06 [end_date_ymd] => 2025-03-22 05:15:06 [RateCDR] => 1 ) [2025-03-22 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:15:06' and `end` < '2025-03-22 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:15:18] Production.INFO: count ==904 [2025-03-22 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:15:06 - End Time 2025-03-22 05:15:06 [2025-03-22 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735310', 'tblTempUsageDetail_20' ) start [2025-03-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735310', 'tblTempUsageDetail_20' ) end [2025-03-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735310', 'tblTempVendorCDR_20' ) start [2025-03-22 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735310', 'tblTempVendorCDR_20' ) end [2025-03-22 05:15:18] Production.INFO: ProcessCDR(1,14735310,1,1,2) [2025-03-22 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735310', 'tblTempUsageDetail_20' ) start [2025-03-22 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735310', 'tblTempUsageDetail_20' ) end [2025-03-22 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:15:21] Production.INFO: ==24180== Releasing lock... [2025-03-22 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:16:06 [end_date_ymd] => 2025-03-22 05:16:06 [RateCDR] => 1 ) [2025-03-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-03-22 02:16:06' and `end` < '2025-03-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-03-22 05:16:18] Production.INFO: count ==898 [2025-03-22 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:16:06 - End Time 2025-03-22 05:16:06 [2025-03-22 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735315', 'tblTempUsageDetail_20' ) start [2025-03-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735315', 'tblTempUsageDetail_20' ) end [2025-03-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735315', 'tblTempVendorCDR_20' ) start [2025-03-22 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735315', 'tblTempVendorCDR_20' ) end [2025-03-22 05:16:18] Production.INFO: ProcessCDR(1,14735315,1,1,2) [2025-03-22 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735315', 'tblTempUsageDetail_20' ) start [2025-03-22 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735315', 'tblTempUsageDetail_20' ) end [2025-03-22 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:16:21] Production.INFO: ==24253== Releasing lock... [2025-03-22 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:16:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:17:05 [end_date_ymd] => 2025-03-22 05:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:17:05' and `end` < '2025-03-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-03-22 05:17:18] Production.INFO: count ==898 [2025-03-22 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:17:05 - End Time 2025-03-22 05:17:05 [2025-03-22 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735320', 'tblTempUsageDetail_20' ) start [2025-03-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735320', 'tblTempUsageDetail_20' ) end [2025-03-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735320', 'tblTempVendorCDR_20' ) start [2025-03-22 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735320', 'tblTempVendorCDR_20' ) end [2025-03-22 05:17:18] Production.INFO: ProcessCDR(1,14735320,1,1,2) [2025-03-22 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735320', 'tblTempUsageDetail_20' ) start [2025-03-22 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735320', 'tblTempUsageDetail_20' ) end [2025-03-22 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:17:21] Production.INFO: ==24362== Releasing lock... [2025-03-22 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:17:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:18:05 [end_date_ymd] => 2025-03-22 05:18:05 [RateCDR] => 1 ) [2025-03-22 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:18:05' and `end` < '2025-03-22 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:18:17] Production.INFO: count ==897 [2025-03-22 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:18:05 - End Time 2025-03-22 05:18:05 [2025-03-22 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735325', 'tblTempUsageDetail_20' ) start [2025-03-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735325', 'tblTempUsageDetail_20' ) end [2025-03-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735325', 'tblTempVendorCDR_20' ) start [2025-03-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735325', 'tblTempVendorCDR_20' ) end [2025-03-22 05:18:17] Production.INFO: ProcessCDR(1,14735325,1,1,2) [2025-03-22 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735325', 'tblTempUsageDetail_20' ) start [2025-03-22 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735325', 'tblTempUsageDetail_20' ) end [2025-03-22 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:18:21] Production.INFO: ==24445== Releasing lock... [2025-03-22 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:19:05 [end_date_ymd] => 2025-03-22 05:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:19:05' and `end` < '2025-03-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-03-22 05:19:17] Production.INFO: count ==892 [2025-03-22 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:19:05 - End Time 2025-03-22 05:19:05 [2025-03-22 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735330', 'tblTempUsageDetail_20' ) start [2025-03-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735330', 'tblTempUsageDetail_20' ) end [2025-03-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735330', 'tblTempVendorCDR_20' ) start [2025-03-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735330', 'tblTempVendorCDR_20' ) end [2025-03-22 05:19:17] Production.INFO: ProcessCDR(1,14735330,1,1,2) [2025-03-22 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735330', 'tblTempUsageDetail_20' ) start [2025-03-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735330', 'tblTempUsageDetail_20' ) end [2025-03-22 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:19:21] Production.INFO: ==24518== Releasing lock... [2025-03-22 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:19:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:20:05 [end_date_ymd] => 2025-03-22 05:20:05 [RateCDR] => 1 ) [2025-03-22 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:20:05' and `end` < '2025-03-22 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:20:18] Production.INFO: count ==885 [2025-03-22 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:20:05 - End Time 2025-03-22 05:20:05 [2025-03-22 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735336', 'tblTempUsageDetail_20' ) start [2025-03-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735336', 'tblTempUsageDetail_20' ) end [2025-03-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735336', 'tblTempVendorCDR_20' ) start [2025-03-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735336', 'tblTempVendorCDR_20' ) end [2025-03-22 05:20:18] Production.INFO: ProcessCDR(1,14735336,1,1,2) [2025-03-22 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735336', 'tblTempUsageDetail_20' ) start [2025-03-22 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735336', 'tblTempUsageDetail_20' ) end [2025-03-22 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:20:21] Production.INFO: ==24591== Releasing lock... [2025-03-22 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:20:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:21:06 [end_date_ymd] => 2025-03-22 05:21:06 [RateCDR] => 1 ) [2025-03-22 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:21:06' and `end` < '2025-03-22 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:21:18] Production.INFO: count ==881 [2025-03-22 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:21:06 - End Time 2025-03-22 05:21:06 [2025-03-22 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735341', 'tblTempUsageDetail_20' ) start [2025-03-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735341', 'tblTempUsageDetail_20' ) end [2025-03-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735341', 'tblTempVendorCDR_20' ) start [2025-03-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735341', 'tblTempVendorCDR_20' ) end [2025-03-22 05:21:18] Production.INFO: ProcessCDR(1,14735341,1,1,2) [2025-03-22 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735341', 'tblTempUsageDetail_20' ) start [2025-03-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735341', 'tblTempUsageDetail_20' ) end [2025-03-22 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:21:22] Production.INFO: ==24670== Releasing lock... [2025-03-22 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:22:05 [end_date_ymd] => 2025-03-22 05:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:22:05' and `end` < '2025-03-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-03-22 05:22:17] Production.INFO: count ==881 [2025-03-22 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:22:05 - End Time 2025-03-22 05:22:05 [2025-03-22 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735346', 'tblTempUsageDetail_20' ) start [2025-03-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735346', 'tblTempUsageDetail_20' ) end [2025-03-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735346', 'tblTempVendorCDR_20' ) start [2025-03-22 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735346', 'tblTempVendorCDR_20' ) end [2025-03-22 05:22:18] Production.INFO: ProcessCDR(1,14735346,1,1,2) [2025-03-22 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735346', 'tblTempUsageDetail_20' ) start [2025-03-22 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735346', 'tblTempUsageDetail_20' ) end [2025-03-22 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:22:21] Production.INFO: ==24743== Releasing lock... [2025-03-22 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:22:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:23:05 [end_date_ymd] => 2025-03-22 05:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:23:05' and `end` < '2025-03-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-03-22 05:23:17] Production.INFO: count ==881 [2025-03-22 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:23:05 - End Time 2025-03-22 05:23:05 [2025-03-22 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735351', 'tblTempUsageDetail_20' ) start [2025-03-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735351', 'tblTempUsageDetail_20' ) end [2025-03-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735351', 'tblTempVendorCDR_20' ) start [2025-03-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735351', 'tblTempVendorCDR_20' ) end [2025-03-22 05:23:18] Production.INFO: ProcessCDR(1,14735351,1,1,2) [2025-03-22 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735351', 'tblTempUsageDetail_20' ) start [2025-03-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735351', 'tblTempUsageDetail_20' ) end [2025-03-22 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:23:21] Production.INFO: ==24818== Releasing lock... [2025-03-22 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:24:05 [end_date_ymd] => 2025-03-22 05:24:05 [RateCDR] => 1 ) [2025-03-22 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:24:05' and `end` < '2025-03-22 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:24:17] Production.INFO: count ==881 [2025-03-22 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:24:05 - End Time 2025-03-22 05:24:05 [2025-03-22 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735356', 'tblTempUsageDetail_20' ) start [2025-03-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735356', 'tblTempUsageDetail_20' ) end [2025-03-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735356', 'tblTempVendorCDR_20' ) start [2025-03-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735356', 'tblTempVendorCDR_20' ) end [2025-03-22 05:24:17] Production.INFO: ProcessCDR(1,14735356,1,1,2) [2025-03-22 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735356', 'tblTempUsageDetail_20' ) start [2025-03-22 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735356', 'tblTempUsageDetail_20' ) end [2025-03-22 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:24:21] Production.INFO: ==24888== Releasing lock... [2025-03-22 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:25:05 [end_date_ymd] => 2025-03-22 05:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:25:05' and `end` < '2025-03-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-03-22 05:25:18] Production.INFO: count ==881 [2025-03-22 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:25:05 - End Time 2025-03-22 05:25:05 [2025-03-22 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735361', 'tblTempUsageDetail_20' ) start [2025-03-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735361', 'tblTempUsageDetail_20' ) end [2025-03-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735361', 'tblTempVendorCDR_20' ) start [2025-03-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735361', 'tblTempVendorCDR_20' ) end [2025-03-22 05:25:18] Production.INFO: ProcessCDR(1,14735361,1,1,2) [2025-03-22 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735361', 'tblTempUsageDetail_20' ) start [2025-03-22 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735361', 'tblTempUsageDetail_20' ) end [2025-03-22 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:25:21] Production.INFO: ==24960== Releasing lock... [2025-03-22 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:25:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:26:05 [end_date_ymd] => 2025-03-22 05:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:26:05' and `end` < '2025-03-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-03-22 05:26:17] Production.INFO: count ==881 [2025-03-22 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:26:05 - End Time 2025-03-22 05:26:05 [2025-03-22 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735366', 'tblTempUsageDetail_20' ) start [2025-03-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735366', 'tblTempUsageDetail_20' ) end [2025-03-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735366', 'tblTempVendorCDR_20' ) start [2025-03-22 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735366', 'tblTempVendorCDR_20' ) end [2025-03-22 05:26:17] Production.INFO: ProcessCDR(1,14735366,1,1,2) [2025-03-22 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735366', 'tblTempUsageDetail_20' ) start [2025-03-22 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735366', 'tblTempUsageDetail_20' ) end [2025-03-22 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:26:21] Production.INFO: ==25032== Releasing lock... [2025-03-22 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:27:05 [end_date_ymd] => 2025-03-22 05:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:27:05' and `end` < '2025-03-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-03-22 05:27:17] Production.INFO: count ==878 [2025-03-22 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:27:05 - End Time 2025-03-22 05:27:05 [2025-03-22 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735371', 'tblTempUsageDetail_20' ) start [2025-03-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735371', 'tblTempUsageDetail_20' ) end [2025-03-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735371', 'tblTempVendorCDR_20' ) start [2025-03-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735371', 'tblTempVendorCDR_20' ) end [2025-03-22 05:27:17] Production.INFO: ProcessCDR(1,14735371,1,1,2) [2025-03-22 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735371', 'tblTempUsageDetail_20' ) start [2025-03-22 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735371', 'tblTempUsageDetail_20' ) end [2025-03-22 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:27:21] Production.INFO: ==25102== Releasing lock... [2025-03-22 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:28:06 [end_date_ymd] => 2025-03-22 05:28:06 [RateCDR] => 1 ) [2025-03-22 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:28:06' and `end` < '2025-03-22 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:28:18] Production.INFO: count ==878 [2025-03-22 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:28:06 - End Time 2025-03-22 05:28:06 [2025-03-22 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735376', 'tblTempUsageDetail_20' ) start [2025-03-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735376', 'tblTempUsageDetail_20' ) end [2025-03-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735376', 'tblTempVendorCDR_20' ) start [2025-03-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735376', 'tblTempVendorCDR_20' ) end [2025-03-22 05:28:18] Production.INFO: ProcessCDR(1,14735376,1,1,2) [2025-03-22 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735376', 'tblTempUsageDetail_20' ) start [2025-03-22 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735376', 'tblTempUsageDetail_20' ) end [2025-03-22 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:28:22] Production.INFO: ==25178== Releasing lock... [2025-03-22 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:28:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:29:05 [end_date_ymd] => 2025-03-22 05:29:05 [RateCDR] => 1 ) [2025-03-22 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:29:05' and `end` < '2025-03-22 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:29:18] Production.INFO: count ==877 [2025-03-22 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:29:05 - End Time 2025-03-22 05:29:05 [2025-03-22 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735381', 'tblTempUsageDetail_20' ) start [2025-03-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735381', 'tblTempUsageDetail_20' ) end [2025-03-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735381', 'tblTempVendorCDR_20' ) start [2025-03-22 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735381', 'tblTempVendorCDR_20' ) end [2025-03-22 05:29:18] Production.INFO: ProcessCDR(1,14735381,1,1,2) [2025-03-22 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735381', 'tblTempUsageDetail_20' ) start [2025-03-22 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735381', 'tblTempUsageDetail_20' ) end [2025-03-22 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:29:21] Production.INFO: ==25253== Releasing lock... [2025-03-22 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:30:06 [end_date_ymd] => 2025-03-22 05:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 02:30:06' and `end` < '2025-03-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-03-22 05:30:18] Production.INFO: count ==867 [2025-03-22 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 02:30:06 - End Time 2025-03-22 05:30:06 [2025-03-22 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735387', 'tblTempUsageDetail_20' ) start [2025-03-22 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735387', 'tblTempUsageDetail_20' ) end [2025-03-22 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735387', 'tblTempVendorCDR_20' ) start [2025-03-22 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735387', 'tblTempVendorCDR_20' ) end [2025-03-22 05:30:19] Production.INFO: ProcessCDR(1,14735387,1,1,2) [2025-03-22 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735387', 'tblTempUsageDetail_20' ) start [2025-03-22 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735387', 'tblTempUsageDetail_20' ) end [2025-03-22 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:30:22] Production.INFO: ==25326== Releasing lock... [2025-03-22 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:31:05 [end_date_ymd] => 2025-03-22 05:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:31:05' and `end` < '2025-03-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-03-22 05:31:17] Production.INFO: count ==867 [2025-03-22 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:31:05 - End Time 2025-03-22 05:31:05 [2025-03-22 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735392', 'tblTempUsageDetail_20' ) start [2025-03-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735392', 'tblTempUsageDetail_20' ) end [2025-03-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735392', 'tblTempVendorCDR_20' ) start [2025-03-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735392', 'tblTempVendorCDR_20' ) end [2025-03-22 05:31:17] Production.INFO: ProcessCDR(1,14735392,1,1,2) [2025-03-22 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735392', 'tblTempUsageDetail_20' ) start [2025-03-22 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735392', 'tblTempUsageDetail_20' ) end [2025-03-22 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:31:21] Production.INFO: ==25400== Releasing lock... [2025-03-22 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:31:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:32:05 [end_date_ymd] => 2025-03-22 05:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:32:05' and `end` < '2025-03-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-03-22 05:32:17] Production.INFO: count ==867 [2025-03-22 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:32:05 - End Time 2025-03-22 05:32:05 [2025-03-22 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735397', 'tblTempUsageDetail_20' ) start [2025-03-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735397', 'tblTempUsageDetail_20' ) end [2025-03-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735397', 'tblTempVendorCDR_20' ) start [2025-03-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735397', 'tblTempVendorCDR_20' ) end [2025-03-22 05:32:17] Production.INFO: ProcessCDR(1,14735397,1,1,2) [2025-03-22 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735397', 'tblTempUsageDetail_20' ) start [2025-03-22 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735397', 'tblTempUsageDetail_20' ) end [2025-03-22 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:32:21] Production.INFO: ==25512== Releasing lock... [2025-03-22 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:33:05 [end_date_ymd] => 2025-03-22 05:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:33:05' and `end` < '2025-03-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-03-22 05:33:17] Production.INFO: count ==868 [2025-03-22 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:33:05 - End Time 2025-03-22 05:33:05 [2025-03-22 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735402', 'tblTempUsageDetail_20' ) start [2025-03-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735402', 'tblTempUsageDetail_20' ) end [2025-03-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735402', 'tblTempVendorCDR_20' ) start [2025-03-22 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735402', 'tblTempVendorCDR_20' ) end [2025-03-22 05:33:17] Production.INFO: ProcessCDR(1,14735402,1,1,2) [2025-03-22 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735402', 'tblTempUsageDetail_20' ) start [2025-03-22 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735402', 'tblTempUsageDetail_20' ) end [2025-03-22 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:33:22] Production.INFO: ==25586== Releasing lock... [2025-03-22 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:33:22] Production.INFO: 35 MB #Memory Used# [2025-03-22 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:34:05 [end_date_ymd] => 2025-03-22 05:34:05 [RateCDR] => 1 ) [2025-03-22 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:34:05' and `end` < '2025-03-22 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:34:17] Production.INFO: count ==868 [2025-03-22 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:34:05 - End Time 2025-03-22 05:34:05 [2025-03-22 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735407', 'tblTempUsageDetail_20' ) start [2025-03-22 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735407', 'tblTempUsageDetail_20' ) end [2025-03-22 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735407', 'tblTempVendorCDR_20' ) start [2025-03-22 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735407', 'tblTempVendorCDR_20' ) end [2025-03-22 05:34:17] Production.INFO: ProcessCDR(1,14735407,1,1,2) [2025-03-22 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735407', 'tblTempUsageDetail_20' ) start [2025-03-22 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735407', 'tblTempUsageDetail_20' ) end [2025-03-22 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:34:21] Production.INFO: ==25660== Releasing lock... [2025-03-22 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:34:21] Production.INFO: 35 MB #Memory Used# [2025-03-22 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:35:05 [end_date_ymd] => 2025-03-22 05:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:35:05' and `end` < '2025-03-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-03-22 05:35:18] Production.INFO: count ==866 [2025-03-22 05:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:35:05 - End Time 2025-03-22 05:35:05 [2025-03-22 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735412', 'tblTempUsageDetail_20' ) start [2025-03-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735412', 'tblTempUsageDetail_20' ) end [2025-03-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735412', 'tblTempVendorCDR_20' ) start [2025-03-22 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735412', 'tblTempVendorCDR_20' ) end [2025-03-22 05:35:18] Production.INFO: ProcessCDR(1,14735412,1,1,2) [2025-03-22 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735412', 'tblTempUsageDetail_20' ) start [2025-03-22 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735412', 'tblTempUsageDetail_20' ) end [2025-03-22 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:35:21] Production.INFO: ==25732== Releasing lock... [2025-03-22 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:36:05 [end_date_ymd] => 2025-03-22 05:36:05 [RateCDR] => 1 ) [2025-03-22 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:36:05' and `end` < '2025-03-22 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:36:17] Production.INFO: count ==866 [2025-03-22 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:36:05 - End Time 2025-03-22 05:36:05 [2025-03-22 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735417', 'tblTempUsageDetail_20' ) start [2025-03-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735417', 'tblTempUsageDetail_20' ) end [2025-03-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735417', 'tblTempVendorCDR_20' ) start [2025-03-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735417', 'tblTempVendorCDR_20' ) end [2025-03-22 05:36:18] Production.INFO: ProcessCDR(1,14735417,1,1,2) [2025-03-22 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735417', 'tblTempUsageDetail_20' ) start [2025-03-22 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735417', 'tblTempUsageDetail_20' ) end [2025-03-22 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:36:21] Production.INFO: ==25804== Releasing lock... [2025-03-22 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:36:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:37:05 [end_date_ymd] => 2025-03-22 05:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:37:05' and `end` < '2025-03-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-03-22 05:37:17] Production.INFO: count ==865 [2025-03-22 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:37:05 - End Time 2025-03-22 05:37:05 [2025-03-22 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735422', 'tblTempUsageDetail_20' ) start [2025-03-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735422', 'tblTempUsageDetail_20' ) end [2025-03-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735422', 'tblTempVendorCDR_20' ) start [2025-03-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735422', 'tblTempVendorCDR_20' ) end [2025-03-22 05:37:17] Production.INFO: ProcessCDR(1,14735422,1,1,2) [2025-03-22 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735422', 'tblTempUsageDetail_20' ) start [2025-03-22 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735422', 'tblTempUsageDetail_20' ) end [2025-03-22 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:37:21] Production.INFO: ==25874== Releasing lock... [2025-03-22 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:38:05 [end_date_ymd] => 2025-03-22 05:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:38:05' and `end` < '2025-03-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-03-22 05:38:17] Production.INFO: count ==865 [2025-03-22 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:38:05 - End Time 2025-03-22 05:38:05 [2025-03-22 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735427', 'tblTempUsageDetail_20' ) start [2025-03-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735427', 'tblTempUsageDetail_20' ) end [2025-03-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735427', 'tblTempVendorCDR_20' ) start [2025-03-22 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735427', 'tblTempVendorCDR_20' ) end [2025-03-22 05:38:18] Production.INFO: ProcessCDR(1,14735427,1,1,2) [2025-03-22 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735427', 'tblTempUsageDetail_20' ) start [2025-03-22 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735427', 'tblTempUsageDetail_20' ) end [2025-03-22 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:38:21] Production.INFO: ==25950== Releasing lock... [2025-03-22 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:38:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:39:05 [end_date_ymd] => 2025-03-22 05:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:39:05' and `end` < '2025-03-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-03-22 05:39:18] Production.INFO: count ==866 [2025-03-22 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:39:05 - End Time 2025-03-22 05:39:05 [2025-03-22 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735432', 'tblTempUsageDetail_20' ) start [2025-03-22 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735432', 'tblTempUsageDetail_20' ) end [2025-03-22 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735432', 'tblTempVendorCDR_20' ) start [2025-03-22 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735432', 'tblTempVendorCDR_20' ) end [2025-03-22 05:39:18] Production.INFO: ProcessCDR(1,14735432,1,1,2) [2025-03-22 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735432', 'tblTempUsageDetail_20' ) start [2025-03-22 05:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735432', 'tblTempUsageDetail_20' ) end [2025-03-22 05:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:39:23] Production.INFO: ==26023== Releasing lock... [2025-03-22 05:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:39:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:40:05 [end_date_ymd] => 2025-03-22 05:40:05 [RateCDR] => 1 ) [2025-03-22 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:40:05' and `end` < '2025-03-22 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:40:17] Production.INFO: count ==866 [2025-03-22 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:40:05 - End Time 2025-03-22 05:40:05 [2025-03-22 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735437', 'tblTempUsageDetail_20' ) start [2025-03-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735437', 'tblTempUsageDetail_20' ) end [2025-03-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735437', 'tblTempVendorCDR_20' ) start [2025-03-22 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735437', 'tblTempVendorCDR_20' ) end [2025-03-22 05:40:18] Production.INFO: ProcessCDR(1,14735437,1,1,2) [2025-03-22 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735437', 'tblTempUsageDetail_20' ) start [2025-03-22 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735437', 'tblTempUsageDetail_20' ) end [2025-03-22 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:40:21] Production.INFO: ==26095== Releasing lock... [2025-03-22 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:40:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:41:05 [end_date_ymd] => 2025-03-22 05:41:05 [RateCDR] => 1 ) [2025-03-22 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:41:05' and `end` < '2025-03-22 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:41:18] Production.INFO: count ==862 [2025-03-22 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:41:05 - End Time 2025-03-22 05:41:05 [2025-03-22 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735443', 'tblTempUsageDetail_20' ) start [2025-03-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735443', 'tblTempUsageDetail_20' ) end [2025-03-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735443', 'tblTempVendorCDR_20' ) start [2025-03-22 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735443', 'tblTempVendorCDR_20' ) end [2025-03-22 05:41:18] Production.INFO: ProcessCDR(1,14735443,1,1,2) [2025-03-22 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735443', 'tblTempUsageDetail_20' ) start [2025-03-22 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735443', 'tblTempUsageDetail_20' ) end [2025-03-22 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:41:21] Production.INFO: ==26178== Releasing lock... [2025-03-22 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:42:04 [end_date_ymd] => 2025-03-22 05:42:04 [RateCDR] => 1 ) [2025-03-22 05: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-03-22 02:42:04' and `end` < '2025-03-22 05: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-03-22 05:42:17] Production.INFO: count ==862 [2025-03-22 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:42:04 - End Time 2025-03-22 05:42:04 [2025-03-22 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735448', 'tblTempUsageDetail_20' ) start [2025-03-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735448', 'tblTempUsageDetail_20' ) end [2025-03-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735448', 'tblTempVendorCDR_20' ) start [2025-03-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735448', 'tblTempVendorCDR_20' ) end [2025-03-22 05:42:17] Production.INFO: ProcessCDR(1,14735448,1,1,2) [2025-03-22 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735448', 'tblTempUsageDetail_20' ) start [2025-03-22 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735448', 'tblTempUsageDetail_20' ) end [2025-03-22 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:42:20] Production.INFO: ==26250== Releasing lock... [2025-03-22 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:42:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:43:05 [end_date_ymd] => 2025-03-22 05:43:05 [RateCDR] => 1 ) [2025-03-22 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:43:05' and `end` < '2025-03-22 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:43:17] Production.INFO: count ==862 [2025-03-22 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:43:05 - End Time 2025-03-22 05:43:05 [2025-03-22 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735453', 'tblTempUsageDetail_20' ) start [2025-03-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735453', 'tblTempUsageDetail_20' ) end [2025-03-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735453', 'tblTempVendorCDR_20' ) start [2025-03-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735453', 'tblTempVendorCDR_20' ) end [2025-03-22 05:43:17] Production.INFO: ProcessCDR(1,14735453,1,1,2) [2025-03-22 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735453', 'tblTempUsageDetail_20' ) start [2025-03-22 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735453', 'tblTempUsageDetail_20' ) end [2025-03-22 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:43:21] Production.INFO: ==26321== Releasing lock... [2025-03-22 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:43:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:44:05 [end_date_ymd] => 2025-03-22 05:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:44:05' and `end` < '2025-03-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-03-22 05:44:17] Production.INFO: count ==862 [2025-03-22 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:44:05 - End Time 2025-03-22 05:44:05 [2025-03-22 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735457', 'tblTempUsageDetail_20' ) start [2025-03-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735457', 'tblTempUsageDetail_20' ) end [2025-03-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735457', 'tblTempVendorCDR_20' ) start [2025-03-22 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735457', 'tblTempVendorCDR_20' ) end [2025-03-22 05:44:17] Production.INFO: ProcessCDR(1,14735457,1,1,2) [2025-03-22 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735457', 'tblTempUsageDetail_20' ) start [2025-03-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735457', 'tblTempUsageDetail_20' ) end [2025-03-22 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:44:21] Production.INFO: ==26394== Releasing lock... [2025-03-22 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:44:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:45:05 [end_date_ymd] => 2025-03-22 05:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:45:05' and `end` < '2025-03-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-03-22 05:45:17] Production.INFO: count ==859 [2025-03-22 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:45:05 - End Time 2025-03-22 05:45:05 [2025-03-22 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735463', 'tblTempUsageDetail_20' ) start [2025-03-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735463', 'tblTempUsageDetail_20' ) end [2025-03-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735463', 'tblTempVendorCDR_20' ) start [2025-03-22 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735463', 'tblTempVendorCDR_20' ) end [2025-03-22 05:45:18] Production.INFO: ProcessCDR(1,14735463,1,1,2) [2025-03-22 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735463', 'tblTempUsageDetail_20' ) start [2025-03-22 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735463', 'tblTempUsageDetail_20' ) end [2025-03-22 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:45:21] Production.INFO: ==26467== Releasing lock... [2025-03-22 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:45:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:46:05 [end_date_ymd] => 2025-03-22 05:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:46:05' and `end` < '2025-03-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-03-22 05:46:17] Production.INFO: count ==842 [2025-03-22 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:46:05 - End Time 2025-03-22 05:46:05 [2025-03-22 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735468', 'tblTempUsageDetail_20' ) start [2025-03-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735468', 'tblTempUsageDetail_20' ) end [2025-03-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735468', 'tblTempVendorCDR_20' ) start [2025-03-22 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735468', 'tblTempVendorCDR_20' ) end [2025-03-22 05:46:18] Production.INFO: ProcessCDR(1,14735468,1,1,2) [2025-03-22 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735468', 'tblTempUsageDetail_20' ) start [2025-03-22 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735468', 'tblTempUsageDetail_20' ) end [2025-03-22 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:46:21] Production.INFO: ==26540== Releasing lock... [2025-03-22 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:46:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:47:05 [end_date_ymd] => 2025-03-22 05:47:05 [RateCDR] => 1 ) [2025-03-22 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:47:05' and `end` < '2025-03-22 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:47:17] Production.INFO: count ==837 [2025-03-22 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:47:05 - End Time 2025-03-22 05:47:05 [2025-03-22 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735473', 'tblTempUsageDetail_20' ) start [2025-03-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735473', 'tblTempUsageDetail_20' ) end [2025-03-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735473', 'tblTempVendorCDR_20' ) start [2025-03-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735473', 'tblTempVendorCDR_20' ) end [2025-03-22 05:47:18] Production.INFO: ProcessCDR(1,14735473,1,1,2) [2025-03-22 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735473', 'tblTempUsageDetail_20' ) start [2025-03-22 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735473', 'tblTempUsageDetail_20' ) end [2025-03-22 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:47:22] Production.INFO: ==26610== Releasing lock... [2025-03-22 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:47:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:48:05 [end_date_ymd] => 2025-03-22 05:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:48:05' and `end` < '2025-03-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-03-22 05:48:17] Production.INFO: count ==828 [2025-03-22 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:48:05 - End Time 2025-03-22 05:48:05 [2025-03-22 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735478', 'tblTempUsageDetail_20' ) start [2025-03-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735478', 'tblTempUsageDetail_20' ) end [2025-03-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735478', 'tblTempVendorCDR_20' ) start [2025-03-22 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735478', 'tblTempVendorCDR_20' ) end [2025-03-22 05:48:17] Production.INFO: ProcessCDR(1,14735478,1,1,2) [2025-03-22 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735478', 'tblTempUsageDetail_20' ) start [2025-03-22 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735478', 'tblTempUsageDetail_20' ) end [2025-03-22 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:48:21] Production.INFO: ==26723== Releasing lock... [2025-03-22 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:48:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:49:05 [end_date_ymd] => 2025-03-22 05:49:05 [RateCDR] => 1 ) [2025-03-22 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:49:05' and `end` < '2025-03-22 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:49:17] Production.INFO: count ==828 [2025-03-22 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:49:05 - End Time 2025-03-22 05:49:05 [2025-03-22 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735483', 'tblTempUsageDetail_20' ) start [2025-03-22 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735483', 'tblTempUsageDetail_20' ) end [2025-03-22 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735483', 'tblTempVendorCDR_20' ) start [2025-03-22 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735483', 'tblTempVendorCDR_20' ) end [2025-03-22 05:49:17] Production.INFO: ProcessCDR(1,14735483,1,1,2) [2025-03-22 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735483', 'tblTempUsageDetail_20' ) start [2025-03-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735483', 'tblTempUsageDetail_20' ) end [2025-03-22 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:49:21] Production.INFO: ==26796== Releasing lock... [2025-03-22 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:50:05 [end_date_ymd] => 2025-03-22 05:50:05 [RateCDR] => 1 ) [2025-03-22 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:50:05' and `end` < '2025-03-22 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:50:18] Production.INFO: count ==816 [2025-03-22 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:50:05 - End Time 2025-03-22 05:50:05 [2025-03-22 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735489', 'tblTempUsageDetail_20' ) start [2025-03-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735489', 'tblTempUsageDetail_20' ) end [2025-03-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735489', 'tblTempVendorCDR_20' ) start [2025-03-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735489', 'tblTempVendorCDR_20' ) end [2025-03-22 05:50:18] Production.INFO: ProcessCDR(1,14735489,1,1,2) [2025-03-22 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735489', 'tblTempUsageDetail_20' ) start [2025-03-22 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735489', 'tblTempUsageDetail_20' ) end [2025-03-22 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:50:22] Production.INFO: ==26870== Releasing lock... [2025-03-22 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:51:04 [end_date_ymd] => 2025-03-22 05:51:04 [RateCDR] => 1 ) [2025-03-22 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:51:04' and `end` < '2025-03-22 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:51:17] Production.INFO: count ==816 [2025-03-22 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:51:04 - End Time 2025-03-22 05:51:04 [2025-03-22 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735494', 'tblTempUsageDetail_20' ) start [2025-03-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735494', 'tblTempUsageDetail_20' ) end [2025-03-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735494', 'tblTempVendorCDR_20' ) start [2025-03-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735494', 'tblTempVendorCDR_20' ) end [2025-03-22 05:51:17] Production.INFO: ProcessCDR(1,14735494,1,1,2) [2025-03-22 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735494', 'tblTempUsageDetail_20' ) start [2025-03-22 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735494', 'tblTempUsageDetail_20' ) end [2025-03-22 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:51:20] Production.INFO: ==26946== Releasing lock... [2025-03-22 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:51:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:52:05 [end_date_ymd] => 2025-03-22 05:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:52:05' and `end` < '2025-03-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-03-22 05:52:17] Production.INFO: count ==816 [2025-03-22 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:52:05 - End Time 2025-03-22 05:52:05 [2025-03-22 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735499', 'tblTempUsageDetail_20' ) start [2025-03-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735499', 'tblTempUsageDetail_20' ) end [2025-03-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735499', 'tblTempVendorCDR_20' ) start [2025-03-22 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735499', 'tblTempVendorCDR_20' ) end [2025-03-22 05:52:18] Production.INFO: ProcessCDR(1,14735499,1,1,2) [2025-03-22 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735499', 'tblTempUsageDetail_20' ) start [2025-03-22 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735499', 'tblTempUsageDetail_20' ) end [2025-03-22 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:52:21] Production.INFO: ==27018== Releasing lock... [2025-03-22 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:52:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:53:05 [end_date_ymd] => 2025-03-22 05:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:53:05' and `end` < '2025-03-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-03-22 05:53:18] Production.INFO: count ==815 [2025-03-22 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:53:05 - End Time 2025-03-22 05:53:05 [2025-03-22 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735504', 'tblTempUsageDetail_20' ) start [2025-03-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735504', 'tblTempUsageDetail_20' ) end [2025-03-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735504', 'tblTempVendorCDR_20' ) start [2025-03-22 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735504', 'tblTempVendorCDR_20' ) end [2025-03-22 05:53:18] Production.INFO: ProcessCDR(1,14735504,1,1,2) [2025-03-22 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735504', 'tblTempUsageDetail_20' ) start [2025-03-22 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735504', 'tblTempUsageDetail_20' ) end [2025-03-22 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:53:23] Production.INFO: ==27090== Releasing lock... [2025-03-22 05:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:53:23] Production.INFO: 34 MB #Memory Used# [2025-03-22 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:54:05 [end_date_ymd] => 2025-03-22 05:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:54:05' and `end` < '2025-03-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-03-22 05:54:17] Production.INFO: count ==807 [2025-03-22 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:54:05 - End Time 2025-03-22 05:54:05 [2025-03-22 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735509', 'tblTempUsageDetail_20' ) start [2025-03-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735509', 'tblTempUsageDetail_20' ) end [2025-03-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735509', 'tblTempVendorCDR_20' ) start [2025-03-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735509', 'tblTempVendorCDR_20' ) end [2025-03-22 05:54:17] Production.INFO: ProcessCDR(1,14735509,1,1,2) [2025-03-22 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735509', 'tblTempUsageDetail_20' ) start [2025-03-22 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735509', 'tblTempUsageDetail_20' ) end [2025-03-22 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:54:21] Production.INFO: ==27161== Releasing lock... [2025-03-22 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:54:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:55:06 [end_date_ymd] => 2025-03-22 05:55:06 [RateCDR] => 1 ) [2025-03-22 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 02:55:06' and `end` < '2025-03-22 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 05:55:18] Production.INFO: count ==803 [2025-03-22 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:55:06 - End Time 2025-03-22 05:55:06 [2025-03-22 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735514', 'tblTempUsageDetail_20' ) start [2025-03-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735514', 'tblTempUsageDetail_20' ) end [2025-03-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735514', 'tblTempVendorCDR_20' ) start [2025-03-22 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735514', 'tblTempVendorCDR_20' ) end [2025-03-22 05:55:18] Production.INFO: ProcessCDR(1,14735514,1,1,2) [2025-03-22 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735514', 'tblTempUsageDetail_20' ) start [2025-03-22 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735514', 'tblTempUsageDetail_20' ) end [2025-03-22 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:55:22] Production.INFO: ==27234== Releasing lock... [2025-03-22 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:55:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:56:05 [end_date_ymd] => 2025-03-22 05:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:56:05' and `end` < '2025-03-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-03-22 05:56:17] Production.INFO: count ==801 [2025-03-22 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:56:05 - End Time 2025-03-22 05:56:05 [2025-03-22 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735519', 'tblTempUsageDetail_20' ) start [2025-03-22 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735519', 'tblTempUsageDetail_20' ) end [2025-03-22 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735519', 'tblTempVendorCDR_20' ) start [2025-03-22 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735519', 'tblTempVendorCDR_20' ) end [2025-03-22 05:56:17] Production.INFO: ProcessCDR(1,14735519,1,1,2) [2025-03-22 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735519', 'tblTempUsageDetail_20' ) start [2025-03-22 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735519', 'tblTempUsageDetail_20' ) end [2025-03-22 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:56:21] Production.INFO: ==27306== Releasing lock... [2025-03-22 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:56:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:57:05 [end_date_ymd] => 2025-03-22 05:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:57:05' and `end` < '2025-03-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-03-22 05:57:17] Production.INFO: count ==800 [2025-03-22 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:57:05 - End Time 2025-03-22 05:57:05 [2025-03-22 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735524', 'tblTempUsageDetail_20' ) start [2025-03-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735524', 'tblTempUsageDetail_20' ) end [2025-03-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735524', 'tblTempVendorCDR_20' ) start [2025-03-22 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735524', 'tblTempVendorCDR_20' ) end [2025-03-22 05:57:17] Production.INFO: ProcessCDR(1,14735524,1,1,2) [2025-03-22 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735524', 'tblTempUsageDetail_20' ) start [2025-03-22 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735524', 'tblTempUsageDetail_20' ) end [2025-03-22 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:57:21] Production.INFO: ==27383== Releasing lock... [2025-03-22 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:58:05 [end_date_ymd] => 2025-03-22 05:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:58:05' and `end` < '2025-03-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-03-22 05:58:17] Production.INFO: count ==798 [2025-03-22 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-22 02:58:05 - End Time 2025-03-22 05:58:05 [2025-03-22 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735529', 'tblTempUsageDetail_20' ) start [2025-03-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735529', 'tblTempUsageDetail_20' ) end [2025-03-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735529', 'tblTempVendorCDR_20' ) start [2025-03-22 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735529', 'tblTempVendorCDR_20' ) end [2025-03-22 05:58:18] Production.INFO: ProcessCDR(1,14735529,1,1,2) [2025-03-22 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735529', 'tblTempUsageDetail_20' ) start [2025-03-22 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735529', 'tblTempUsageDetail_20' ) end [2025-03-22 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:58:21] Production.INFO: ==27454== Releasing lock... [2025-03-22 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 02:59:05 [end_date_ymd] => 2025-03-22 05:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 02:59:05' and `end` < '2025-03-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-03-22 05:59:17] Production.INFO: count ==785 [2025-03-22 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 02:59:05 - End Time 2025-03-22 05:59:05 [2025-03-22 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735534', 'tblTempUsageDetail_20' ) start [2025-03-22 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735534', 'tblTempUsageDetail_20' ) end [2025-03-22 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735534', 'tblTempVendorCDR_20' ) start [2025-03-22 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735534', 'tblTempVendorCDR_20' ) end [2025-03-22 05:59:18] Production.INFO: ProcessCDR(1,14735534,1,1,2) [2025-03-22 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735534', 'tblTempUsageDetail_20' ) start [2025-03-22 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735534', 'tblTempUsageDetail_20' ) end [2025-03-22 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 05:59:21] Production.INFO: ==27527== Releasing lock... [2025-03-22 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 05:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:00:06 [end_date_ymd] => 2025-03-22 06:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 03:00:06' and `end` < '2025-03-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-03-22 06:00:19] Production.INFO: count ==763 [2025-03-22 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 03:00:06 - End Time 2025-03-22 06:00:06 [2025-03-22 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735539', 'tblTempUsageDetail_20' ) start [2025-03-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735539', 'tblTempUsageDetail_20' ) end [2025-03-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735539', 'tblTempVendorCDR_20' ) start [2025-03-22 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735539', 'tblTempVendorCDR_20' ) end [2025-03-22 06:00:19] Production.INFO: ProcessCDR(1,14735539,1,1,2) [2025-03-22 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735539', 'tblTempUsageDetail_20' ) start [2025-03-22 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735539', 'tblTempUsageDetail_20' ) end [2025-03-22 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:00:22] Production.INFO: ==27605== Releasing lock... [2025-03-22 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:00:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:01:05 [end_date_ymd] => 2025-03-22 06:01:05 [RateCDR] => 1 ) [2025-03-22 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:01:05' and `end` < '2025-03-22 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:01:17] Production.INFO: count ==736 [2025-03-22 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:01:05 - End Time 2025-03-22 06:01:05 [2025-03-22 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735545', 'tblTempUsageDetail_20' ) start [2025-03-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735545', 'tblTempUsageDetail_20' ) end [2025-03-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735545', 'tblTempVendorCDR_20' ) start [2025-03-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735545', 'tblTempVendorCDR_20' ) end [2025-03-22 06:01:18] Production.INFO: ProcessCDR(1,14735545,1,1,2) [2025-03-22 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735545', 'tblTempUsageDetail_20' ) start [2025-03-22 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735545', 'tblTempUsageDetail_20' ) end [2025-03-22 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:01:21] Production.INFO: ==27692== Releasing lock... [2025-03-22 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:02:06 [end_date_ymd] => 2025-03-22 06:02:06 [RateCDR] => 1 ) [2025-03-22 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:02:06' and `end` < '2025-03-22 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:02:18] Production.INFO: count ==731 [2025-03-22 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:02:06 - End Time 2025-03-22 06:02:06 [2025-03-22 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735550', 'tblTempUsageDetail_20' ) start [2025-03-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735550', 'tblTempUsageDetail_20' ) end [2025-03-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735550', 'tblTempVendorCDR_20' ) start [2025-03-22 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735550', 'tblTempVendorCDR_20' ) end [2025-03-22 06:02:18] Production.INFO: ProcessCDR(1,14735550,1,1,2) [2025-03-22 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735550', 'tblTempUsageDetail_20' ) start [2025-03-22 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735550', 'tblTempUsageDetail_20' ) end [2025-03-22 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:02:22] Production.INFO: ==27775== Releasing lock... [2025-03-22 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:02:22] Production.INFO: 34 MB #Memory Used# [2025-03-22 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:03:05 [end_date_ymd] => 2025-03-22 06:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:03:05' and `end` < '2025-03-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-03-22 06:03:17] Production.INFO: count ==721 [2025-03-22 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:03:05 - End Time 2025-03-22 06:03:05 [2025-03-22 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735555', 'tblTempUsageDetail_20' ) start [2025-03-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735555', 'tblTempUsageDetail_20' ) end [2025-03-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735555', 'tblTempVendorCDR_20' ) start [2025-03-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735555', 'tblTempVendorCDR_20' ) end [2025-03-22 06:03:18] Production.INFO: ProcessCDR(1,14735555,1,1,2) [2025-03-22 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735555', 'tblTempUsageDetail_20' ) start [2025-03-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735555', 'tblTempUsageDetail_20' ) end [2025-03-22 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:03:21] Production.INFO: ==27886== Releasing lock... [2025-03-22 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:04:05 [end_date_ymd] => 2025-03-22 06:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:04:05' and `end` < '2025-03-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-03-22 06:04:17] Production.INFO: count ==709 [2025-03-22 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:04:05 - End Time 2025-03-22 06:04:05 [2025-03-22 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735560', 'tblTempUsageDetail_20' ) start [2025-03-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735560', 'tblTempUsageDetail_20' ) end [2025-03-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735560', 'tblTempVendorCDR_20' ) start [2025-03-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735560', 'tblTempVendorCDR_20' ) end [2025-03-22 06:04:18] Production.INFO: ProcessCDR(1,14735560,1,1,2) [2025-03-22 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735560', 'tblTempUsageDetail_20' ) start [2025-03-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735560', 'tblTempUsageDetail_20' ) end [2025-03-22 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:04:21] Production.INFO: ==27960== Releasing lock... [2025-03-22 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:05:05 [end_date_ymd] => 2025-03-22 06:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:05:05' and `end` < '2025-03-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-03-22 06:05:17] Production.INFO: count ==700 [2025-03-22 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:05:05 - End Time 2025-03-22 06:05:05 [2025-03-22 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735565', 'tblTempUsageDetail_20' ) start [2025-03-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735565', 'tblTempUsageDetail_20' ) end [2025-03-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735565', 'tblTempVendorCDR_20' ) start [2025-03-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735565', 'tblTempVendorCDR_20' ) end [2025-03-22 06:05:17] Production.INFO: ProcessCDR(1,14735565,1,1,2) [2025-03-22 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735565', 'tblTempUsageDetail_20' ) start [2025-03-22 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735565', 'tblTempUsageDetail_20' ) end [2025-03-22 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:05:20] Production.INFO: ==28032== Releasing lock... [2025-03-22 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:05:20] Production.INFO: 34 MB #Memory Used# [2025-03-22 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:06:06 [end_date_ymd] => 2025-03-22 06:06:06 [RateCDR] => 1 ) [2025-03-22 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:06:06' and `end` < '2025-03-22 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:06:18] Production.INFO: count ==690 [2025-03-22 06:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 03:06:06 - End Time 2025-03-22 06:06:06 [2025-03-22 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735570', 'tblTempUsageDetail_20' ) start [2025-03-22 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735570', 'tblTempUsageDetail_20' ) end [2025-03-22 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735570', 'tblTempVendorCDR_20' ) start [2025-03-22 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735570', 'tblTempVendorCDR_20' ) end [2025-03-22 06:06:19] Production.INFO: ProcessCDR(1,14735570,1,1,2) [2025-03-22 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735570', 'tblTempUsageDetail_20' ) start [2025-03-22 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735570', 'tblTempUsageDetail_20' ) end [2025-03-22 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:06:22] Production.INFO: ==28106== Releasing lock... [2025-03-22 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:07:05 [end_date_ymd] => 2025-03-22 06:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:07:05' and `end` < '2025-03-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-03-22 06:07:17] Production.INFO: count ==684 [2025-03-22 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:07:05 - End Time 2025-03-22 06:07:05 [2025-03-22 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735575', 'tblTempUsageDetail_20' ) start [2025-03-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735575', 'tblTempUsageDetail_20' ) end [2025-03-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735575', 'tblTempVendorCDR_20' ) start [2025-03-22 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735575', 'tblTempVendorCDR_20' ) end [2025-03-22 06:07:17] Production.INFO: ProcessCDR(1,14735575,1,1,2) [2025-03-22 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735575', 'tblTempUsageDetail_20' ) start [2025-03-22 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735575', 'tblTempUsageDetail_20' ) end [2025-03-22 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:07:21] Production.INFO: ==28180== Releasing lock... [2025-03-22 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:08:06 [end_date_ymd] => 2025-03-22 06:08:06 [RateCDR] => 1 ) [2025-03-22 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:08:06' and `end` < '2025-03-22 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:08:18] Production.INFO: count ==684 [2025-03-22 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:08:06 - End Time 2025-03-22 06:08:06 [2025-03-22 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735580', 'tblTempUsageDetail_20' ) start [2025-03-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735580', 'tblTempUsageDetail_20' ) end [2025-03-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735580', 'tblTempVendorCDR_20' ) start [2025-03-22 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735580', 'tblTempVendorCDR_20' ) end [2025-03-22 06:08:18] Production.INFO: ProcessCDR(1,14735580,1,1,2) [2025-03-22 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735580', 'tblTempUsageDetail_20' ) start [2025-03-22 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735580', 'tblTempUsageDetail_20' ) end [2025-03-22 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:08:21] Production.INFO: ==28257== Releasing lock... [2025-03-22 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:09:04 [end_date_ymd] => 2025-03-22 06:09:04 [RateCDR] => 1 ) [2025-03-22 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:09:04' and `end` < '2025-03-22 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:09:17] Production.INFO: count ==673 [2025-03-22 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:09:04 - End Time 2025-03-22 06:09:04 [2025-03-22 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735585', 'tblTempUsageDetail_20' ) start [2025-03-22 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735585', 'tblTempUsageDetail_20' ) end [2025-03-22 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735585', 'tblTempVendorCDR_20' ) start [2025-03-22 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735585', 'tblTempVendorCDR_20' ) end [2025-03-22 06:09:17] Production.INFO: ProcessCDR(1,14735585,1,1,2) [2025-03-22 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735585', 'tblTempUsageDetail_20' ) start [2025-03-22 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735585', 'tblTempUsageDetail_20' ) end [2025-03-22 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:09:20] Production.INFO: ==28328== Releasing lock... [2025-03-22 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:09:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:10:06 [end_date_ymd] => 2025-03-22 06:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 03:10:06' and `end` < '2025-03-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-03-22 06:10:18] Production.INFO: count ==655 [2025-03-22 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:10:06 - End Time 2025-03-22 06:10:06 [2025-03-22 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735591', 'tblTempUsageDetail_20' ) start [2025-03-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735591', 'tblTempUsageDetail_20' ) end [2025-03-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735591', 'tblTempVendorCDR_20' ) start [2025-03-22 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735591', 'tblTempVendorCDR_20' ) end [2025-03-22 06:10:19] Production.INFO: ProcessCDR(1,14735591,1,1,2) [2025-03-22 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735591', 'tblTempUsageDetail_20' ) start [2025-03-22 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735591', 'tblTempUsageDetail_20' ) end [2025-03-22 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:10:22] Production.INFO: ==28402== Releasing lock... [2025-03-22 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:11:04 [end_date_ymd] => 2025-03-22 06:11:04 [RateCDR] => 1 ) [2025-03-22 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:11:04' and `end` < '2025-03-22 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:11:17] Production.INFO: count ==650 [2025-03-22 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:11:04 - End Time 2025-03-22 06:11:04 [2025-03-22 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735596', 'tblTempUsageDetail_20' ) start [2025-03-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735596', 'tblTempUsageDetail_20' ) end [2025-03-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735596', 'tblTempVendorCDR_20' ) start [2025-03-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735596', 'tblTempVendorCDR_20' ) end [2025-03-22 06:11:17] Production.INFO: ProcessCDR(1,14735596,1,1,2) [2025-03-22 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735596', 'tblTempUsageDetail_20' ) start [2025-03-22 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735596', 'tblTempUsageDetail_20' ) end [2025-03-22 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:11:20] Production.INFO: ==28478== Releasing lock... [2025-03-22 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:11:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:12:05 [end_date_ymd] => 2025-03-22 06:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:12:05' and `end` < '2025-03-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-03-22 06:12:17] Production.INFO: count ==638 [2025-03-22 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:12:05 - End Time 2025-03-22 06:12:05 [2025-03-22 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735601', 'tblTempUsageDetail_20' ) start [2025-03-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735601', 'tblTempUsageDetail_20' ) end [2025-03-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735601', 'tblTempVendorCDR_20' ) start [2025-03-22 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735601', 'tblTempVendorCDR_20' ) end [2025-03-22 06:12:18] Production.INFO: ProcessCDR(1,14735601,1,1,2) [2025-03-22 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735601', 'tblTempUsageDetail_20' ) start [2025-03-22 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735601', 'tblTempUsageDetail_20' ) end [2025-03-22 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:12:21] Production.INFO: ==28548== Releasing lock... [2025-03-22 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:13:05 [end_date_ymd] => 2025-03-22 06:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:13:05' and `end` < '2025-03-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-03-22 06:13:17] Production.INFO: count ==622 [2025-03-22 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:13:05 - End Time 2025-03-22 06:13:05 [2025-03-22 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735606', 'tblTempUsageDetail_20' ) start [2025-03-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735606', 'tblTempUsageDetail_20' ) end [2025-03-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735606', 'tblTempVendorCDR_20' ) start [2025-03-22 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735606', 'tblTempVendorCDR_20' ) end [2025-03-22 06:13:17] Production.INFO: ProcessCDR(1,14735606,1,1,2) [2025-03-22 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735606', 'tblTempUsageDetail_20' ) start [2025-03-22 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735606', 'tblTempUsageDetail_20' ) end [2025-03-22 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:13:21] Production.INFO: ==28620== Releasing lock... [2025-03-22 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:14:06 [end_date_ymd] => 2025-03-22 06:14:06 [RateCDR] => 1 ) [2025-03-22 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:14:06' and `end` < '2025-03-22 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:14:18] Production.INFO: count ==618 [2025-03-22 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:14:06 - End Time 2025-03-22 06:14:06 [2025-03-22 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735611', 'tblTempUsageDetail_20' ) start [2025-03-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735611', 'tblTempUsageDetail_20' ) end [2025-03-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735611', 'tblTempVendorCDR_20' ) start [2025-03-22 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735611', 'tblTempVendorCDR_20' ) end [2025-03-22 06:14:18] Production.INFO: ProcessCDR(1,14735611,1,1,2) [2025-03-22 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735611', 'tblTempUsageDetail_20' ) start [2025-03-22 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735611', 'tblTempUsageDetail_20' ) end [2025-03-22 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:14:22] Production.INFO: ==28695== Releasing lock... [2025-03-22 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:14:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:15:06 [end_date_ymd] => 2025-03-22 06:15:06 [RateCDR] => 1 ) [2025-03-22 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:15:06' and `end` < '2025-03-22 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:15:18] Production.INFO: count ==615 [2025-03-22 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:15:06 - End Time 2025-03-22 06:15:06 [2025-03-22 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735616', 'tblTempUsageDetail_20' ) start [2025-03-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735616', 'tblTempUsageDetail_20' ) end [2025-03-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735616', 'tblTempVendorCDR_20' ) start [2025-03-22 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735616', 'tblTempVendorCDR_20' ) end [2025-03-22 06:15:18] Production.INFO: ProcessCDR(1,14735616,1,1,2) [2025-03-22 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735616', 'tblTempUsageDetail_20' ) start [2025-03-22 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735616', 'tblTempUsageDetail_20' ) end [2025-03-22 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:15:21] Production.INFO: ==28768== Releasing lock... [2025-03-22 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:16:05 [end_date_ymd] => 2025-03-22 06:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:16:05' and `end` < '2025-03-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-03-22 06:16:17] Production.INFO: count ==606 [2025-03-22 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:16:05 - End Time 2025-03-22 06:16:05 [2025-03-22 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735621', 'tblTempUsageDetail_20' ) start [2025-03-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735621', 'tblTempUsageDetail_20' ) end [2025-03-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735621', 'tblTempVendorCDR_20' ) start [2025-03-22 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735621', 'tblTempVendorCDR_20' ) end [2025-03-22 06:16:18] Production.INFO: ProcessCDR(1,14735621,1,1,2) [2025-03-22 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735621', 'tblTempUsageDetail_20' ) start [2025-03-22 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735621', 'tblTempUsageDetail_20' ) end [2025-03-22 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:16:21] Production.INFO: ==28839== Releasing lock... [2025-03-22 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:17:06 [end_date_ymd] => 2025-03-22 06:17:06 [RateCDR] => 1 ) [2025-03-22 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:17:06' and `end` < '2025-03-22 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:17:18] Production.INFO: count ==600 [2025-03-22 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:17:06 - End Time 2025-03-22 06:17:06 [2025-03-22 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735626', 'tblTempUsageDetail_20' ) start [2025-03-22 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735626', 'tblTempUsageDetail_20' ) end [2025-03-22 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735626', 'tblTempVendorCDR_20' ) start [2025-03-22 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735626', 'tblTempVendorCDR_20' ) end [2025-03-22 06:17:18] Production.INFO: ProcessCDR(1,14735626,1,1,2) [2025-03-22 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735626', 'tblTempUsageDetail_20' ) start [2025-03-22 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735626', 'tblTempUsageDetail_20' ) end [2025-03-22 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:17:22] Production.INFO: ==28913== Releasing lock... [2025-03-22 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:18:04 [end_date_ymd] => 2025-03-22 06:18:04 [RateCDR] => 1 ) [2025-03-22 06: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-03-22 03:18:04' and `end` < '2025-03-22 06: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-03-22 06:18:17] Production.INFO: count ==598 [2025-03-22 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:18:04 - End Time 2025-03-22 06:18:04 [2025-03-22 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735631', 'tblTempUsageDetail_20' ) start [2025-03-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735631', 'tblTempUsageDetail_20' ) end [2025-03-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735631', 'tblTempVendorCDR_20' ) start [2025-03-22 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735631', 'tblTempVendorCDR_20' ) end [2025-03-22 06:18:17] Production.INFO: ProcessCDR(1,14735631,1,1,2) [2025-03-22 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735631', 'tblTempUsageDetail_20' ) start [2025-03-22 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735631', 'tblTempUsageDetail_20' ) end [2025-03-22 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:18:20] Production.INFO: ==29023== Releasing lock... [2025-03-22 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:18:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:19:05 [end_date_ymd] => 2025-03-22 06:19:05 [RateCDR] => 1 ) [2025-03-22 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:19:05' and `end` < '2025-03-22 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:19:17] Production.INFO: count ==587 [2025-03-22 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:19:05 - End Time 2025-03-22 06:19:05 [2025-03-22 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735636', 'tblTempUsageDetail_20' ) start [2025-03-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735636', 'tblTempUsageDetail_20' ) end [2025-03-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735636', 'tblTempVendorCDR_20' ) start [2025-03-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735636', 'tblTempVendorCDR_20' ) end [2025-03-22 06:19:17] Production.INFO: ProcessCDR(1,14735636,1,1,2) [2025-03-22 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735636', 'tblTempUsageDetail_20' ) start [2025-03-22 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735636', 'tblTempUsageDetail_20' ) end [2025-03-22 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:19:21] Production.INFO: ==29093== Releasing lock... [2025-03-22 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:19:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:20:06 [end_date_ymd] => 2025-03-22 06:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 03:20:06' and `end` < '2025-03-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-03-22 06:20:18] Production.INFO: count ==566 [2025-03-22 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:20:06 - End Time 2025-03-22 06:20:06 [2025-03-22 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735642', 'tblTempUsageDetail_20' ) start [2025-03-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735642', 'tblTempUsageDetail_20' ) end [2025-03-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735642', 'tblTempVendorCDR_20' ) start [2025-03-22 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735642', 'tblTempVendorCDR_20' ) end [2025-03-22 06:20:18] Production.INFO: ProcessCDR(1,14735642,1,1,2) [2025-03-22 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735642', 'tblTempUsageDetail_20' ) start [2025-03-22 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735642', 'tblTempUsageDetail_20' ) end [2025-03-22 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:20:22] Production.INFO: ==29175== Releasing lock... [2025-03-22 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:21:05 [end_date_ymd] => 2025-03-22 06:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:21:05' and `end` < '2025-03-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-03-22 06:21:18] Production.INFO: count ==541 [2025-03-22 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:21:05 - End Time 2025-03-22 06:21:05 [2025-03-22 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735647', 'tblTempUsageDetail_20' ) start [2025-03-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735647', 'tblTempUsageDetail_20' ) end [2025-03-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735647', 'tblTempVendorCDR_20' ) start [2025-03-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735647', 'tblTempVendorCDR_20' ) end [2025-03-22 06:21:18] Production.INFO: ProcessCDR(1,14735647,1,1,2) [2025-03-22 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735647', 'tblTempUsageDetail_20' ) start [2025-03-22 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735647', 'tblTempUsageDetail_20' ) end [2025-03-22 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:21:21] Production.INFO: ==29259== Releasing lock... [2025-03-22 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:22:05 [end_date_ymd] => 2025-03-22 06:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:22:05' and `end` < '2025-03-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-03-22 06:22:17] Production.INFO: count ==538 [2025-03-22 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:22:05 - End Time 2025-03-22 06:22:05 [2025-03-22 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735652', 'tblTempUsageDetail_20' ) start [2025-03-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735652', 'tblTempUsageDetail_20' ) end [2025-03-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735652', 'tblTempVendorCDR_20' ) start [2025-03-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735652', 'tblTempVendorCDR_20' ) end [2025-03-22 06:22:17] Production.INFO: ProcessCDR(1,14735652,1,1,2) [2025-03-22 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735652', 'tblTempUsageDetail_20' ) start [2025-03-22 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735652', 'tblTempUsageDetail_20' ) end [2025-03-22 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:22:21] Production.INFO: ==29328== Releasing lock... [2025-03-22 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:23:05 [end_date_ymd] => 2025-03-22 06:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:23:05' and `end` < '2025-03-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-03-22 06:23:18] Production.INFO: count ==542 [2025-03-22 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:23:05 - End Time 2025-03-22 06:23:05 [2025-03-22 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735657', 'tblTempUsageDetail_20' ) start [2025-03-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735657', 'tblTempUsageDetail_20' ) end [2025-03-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735657', 'tblTempVendorCDR_20' ) start [2025-03-22 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735657', 'tblTempVendorCDR_20' ) end [2025-03-22 06:23:18] Production.INFO: ProcessCDR(1,14735657,1,1,2) [2025-03-22 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735657', 'tblTempUsageDetail_20' ) start [2025-03-22 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735657', 'tblTempUsageDetail_20' ) end [2025-03-22 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:23:21] Production.INFO: ==29403== Releasing lock... [2025-03-22 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:24:05 [end_date_ymd] => 2025-03-22 06:24:05 [RateCDR] => 1 ) [2025-03-22 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:24:05' and `end` < '2025-03-22 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:24:17] Production.INFO: count ==542 [2025-03-22 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:24:05 - End Time 2025-03-22 06:24:05 [2025-03-22 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735662', 'tblTempUsageDetail_20' ) start [2025-03-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735662', 'tblTempUsageDetail_20' ) end [2025-03-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735662', 'tblTempVendorCDR_20' ) start [2025-03-22 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735662', 'tblTempVendorCDR_20' ) end [2025-03-22 06:24:17] Production.INFO: ProcessCDR(1,14735662,1,1,2) [2025-03-22 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735662', 'tblTempUsageDetail_20' ) start [2025-03-22 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735662', 'tblTempUsageDetail_20' ) end [2025-03-22 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:24:20] Production.INFO: ==29475== Releasing lock... [2025-03-22 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:24:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:25:05 [end_date_ymd] => 2025-03-22 06:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:25:05' and `end` < '2025-03-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-03-22 06:25:17] Production.INFO: count ==535 [2025-03-22 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:25:05 - End Time 2025-03-22 06:25:05 [2025-03-22 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735667', 'tblTempUsageDetail_20' ) start [2025-03-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735667', 'tblTempUsageDetail_20' ) end [2025-03-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735667', 'tblTempVendorCDR_20' ) start [2025-03-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735667', 'tblTempVendorCDR_20' ) end [2025-03-22 06:25:17] Production.INFO: ProcessCDR(1,14735667,1,1,2) [2025-03-22 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735667', 'tblTempUsageDetail_20' ) start [2025-03-22 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735667', 'tblTempUsageDetail_20' ) end [2025-03-22 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:25:20] Production.INFO: ==29545== Releasing lock... [2025-03-22 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:25:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:26:05 [end_date_ymd] => 2025-03-22 06:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:26:05' and `end` < '2025-03-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-03-22 06:26:17] Production.INFO: count ==526 [2025-03-22 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:26:05 - End Time 2025-03-22 06:26:05 [2025-03-22 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735672', 'tblTempUsageDetail_20' ) start [2025-03-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735672', 'tblTempUsageDetail_20' ) end [2025-03-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735672', 'tblTempVendorCDR_20' ) start [2025-03-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735672', 'tblTempVendorCDR_20' ) end [2025-03-22 06:26:17] Production.INFO: ProcessCDR(1,14735672,1,1,2) [2025-03-22 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735672', 'tblTempUsageDetail_20' ) start [2025-03-22 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735672', 'tblTempUsageDetail_20' ) end [2025-03-22 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:26:20] Production.INFO: ==29620== Releasing lock... [2025-03-22 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:26:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:27:05 [end_date_ymd] => 2025-03-22 06:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:27:05' and `end` < '2025-03-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-03-22 06:27:17] Production.INFO: count ==526 [2025-03-22 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:27:05 - End Time 2025-03-22 06:27:05 [2025-03-22 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735677', 'tblTempUsageDetail_20' ) start [2025-03-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735677', 'tblTempUsageDetail_20' ) end [2025-03-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735677', 'tblTempVendorCDR_20' ) start [2025-03-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735677', 'tblTempVendorCDR_20' ) end [2025-03-22 06:27:17] Production.INFO: ProcessCDR(1,14735677,1,1,2) [2025-03-22 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735677', 'tblTempUsageDetail_20' ) start [2025-03-22 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735677', 'tblTempUsageDetail_20' ) end [2025-03-22 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:27:21] Production.INFO: ==29693== Releasing lock... [2025-03-22 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:28:05 [end_date_ymd] => 2025-03-22 06:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:28:05' and `end` < '2025-03-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-03-22 06:28:17] Production.INFO: count ==526 [2025-03-22 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:28:05 - End Time 2025-03-22 06:28:05 [2025-03-22 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735682', 'tblTempUsageDetail_20' ) start [2025-03-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735682', 'tblTempUsageDetail_20' ) end [2025-03-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735682', 'tblTempVendorCDR_20' ) start [2025-03-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735682', 'tblTempVendorCDR_20' ) end [2025-03-22 06:28:17] Production.INFO: ProcessCDR(1,14735682,1,1,2) [2025-03-22 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735682', 'tblTempUsageDetail_20' ) start [2025-03-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735682', 'tblTempUsageDetail_20' ) end [2025-03-22 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:28:20] Production.INFO: ==29765== Releasing lock... [2025-03-22 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:28:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:29:05 [end_date_ymd] => 2025-03-22 06:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:29:05' and `end` < '2025-03-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-03-22 06:29:17] Production.INFO: count ==526 [2025-03-22 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:29:05 - End Time 2025-03-22 06:29:05 [2025-03-22 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735687', 'tblTempUsageDetail_20' ) start [2025-03-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735687', 'tblTempUsageDetail_20' ) end [2025-03-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735687', 'tblTempVendorCDR_20' ) start [2025-03-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735687', 'tblTempVendorCDR_20' ) end [2025-03-22 06:29:17] Production.INFO: ProcessCDR(1,14735687,1,1,2) [2025-03-22 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735687', 'tblTempUsageDetail_20' ) start [2025-03-22 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735687', 'tblTempUsageDetail_20' ) end [2025-03-22 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:29:21] Production.INFO: ==29836== Releasing lock... [2025-03-22 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:30:06 [end_date_ymd] => 2025-03-22 06:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 03:30:06' and `end` < '2025-03-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-03-22 06:30:18] Production.INFO: count ==518 [2025-03-22 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:30:06 - End Time 2025-03-22 06:30:06 [2025-03-22 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735692', 'tblTempUsageDetail_20' ) start [2025-03-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735692', 'tblTempUsageDetail_20' ) end [2025-03-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735692', 'tblTempVendorCDR_20' ) start [2025-03-22 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735692', 'tblTempVendorCDR_20' ) end [2025-03-22 06:30:18] Production.INFO: ProcessCDR(1,14735692,1,1,2) [2025-03-22 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735692', 'tblTempUsageDetail_20' ) start [2025-03-22 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735692', 'tblTempUsageDetail_20' ) end [2025-03-22 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:30:21] Production.INFO: ==29914== Releasing lock... [2025-03-22 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:31:05 [end_date_ymd] => 2025-03-22 06:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:31:05' and `end` < '2025-03-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-03-22 06:31:17] Production.INFO: count ==514 [2025-03-22 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:31:05 - End Time 2025-03-22 06:31:05 [2025-03-22 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735698', 'tblTempUsageDetail_20' ) start [2025-03-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735698', 'tblTempUsageDetail_20' ) end [2025-03-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735698', 'tblTempVendorCDR_20' ) start [2025-03-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735698', 'tblTempVendorCDR_20' ) end [2025-03-22 06:31:17] Production.INFO: ProcessCDR(1,14735698,1,1,2) [2025-03-22 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735698', 'tblTempUsageDetail_20' ) start [2025-03-22 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735698', 'tblTempUsageDetail_20' ) end [2025-03-22 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:31:20] Production.INFO: ==29987== Releasing lock... [2025-03-22 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:31:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:32:05 [end_date_ymd] => 2025-03-22 06:32:05 [RateCDR] => 1 ) [2025-03-22 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:32:05' and `end` < '2025-03-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-03-22 06:32:18] Production.INFO: count ==513 [2025-03-22 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:32:05 - End Time 2025-03-22 06:32:05 [2025-03-22 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735703', 'tblTempUsageDetail_20' ) start [2025-03-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735703', 'tblTempUsageDetail_20' ) end [2025-03-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735703', 'tblTempVendorCDR_20' ) start [2025-03-22 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735703', 'tblTempVendorCDR_20' ) end [2025-03-22 06:32:18] Production.INFO: ProcessCDR(1,14735703,1,1,2) [2025-03-22 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735703', 'tblTempUsageDetail_20' ) start [2025-03-22 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735703', 'tblTempUsageDetail_20' ) end [2025-03-22 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:32:21] Production.INFO: ==30058== Releasing lock... [2025-03-22 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:33:05 [end_date_ymd] => 2025-03-22 06:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:33:05' and `end` < '2025-03-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-03-22 06:33:17] Production.INFO: count ==512 [2025-03-22 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:33:05 - End Time 2025-03-22 06:33:05 [2025-03-22 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735708', 'tblTempUsageDetail_20' ) start [2025-03-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735708', 'tblTempUsageDetail_20' ) end [2025-03-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735708', 'tblTempVendorCDR_20' ) start [2025-03-22 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735708', 'tblTempVendorCDR_20' ) end [2025-03-22 06:33:18] Production.INFO: ProcessCDR(1,14735708,1,1,2) [2025-03-22 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735708', 'tblTempUsageDetail_20' ) start [2025-03-22 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735708', 'tblTempUsageDetail_20' ) end [2025-03-22 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:33:21] Production.INFO: ==30130== Releasing lock... [2025-03-22 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:34:05 [end_date_ymd] => 2025-03-22 06:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:34:05' and `end` < '2025-03-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-03-22 06:34:17] Production.INFO: count ==508 [2025-03-22 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:34:05 - End Time 2025-03-22 06:34:05 [2025-03-22 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735713', 'tblTempUsageDetail_20' ) start [2025-03-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735713', 'tblTempUsageDetail_20' ) end [2025-03-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735713', 'tblTempVendorCDR_20' ) start [2025-03-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735713', 'tblTempVendorCDR_20' ) end [2025-03-22 06:34:17] Production.INFO: ProcessCDR(1,14735713,1,1,2) [2025-03-22 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735713', 'tblTempUsageDetail_20' ) start [2025-03-22 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735713', 'tblTempUsageDetail_20' ) end [2025-03-22 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:34:20] Production.INFO: ==30248== Releasing lock... [2025-03-22 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:34:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:35:05 [end_date_ymd] => 2025-03-22 06:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:35:05' and `end` < '2025-03-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-03-22 06:35:17] Production.INFO: count ==502 [2025-03-22 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:35:05 - End Time 2025-03-22 06:35:05 [2025-03-22 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735718', 'tblTempUsageDetail_20' ) start [2025-03-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735718', 'tblTempUsageDetail_20' ) end [2025-03-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735718', 'tblTempVendorCDR_20' ) start [2025-03-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735718', 'tblTempVendorCDR_20' ) end [2025-03-22 06:35:17] Production.INFO: ProcessCDR(1,14735718,1,1,2) [2025-03-22 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735718', 'tblTempUsageDetail_20' ) start [2025-03-22 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735718', 'tblTempUsageDetail_20' ) end [2025-03-22 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:35:20] Production.INFO: ==30320== Releasing lock... [2025-03-22 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:35:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:36:05 [end_date_ymd] => 2025-03-22 06:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:36:05' and `end` < '2025-03-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-03-22 06:36:17] Production.INFO: count ==502 [2025-03-22 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:36:05 - End Time 2025-03-22 06:36:05 [2025-03-22 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735723', 'tblTempUsageDetail_20' ) start [2025-03-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735723', 'tblTempUsageDetail_20' ) end [2025-03-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735723', 'tblTempVendorCDR_20' ) start [2025-03-22 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735723', 'tblTempVendorCDR_20' ) end [2025-03-22 06:36:17] Production.INFO: ProcessCDR(1,14735723,1,1,2) [2025-03-22 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735723', 'tblTempUsageDetail_20' ) start [2025-03-22 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735723', 'tblTempUsageDetail_20' ) end [2025-03-22 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:36:21] Production.INFO: ==30392== Releasing lock... [2025-03-22 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:37:05 [end_date_ymd] => 2025-03-22 06:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:37:05' and `end` < '2025-03-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-03-22 06:37:17] Production.INFO: count ==501 [2025-03-22 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:37:05 - End Time 2025-03-22 06:37:05 [2025-03-22 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735728', 'tblTempUsageDetail_20' ) start [2025-03-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735728', 'tblTempUsageDetail_20' ) end [2025-03-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735728', 'tblTempVendorCDR_20' ) start [2025-03-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735728', 'tblTempVendorCDR_20' ) end [2025-03-22 06:37:18] Production.INFO: ProcessCDR(1,14735728,1,1,2) [2025-03-22 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735728', 'tblTempUsageDetail_20' ) start [2025-03-22 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735728', 'tblTempUsageDetail_20' ) end [2025-03-22 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:37:21] Production.INFO: ==30464== Releasing lock... [2025-03-22 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:38:04 [end_date_ymd] => 2025-03-22 06:38:04 [RateCDR] => 1 ) [2025-03-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-03-22 03:38:04' and `end` < '2025-03-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-03-22 06:38:16] Production.INFO: count ==501 [2025-03-22 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:38:04 - End Time 2025-03-22 06:38:04 [2025-03-22 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735733', 'tblTempUsageDetail_20' ) start [2025-03-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735733', 'tblTempUsageDetail_20' ) end [2025-03-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735733', 'tblTempVendorCDR_20' ) start [2025-03-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735733', 'tblTempVendorCDR_20' ) end [2025-03-22 06:38:17] Production.INFO: ProcessCDR(1,14735733,1,1,2) [2025-03-22 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735733', 'tblTempUsageDetail_20' ) start [2025-03-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735733', 'tblTempUsageDetail_20' ) end [2025-03-22 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:38:20] Production.INFO: ==30534== Releasing lock... [2025-03-22 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:39:05 [end_date_ymd] => 2025-03-22 06:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:39:05' and `end` < '2025-03-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-03-22 06:39:17] Production.INFO: count ==499 [2025-03-22 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:39:05 - End Time 2025-03-22 06:39:05 [2025-03-22 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735738', 'tblTempUsageDetail_20' ) start [2025-03-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735738', 'tblTempUsageDetail_20' ) end [2025-03-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735738', 'tblTempVendorCDR_20' ) start [2025-03-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735738', 'tblTempVendorCDR_20' ) end [2025-03-22 06:39:17] Production.INFO: ProcessCDR(1,14735738,1,1,2) [2025-03-22 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735738', 'tblTempUsageDetail_20' ) start [2025-03-22 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735738', 'tblTempUsageDetail_20' ) end [2025-03-22 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:39:21] Production.INFO: ==30618== Releasing lock... [2025-03-22 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:40:06 [end_date_ymd] => 2025-03-22 06:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 03:40:06' and `end` < '2025-03-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-03-22 06:40:18] Production.INFO: count ==498 [2025-03-22 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:40:06 - End Time 2025-03-22 06:40:06 [2025-03-22 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735743', 'tblTempUsageDetail_20' ) start [2025-03-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735743', 'tblTempUsageDetail_20' ) end [2025-03-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735743', 'tblTempVendorCDR_20' ) start [2025-03-22 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735743', 'tblTempVendorCDR_20' ) end [2025-03-22 06:40:18] Production.INFO: ProcessCDR(1,14735743,1,1,2) [2025-03-22 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735743', 'tblTempUsageDetail_20' ) start [2025-03-22 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735743', 'tblTempUsageDetail_20' ) end [2025-03-22 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:40:22] Production.INFO: ==30696== Releasing lock... [2025-03-22 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:41:05 [end_date_ymd] => 2025-03-22 06:41:05 [RateCDR] => 1 ) [2025-03-22 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:41:05' and `end` < '2025-03-22 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:41:17] Production.INFO: count ==497 [2025-03-22 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:41:05 - End Time 2025-03-22 06:41:05 [2025-03-22 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735749', 'tblTempUsageDetail_20' ) start [2025-03-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735749', 'tblTempUsageDetail_20' ) end [2025-03-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735749', 'tblTempVendorCDR_20' ) start [2025-03-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735749', 'tblTempVendorCDR_20' ) end [2025-03-22 06:41:17] Production.INFO: ProcessCDR(1,14735749,1,1,2) [2025-03-22 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735749', 'tblTempUsageDetail_20' ) start [2025-03-22 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735749', 'tblTempUsageDetail_20' ) end [2025-03-22 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:41:21] Production.INFO: ==30773== Releasing lock... [2025-03-22 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:41:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:42:05 [end_date_ymd] => 2025-03-22 06:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:42:05' and `end` < '2025-03-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-03-22 06:42:17] Production.INFO: count ==497 [2025-03-22 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:42:05 - End Time 2025-03-22 06:42:05 [2025-03-22 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735754', 'tblTempUsageDetail_20' ) start [2025-03-22 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735754', 'tblTempUsageDetail_20' ) end [2025-03-22 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735754', 'tblTempVendorCDR_20' ) start [2025-03-22 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735754', 'tblTempVendorCDR_20' ) end [2025-03-22 06:42:18] Production.INFO: ProcessCDR(1,14735754,1,1,2) [2025-03-22 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735754', 'tblTempUsageDetail_20' ) start [2025-03-22 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735754', 'tblTempUsageDetail_20' ) end [2025-03-22 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:42:21] Production.INFO: ==30845== Releasing lock... [2025-03-22 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:42:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:43:05 [end_date_ymd] => 2025-03-22 06:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:43:05' and `end` < '2025-03-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-03-22 06:43:17] Production.INFO: count ==497 [2025-03-22 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:43:05 - End Time 2025-03-22 06:43:05 [2025-03-22 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735759', 'tblTempUsageDetail_20' ) start [2025-03-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735759', 'tblTempUsageDetail_20' ) end [2025-03-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735759', 'tblTempVendorCDR_20' ) start [2025-03-22 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735759', 'tblTempVendorCDR_20' ) end [2025-03-22 06:43:18] Production.INFO: ProcessCDR(1,14735759,1,1,2) [2025-03-22 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735759', 'tblTempUsageDetail_20' ) start [2025-03-22 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735759', 'tblTempUsageDetail_20' ) end [2025-03-22 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:43:21] Production.INFO: ==30921== Releasing lock... [2025-03-22 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:43:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:44:05 [end_date_ymd] => 2025-03-22 06:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:44:05' and `end` < '2025-03-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-03-22 06:44:18] Production.INFO: count ==500 [2025-03-22 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:44:05 - End Time 2025-03-22 06:44:05 [2025-03-22 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735764', 'tblTempUsageDetail_20' ) start [2025-03-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735764', 'tblTempUsageDetail_20' ) end [2025-03-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735764', 'tblTempVendorCDR_20' ) start [2025-03-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735764', 'tblTempVendorCDR_20' ) end [2025-03-22 06:44:18] Production.INFO: ProcessCDR(1,14735764,1,1,2) [2025-03-22 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735764', 'tblTempUsageDetail_20' ) start [2025-03-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735764', 'tblTempUsageDetail_20' ) end [2025-03-22 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:44:21] Production.INFO: ==30994== Releasing lock... [2025-03-22 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:44:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:45:05 [end_date_ymd] => 2025-03-22 06:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:45:05' and `end` < '2025-03-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-03-22 06:45:17] Production.INFO: count ==499 [2025-03-22 06:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:45:05 - End Time 2025-03-22 06:45:05 [2025-03-22 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735769', 'tblTempUsageDetail_20' ) start [2025-03-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735769', 'tblTempUsageDetail_20' ) end [2025-03-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735769', 'tblTempVendorCDR_20' ) start [2025-03-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735769', 'tblTempVendorCDR_20' ) end [2025-03-22 06:45:18] Production.INFO: ProcessCDR(1,14735769,1,1,2) [2025-03-22 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735769', 'tblTempUsageDetail_20' ) start [2025-03-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735769', 'tblTempUsageDetail_20' ) end [2025-03-22 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:45:21] Production.INFO: ==31067== Releasing lock... [2025-03-22 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:46:05 [end_date_ymd] => 2025-03-22 06:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:46:05' and `end` < '2025-03-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-03-22 06:46:17] Production.INFO: count ==498 [2025-03-22 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:46:05 - End Time 2025-03-22 06:46:05 [2025-03-22 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735774', 'tblTempUsageDetail_20' ) start [2025-03-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735774', 'tblTempUsageDetail_20' ) end [2025-03-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735774', 'tblTempVendorCDR_20' ) start [2025-03-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735774', 'tblTempVendorCDR_20' ) end [2025-03-22 06:46:18] Production.INFO: ProcessCDR(1,14735774,1,1,2) [2025-03-22 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735774', 'tblTempUsageDetail_20' ) start [2025-03-22 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735774', 'tblTempUsageDetail_20' ) end [2025-03-22 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:46:21] Production.INFO: ==31142== Releasing lock... [2025-03-22 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:47:05 [end_date_ymd] => 2025-03-22 06:47:05 [RateCDR] => 1 ) [2025-03-22 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:47:05' and `end` < '2025-03-22 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:47:17] Production.INFO: count ==496 [2025-03-22 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:47:05 - End Time 2025-03-22 06:47:05 [2025-03-22 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735779', 'tblTempUsageDetail_20' ) start [2025-03-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735779', 'tblTempUsageDetail_20' ) end [2025-03-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735779', 'tblTempVendorCDR_20' ) start [2025-03-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735779', 'tblTempVendorCDR_20' ) end [2025-03-22 06:47:17] Production.INFO: ProcessCDR(1,14735779,1,1,2) [2025-03-22 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735779', 'tblTempUsageDetail_20' ) start [2025-03-22 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735779', 'tblTempUsageDetail_20' ) end [2025-03-22 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:47:20] Production.INFO: ==31220== Releasing lock... [2025-03-22 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:47:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:48:05 [end_date_ymd] => 2025-03-22 06:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:48:05' and `end` < '2025-03-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-03-22 06:48:17] Production.INFO: count ==496 [2025-03-22 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:48:05 - End Time 2025-03-22 06:48:05 [2025-03-22 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735784', 'tblTempUsageDetail_20' ) start [2025-03-22 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735784', 'tblTempUsageDetail_20' ) end [2025-03-22 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735784', 'tblTempVendorCDR_20' ) start [2025-03-22 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735784', 'tblTempVendorCDR_20' ) end [2025-03-22 06:48:18] Production.INFO: ProcessCDR(1,14735784,1,1,2) [2025-03-22 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735784', 'tblTempUsageDetail_20' ) start [2025-03-22 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735784', 'tblTempUsageDetail_20' ) end [2025-03-22 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:48:21] Production.INFO: ==31295== Releasing lock... [2025-03-22 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:49:05 [end_date_ymd] => 2025-03-22 06:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:49:05' and `end` < '2025-03-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-03-22 06:49:17] Production.INFO: count ==495 [2025-03-22 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:49:05 - End Time 2025-03-22 06:49:05 [2025-03-22 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735789', 'tblTempUsageDetail_20' ) start [2025-03-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735789', 'tblTempUsageDetail_20' ) end [2025-03-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735789', 'tblTempVendorCDR_20' ) start [2025-03-22 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735789', 'tblTempVendorCDR_20' ) end [2025-03-22 06:49:17] Production.INFO: ProcessCDR(1,14735789,1,1,2) [2025-03-22 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735789', 'tblTempUsageDetail_20' ) start [2025-03-22 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735789', 'tblTempUsageDetail_20' ) end [2025-03-22 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:49:21] Production.INFO: ==31408== Releasing lock... [2025-03-22 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:50:05 [end_date_ymd] => 2025-03-22 06:50:05 [RateCDR] => 1 ) [2025-03-22 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:50:05' and `end` < '2025-03-22 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:50:17] Production.INFO: count ==487 [2025-03-22 06:50:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:50:05 - End Time 2025-03-22 06:50:05 [2025-03-22 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735794', 'tblTempUsageDetail_20' ) start [2025-03-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735794', 'tblTempUsageDetail_20' ) end [2025-03-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735794', 'tblTempVendorCDR_20' ) start [2025-03-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735794', 'tblTempVendorCDR_20' ) end [2025-03-22 06:50:18] Production.INFO: ProcessCDR(1,14735794,1,1,2) [2025-03-22 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735794', 'tblTempUsageDetail_20' ) start [2025-03-22 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735794', 'tblTempUsageDetail_20' ) end [2025-03-22 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:50:21] Production.INFO: ==31485== Releasing lock... [2025-03-22 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:50:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:51:05 [end_date_ymd] => 2025-03-22 06:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:51:05' and `end` < '2025-03-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-03-22 06:51:17] Production.INFO: count ==487 [2025-03-22 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:51:05 - End Time 2025-03-22 06:51:05 [2025-03-22 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735800', 'tblTempUsageDetail_20' ) start [2025-03-22 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735800', 'tblTempUsageDetail_20' ) end [2025-03-22 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735800', 'tblTempVendorCDR_20' ) start [2025-03-22 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735800', 'tblTempVendorCDR_20' ) end [2025-03-22 06:51:17] Production.INFO: ProcessCDR(1,14735800,1,1,2) [2025-03-22 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735800', 'tblTempUsageDetail_20' ) start [2025-03-22 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735800', 'tblTempUsageDetail_20' ) end [2025-03-22 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:51:20] Production.INFO: ==31559== Releasing lock... [2025-03-22 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:51:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:52:05 [end_date_ymd] => 2025-03-22 06:52:05 [RateCDR] => 1 ) [2025-03-22 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:52:05' and `end` < '2025-03-22 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:52:17] Production.INFO: count ==487 [2025-03-22 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:52:05 - End Time 2025-03-22 06:52:05 [2025-03-22 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735805', 'tblTempUsageDetail_20' ) start [2025-03-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735805', 'tblTempUsageDetail_20' ) end [2025-03-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735805', 'tblTempVendorCDR_20' ) start [2025-03-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735805', 'tblTempVendorCDR_20' ) end [2025-03-22 06:52:17] Production.INFO: ProcessCDR(1,14735805,1,1,2) [2025-03-22 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735805', 'tblTempUsageDetail_20' ) start [2025-03-22 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735805', 'tblTempUsageDetail_20' ) end [2025-03-22 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:52:21] Production.INFO: ==31635== Releasing lock... [2025-03-22 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:53:06 [end_date_ymd] => 2025-03-22 06:53:06 [RateCDR] => 1 ) [2025-03-22 06:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:53:06' and `end` < '2025-03-22 06:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:53:18] Production.INFO: count ==487 [2025-03-22 06:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:53:06 - End Time 2025-03-22 06:53:06 [2025-03-22 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735810', 'tblTempUsageDetail_20' ) start [2025-03-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735810', 'tblTempUsageDetail_20' ) end [2025-03-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735810', 'tblTempVendorCDR_20' ) start [2025-03-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735810', 'tblTempVendorCDR_20' ) end [2025-03-22 06:53:18] Production.INFO: ProcessCDR(1,14735810,1,1,2) [2025-03-22 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735810', 'tblTempUsageDetail_20' ) start [2025-03-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735810', 'tblTempUsageDetail_20' ) end [2025-03-22 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:53:21] Production.INFO: ==31709== Releasing lock... [2025-03-22 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:53:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:54:05 [end_date_ymd] => 2025-03-22 06:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:54:05' and `end` < '2025-03-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-03-22 06:54:17] Production.INFO: count ==487 [2025-03-22 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:54:05 - End Time 2025-03-22 06:54:05 [2025-03-22 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735815', 'tblTempUsageDetail_20' ) start [2025-03-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735815', 'tblTempUsageDetail_20' ) end [2025-03-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735815', 'tblTempVendorCDR_20' ) start [2025-03-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735815', 'tblTempVendorCDR_20' ) end [2025-03-22 06:54:17] Production.INFO: ProcessCDR(1,14735815,1,1,2) [2025-03-22 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735815', 'tblTempUsageDetail_20' ) start [2025-03-22 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735815', 'tblTempUsageDetail_20' ) end [2025-03-22 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:54:20] Production.INFO: ==31779== Releasing lock... [2025-03-22 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:54:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:55:06 [end_date_ymd] => 2025-03-22 06:55:06 [RateCDR] => 1 ) [2025-03-22 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:55:06' and `end` < '2025-03-22 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:55:18] Production.INFO: count ==487 [2025-03-22 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:55:06 - End Time 2025-03-22 06:55:06 [2025-03-22 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735820', 'tblTempUsageDetail_20' ) start [2025-03-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735820', 'tblTempUsageDetail_20' ) end [2025-03-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735820', 'tblTempVendorCDR_20' ) start [2025-03-22 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735820', 'tblTempVendorCDR_20' ) end [2025-03-22 06:55:18] Production.INFO: ProcessCDR(1,14735820,1,1,2) [2025-03-22 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735820', 'tblTempUsageDetail_20' ) start [2025-03-22 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735820', 'tblTempUsageDetail_20' ) end [2025-03-22 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:55:22] Production.INFO: ==31853== Releasing lock... [2025-03-22 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:55:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:56:05 [end_date_ymd] => 2025-03-22 06:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:56:05' and `end` < '2025-03-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-03-22 06:56:17] Production.INFO: count ==487 [2025-03-22 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:56:05 - End Time 2025-03-22 06:56:05 [2025-03-22 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735825', 'tblTempUsageDetail_20' ) start [2025-03-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735825', 'tblTempUsageDetail_20' ) end [2025-03-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735825', 'tblTempVendorCDR_20' ) start [2025-03-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735825', 'tblTempVendorCDR_20' ) end [2025-03-22 06:56:18] Production.INFO: ProcessCDR(1,14735825,1,1,2) [2025-03-22 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735825', 'tblTempUsageDetail_20' ) start [2025-03-22 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735825', 'tblTempUsageDetail_20' ) end [2025-03-22 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:56:21] Production.INFO: ==31930== Releasing lock... [2025-03-22 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:56:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:57:06 [end_date_ymd] => 2025-03-22 06:57:06 [RateCDR] => 1 ) [2025-03-22 06:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:57:06' and `end` < '2025-03-22 06:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:57:18] Production.INFO: count ==487 [2025-03-22 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 03:57:06 - End Time 2025-03-22 06:57:06 [2025-03-22 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735830', 'tblTempUsageDetail_20' ) start [2025-03-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735830', 'tblTempUsageDetail_20' ) end [2025-03-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735830', 'tblTempVendorCDR_20' ) start [2025-03-22 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735830', 'tblTempVendorCDR_20' ) end [2025-03-22 06:57:18] Production.INFO: ProcessCDR(1,14735830,1,1,2) [2025-03-22 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735830', 'tblTempUsageDetail_20' ) start [2025-03-22 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735830', 'tblTempUsageDetail_20' ) end [2025-03-22 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:57:21] Production.INFO: ==32007== Releasing lock... [2025-03-22 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:57:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:58:05 [end_date_ymd] => 2025-03-22 06:58:05 [RateCDR] => 1 ) [2025-03-22 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 03:58:05' and `end` < '2025-03-22 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 06:58:17] Production.INFO: count ==487 [2025-03-22 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:58:05 - End Time 2025-03-22 06:58:05 [2025-03-22 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735835', 'tblTempUsageDetail_20' ) start [2025-03-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735835', 'tblTempUsageDetail_20' ) end [2025-03-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735835', 'tblTempVendorCDR_20' ) start [2025-03-22 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735835', 'tblTempVendorCDR_20' ) end [2025-03-22 06:58:17] Production.INFO: ProcessCDR(1,14735835,1,1,2) [2025-03-22 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735835', 'tblTempUsageDetail_20' ) start [2025-03-22 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735835', 'tblTempUsageDetail_20' ) end [2025-03-22 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:58:21] Production.INFO: ==32082== Releasing lock... [2025-03-22 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:58:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 03:59:05 [end_date_ymd] => 2025-03-22 06:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 03:59:05' and `end` < '2025-03-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-03-22 06:59:17] Production.INFO: count ==487 [2025-03-22 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-22 03:59:05 - End Time 2025-03-22 06:59:05 [2025-03-22 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735837', 'tblTempUsageDetail_20' ) start [2025-03-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735837', 'tblTempUsageDetail_20' ) end [2025-03-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735837', 'tblTempVendorCDR_20' ) start [2025-03-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735837', 'tblTempVendorCDR_20' ) end [2025-03-22 06:59:17] Production.INFO: ProcessCDR(1,14735837,1,1,2) [2025-03-22 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735837', 'tblTempUsageDetail_20' ) start [2025-03-22 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735837', 'tblTempUsageDetail_20' ) end [2025-03-22 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 06:59:20] Production.INFO: ==32158== Releasing lock... [2025-03-22 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 06:59:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:00:06 [end_date_ymd] => 2025-03-22 07:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:00:06' and `end` < '2025-03-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-03-22 07:00:18] Production.INFO: count ==482 [2025-03-22 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:00:06 - End Time 2025-03-22 07:00:06 [2025-03-22 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735846', 'tblTempUsageDetail_20' ) start [2025-03-22 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735846', 'tblTempUsageDetail_20' ) end [2025-03-22 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735846', 'tblTempVendorCDR_20' ) start [2025-03-22 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735846', 'tblTempVendorCDR_20' ) end [2025-03-22 07:00:19] Production.INFO: ProcessCDR(1,14735846,1,1,2) [2025-03-22 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735846', 'tblTempUsageDetail_20' ) start [2025-03-22 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735846', 'tblTempUsageDetail_20' ) end [2025-03-22 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:00:22] Production.INFO: ==32238== Releasing lock... [2025-03-22 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:00:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:01:05 [end_date_ymd] => 2025-03-22 07:01:05 [RateCDR] => 1 ) [2025-03-22 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:01:05' and `end` < '2025-03-22 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:01:20] Production.INFO: count ==481 [2025-03-22 07:01:21] Production.ERROR: pbx CDR StartTime 2025-03-22 04:01:05 - End Time 2025-03-22 07:01:05 [2025-03-22 07:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735851', 'tblTempUsageDetail_20' ) start [2025-03-22 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735851', 'tblTempUsageDetail_20' ) end [2025-03-22 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735851', 'tblTempVendorCDR_20' ) start [2025-03-22 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735851', 'tblTempVendorCDR_20' ) end [2025-03-22 07:01:21] Production.INFO: ProcessCDR(1,14735851,1,1,2) [2025-03-22 07:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735851', 'tblTempUsageDetail_20' ) start [2025-03-22 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735851', 'tblTempUsageDetail_20' ) end [2025-03-22 07:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:01:24] Production.INFO: ==32366== Releasing lock... [2025-03-22 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:01:24] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:02:06 [end_date_ymd] => 2025-03-22 07:02:06 [RateCDR] => 1 ) [2025-03-22 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:02:06' and `end` < '2025-03-22 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:02:18] Production.INFO: count ==481 [2025-03-22 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:02:06 - End Time 2025-03-22 07:02:06 [2025-03-22 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735856', 'tblTempUsageDetail_20' ) start [2025-03-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735856', 'tblTempUsageDetail_20' ) end [2025-03-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735856', 'tblTempVendorCDR_20' ) start [2025-03-22 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735856', 'tblTempVendorCDR_20' ) end [2025-03-22 07:02:18] Production.INFO: ProcessCDR(1,14735856,1,1,2) [2025-03-22 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735856', 'tblTempUsageDetail_20' ) start [2025-03-22 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735856', 'tblTempUsageDetail_20' ) end [2025-03-22 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:02:22] Production.INFO: ==32479== Releasing lock... [2025-03-22 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:02:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:03:06 [end_date_ymd] => 2025-03-22 07:03:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:03:06' and `end` < '2025-03-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-03-22 07:03:18] Production.INFO: count ==481 [2025-03-22 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:03:06 - End Time 2025-03-22 07:03:06 [2025-03-22 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735861', 'tblTempUsageDetail_20' ) start [2025-03-22 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735861', 'tblTempUsageDetail_20' ) end [2025-03-22 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735861', 'tblTempVendorCDR_20' ) start [2025-03-22 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735861', 'tblTempVendorCDR_20' ) end [2025-03-22 07:03:19] Production.INFO: ProcessCDR(1,14735861,1,1,2) [2025-03-22 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735861', 'tblTempUsageDetail_20' ) start [2025-03-22 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735861', 'tblTempUsageDetail_20' ) end [2025-03-22 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:03:22] Production.INFO: ==32552== Releasing lock... [2025-03-22 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:03:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:04:05 [end_date_ymd] => 2025-03-22 07:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:04:05' and `end` < '2025-03-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-03-22 07:04:18] Production.INFO: count ==481 [2025-03-22 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:04:05 - End Time 2025-03-22 07:04:05 [2025-03-22 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735865', 'tblTempUsageDetail_20' ) start [2025-03-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735865', 'tblTempUsageDetail_20' ) end [2025-03-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735865', 'tblTempVendorCDR_20' ) start [2025-03-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735865', 'tblTempVendorCDR_20' ) end [2025-03-22 07:04:18] Production.INFO: ProcessCDR(1,14735865,1,1,2) [2025-03-22 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735865', 'tblTempUsageDetail_20' ) start [2025-03-22 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735865', 'tblTempUsageDetail_20' ) end [2025-03-22 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:04:22] Production.INFO: ==32624== Releasing lock... [2025-03-22 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:04:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:05:06 [end_date_ymd] => 2025-03-22 07:05:06 [RateCDR] => 1 ) [2025-03-22 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:05:06' and `end` < '2025-03-22 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:05:19] Production.INFO: count ==481 [2025-03-22 07:05:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:05:06 - End Time 2025-03-22 07:05:06 [2025-03-22 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735871', 'tblTempUsageDetail_20' ) start [2025-03-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735871', 'tblTempUsageDetail_20' ) end [2025-03-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735871', 'tblTempVendorCDR_20' ) start [2025-03-22 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735871', 'tblTempVendorCDR_20' ) end [2025-03-22 07:05:20] Production.INFO: ProcessCDR(1,14735871,1,1,2) [2025-03-22 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735871', 'tblTempUsageDetail_20' ) start [2025-03-22 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735871', 'tblTempUsageDetail_20' ) end [2025-03-22 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:05:23] Production.INFO: ==368== Releasing lock... [2025-03-22 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:05:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:06:05 [end_date_ymd] => 2025-03-22 07:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:06:05' and `end` < '2025-03-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-03-22 07:06:18] Production.INFO: count ==481 [2025-03-22 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:06:05 - End Time 2025-03-22 07:06:05 [2025-03-22 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735876', 'tblTempUsageDetail_20' ) start [2025-03-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735876', 'tblTempUsageDetail_20' ) end [2025-03-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735876', 'tblTempVendorCDR_20' ) start [2025-03-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735876', 'tblTempVendorCDR_20' ) end [2025-03-22 07:06:18] Production.INFO: ProcessCDR(1,14735876,1,1,2) [2025-03-22 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735876', 'tblTempUsageDetail_20' ) start [2025-03-22 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735876', 'tblTempUsageDetail_20' ) end [2025-03-22 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:06:22] Production.INFO: ==443== Releasing lock... [2025-03-22 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:06:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:07:06 [end_date_ymd] => 2025-03-22 07:07:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:07:06' and `end` < '2025-03-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-03-22 07:07:18] Production.INFO: count ==481 [2025-03-22 07:07:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:07:06 - End Time 2025-03-22 07:07:06 [2025-03-22 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735881', 'tblTempUsageDetail_20' ) start [2025-03-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735881', 'tblTempUsageDetail_20' ) end [2025-03-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735881', 'tblTempVendorCDR_20' ) start [2025-03-22 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735881', 'tblTempVendorCDR_20' ) end [2025-03-22 07:07:19] Production.INFO: ProcessCDR(1,14735881,1,1,2) [2025-03-22 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735881', 'tblTempUsageDetail_20' ) start [2025-03-22 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735881', 'tblTempUsageDetail_20' ) end [2025-03-22 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:07:22] Production.INFO: ==519== Releasing lock... [2025-03-22 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:07:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:08:05 [end_date_ymd] => 2025-03-22 07:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:08:05' and `end` < '2025-03-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-03-22 07:08:20] Production.INFO: count ==486 [2025-03-22 07:08:20] Production.ERROR: pbx CDR StartTime 2025-03-22 04:08:05 - End Time 2025-03-22 07:08:05 [2025-03-22 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735886', 'tblTempUsageDetail_20' ) start [2025-03-22 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735886', 'tblTempUsageDetail_20' ) end [2025-03-22 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735886', 'tblTempVendorCDR_20' ) start [2025-03-22 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735886', 'tblTempVendorCDR_20' ) end [2025-03-22 07:08:20] Production.INFO: ProcessCDR(1,14735886,1,1,2) [2025-03-22 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735886', 'tblTempUsageDetail_20' ) start [2025-03-22 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735886', 'tblTempUsageDetail_20' ) end [2025-03-22 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:08:24] Production.INFO: ==642== Releasing lock... [2025-03-22 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:08:24] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:09:06 [end_date_ymd] => 2025-03-22 07:09:06 [RateCDR] => 1 ) [2025-03-22 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:09:06' and `end` < '2025-03-22 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:09:18] Production.INFO: count ==486 [2025-03-22 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:09:06 - End Time 2025-03-22 07:09:06 [2025-03-22 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735891', 'tblTempUsageDetail_20' ) start [2025-03-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735891', 'tblTempUsageDetail_20' ) end [2025-03-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735891', 'tblTempVendorCDR_20' ) start [2025-03-22 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735891', 'tblTempVendorCDR_20' ) end [2025-03-22 07:09:18] Production.INFO: ProcessCDR(1,14735891,1,1,2) [2025-03-22 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735891', 'tblTempUsageDetail_20' ) start [2025-03-22 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735891', 'tblTempUsageDetail_20' ) end [2025-03-22 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:09:22] Production.INFO: ==783== Releasing lock... [2025-03-22 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:09:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:10:05 [end_date_ymd] => 2025-03-22 07:10:05 [RateCDR] => 1 ) [2025-03-22 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:10:05' and `end` < '2025-03-22 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:10:18] Production.INFO: count ==478 [2025-03-22 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:10:05 - End Time 2025-03-22 07:10:05 [2025-03-22 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735897', 'tblTempUsageDetail_20' ) start [2025-03-22 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735897', 'tblTempUsageDetail_20' ) end [2025-03-22 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735897', 'tblTempVendorCDR_20' ) start [2025-03-22 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735897', 'tblTempVendorCDR_20' ) end [2025-03-22 07:10:18] Production.INFO: ProcessCDR(1,14735897,1,1,2) [2025-03-22 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735897', 'tblTempUsageDetail_20' ) start [2025-03-22 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735897', 'tblTempUsageDetail_20' ) end [2025-03-22 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:10:22] Production.INFO: ==860== Releasing lock... [2025-03-22 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:10:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:11:05 [end_date_ymd] => 2025-03-22 07:11:05 [RateCDR] => 1 ) [2025-03-22 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:11:05' and `end` < '2025-03-22 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:11:18] Production.INFO: count ==478 [2025-03-22 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:11:05 - End Time 2025-03-22 07:11:05 [2025-03-22 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735902', 'tblTempUsageDetail_20' ) start [2025-03-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735902', 'tblTempUsageDetail_20' ) end [2025-03-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735902', 'tblTempVendorCDR_20' ) start [2025-03-22 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735902', 'tblTempVendorCDR_20' ) end [2025-03-22 07:11:18] Production.INFO: ProcessCDR(1,14735902,1,1,2) [2025-03-22 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735902', 'tblTempUsageDetail_20' ) start [2025-03-22 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735902', 'tblTempUsageDetail_20' ) end [2025-03-22 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:11:21] Production.INFO: ==936== Releasing lock... [2025-03-22 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:11:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:12:05 [end_date_ymd] => 2025-03-22 07:12:05 [RateCDR] => 1 ) [2025-03-22 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:12:05' and `end` < '2025-03-22 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:12:17] Production.INFO: count ==450 [2025-03-22 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:12:05 - End Time 2025-03-22 07:12:05 [2025-03-22 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735907', 'tblTempUsageDetail_20' ) start [2025-03-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735907', 'tblTempUsageDetail_20' ) end [2025-03-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735907', 'tblTempVendorCDR_20' ) start [2025-03-22 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735907', 'tblTempVendorCDR_20' ) end [2025-03-22 07:12:18] Production.INFO: ProcessCDR(1,14735907,1,1,2) [2025-03-22 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735907', 'tblTempUsageDetail_20' ) start [2025-03-22 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735907', 'tblTempUsageDetail_20' ) end [2025-03-22 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:12:21] Production.INFO: ==1092== Releasing lock... [2025-03-22 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:13:05 [end_date_ymd] => 2025-03-22 07:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:13:05' and `end` < '2025-03-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-03-22 07:13:17] Production.INFO: count ==450 [2025-03-22 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:13:05 - End Time 2025-03-22 07:13:05 [2025-03-22 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735912', 'tblTempUsageDetail_20' ) start [2025-03-22 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735912', 'tblTempUsageDetail_20' ) end [2025-03-22 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735912', 'tblTempVendorCDR_20' ) start [2025-03-22 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735912', 'tblTempVendorCDR_20' ) end [2025-03-22 07:13:18] Production.INFO: ProcessCDR(1,14735912,1,1,2) [2025-03-22 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735912', 'tblTempUsageDetail_20' ) start [2025-03-22 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735912', 'tblTempUsageDetail_20' ) end [2025-03-22 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:13:21] Production.INFO: ==1176== Releasing lock... [2025-03-22 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:14:05 [end_date_ymd] => 2025-03-22 07:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:14:05' and `end` < '2025-03-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-03-22 07:14:18] Production.INFO: count ==450 [2025-03-22 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:14:05 - End Time 2025-03-22 07:14:05 [2025-03-22 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735917', 'tblTempUsageDetail_20' ) start [2025-03-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735917', 'tblTempUsageDetail_20' ) end [2025-03-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735917', 'tblTempVendorCDR_20' ) start [2025-03-22 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735917', 'tblTempVendorCDR_20' ) end [2025-03-22 07:14:18] Production.INFO: ProcessCDR(1,14735917,1,1,2) [2025-03-22 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735917', 'tblTempUsageDetail_20' ) start [2025-03-22 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735917', 'tblTempUsageDetail_20' ) end [2025-03-22 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:14:21] Production.INFO: ==1263== Releasing lock... [2025-03-22 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:14:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:15:05 [end_date_ymd] => 2025-03-22 07:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:15:05' and `end` < '2025-03-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-03-22 07:15:18] Production.INFO: count ==450 [2025-03-22 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:15:05 - End Time 2025-03-22 07:15:05 [2025-03-22 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735922', 'tblTempUsageDetail_20' ) start [2025-03-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735922', 'tblTempUsageDetail_20' ) end [2025-03-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735922', 'tblTempVendorCDR_20' ) start [2025-03-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735922', 'tblTempVendorCDR_20' ) end [2025-03-22 07:15:18] Production.INFO: ProcessCDR(1,14735922,1,1,2) [2025-03-22 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735922', 'tblTempUsageDetail_20' ) start [2025-03-22 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735922', 'tblTempUsageDetail_20' ) end [2025-03-22 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:15:22] Production.INFO: ==1417== Releasing lock... [2025-03-22 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:15:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:16:06 [end_date_ymd] => 2025-03-22 07:16:06 [RateCDR] => 1 ) [2025-03-22 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:16:06' and `end` < '2025-03-22 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:16:18] Production.INFO: count ==450 [2025-03-22 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:16:06 - End Time 2025-03-22 07:16:06 [2025-03-22 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735927', 'tblTempUsageDetail_20' ) start [2025-03-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735927', 'tblTempUsageDetail_20' ) end [2025-03-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735927', 'tblTempVendorCDR_20' ) start [2025-03-22 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735927', 'tblTempVendorCDR_20' ) end [2025-03-22 07:16:18] Production.INFO: ProcessCDR(1,14735927,1,1,2) [2025-03-22 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735927', 'tblTempUsageDetail_20' ) start [2025-03-22 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735927', 'tblTempUsageDetail_20' ) end [2025-03-22 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:16:22] Production.INFO: ==1496== Releasing lock... [2025-03-22 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:16:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:17:05 [end_date_ymd] => 2025-03-22 07:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:17:05' and `end` < '2025-03-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-03-22 07:17:19] Production.INFO: count ==449 [2025-03-22 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:17:05 - End Time 2025-03-22 07:17:05 [2025-03-22 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735932', 'tblTempUsageDetail_20' ) start [2025-03-22 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735932', 'tblTempUsageDetail_20' ) end [2025-03-22 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735932', 'tblTempVendorCDR_20' ) start [2025-03-22 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735932', 'tblTempVendorCDR_20' ) end [2025-03-22 07:17:19] Production.INFO: ProcessCDR(1,14735932,1,1,2) [2025-03-22 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735932', 'tblTempUsageDetail_20' ) start [2025-03-22 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735932', 'tblTempUsageDetail_20' ) end [2025-03-22 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:17:23] Production.INFO: ==1603== Releasing lock... [2025-03-22 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:17:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:18:06 [end_date_ymd] => 2025-03-22 07:18:06 [RateCDR] => 1 ) [2025-03-22 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:18:06' and `end` < '2025-03-22 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:18:18] Production.INFO: count ==448 [2025-03-22 07:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:18:06 - End Time 2025-03-22 07:18:06 [2025-03-22 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735937', 'tblTempUsageDetail_20' ) start [2025-03-22 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735937', 'tblTempUsageDetail_20' ) end [2025-03-22 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735937', 'tblTempVendorCDR_20' ) start [2025-03-22 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735937', 'tblTempVendorCDR_20' ) end [2025-03-22 07:18:19] Production.INFO: ProcessCDR(1,14735937,1,1,2) [2025-03-22 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735937', 'tblTempUsageDetail_20' ) start [2025-03-22 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735937', 'tblTempUsageDetail_20' ) end [2025-03-22 07:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:18:25] Production.INFO: ==1683== Releasing lock... [2025-03-22 07:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:18:25] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:19:06 [end_date_ymd] => 2025-03-22 07:19:06 [RateCDR] => 1 ) [2025-03-22 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:19:06' and `end` < '2025-03-22 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:19:18] Production.INFO: count ==447 [2025-03-22 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:19:06 - End Time 2025-03-22 07:19:06 [2025-03-22 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735942', 'tblTempUsageDetail_20' ) start [2025-03-22 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735942', 'tblTempUsageDetail_20' ) end [2025-03-22 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735942', 'tblTempVendorCDR_20' ) start [2025-03-22 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735942', 'tblTempVendorCDR_20' ) end [2025-03-22 07:19:18] Production.INFO: ProcessCDR(1,14735942,1,1,2) [2025-03-22 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735942', 'tblTempUsageDetail_20' ) start [2025-03-22 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735942', 'tblTempUsageDetail_20' ) end [2025-03-22 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:19:22] Production.INFO: ==1759== Releasing lock... [2025-03-22 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:19:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:20:06 [end_date_ymd] => 2025-03-22 07:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:20:06' and `end` < '2025-03-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-03-22 07:20:19] Production.INFO: count ==447 [2025-03-22 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:20:06 - End Time 2025-03-22 07:20:06 [2025-03-22 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735948', 'tblTempUsageDetail_20' ) start [2025-03-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735948', 'tblTempUsageDetail_20' ) end [2025-03-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735948', 'tblTempVendorCDR_20' ) start [2025-03-22 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735948', 'tblTempVendorCDR_20' ) end [2025-03-22 07:20:19] Production.INFO: ProcessCDR(1,14735948,1,1,2) [2025-03-22 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735948', 'tblTempUsageDetail_20' ) start [2025-03-22 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735948', 'tblTempUsageDetail_20' ) end [2025-03-22 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:20:23] Production.INFO: ==1876== Releasing lock... [2025-03-22 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:20:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:21:06 [end_date_ymd] => 2025-03-22 07:21:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:21:06' and `end` < '2025-03-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-03-22 07:21:18] Production.INFO: count ==447 [2025-03-22 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:21:06 - End Time 2025-03-22 07:21:06 [2025-03-22 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735953', 'tblTempUsageDetail_20' ) start [2025-03-22 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735953', 'tblTempUsageDetail_20' ) end [2025-03-22 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735953', 'tblTempVendorCDR_20' ) start [2025-03-22 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735953', 'tblTempVendorCDR_20' ) end [2025-03-22 07:21:18] Production.INFO: ProcessCDR(1,14735953,1,1,2) [2025-03-22 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735953', 'tblTempUsageDetail_20' ) start [2025-03-22 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735953', 'tblTempUsageDetail_20' ) end [2025-03-22 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:21:22] Production.INFO: ==1953== Releasing lock... [2025-03-22 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:22:06 [end_date_ymd] => 2025-03-22 07:22:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:22:06' and `end` < '2025-03-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-03-22 07:22:19] Production.INFO: count ==446 [2025-03-22 07:22:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:22:06 - End Time 2025-03-22 07:22:06 [2025-03-22 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735958', 'tblTempUsageDetail_20' ) start [2025-03-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735958', 'tblTempUsageDetail_20' ) end [2025-03-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735958', 'tblTempVendorCDR_20' ) start [2025-03-22 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735958', 'tblTempVendorCDR_20' ) end [2025-03-22 07:22:19] Production.INFO: ProcessCDR(1,14735958,1,1,2) [2025-03-22 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735958', 'tblTempUsageDetail_20' ) start [2025-03-22 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735958', 'tblTempUsageDetail_20' ) end [2025-03-22 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:22:23] Production.INFO: ==2029== Releasing lock... [2025-03-22 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:22:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:23:05 [end_date_ymd] => 2025-03-22 07:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:23:05' and `end` < '2025-03-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-03-22 07:23:17] Production.INFO: count ==445 [2025-03-22 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:23:05 - End Time 2025-03-22 07:23:05 [2025-03-22 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735963', 'tblTempUsageDetail_20' ) start [2025-03-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735963', 'tblTempUsageDetail_20' ) end [2025-03-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735963', 'tblTempVendorCDR_20' ) start [2025-03-22 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735963', 'tblTempVendorCDR_20' ) end [2025-03-22 07:23:18] Production.INFO: ProcessCDR(1,14735963,1,1,2) [2025-03-22 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735963', 'tblTempUsageDetail_20' ) start [2025-03-22 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735963', 'tblTempUsageDetail_20' ) end [2025-03-22 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:23:21] Production.INFO: ==2102== Releasing lock... [2025-03-22 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:24:06 [end_date_ymd] => 2025-03-22 07:24:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:24:06' and `end` < '2025-03-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-03-22 07:24:18] Production.INFO: count ==442 [2025-03-22 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:24:06 - End Time 2025-03-22 07:24:06 [2025-03-22 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735968', 'tblTempUsageDetail_20' ) start [2025-03-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735968', 'tblTempUsageDetail_20' ) end [2025-03-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735968', 'tblTempVendorCDR_20' ) start [2025-03-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735968', 'tblTempVendorCDR_20' ) end [2025-03-22 07:24:18] Production.INFO: ProcessCDR(1,14735968,1,1,2) [2025-03-22 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735968', 'tblTempUsageDetail_20' ) start [2025-03-22 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735968', 'tblTempUsageDetail_20' ) end [2025-03-22 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:24:22] Production.INFO: ==2174== Releasing lock... [2025-03-22 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:25:05 [end_date_ymd] => 2025-03-22 07:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:25:05' and `end` < '2025-03-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-03-22 07:25:18] Production.INFO: count ==439 [2025-03-22 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:25:05 - End Time 2025-03-22 07:25:05 [2025-03-22 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735973', 'tblTempUsageDetail_20' ) start [2025-03-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735973', 'tblTempUsageDetail_20' ) end [2025-03-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735973', 'tblTempVendorCDR_20' ) start [2025-03-22 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735973', 'tblTempVendorCDR_20' ) end [2025-03-22 07:25:18] Production.INFO: ProcessCDR(1,14735973,1,1,2) [2025-03-22 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735973', 'tblTempUsageDetail_20' ) start [2025-03-22 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735973', 'tblTempUsageDetail_20' ) end [2025-03-22 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:25:22] Production.INFO: ==2251== Releasing lock... [2025-03-22 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:26:06 [end_date_ymd] => 2025-03-22 07:26:06 [RateCDR] => 1 ) [2025-03-22 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:26:06' and `end` < '2025-03-22 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:26:18] Production.INFO: count ==439 [2025-03-22 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:26:06 - End Time 2025-03-22 07:26:06 [2025-03-22 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735978', 'tblTempUsageDetail_20' ) start [2025-03-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735978', 'tblTempUsageDetail_20' ) end [2025-03-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735978', 'tblTempVendorCDR_20' ) start [2025-03-22 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735978', 'tblTempVendorCDR_20' ) end [2025-03-22 07:26:18] Production.INFO: ProcessCDR(1,14735978,1,1,2) [2025-03-22 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735978', 'tblTempUsageDetail_20' ) start [2025-03-22 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735978', 'tblTempUsageDetail_20' ) end [2025-03-22 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:26:22] Production.INFO: ==2328== Releasing lock... [2025-03-22 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:27:05 [end_date_ymd] => 2025-03-22 07:27:05 [RateCDR] => 1 ) [2025-03-22 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:27:05' and `end` < '2025-03-22 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:27:18] Production.INFO: count ==439 [2025-03-22 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:27:05 - End Time 2025-03-22 07:27:05 [2025-03-22 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735983', 'tblTempUsageDetail_20' ) start [2025-03-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735983', 'tblTempUsageDetail_20' ) end [2025-03-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735983', 'tblTempVendorCDR_20' ) start [2025-03-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735983', 'tblTempVendorCDR_20' ) end [2025-03-22 07:27:18] Production.INFO: ProcessCDR(1,14735983,1,1,2) [2025-03-22 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735983', 'tblTempUsageDetail_20' ) start [2025-03-22 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735983', 'tblTempUsageDetail_20' ) end [2025-03-22 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:27:21] Production.INFO: ==2407== Releasing lock... [2025-03-22 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:28:06 [end_date_ymd] => 2025-03-22 07:28:06 [RateCDR] => 1 ) [2025-03-22 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:28:06' and `end` < '2025-03-22 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:28:18] Production.INFO: count ==439 [2025-03-22 07:28:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:28:06 - End Time 2025-03-22 07:28:06 [2025-03-22 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735988', 'tblTempUsageDetail_20' ) start [2025-03-22 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735988', 'tblTempUsageDetail_20' ) end [2025-03-22 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735988', 'tblTempVendorCDR_20' ) start [2025-03-22 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735988', 'tblTempVendorCDR_20' ) end [2025-03-22 07:28:19] Production.INFO: ProcessCDR(1,14735988,1,1,2) [2025-03-22 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735988', 'tblTempUsageDetail_20' ) start [2025-03-22 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735988', 'tblTempUsageDetail_20' ) end [2025-03-22 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:28:23] Production.INFO: ==2483== Releasing lock... [2025-03-22 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:29:06 [end_date_ymd] => 2025-03-22 07:29:06 [RateCDR] => 1 ) [2025-03-22 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:29:06' and `end` < '2025-03-22 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:29:18] Production.INFO: count ==438 [2025-03-22 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:29:06 - End Time 2025-03-22 07:29:06 [2025-03-22 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735993', 'tblTempUsageDetail_20' ) start [2025-03-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735993', 'tblTempUsageDetail_20' ) end [2025-03-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735993', 'tblTempVendorCDR_20' ) start [2025-03-22 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735993', 'tblTempVendorCDR_20' ) end [2025-03-22 07:29:18] Production.INFO: ProcessCDR(1,14735993,1,1,2) [2025-03-22 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735993', 'tblTempUsageDetail_20' ) start [2025-03-22 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735993', 'tblTempUsageDetail_20' ) end [2025-03-22 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:29:22] Production.INFO: ==2557== Releasing lock... [2025-03-22 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:30:06 [end_date_ymd] => 2025-03-22 07:30:06 [RateCDR] => 1 ) [2025-03-22 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:30:06' and `end` < '2025-03-22 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:30:18] Production.INFO: count ==428 [2025-03-22 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 04:30:06 - End Time 2025-03-22 07:30:06 [2025-03-22 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735999', 'tblTempUsageDetail_20' ) start [2025-03-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14735999', 'tblTempUsageDetail_20' ) end [2025-03-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735999', 'tblTempVendorCDR_20' ) start [2025-03-22 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14735999', 'tblTempVendorCDR_20' ) end [2025-03-22 07:30:19] Production.INFO: ProcessCDR(1,14735999,1,1,2) [2025-03-22 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14735999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14735999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14735999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14735999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735999', 'tblTempUsageDetail_20' ) start [2025-03-22 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14735999', 'tblTempUsageDetail_20' ) end [2025-03-22 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:30:23] Production.INFO: ==2633== Releasing lock... [2025-03-22 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:31:05 [end_date_ymd] => 2025-03-22 07:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:31:05' and `end` < '2025-03-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-03-22 07:31:18] Production.INFO: count ==428 [2025-03-22 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:31:05 - End Time 2025-03-22 07:31:05 [2025-03-22 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736004', 'tblTempUsageDetail_20' ) start [2025-03-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736004', 'tblTempUsageDetail_20' ) end [2025-03-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736004', 'tblTempVendorCDR_20' ) start [2025-03-22 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736004', 'tblTempVendorCDR_20' ) end [2025-03-22 07:31:18] Production.INFO: ProcessCDR(1,14736004,1,1,2) [2025-03-22 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736004', 'tblTempUsageDetail_20' ) start [2025-03-22 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736004', 'tblTempUsageDetail_20' ) end [2025-03-22 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:31:22] Production.INFO: ==2712== Releasing lock... [2025-03-22 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:32:06 [end_date_ymd] => 2025-03-22 07:32:06 [RateCDR] => 1 ) [2025-03-22 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:32:06' and `end` < '2025-03-22 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:32:18] Production.INFO: count ==428 [2025-03-22 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:32:06 - End Time 2025-03-22 07:32:06 [2025-03-22 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736009', 'tblTempUsageDetail_20' ) start [2025-03-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736009', 'tblTempUsageDetail_20' ) end [2025-03-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736009', 'tblTempVendorCDR_20' ) start [2025-03-22 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736009', 'tblTempVendorCDR_20' ) end [2025-03-22 07:32:18] Production.INFO: ProcessCDR(1,14736009,1,1,2) [2025-03-22 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736009', 'tblTempUsageDetail_20' ) start [2025-03-22 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736009', 'tblTempUsageDetail_20' ) end [2025-03-22 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:32:22] Production.INFO: ==2788== Releasing lock... [2025-03-22 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:33:05 [end_date_ymd] => 2025-03-22 07:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:33:05' and `end` < '2025-03-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-03-22 07:33:17] Production.INFO: count ==428 [2025-03-22 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:33:05 - End Time 2025-03-22 07:33:05 [2025-03-22 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736014', 'tblTempUsageDetail_20' ) start [2025-03-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736014', 'tblTempUsageDetail_20' ) end [2025-03-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736014', 'tblTempVendorCDR_20' ) start [2025-03-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736014', 'tblTempVendorCDR_20' ) end [2025-03-22 07:33:18] Production.INFO: ProcessCDR(1,14736014,1,1,2) [2025-03-22 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736014', 'tblTempUsageDetail_20' ) start [2025-03-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736014', 'tblTempUsageDetail_20' ) end [2025-03-22 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:33:21] Production.INFO: ==2859== Releasing lock... [2025-03-22 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:34:05 [end_date_ymd] => 2025-03-22 07:34:05 [RateCDR] => 1 ) [2025-03-22 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:34:05' and `end` < '2025-03-22 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:34:17] Production.INFO: count ==428 [2025-03-22 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:34:05 - End Time 2025-03-22 07:34:05 [2025-03-22 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736019', 'tblTempUsageDetail_20' ) start [2025-03-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736019', 'tblTempUsageDetail_20' ) end [2025-03-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736019', 'tblTempVendorCDR_20' ) start [2025-03-22 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736019', 'tblTempVendorCDR_20' ) end [2025-03-22 07:34:18] Production.INFO: ProcessCDR(1,14736019,1,1,2) [2025-03-22 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736019', 'tblTempUsageDetail_20' ) start [2025-03-22 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736019', 'tblTempUsageDetail_20' ) end [2025-03-22 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:34:21] Production.INFO: ==2933== Releasing lock... [2025-03-22 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:35:05 [end_date_ymd] => 2025-03-22 07:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:35:05' and `end` < '2025-03-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-03-22 07:35:17] Production.INFO: count ==428 [2025-03-22 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:35:05 - End Time 2025-03-22 07:35:05 [2025-03-22 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736024', 'tblTempUsageDetail_20' ) start [2025-03-22 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736024', 'tblTempUsageDetail_20' ) end [2025-03-22 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736024', 'tblTempVendorCDR_20' ) start [2025-03-22 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736024', 'tblTempVendorCDR_20' ) end [2025-03-22 07:35:18] Production.INFO: ProcessCDR(1,14736024,1,1,2) [2025-03-22 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736024', 'tblTempUsageDetail_20' ) start [2025-03-22 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736024', 'tblTempUsageDetail_20' ) end [2025-03-22 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:35:21] Production.INFO: ==3008== Releasing lock... [2025-03-22 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:36:05 [end_date_ymd] => 2025-03-22 07:36:05 [RateCDR] => 1 ) [2025-03-22 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:36:05' and `end` < '2025-03-22 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:36:18] Production.INFO: count ==428 [2025-03-22 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:36:05 - End Time 2025-03-22 07:36:05 [2025-03-22 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736029', 'tblTempUsageDetail_20' ) start [2025-03-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736029', 'tblTempUsageDetail_20' ) end [2025-03-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736029', 'tblTempVendorCDR_20' ) start [2025-03-22 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736029', 'tblTempVendorCDR_20' ) end [2025-03-22 07:36:18] Production.INFO: ProcessCDR(1,14736029,1,1,2) [2025-03-22 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736029', 'tblTempUsageDetail_20' ) start [2025-03-22 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736029', 'tblTempUsageDetail_20' ) end [2025-03-22 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:36:21] Production.INFO: ==3123== Releasing lock... [2025-03-22 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:37:05 [end_date_ymd] => 2025-03-22 07:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:37:05' and `end` < '2025-03-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-03-22 07:37:17] Production.INFO: count ==428 [2025-03-22 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:37:05 - End Time 2025-03-22 07:37:05 [2025-03-22 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736034', 'tblTempUsageDetail_20' ) start [2025-03-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736034', 'tblTempUsageDetail_20' ) end [2025-03-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736034', 'tblTempVendorCDR_20' ) start [2025-03-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736034', 'tblTempVendorCDR_20' ) end [2025-03-22 07:37:17] Production.INFO: ProcessCDR(1,14736034,1,1,2) [2025-03-22 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736034', 'tblTempUsageDetail_20' ) start [2025-03-22 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736034', 'tblTempUsageDetail_20' ) end [2025-03-22 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:37:21] Production.INFO: ==3201== Releasing lock... [2025-03-22 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:38:05 [end_date_ymd] => 2025-03-22 07:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:38:05' and `end` < '2025-03-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-03-22 07:38:17] Production.INFO: count ==428 [2025-03-22 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:38:05 - End Time 2025-03-22 07:38:05 [2025-03-22 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736039', 'tblTempUsageDetail_20' ) start [2025-03-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736039', 'tblTempUsageDetail_20' ) end [2025-03-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736039', 'tblTempVendorCDR_20' ) start [2025-03-22 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736039', 'tblTempVendorCDR_20' ) end [2025-03-22 07:38:18] Production.INFO: ProcessCDR(1,14736039,1,1,2) [2025-03-22 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736039', 'tblTempUsageDetail_20' ) start [2025-03-22 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736039', 'tblTempUsageDetail_20' ) end [2025-03-22 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:38:21] Production.INFO: ==3278== Releasing lock... [2025-03-22 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:39:04 [end_date_ymd] => 2025-03-22 07:39:04 [RateCDR] => 1 ) [2025-03-22 07:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:39:04' and `end` < '2025-03-22 07:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:39:17] Production.INFO: count ==428 [2025-03-22 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:39:04 - End Time 2025-03-22 07:39:04 [2025-03-22 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736044', 'tblTempUsageDetail_20' ) start [2025-03-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736044', 'tblTempUsageDetail_20' ) end [2025-03-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736044', 'tblTempVendorCDR_20' ) start [2025-03-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736044', 'tblTempVendorCDR_20' ) end [2025-03-22 07:39:17] Production.INFO: ProcessCDR(1,14736044,1,1,2) [2025-03-22 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736044', 'tblTempUsageDetail_20' ) start [2025-03-22 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736044', 'tblTempUsageDetail_20' ) end [2025-03-22 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:39:20] Production.INFO: ==3353== Releasing lock... [2025-03-22 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:39:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:40:06 [end_date_ymd] => 2025-03-22 07:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 04:40:06' and `end` < '2025-03-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-03-22 07:40:18] Production.INFO: count ==439 [2025-03-22 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:40:06 - End Time 2025-03-22 07:40:06 [2025-03-22 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736050', 'tblTempUsageDetail_20' ) start [2025-03-22 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736050', 'tblTempUsageDetail_20' ) end [2025-03-22 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736050', 'tblTempVendorCDR_20' ) start [2025-03-22 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736050', 'tblTempVendorCDR_20' ) end [2025-03-22 07:40:18] Production.INFO: ProcessCDR(1,14736050,1,1,2) [2025-03-22 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736050', 'tblTempUsageDetail_20' ) start [2025-03-22 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736050', 'tblTempUsageDetail_20' ) end [2025-03-22 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:40:23] Production.INFO: ==3432== Releasing lock... [2025-03-22 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:40:23] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:41:04 [end_date_ymd] => 2025-03-22 07:41:04 [RateCDR] => 1 ) [2025-03-22 07: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-03-22 04:41:04' and `end` < '2025-03-22 07: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-03-22 07:41:17] Production.INFO: count ==447 [2025-03-22 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:41:04 - End Time 2025-03-22 07:41:04 [2025-03-22 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736055', 'tblTempUsageDetail_20' ) start [2025-03-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736055', 'tblTempUsageDetail_20' ) end [2025-03-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736055', 'tblTempVendorCDR_20' ) start [2025-03-22 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736055', 'tblTempVendorCDR_20' ) end [2025-03-22 07:41:17] Production.INFO: ProcessCDR(1,14736055,1,1,2) [2025-03-22 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736055', 'tblTempUsageDetail_20' ) start [2025-03-22 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736055', 'tblTempUsageDetail_20' ) end [2025-03-22 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:41:20] Production.INFO: ==3509== Releasing lock... [2025-03-22 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:41:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:42:05 [end_date_ymd] => 2025-03-22 07:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:42:05' and `end` < '2025-03-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-03-22 07:42:17] Production.INFO: count ==447 [2025-03-22 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:42:05 - End Time 2025-03-22 07:42:05 [2025-03-22 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736060', 'tblTempUsageDetail_20' ) start [2025-03-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736060', 'tblTempUsageDetail_20' ) end [2025-03-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736060', 'tblTempVendorCDR_20' ) start [2025-03-22 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736060', 'tblTempVendorCDR_20' ) end [2025-03-22 07:42:17] Production.INFO: ProcessCDR(1,14736060,1,1,2) [2025-03-22 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736060', 'tblTempUsageDetail_20' ) start [2025-03-22 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736060', 'tblTempUsageDetail_20' ) end [2025-03-22 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:42:21] Production.INFO: ==3584== Releasing lock... [2025-03-22 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:43:05 [end_date_ymd] => 2025-03-22 07:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:43:05' and `end` < '2025-03-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-03-22 07:43:18] Production.INFO: count ==444 [2025-03-22 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:43:05 - End Time 2025-03-22 07:43:05 [2025-03-22 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736065', 'tblTempUsageDetail_20' ) start [2025-03-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736065', 'tblTempUsageDetail_20' ) end [2025-03-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736065', 'tblTempVendorCDR_20' ) start [2025-03-22 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736065', 'tblTempVendorCDR_20' ) end [2025-03-22 07:43:18] Production.INFO: ProcessCDR(1,14736065,1,1,2) [2025-03-22 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736065', 'tblTempUsageDetail_20' ) start [2025-03-22 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736065', 'tblTempUsageDetail_20' ) end [2025-03-22 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:43:21] Production.INFO: ==3657== Releasing lock... [2025-03-22 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:43:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:44:05 [end_date_ymd] => 2025-03-22 07:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:44:05' and `end` < '2025-03-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-03-22 07:44:18] Production.INFO: count ==444 [2025-03-22 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:44:05 - End Time 2025-03-22 07:44:05 [2025-03-22 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736070', 'tblTempUsageDetail_20' ) start [2025-03-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736070', 'tblTempUsageDetail_20' ) end [2025-03-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736070', 'tblTempVendorCDR_20' ) start [2025-03-22 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736070', 'tblTempVendorCDR_20' ) end [2025-03-22 07:44:18] Production.INFO: ProcessCDR(1,14736070,1,1,2) [2025-03-22 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736070', 'tblTempUsageDetail_20' ) start [2025-03-22 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736070', 'tblTempUsageDetail_20' ) end [2025-03-22 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:44:21] Production.INFO: ==3731== Releasing lock... [2025-03-22 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:44:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:45:05 [end_date_ymd] => 2025-03-22 07:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:45:05' and `end` < '2025-03-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-03-22 07:45:17] Production.INFO: count ==444 [2025-03-22 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:45:05 - End Time 2025-03-22 07:45:05 [2025-03-22 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736075', 'tblTempUsageDetail_20' ) start [2025-03-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736075', 'tblTempUsageDetail_20' ) end [2025-03-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736075', 'tblTempVendorCDR_20' ) start [2025-03-22 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736075', 'tblTempVendorCDR_20' ) end [2025-03-22 07:45:17] Production.INFO: ProcessCDR(1,14736075,1,1,2) [2025-03-22 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736075', 'tblTempUsageDetail_20' ) start [2025-03-22 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736075', 'tblTempUsageDetail_20' ) end [2025-03-22 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:45:21] Production.INFO: ==3809== Releasing lock... [2025-03-22 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:45:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:46:05 [end_date_ymd] => 2025-03-22 07:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:46:05' and `end` < '2025-03-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-03-22 07:46:17] Production.INFO: count ==444 [2025-03-22 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:46:05 - End Time 2025-03-22 07:46:05 [2025-03-22 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736080', 'tblTempUsageDetail_20' ) start [2025-03-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736080', 'tblTempUsageDetail_20' ) end [2025-03-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736080', 'tblTempVendorCDR_20' ) start [2025-03-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736080', 'tblTempVendorCDR_20' ) end [2025-03-22 07:46:17] Production.INFO: ProcessCDR(1,14736080,1,1,2) [2025-03-22 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736080', 'tblTempUsageDetail_20' ) start [2025-03-22 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736080', 'tblTempUsageDetail_20' ) end [2025-03-22 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:46:21] Production.INFO: ==3879== Releasing lock... [2025-03-22 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:47:06 [end_date_ymd] => 2025-03-22 07:47:06 [RateCDR] => 1 ) [2025-03-22 07:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:47:06' and `end` < '2025-03-22 07:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:47:18] Production.INFO: count ==444 [2025-03-22 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:47:06 - End Time 2025-03-22 07:47:06 [2025-03-22 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736085', 'tblTempUsageDetail_20' ) start [2025-03-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736085', 'tblTempUsageDetail_20' ) end [2025-03-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736085', 'tblTempVendorCDR_20' ) start [2025-03-22 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736085', 'tblTempVendorCDR_20' ) end [2025-03-22 07:47:18] Production.INFO: ProcessCDR(1,14736085,1,1,2) [2025-03-22 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736085', 'tblTempUsageDetail_20' ) start [2025-03-22 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736085', 'tblTempUsageDetail_20' ) end [2025-03-22 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:47:21] Production.INFO: ==3954== Releasing lock... [2025-03-22 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:48:05 [end_date_ymd] => 2025-03-22 07:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:48:05' and `end` < '2025-03-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-03-22 07:48:17] Production.INFO: count ==444 [2025-03-22 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:48:05 - End Time 2025-03-22 07:48:05 [2025-03-22 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736090', 'tblTempUsageDetail_20' ) start [2025-03-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736090', 'tblTempUsageDetail_20' ) end [2025-03-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736090', 'tblTempVendorCDR_20' ) start [2025-03-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736090', 'tblTempVendorCDR_20' ) end [2025-03-22 07:48:17] Production.INFO: ProcessCDR(1,14736090,1,1,2) [2025-03-22 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736090', 'tblTempUsageDetail_20' ) start [2025-03-22 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736090', 'tblTempUsageDetail_20' ) end [2025-03-22 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:48:21] Production.INFO: ==4034== Releasing lock... [2025-03-22 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:48:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:49:05 [end_date_ymd] => 2025-03-22 07:49:05 [RateCDR] => 1 ) [2025-03-22 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:49:05' and `end` < '2025-03-22 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:49:17] Production.INFO: count ==441 [2025-03-22 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:49:05 - End Time 2025-03-22 07:49:05 [2025-03-22 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736095', 'tblTempUsageDetail_20' ) start [2025-03-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736095', 'tblTempUsageDetail_20' ) end [2025-03-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736095', 'tblTempVendorCDR_20' ) start [2025-03-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736095', 'tblTempVendorCDR_20' ) end [2025-03-22 07:49:17] Production.INFO: ProcessCDR(1,14736095,1,1,2) [2025-03-22 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736095', 'tblTempUsageDetail_20' ) start [2025-03-22 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736095', 'tblTempUsageDetail_20' ) end [2025-03-22 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:49:21] Production.INFO: ==4110== Releasing lock... [2025-03-22 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:50:05 [end_date_ymd] => 2025-03-22 07:50:05 [RateCDR] => 1 ) [2025-03-22 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:50:05' and `end` < '2025-03-22 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:50:18] Production.INFO: count ==439 [2025-03-22 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:50:05 - End Time 2025-03-22 07:50:05 [2025-03-22 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736101', 'tblTempUsageDetail_20' ) start [2025-03-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736101', 'tblTempUsageDetail_20' ) end [2025-03-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736101', 'tblTempVendorCDR_20' ) start [2025-03-22 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736101', 'tblTempVendorCDR_20' ) end [2025-03-22 07:50:18] Production.INFO: ProcessCDR(1,14736101,1,1,2) [2025-03-22 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736101', 'tblTempUsageDetail_20' ) start [2025-03-22 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736101', 'tblTempUsageDetail_20' ) end [2025-03-22 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:50:21] Production.INFO: ==4187== Releasing lock... [2025-03-22 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:50:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:51:05 [end_date_ymd] => 2025-03-22 07:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:51:05' and `end` < '2025-03-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-03-22 07:51:17] Production.INFO: count ==435 [2025-03-22 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:51:05 - End Time 2025-03-22 07:51:05 [2025-03-22 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736106', 'tblTempUsageDetail_20' ) start [2025-03-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736106', 'tblTempUsageDetail_20' ) end [2025-03-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736106', 'tblTempVendorCDR_20' ) start [2025-03-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736106', 'tblTempVendorCDR_20' ) end [2025-03-22 07:51:17] Production.INFO: ProcessCDR(1,14736106,1,1,2) [2025-03-22 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736106', 'tblTempUsageDetail_20' ) start [2025-03-22 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736106', 'tblTempUsageDetail_20' ) end [2025-03-22 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:51:21] Production.INFO: ==4302== Releasing lock... [2025-03-22 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:52:05 [end_date_ymd] => 2025-03-22 07:52:05 [RateCDR] => 1 ) [2025-03-22 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:52:05' and `end` < '2025-03-22 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:52:17] Production.INFO: count ==431 [2025-03-22 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:52:05 - End Time 2025-03-22 07:52:05 [2025-03-22 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736111', 'tblTempUsageDetail_20' ) start [2025-03-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736111', 'tblTempUsageDetail_20' ) end [2025-03-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736111', 'tblTempVendorCDR_20' ) start [2025-03-22 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736111', 'tblTempVendorCDR_20' ) end [2025-03-22 07:52:18] Production.INFO: ProcessCDR(1,14736111,1,1,2) [2025-03-22 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736111', 'tblTempUsageDetail_20' ) start [2025-03-22 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736111', 'tblTempUsageDetail_20' ) end [2025-03-22 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:52:21] Production.INFO: ==4373== Releasing lock... [2025-03-22 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:53:05 [end_date_ymd] => 2025-03-22 07:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:53:05' and `end` < '2025-03-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-03-22 07:53:17] Production.INFO: count ==421 [2025-03-22 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:53:05 - End Time 2025-03-22 07:53:05 [2025-03-22 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736116', 'tblTempUsageDetail_20' ) start [2025-03-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736116', 'tblTempUsageDetail_20' ) end [2025-03-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736116', 'tblTempVendorCDR_20' ) start [2025-03-22 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736116', 'tblTempVendorCDR_20' ) end [2025-03-22 07:53:17] Production.INFO: ProcessCDR(1,14736116,1,1,2) [2025-03-22 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736116', 'tblTempUsageDetail_20' ) start [2025-03-22 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736116', 'tblTempUsageDetail_20' ) end [2025-03-22 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:53:20] Production.INFO: ==4451== Releasing lock... [2025-03-22 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:53:20] Production.INFO: 32 MB #Memory Used# [2025-03-22 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:54:05 [end_date_ymd] => 2025-03-22 07:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:54:05' and `end` < '2025-03-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-03-22 07:54:18] Production.INFO: count ==413 [2025-03-22 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:54:05 - End Time 2025-03-22 07:54:05 [2025-03-22 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736121', 'tblTempUsageDetail_20' ) start [2025-03-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736121', 'tblTempUsageDetail_20' ) end [2025-03-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736121', 'tblTempVendorCDR_20' ) start [2025-03-22 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736121', 'tblTempVendorCDR_20' ) end [2025-03-22 07:54:18] Production.INFO: ProcessCDR(1,14736121,1,1,2) [2025-03-22 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736121', 'tblTempUsageDetail_20' ) start [2025-03-22 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736121', 'tblTempUsageDetail_20' ) end [2025-03-22 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:54:21] Production.INFO: ==4532== Releasing lock... [2025-03-22 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:55:05 [end_date_ymd] => 2025-03-22 07:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:55:05' and `end` < '2025-03-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-03-22 07:55:17] Production.INFO: count ==401 [2025-03-22 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:55:05 - End Time 2025-03-22 07:55:05 [2025-03-22 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736126', 'tblTempUsageDetail_20' ) start [2025-03-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736126', 'tblTempUsageDetail_20' ) end [2025-03-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736126', 'tblTempVendorCDR_20' ) start [2025-03-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736126', 'tblTempVendorCDR_20' ) end [2025-03-22 07:55:17] Production.INFO: ProcessCDR(1,14736126,1,1,2) [2025-03-22 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736126', 'tblTempUsageDetail_20' ) start [2025-03-22 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736126', 'tblTempUsageDetail_20' ) end [2025-03-22 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:55:21] Production.INFO: ==4614== Releasing lock... [2025-03-22 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:56:06 [end_date_ymd] => 2025-03-22 07:56:06 [RateCDR] => 1 ) [2025-03-22 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:56:06' and `end` < '2025-03-22 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:56:18] Production.INFO: count ==354 [2025-03-22 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:56:06 - End Time 2025-03-22 07:56:06 [2025-03-22 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736131', 'tblTempUsageDetail_20' ) start [2025-03-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736131', 'tblTempUsageDetail_20' ) end [2025-03-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736131', 'tblTempVendorCDR_20' ) start [2025-03-22 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736131', 'tblTempVendorCDR_20' ) end [2025-03-22 07:56:18] Production.INFO: ProcessCDR(1,14736131,1,1,2) [2025-03-22 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736131', 'tblTempUsageDetail_20' ) start [2025-03-22 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736131', 'tblTempUsageDetail_20' ) end [2025-03-22 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:56:22] Production.INFO: ==4694== Releasing lock... [2025-03-22 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:57:05 [end_date_ymd] => 2025-03-22 07:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 04:57:05' and `end` < '2025-03-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-03-22 07:57:17] Production.INFO: count ==358 [2025-03-22 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:57:05 - End Time 2025-03-22 07:57:05 [2025-03-22 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736136', 'tblTempUsageDetail_20' ) start [2025-03-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736136', 'tblTempUsageDetail_20' ) end [2025-03-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736136', 'tblTempVendorCDR_20' ) start [2025-03-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736136', 'tblTempVendorCDR_20' ) end [2025-03-22 07:57:17] Production.INFO: ProcessCDR(1,14736136,1,1,2) [2025-03-22 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736136', 'tblTempUsageDetail_20' ) start [2025-03-22 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736136', 'tblTempUsageDetail_20' ) end [2025-03-22 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:57:21] Production.INFO: ==4767== Releasing lock... [2025-03-22 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:57:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:58:06 [end_date_ymd] => 2025-03-22 07:58:06 [RateCDR] => 1 ) [2025-03-22 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:58:06' and `end` < '2025-03-22 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:58:18] Production.INFO: count ==358 [2025-03-22 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 04:58:06 - End Time 2025-03-22 07:58:06 [2025-03-22 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736141', 'tblTempUsageDetail_20' ) start [2025-03-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736141', 'tblTempUsageDetail_20' ) end [2025-03-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736141', 'tblTempVendorCDR_20' ) start [2025-03-22 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736141', 'tblTempVendorCDR_20' ) end [2025-03-22 07:58:18] Production.INFO: ProcessCDR(1,14736141,1,1,2) [2025-03-22 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736141', 'tblTempUsageDetail_20' ) start [2025-03-22 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736141', 'tblTempUsageDetail_20' ) end [2025-03-22 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:58:21] Production.INFO: ==4843== Releasing lock... [2025-03-22 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 04:59:05 [end_date_ymd] => 2025-03-22 07:59:05 [RateCDR] => 1 ) [2025-03-22 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 04:59:05' and `end` < '2025-03-22 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 07:59:17] Production.INFO: count ==358 [2025-03-22 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-22 04:59:05 - End Time 2025-03-22 07:59:05 [2025-03-22 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736146', 'tblTempUsageDetail_20' ) start [2025-03-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736146', 'tblTempUsageDetail_20' ) end [2025-03-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736146', 'tblTempVendorCDR_20' ) start [2025-03-22 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736146', 'tblTempVendorCDR_20' ) end [2025-03-22 07:59:17] Production.INFO: ProcessCDR(1,14736146,1,1,2) [2025-03-22 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736146', 'tblTempUsageDetail_20' ) start [2025-03-22 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736146', 'tblTempUsageDetail_20' ) end [2025-03-22 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 07:59:21] Production.INFO: ==4916== Releasing lock... [2025-03-22 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 07:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:00:06 [end_date_ymd] => 2025-03-22 08:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 05:00:06' and `end` < '2025-03-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-03-22 08:00:18] Production.INFO: count ==368 [2025-03-22 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:00:06 - End Time 2025-03-22 08:00:06 [2025-03-22 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736152', 'tblTempUsageDetail_20' ) start [2025-03-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736152', 'tblTempUsageDetail_20' ) end [2025-03-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736152', 'tblTempVendorCDR_20' ) start [2025-03-22 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736152', 'tblTempVendorCDR_20' ) end [2025-03-22 08:00:18] Production.INFO: ProcessCDR(1,14736152,1,1,2) [2025-03-22 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736152', 'tblTempUsageDetail_20' ) start [2025-03-22 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736152', 'tblTempUsageDetail_20' ) end [2025-03-22 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:00:22] Production.INFO: ==4993== Releasing lock... [2025-03-22 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:01:05 [end_date_ymd] => 2025-03-22 08:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:01:05' and `end` < '2025-03-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-03-22 08:01:18] Production.INFO: count ==372 [2025-03-22 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:01:05 - End Time 2025-03-22 08:01:05 [2025-03-22 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736157', 'tblTempUsageDetail_20' ) start [2025-03-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736157', 'tblTempUsageDetail_20' ) end [2025-03-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736157', 'tblTempVendorCDR_20' ) start [2025-03-22 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736157', 'tblTempVendorCDR_20' ) end [2025-03-22 08:01:18] Production.INFO: ProcessCDR(1,14736157,1,1,2) [2025-03-22 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736157', 'tblTempUsageDetail_20' ) start [2025-03-22 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736157', 'tblTempUsageDetail_20' ) end [2025-03-22 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:01:21] Production.INFO: ==5079== Releasing lock... [2025-03-22 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:02:06 [end_date_ymd] => 2025-03-22 08:02:06 [RateCDR] => 1 ) [2025-03-22 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:02:06' and `end` < '2025-03-22 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:02:18] Production.INFO: count ==373 [2025-03-22 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:02:06 - End Time 2025-03-22 08:02:06 [2025-03-22 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736162', 'tblTempUsageDetail_20' ) start [2025-03-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736162', 'tblTempUsageDetail_20' ) end [2025-03-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736162', 'tblTempVendorCDR_20' ) start [2025-03-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736162', 'tblTempVendorCDR_20' ) end [2025-03-22 08:02:18] Production.INFO: ProcessCDR(1,14736162,1,1,2) [2025-03-22 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736162', 'tblTempUsageDetail_20' ) start [2025-03-22 08:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736162', 'tblTempUsageDetail_20' ) end [2025-03-22 08:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:02:24] Production.INFO: ==5154== Releasing lock... [2025-03-22 08:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:02:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:03:05 [end_date_ymd] => 2025-03-22 08:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:03:05' and `end` < '2025-03-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-03-22 08:03:18] Production.INFO: count ==368 [2025-03-22 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:03:05 - End Time 2025-03-22 08:03:05 [2025-03-22 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736167', 'tblTempUsageDetail_20' ) start [2025-03-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736167', 'tblTempUsageDetail_20' ) end [2025-03-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736167', 'tblTempVendorCDR_20' ) start [2025-03-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736167', 'tblTempVendorCDR_20' ) end [2025-03-22 08:03:18] Production.INFO: ProcessCDR(1,14736167,1,1,2) [2025-03-22 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736167', 'tblTempUsageDetail_20' ) start [2025-03-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736167', 'tblTempUsageDetail_20' ) end [2025-03-22 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:03:21] Production.INFO: ==5229== Releasing lock... [2025-03-22 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:04:06 [end_date_ymd] => 2025-03-22 08:04:06 [RateCDR] => 1 ) [2025-03-22 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:04:06' and `end` < '2025-03-22 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:04:18] Production.INFO: count ==363 [2025-03-22 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:04:06 - End Time 2025-03-22 08:04:06 [2025-03-22 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736172', 'tblTempUsageDetail_20' ) start [2025-03-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736172', 'tblTempUsageDetail_20' ) end [2025-03-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736172', 'tblTempVendorCDR_20' ) start [2025-03-22 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736172', 'tblTempVendorCDR_20' ) end [2025-03-22 08:04:18] Production.INFO: ProcessCDR(1,14736172,1,1,2) [2025-03-22 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736172', 'tblTempUsageDetail_20' ) start [2025-03-22 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736172', 'tblTempUsageDetail_20' ) end [2025-03-22 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:04:21] Production.INFO: ==5304== Releasing lock... [2025-03-22 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:04:21] Production.INFO: 31 MB #Memory Used# [2025-03-22 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:05:05 [end_date_ymd] => 2025-03-22 08:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:05:05' and `end` < '2025-03-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-03-22 08:05:17] Production.INFO: count ==368 [2025-03-22 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:05:05 - End Time 2025-03-22 08:05:05 [2025-03-22 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736177', 'tblTempUsageDetail_20' ) start [2025-03-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736177', 'tblTempUsageDetail_20' ) end [2025-03-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736177', 'tblTempVendorCDR_20' ) start [2025-03-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736177', 'tblTempVendorCDR_20' ) end [2025-03-22 08:05:17] Production.INFO: ProcessCDR(1,14736177,1,1,2) [2025-03-22 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736177', 'tblTempUsageDetail_20' ) start [2025-03-22 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736177', 'tblTempUsageDetail_20' ) end [2025-03-22 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:05:21] Production.INFO: ==5375== Releasing lock... [2025-03-22 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:06:05 [end_date_ymd] => 2025-03-22 08:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:06:05' and `end` < '2025-03-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-03-22 08:06:18] Production.INFO: count ==320 [2025-03-22 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:06:05 - End Time 2025-03-22 08:06:05 [2025-03-22 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736182', 'tblTempUsageDetail_20' ) start [2025-03-22 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736182', 'tblTempUsageDetail_20' ) end [2025-03-22 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736182', 'tblTempVendorCDR_20' ) start [2025-03-22 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736182', 'tblTempVendorCDR_20' ) end [2025-03-22 08:06:18] Production.INFO: ProcessCDR(1,14736182,1,1,2) [2025-03-22 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736182', 'tblTempUsageDetail_20' ) start [2025-03-22 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736182', 'tblTempUsageDetail_20' ) end [2025-03-22 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:06:21] Production.INFO: ==5462== Releasing lock... [2025-03-22 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:07:05 [end_date_ymd] => 2025-03-22 08:07:05 [RateCDR] => 1 ) [2025-03-22 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:07:05' and `end` < '2025-03-22 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:07:17] Production.INFO: count ==250 [2025-03-22 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:07:05 - End Time 2025-03-22 08:07:05 [2025-03-22 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736187', 'tblTempUsageDetail_20' ) start [2025-03-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736187', 'tblTempUsageDetail_20' ) end [2025-03-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736187', 'tblTempVendorCDR_20' ) start [2025-03-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736187', 'tblTempVendorCDR_20' ) end [2025-03-22 08:07:17] Production.INFO: ProcessCDR(1,14736187,1,1,2) [2025-03-22 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736187', 'tblTempUsageDetail_20' ) start [2025-03-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736187', 'tblTempUsageDetail_20' ) end [2025-03-22 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:07:20] Production.INFO: ==5584== Releasing lock... [2025-03-22 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-22 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:08:05 [end_date_ymd] => 2025-03-22 08:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:08:05' and `end` < '2025-03-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-03-22 08:08:18] Production.INFO: count ==171 [2025-03-22 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:08:05 - End Time 2025-03-22 08:08:05 [2025-03-22 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736192', 'tblTempUsageDetail_20' ) start [2025-03-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736192', 'tblTempUsageDetail_20' ) end [2025-03-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736192', 'tblTempVendorCDR_20' ) start [2025-03-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736192', 'tblTempVendorCDR_20' ) end [2025-03-22 08:08:18] Production.INFO: ProcessCDR(1,14736192,1,1,2) [2025-03-22 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736192', 'tblTempUsageDetail_20' ) start [2025-03-22 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736192', 'tblTempUsageDetail_20' ) end [2025-03-22 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:08:21] Production.INFO: ==5661== Releasing lock... [2025-03-22 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:09:05 [end_date_ymd] => 2025-03-22 08:09:05 [RateCDR] => 1 ) [2025-03-22 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:09:05' and `end` < '2025-03-22 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:09:17] Production.INFO: count ==134 [2025-03-22 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:09:05 - End Time 2025-03-22 08:09:05 [2025-03-22 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736197', 'tblTempUsageDetail_20' ) start [2025-03-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736197', 'tblTempUsageDetail_20' ) end [2025-03-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736197', 'tblTempVendorCDR_20' ) start [2025-03-22 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736197', 'tblTempVendorCDR_20' ) end [2025-03-22 08:09:17] Production.INFO: ProcessCDR(1,14736197,1,1,2) [2025-03-22 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736197', 'tblTempUsageDetail_20' ) start [2025-03-22 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736197', 'tblTempUsageDetail_20' ) end [2025-03-22 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:09:22] Production.INFO: ==5740== Releasing lock... [2025-03-22 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:10:07 [end_date_ymd] => 2025-03-22 08:10:07 [RateCDR] => 1 ) [2025-03-22 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:10:07' and `end` < '2025-03-22 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:10:19] Production.INFO: count ==129 [2025-03-22 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 05:10:07 - End Time 2025-03-22 08:10:07 [2025-03-22 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736203', 'tblTempUsageDetail_20' ) start [2025-03-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736203', 'tblTempUsageDetail_20' ) end [2025-03-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736203', 'tblTempVendorCDR_20' ) start [2025-03-22 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736203', 'tblTempVendorCDR_20' ) end [2025-03-22 08:10:19] Production.INFO: ProcessCDR(1,14736203,1,1,2) [2025-03-22 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736203', 'tblTempUsageDetail_20' ) start [2025-03-22 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736203', 'tblTempUsageDetail_20' ) end [2025-03-22 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:10:23] Production.INFO: ==5827== Releasing lock... [2025-03-22 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:10:23] Production.INFO: 29 MB #Memory Used# [2025-03-22 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:11:05 [end_date_ymd] => 2025-03-22 08:11:05 [RateCDR] => 1 ) [2025-03-22 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:11:05' and `end` < '2025-03-22 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:11:17] Production.INFO: count ==117 [2025-03-22 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:11:05 - End Time 2025-03-22 08:11:05 [2025-03-22 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736208', 'tblTempUsageDetail_20' ) start [2025-03-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736208', 'tblTempUsageDetail_20' ) end [2025-03-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736208', 'tblTempVendorCDR_20' ) start [2025-03-22 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736208', 'tblTempVendorCDR_20' ) end [2025-03-22 08:11:17] Production.INFO: ProcessCDR(1,14736208,1,1,2) [2025-03-22 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736208', 'tblTempUsageDetail_20' ) start [2025-03-22 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736208', 'tblTempUsageDetail_20' ) end [2025-03-22 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:11:21] Production.INFO: ==5914== Releasing lock... [2025-03-22 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:11:21] Production.INFO: 29 MB #Memory Used# [2025-03-22 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:12:05 [end_date_ymd] => 2025-03-22 08:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:12:05' and `end` < '2025-03-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-03-22 08:12:18] Production.INFO: count ==103 [2025-03-22 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:12:05 - End Time 2025-03-22 08:12:05 [2025-03-22 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736213', 'tblTempUsageDetail_20' ) start [2025-03-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736213', 'tblTempUsageDetail_20' ) end [2025-03-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736213', 'tblTempVendorCDR_20' ) start [2025-03-22 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736213', 'tblTempVendorCDR_20' ) end [2025-03-22 08:12:18] Production.INFO: ProcessCDR(1,14736213,1,1,2) [2025-03-22 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736213', 'tblTempUsageDetail_20' ) start [2025-03-22 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736213', 'tblTempUsageDetail_20' ) end [2025-03-22 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:12:21] Production.INFO: ==6001== Releasing lock... [2025-03-22 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:13:05 [end_date_ymd] => 2025-03-22 08:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:13:05' and `end` < '2025-03-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-03-22 08:13:17] Production.INFO: count ==104 [2025-03-22 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:13:05 - End Time 2025-03-22 08:13:05 [2025-03-22 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736218', 'tblTempUsageDetail_20' ) start [2025-03-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736218', 'tblTempUsageDetail_20' ) end [2025-03-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736218', 'tblTempVendorCDR_20' ) start [2025-03-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736218', 'tblTempVendorCDR_20' ) end [2025-03-22 08:13:17] Production.INFO: ProcessCDR(1,14736218,1,1,2) [2025-03-22 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736218', 'tblTempUsageDetail_20' ) start [2025-03-22 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736218', 'tblTempUsageDetail_20' ) end [2025-03-22 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:13:21] Production.INFO: ==6096== Releasing lock... [2025-03-22 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:14:05 [end_date_ymd] => 2025-03-22 08:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:14:05' and `end` < '2025-03-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-03-22 08:14:17] Production.INFO: count ==104 [2025-03-22 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:14:05 - End Time 2025-03-22 08:14:05 [2025-03-22 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736223', 'tblTempUsageDetail_20' ) start [2025-03-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736223', 'tblTempUsageDetail_20' ) end [2025-03-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736223', 'tblTempVendorCDR_20' ) start [2025-03-22 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736223', 'tblTempVendorCDR_20' ) end [2025-03-22 08:14:17] Production.INFO: ProcessCDR(1,14736223,1,1,2) [2025-03-22 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736223', 'tblTempUsageDetail_20' ) start [2025-03-22 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736223', 'tblTempUsageDetail_20' ) end [2025-03-22 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:14:21] Production.INFO: ==6176== Releasing lock... [2025-03-22 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:15:05 [end_date_ymd] => 2025-03-22 08:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:15:05' and `end` < '2025-03-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-03-22 08:15:17] Production.INFO: count ==104 [2025-03-22 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:15:05 - End Time 2025-03-22 08:15:05 [2025-03-22 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736228', 'tblTempUsageDetail_20' ) start [2025-03-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736228', 'tblTempUsageDetail_20' ) end [2025-03-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736228', 'tblTempVendorCDR_20' ) start [2025-03-22 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736228', 'tblTempVendorCDR_20' ) end [2025-03-22 08:15:17] Production.INFO: ProcessCDR(1,14736228,1,1,2) [2025-03-22 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736228', 'tblTempUsageDetail_20' ) start [2025-03-22 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736228', 'tblTempUsageDetail_20' ) end [2025-03-22 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:15:20] Production.INFO: ==6261== Releasing lock... [2025-03-22 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:16:05 [end_date_ymd] => 2025-03-22 08:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:16:05' and `end` < '2025-03-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-03-22 08:16:17] Production.INFO: count ==105 [2025-03-22 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:16:05 - End Time 2025-03-22 08:16:05 [2025-03-22 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736233', 'tblTempUsageDetail_20' ) start [2025-03-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736233', 'tblTempUsageDetail_20' ) end [2025-03-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736233', 'tblTempVendorCDR_20' ) start [2025-03-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736233', 'tblTempVendorCDR_20' ) end [2025-03-22 08:16:17] Production.INFO: ProcessCDR(1,14736233,1,1,2) [2025-03-22 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736233', 'tblTempUsageDetail_20' ) start [2025-03-22 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736233', 'tblTempUsageDetail_20' ) end [2025-03-22 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:16:22] Production.INFO: ==6350== Releasing lock... [2025-03-22 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:17:05 [end_date_ymd] => 2025-03-22 08:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:17:05' and `end` < '2025-03-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-03-22 08:17:17] Production.INFO: count ==109 [2025-03-22 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:17:05 - End Time 2025-03-22 08:17:05 [2025-03-22 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736238', 'tblTempUsageDetail_20' ) start [2025-03-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736238', 'tblTempUsageDetail_20' ) end [2025-03-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736238', 'tblTempVendorCDR_20' ) start [2025-03-22 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736238', 'tblTempVendorCDR_20' ) end [2025-03-22 08:17:17] Production.INFO: ProcessCDR(1,14736238,1,1,2) [2025-03-22 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736238', 'tblTempUsageDetail_20' ) start [2025-03-22 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736238', 'tblTempUsageDetail_20' ) end [2025-03-22 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:17:20] Production.INFO: ==6437== Releasing lock... [2025-03-22 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:18:05 [end_date_ymd] => 2025-03-22 08:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:18:05' and `end` < '2025-03-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-03-22 08:18:17] Production.INFO: count ==114 [2025-03-22 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:18:05 - End Time 2025-03-22 08:18:05 [2025-03-22 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736242', 'tblTempUsageDetail_20' ) start [2025-03-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736242', 'tblTempUsageDetail_20' ) end [2025-03-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736242', 'tblTempVendorCDR_20' ) start [2025-03-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736242', 'tblTempVendorCDR_20' ) end [2025-03-22 08:18:17] Production.INFO: ProcessCDR(1,14736242,1,1,2) [2025-03-22 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736242', 'tblTempUsageDetail_20' ) start [2025-03-22 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736242', 'tblTempUsageDetail_20' ) end [2025-03-22 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:18:21] Production.INFO: ==6525== Releasing lock... [2025-03-22 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:19:06 [end_date_ymd] => 2025-03-22 08:19:06 [RateCDR] => 1 ) [2025-03-22 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:19:06' and `end` < '2025-03-22 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:19:18] Production.INFO: count ==114 [2025-03-22 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:19:06 - End Time 2025-03-22 08:19:06 [2025-03-22 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736248', 'tblTempUsageDetail_20' ) start [2025-03-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736248', 'tblTempUsageDetail_20' ) end [2025-03-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736248', 'tblTempVendorCDR_20' ) start [2025-03-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736248', 'tblTempVendorCDR_20' ) end [2025-03-22 08:19:18] Production.INFO: ProcessCDR(1,14736248,1,1,2) [2025-03-22 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736248', 'tblTempUsageDetail_20' ) start [2025-03-22 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736248', 'tblTempUsageDetail_20' ) end [2025-03-22 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:19:22] Production.INFO: ==6611== Releasing lock... [2025-03-22 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:20:06 [end_date_ymd] => 2025-03-22 08:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 05:20:06' and `end` < '2025-03-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-03-22 08:20:18] Production.INFO: count ==114 [2025-03-22 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:20:06 - End Time 2025-03-22 08:20:06 [2025-03-22 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736254', 'tblTempUsageDetail_20' ) start [2025-03-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736254', 'tblTempUsageDetail_20' ) end [2025-03-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736254', 'tblTempVendorCDR_20' ) start [2025-03-22 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736254', 'tblTempVendorCDR_20' ) end [2025-03-22 08:20:18] Production.INFO: ProcessCDR(1,14736254,1,1,2) [2025-03-22 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736254', 'tblTempUsageDetail_20' ) start [2025-03-22 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736254', 'tblTempUsageDetail_20' ) end [2025-03-22 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:20:22] Production.INFO: ==6697== Releasing lock... [2025-03-22 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:21:06 [end_date_ymd] => 2025-03-22 08:21:06 [RateCDR] => 1 ) [2025-03-22 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:21:06' and `end` < '2025-03-22 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:21:18] Production.INFO: count ==114 [2025-03-22 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:21:06 - End Time 2025-03-22 08:21:06 [2025-03-22 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736259', 'tblTempUsageDetail_20' ) start [2025-03-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736259', 'tblTempUsageDetail_20' ) end [2025-03-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736259', 'tblTempVendorCDR_20' ) start [2025-03-22 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736259', 'tblTempVendorCDR_20' ) end [2025-03-22 08:21:18] Production.INFO: ProcessCDR(1,14736259,1,1,2) [2025-03-22 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736259', 'tblTempUsageDetail_20' ) start [2025-03-22 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736259', 'tblTempUsageDetail_20' ) end [2025-03-22 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:21:21] Production.INFO: ==6782== Releasing lock... [2025-03-22 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:22:05 [end_date_ymd] => 2025-03-22 08:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:22:05' and `end` < '2025-03-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-03-22 08:22:17] Production.INFO: count ==114 [2025-03-22 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:22:05 - End Time 2025-03-22 08:22:05 [2025-03-22 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736264', 'tblTempUsageDetail_20' ) start [2025-03-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736264', 'tblTempUsageDetail_20' ) end [2025-03-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736264', 'tblTempVendorCDR_20' ) start [2025-03-22 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736264', 'tblTempVendorCDR_20' ) end [2025-03-22 08:22:17] Production.INFO: ProcessCDR(1,14736264,1,1,2) [2025-03-22 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736264', 'tblTempUsageDetail_20' ) start [2025-03-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736264', 'tblTempUsageDetail_20' ) end [2025-03-22 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:22:21] Production.INFO: ==6904== Releasing lock... [2025-03-22 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:23:05 [end_date_ymd] => 2025-03-22 08:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:23:05' and `end` < '2025-03-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-03-22 08:23:17] Production.INFO: count ==114 [2025-03-22 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:23:05 - End Time 2025-03-22 08:23:05 [2025-03-22 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736269', 'tblTempUsageDetail_20' ) start [2025-03-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736269', 'tblTempUsageDetail_20' ) end [2025-03-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736269', 'tblTempVendorCDR_20' ) start [2025-03-22 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736269', 'tblTempVendorCDR_20' ) end [2025-03-22 08:23:17] Production.INFO: ProcessCDR(1,14736269,1,1,2) [2025-03-22 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736269', 'tblTempUsageDetail_20' ) start [2025-03-22 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736269', 'tblTempUsageDetail_20' ) end [2025-03-22 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:23:21] Production.INFO: ==6984== Releasing lock... [2025-03-22 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:24:05 [end_date_ymd] => 2025-03-22 08:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:24:05' and `end` < '2025-03-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-03-22 08:24:17] Production.INFO: count ==114 [2025-03-22 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:24:05 - End Time 2025-03-22 08:24:05 [2025-03-22 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736274', 'tblTempUsageDetail_20' ) start [2025-03-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736274', 'tblTempUsageDetail_20' ) end [2025-03-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736274', 'tblTempVendorCDR_20' ) start [2025-03-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736274', 'tblTempVendorCDR_20' ) end [2025-03-22 08:24:17] Production.INFO: ProcessCDR(1,14736274,1,1,2) [2025-03-22 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736274', 'tblTempUsageDetail_20' ) start [2025-03-22 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736274', 'tblTempUsageDetail_20' ) end [2025-03-22 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:24:21] Production.INFO: ==7068== Releasing lock... [2025-03-22 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:25:05 [end_date_ymd] => 2025-03-22 08:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:25:05' and `end` < '2025-03-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-03-22 08:25:17] Production.INFO: count ==114 [2025-03-22 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:25:05 - End Time 2025-03-22 08:25:05 [2025-03-22 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736279', 'tblTempUsageDetail_20' ) start [2025-03-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736279', 'tblTempUsageDetail_20' ) end [2025-03-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736279', 'tblTempVendorCDR_20' ) start [2025-03-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736279', 'tblTempVendorCDR_20' ) end [2025-03-22 08:25:17] Production.INFO: ProcessCDR(1,14736279,1,1,2) [2025-03-22 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736279', 'tblTempUsageDetail_20' ) start [2025-03-22 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736279', 'tblTempUsageDetail_20' ) end [2025-03-22 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:25:21] Production.INFO: ==7148== Releasing lock... [2025-03-22 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:26:05 [end_date_ymd] => 2025-03-22 08:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:26:05' and `end` < '2025-03-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-03-22 08:26:17] Production.INFO: count ==115 [2025-03-22 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:26:05 - End Time 2025-03-22 08:26:05 [2025-03-22 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736284', 'tblTempUsageDetail_20' ) start [2025-03-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736284', 'tblTempUsageDetail_20' ) end [2025-03-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736284', 'tblTempVendorCDR_20' ) start [2025-03-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736284', 'tblTempVendorCDR_20' ) end [2025-03-22 08:26:17] Production.INFO: ProcessCDR(1,14736284,1,1,2) [2025-03-22 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736284', 'tblTempUsageDetail_20' ) start [2025-03-22 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736284', 'tblTempUsageDetail_20' ) end [2025-03-22 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:26:23] Production.INFO: ==7229== Releasing lock... [2025-03-22 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:26:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:27:05 [end_date_ymd] => 2025-03-22 08:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:27:05' and `end` < '2025-03-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-03-22 08:27:17] Production.INFO: count ==115 [2025-03-22 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:27:05 - End Time 2025-03-22 08:27:05 [2025-03-22 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736289', 'tblTempUsageDetail_20' ) start [2025-03-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736289', 'tblTempUsageDetail_20' ) end [2025-03-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736289', 'tblTempVendorCDR_20' ) start [2025-03-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736289', 'tblTempVendorCDR_20' ) end [2025-03-22 08:27:17] Production.INFO: ProcessCDR(1,14736289,1,1,2) [2025-03-22 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736289', 'tblTempUsageDetail_20' ) start [2025-03-22 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736289', 'tblTempUsageDetail_20' ) end [2025-03-22 08:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:27:20] Production.INFO: ==7316== Releasing lock... [2025-03-22 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:28:05 [end_date_ymd] => 2025-03-22 08:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:28:05' and `end` < '2025-03-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-03-22 08:28:17] Production.INFO: count ==115 [2025-03-22 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:28:05 - End Time 2025-03-22 08:28:05 [2025-03-22 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736294', 'tblTempUsageDetail_20' ) start [2025-03-22 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736294', 'tblTempUsageDetail_20' ) end [2025-03-22 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736294', 'tblTempVendorCDR_20' ) start [2025-03-22 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736294', 'tblTempVendorCDR_20' ) end [2025-03-22 08:28:17] Production.INFO: ProcessCDR(1,14736294,1,1,2) [2025-03-22 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736294', 'tblTempUsageDetail_20' ) start [2025-03-22 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736294', 'tblTempUsageDetail_20' ) end [2025-03-22 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:28:20] Production.INFO: ==7396== Releasing lock... [2025-03-22 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-22 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:29:05 [end_date_ymd] => 2025-03-22 08:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:29:05' and `end` < '2025-03-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-03-22 08:29:17] Production.INFO: count ==116 [2025-03-22 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:29:05 - End Time 2025-03-22 08:29:05 [2025-03-22 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736299', 'tblTempUsageDetail_20' ) start [2025-03-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736299', 'tblTempUsageDetail_20' ) end [2025-03-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736299', 'tblTempVendorCDR_20' ) start [2025-03-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736299', 'tblTempVendorCDR_20' ) end [2025-03-22 08:29:18] Production.INFO: ProcessCDR(1,14736299,1,1,2) [2025-03-22 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736299', 'tblTempUsageDetail_20' ) start [2025-03-22 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736299', 'tblTempUsageDetail_20' ) end [2025-03-22 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:29:22] Production.INFO: ==7475== Releasing lock... [2025-03-22 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:29:22] Production.INFO: 29 MB #Memory Used# [2025-03-22 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:30:05 [end_date_ymd] => 2025-03-22 08:30:05 [RateCDR] => 1 ) [2025-03-22 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:30:05' and `end` < '2025-03-22 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:30:17] Production.INFO: count ==118 [2025-03-22 08:30:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:30:05 - End Time 2025-03-22 08:30:05 [2025-03-22 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736304', 'tblTempUsageDetail_20' ) start [2025-03-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736304', 'tblTempUsageDetail_20' ) end [2025-03-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736304', 'tblTempVendorCDR_20' ) start [2025-03-22 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736304', 'tblTempVendorCDR_20' ) end [2025-03-22 08:30:17] Production.INFO: ProcessCDR(1,14736304,1,1,2) [2025-03-22 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736304', 'tblTempUsageDetail_20' ) start [2025-03-22 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736304', 'tblTempUsageDetail_20' ) end [2025-03-22 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:30:21] Production.INFO: ==7564== Releasing lock... [2025-03-22 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:30:21] Production.INFO: 29 MB #Memory Used# [2025-03-22 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:31:05 [end_date_ymd] => 2025-03-22 08:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:31:05' and `end` < '2025-03-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-03-22 08:31:18] Production.INFO: count ==119 [2025-03-22 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:31:05 - End Time 2025-03-22 08:31:05 [2025-03-22 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736310', 'tblTempUsageDetail_20' ) start [2025-03-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736310', 'tblTempUsageDetail_20' ) end [2025-03-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736310', 'tblTempVendorCDR_20' ) start [2025-03-22 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736310', 'tblTempVendorCDR_20' ) end [2025-03-22 08:31:18] Production.INFO: ProcessCDR(1,14736310,1,1,2) [2025-03-22 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736310', 'tblTempUsageDetail_20' ) start [2025-03-22 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736310', 'tblTempUsageDetail_20' ) end [2025-03-22 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:31:21] Production.INFO: ==7649== Releasing lock... [2025-03-22 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:31:21] Production.INFO: 29 MB #Memory Used# [2025-03-22 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:32:06 [end_date_ymd] => 2025-03-22 08:32:06 [RateCDR] => 1 ) [2025-03-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-03-22 05:32:06' and `end` < '2025-03-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-03-22 08:32:18] Production.INFO: count ==127 [2025-03-22 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:32:06 - End Time 2025-03-22 08:32:06 [2025-03-22 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736315', 'tblTempUsageDetail_20' ) start [2025-03-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736315', 'tblTempUsageDetail_20' ) end [2025-03-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736315', 'tblTempVendorCDR_20' ) start [2025-03-22 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736315', 'tblTempVendorCDR_20' ) end [2025-03-22 08:32:18] Production.INFO: ProcessCDR(1,14736315,1,1,2) [2025-03-22 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736315', 'tblTempUsageDetail_20' ) start [2025-03-22 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736315', 'tblTempUsageDetail_20' ) end [2025-03-22 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:32:21] Production.INFO: ==7735== Releasing lock... [2025-03-22 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:33:04 [end_date_ymd] => 2025-03-22 08:33:04 [RateCDR] => 1 ) [2025-03-22 08: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-03-22 05:33:04' and `end` < '2025-03-22 08: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-03-22 08:33:17] Production.INFO: count ==125 [2025-03-22 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:33:04 - End Time 2025-03-22 08:33:04 [2025-03-22 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736316', 'tblTempUsageDetail_20' ) start [2025-03-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736316', 'tblTempUsageDetail_20' ) end [2025-03-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736316', 'tblTempVendorCDR_20' ) start [2025-03-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736316', 'tblTempVendorCDR_20' ) end [2025-03-22 08:33:17] Production.INFO: ProcessCDR(1,14736316,1,1,2) [2025-03-22 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736316', 'tblTempUsageDetail_20' ) start [2025-03-22 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736316', 'tblTempUsageDetail_20' ) end [2025-03-22 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:33:20] Production.INFO: ==7825== Releasing lock... [2025-03-22 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:34:06 [end_date_ymd] => 2025-03-22 08:34:06 [RateCDR] => 1 ) [2025-03-22 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:34:06' and `end` < '2025-03-22 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:34:18] Production.INFO: count ==130 [2025-03-22 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:34:06 - End Time 2025-03-22 08:34:06 [2025-03-22 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736325', 'tblTempUsageDetail_20' ) start [2025-03-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736325', 'tblTempUsageDetail_20' ) end [2025-03-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736325', 'tblTempVendorCDR_20' ) start [2025-03-22 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736325', 'tblTempVendorCDR_20' ) end [2025-03-22 08:34:18] Production.INFO: ProcessCDR(1,14736325,1,1,2) [2025-03-22 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736325', 'tblTempUsageDetail_20' ) start [2025-03-22 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736325', 'tblTempUsageDetail_20' ) end [2025-03-22 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:34:21] Production.INFO: ==7911== Releasing lock... [2025-03-22 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:35:04 [end_date_ymd] => 2025-03-22 08:35:04 [RateCDR] => 1 ) [2025-03-22 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:35:04' and `end` < '2025-03-22 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:35:17] Production.INFO: count ==130 [2025-03-22 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:35:04 - End Time 2025-03-22 08:35:04 [2025-03-22 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736330', 'tblTempUsageDetail_20' ) start [2025-03-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736330', 'tblTempUsageDetail_20' ) end [2025-03-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736330', 'tblTempVendorCDR_20' ) start [2025-03-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736330', 'tblTempVendorCDR_20' ) end [2025-03-22 08:35:17] Production.INFO: ProcessCDR(1,14736330,1,1,2) [2025-03-22 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736330', 'tblTempUsageDetail_20' ) start [2025-03-22 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736330', 'tblTempUsageDetail_20' ) end [2025-03-22 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:35:20] Production.INFO: ==7994== Releasing lock... [2025-03-22 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:36:05 [end_date_ymd] => 2025-03-22 08:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:36:05' and `end` < '2025-03-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-03-22 08:36:18] Production.INFO: count ==134 [2025-03-22 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:36:05 - End Time 2025-03-22 08:36:05 [2025-03-22 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736335', 'tblTempUsageDetail_20' ) start [2025-03-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736335', 'tblTempUsageDetail_20' ) end [2025-03-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736335', 'tblTempVendorCDR_20' ) start [2025-03-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736335', 'tblTempVendorCDR_20' ) end [2025-03-22 08:36:18] Production.INFO: ProcessCDR(1,14736335,1,1,2) [2025-03-22 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736335', 'tblTempUsageDetail_20' ) start [2025-03-22 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736335', 'tblTempUsageDetail_20' ) end [2025-03-22 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:36:21] Production.INFO: ==8077== Releasing lock... [2025-03-22 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:37:05 [end_date_ymd] => 2025-03-22 08:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:37:05' and `end` < '2025-03-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-03-22 08:37:18] Production.INFO: count ==134 [2025-03-22 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:37:05 - End Time 2025-03-22 08:37:05 [2025-03-22 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736340', 'tblTempUsageDetail_20' ) start [2025-03-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736340', 'tblTempUsageDetail_20' ) end [2025-03-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736340', 'tblTempVendorCDR_20' ) start [2025-03-22 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736340', 'tblTempVendorCDR_20' ) end [2025-03-22 08:37:18] Production.INFO: ProcessCDR(1,14736340,1,1,2) [2025-03-22 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736340', 'tblTempUsageDetail_20' ) start [2025-03-22 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736340', 'tblTempUsageDetail_20' ) end [2025-03-22 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:37:21] Production.INFO: ==8163== Releasing lock... [2025-03-22 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:38:05 [end_date_ymd] => 2025-03-22 08:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:38:05' and `end` < '2025-03-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-03-22 08:38:17] Production.INFO: count ==134 [2025-03-22 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:38:05 - End Time 2025-03-22 08:38:05 [2025-03-22 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736345', 'tblTempUsageDetail_20' ) start [2025-03-22 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736345', 'tblTempUsageDetail_20' ) end [2025-03-22 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736345', 'tblTempVendorCDR_20' ) start [2025-03-22 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736345', 'tblTempVendorCDR_20' ) end [2025-03-22 08:38:17] Production.INFO: ProcessCDR(1,14736345,1,1,2) [2025-03-22 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736345', 'tblTempUsageDetail_20' ) start [2025-03-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736345', 'tblTempUsageDetail_20' ) end [2025-03-22 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:38:21] Production.INFO: ==8288== Releasing lock... [2025-03-22 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:39:05 [end_date_ymd] => 2025-03-22 08:39:05 [RateCDR] => 1 ) [2025-03-22 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:39:05' and `end` < '2025-03-22 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:39:17] Production.INFO: count ==133 [2025-03-22 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:39:05 - End Time 2025-03-22 08:39:05 [2025-03-22 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736350', 'tblTempUsageDetail_20' ) start [2025-03-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736350', 'tblTempUsageDetail_20' ) end [2025-03-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736350', 'tblTempVendorCDR_20' ) start [2025-03-22 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736350', 'tblTempVendorCDR_20' ) end [2025-03-22 08:39:17] Production.INFO: ProcessCDR(1,14736350,1,1,2) [2025-03-22 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736350', 'tblTempUsageDetail_20' ) start [2025-03-22 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736350', 'tblTempUsageDetail_20' ) end [2025-03-22 08:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:39:20] Production.INFO: ==8372== Releasing lock... [2025-03-22 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:39:20] Production.INFO: 29 MB #Memory Used# [2025-03-22 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:40:06 [end_date_ymd] => 2025-03-22 08:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 05:40:06' and `end` < '2025-03-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-03-22 08:40:18] Production.INFO: count ==141 [2025-03-22 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:40:06 - End Time 2025-03-22 08:40:06 [2025-03-22 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736356', 'tblTempUsageDetail_20' ) start [2025-03-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736356', 'tblTempUsageDetail_20' ) end [2025-03-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736356', 'tblTempVendorCDR_20' ) start [2025-03-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736356', 'tblTempVendorCDR_20' ) end [2025-03-22 08:40:18] Production.INFO: ProcessCDR(1,14736356,1,1,2) [2025-03-22 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736356', 'tblTempUsageDetail_20' ) start [2025-03-22 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736356', 'tblTempUsageDetail_20' ) end [2025-03-22 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:40:22] Production.INFO: ==8456== Releasing lock... [2025-03-22 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:41:05 [end_date_ymd] => 2025-03-22 08:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:41:05' and `end` < '2025-03-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-03-22 08:41:17] Production.INFO: count ==150 [2025-03-22 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:41:05 - End Time 2025-03-22 08:41:05 [2025-03-22 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736361', 'tblTempUsageDetail_20' ) start [2025-03-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736361', 'tblTempUsageDetail_20' ) end [2025-03-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736361', 'tblTempVendorCDR_20' ) start [2025-03-22 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736361', 'tblTempVendorCDR_20' ) end [2025-03-22 08:41:17] Production.INFO: ProcessCDR(1,14736361,1,1,2) [2025-03-22 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736361', 'tblTempUsageDetail_20' ) start [2025-03-22 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736361', 'tblTempUsageDetail_20' ) end [2025-03-22 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:41:21] Production.INFO: ==8543== Releasing lock... [2025-03-22 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:42:05 [end_date_ymd] => 2025-03-22 08:42:05 [RateCDR] => 1 ) [2025-03-22 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:42:05' and `end` < '2025-03-22 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:42:17] Production.INFO: count ==150 [2025-03-22 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:42:05 - End Time 2025-03-22 08:42:05 [2025-03-22 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736366', 'tblTempUsageDetail_20' ) start [2025-03-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736366', 'tblTempUsageDetail_20' ) end [2025-03-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736366', 'tblTempVendorCDR_20' ) start [2025-03-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736366', 'tblTempVendorCDR_20' ) end [2025-03-22 08:42:17] Production.INFO: ProcessCDR(1,14736366,1,1,2) [2025-03-22 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736366', 'tblTempUsageDetail_20' ) start [2025-03-22 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736366', 'tblTempUsageDetail_20' ) end [2025-03-22 08:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:42:20] Production.INFO: ==8624== Releasing lock... [2025-03-22 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:43:05 [end_date_ymd] => 2025-03-22 08:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:43:05' and `end` < '2025-03-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-03-22 08:43:17] Production.INFO: count ==150 [2025-03-22 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:43:05 - End Time 2025-03-22 08:43:05 [2025-03-22 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736371', 'tblTempUsageDetail_20' ) start [2025-03-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736371', 'tblTempUsageDetail_20' ) end [2025-03-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736371', 'tblTempVendorCDR_20' ) start [2025-03-22 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736371', 'tblTempVendorCDR_20' ) end [2025-03-22 08:43:17] Production.INFO: ProcessCDR(1,14736371,1,1,2) [2025-03-22 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736371', 'tblTempUsageDetail_20' ) start [2025-03-22 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736371', 'tblTempUsageDetail_20' ) end [2025-03-22 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:43:20] Production.INFO: ==8706== Releasing lock... [2025-03-22 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:44:05 [end_date_ymd] => 2025-03-22 08:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:44:05' and `end` < '2025-03-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-03-22 08:44:17] Production.INFO: count ==151 [2025-03-22 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:44:05 - End Time 2025-03-22 08:44:05 [2025-03-22 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736376', 'tblTempUsageDetail_20' ) start [2025-03-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736376', 'tblTempUsageDetail_20' ) end [2025-03-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736376', 'tblTempVendorCDR_20' ) start [2025-03-22 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736376', 'tblTempVendorCDR_20' ) end [2025-03-22 08:44:18] Production.INFO: ProcessCDR(1,14736376,1,1,2) [2025-03-22 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736376', 'tblTempUsageDetail_20' ) start [2025-03-22 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736376', 'tblTempUsageDetail_20' ) end [2025-03-22 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:44:22] Production.INFO: ==8788== Releasing lock... [2025-03-22 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:45:06 [end_date_ymd] => 2025-03-22 08:45:06 [RateCDR] => 1 ) [2025-03-22 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:45:06' and `end` < '2025-03-22 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:45:18] Production.INFO: count ==156 [2025-03-22 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:45:06 - End Time 2025-03-22 08:45:06 [2025-03-22 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736381', 'tblTempUsageDetail_20' ) start [2025-03-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736381', 'tblTempUsageDetail_20' ) end [2025-03-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736381', 'tblTempVendorCDR_20' ) start [2025-03-22 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736381', 'tblTempVendorCDR_20' ) end [2025-03-22 08:45:18] Production.INFO: ProcessCDR(1,14736381,1,1,2) [2025-03-22 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736381', 'tblTempUsageDetail_20' ) start [2025-03-22 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736381', 'tblTempUsageDetail_20' ) end [2025-03-22 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:45:21] Production.INFO: ==8869== Releasing lock... [2025-03-22 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:46:05 [end_date_ymd] => 2025-03-22 08:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:46:05' and `end` < '2025-03-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-03-22 08:46:17] Production.INFO: count ==156 [2025-03-22 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:46:05 - End Time 2025-03-22 08:46:05 [2025-03-22 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736386', 'tblTempUsageDetail_20' ) start [2025-03-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736386', 'tblTempUsageDetail_20' ) end [2025-03-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736386', 'tblTempVendorCDR_20' ) start [2025-03-22 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736386', 'tblTempVendorCDR_20' ) end [2025-03-22 08:46:17] Production.INFO: ProcessCDR(1,14736386,1,1,2) [2025-03-22 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736386', 'tblTempUsageDetail_20' ) start [2025-03-22 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736386', 'tblTempUsageDetail_20' ) end [2025-03-22 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:46:21] Production.INFO: ==8949== Releasing lock... [2025-03-22 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:47:05 [end_date_ymd] => 2025-03-22 08:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:47:05' and `end` < '2025-03-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-03-22 08:47:17] Production.INFO: count ==156 [2025-03-22 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:47:05 - End Time 2025-03-22 08:47:05 [2025-03-22 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736391', 'tblTempUsageDetail_20' ) start [2025-03-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736391', 'tblTempUsageDetail_20' ) end [2025-03-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736391', 'tblTempVendorCDR_20' ) start [2025-03-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736391', 'tblTempVendorCDR_20' ) end [2025-03-22 08:47:17] Production.INFO: ProcessCDR(1,14736391,1,1,2) [2025-03-22 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736391', 'tblTempUsageDetail_20' ) start [2025-03-22 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736391', 'tblTempUsageDetail_20' ) end [2025-03-22 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:47:21] Production.INFO: ==9035== Releasing lock... [2025-03-22 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:48:06 [end_date_ymd] => 2025-03-22 08:48:06 [RateCDR] => 1 ) [2025-03-22 08:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:48:06' and `end` < '2025-03-22 08:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:48:18] Production.INFO: count ==156 [2025-03-22 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:48:06 - End Time 2025-03-22 08:48:06 [2025-03-22 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736396', 'tblTempUsageDetail_20' ) start [2025-03-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736396', 'tblTempUsageDetail_20' ) end [2025-03-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736396', 'tblTempVendorCDR_20' ) start [2025-03-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736396', 'tblTempVendorCDR_20' ) end [2025-03-22 08:48:18] Production.INFO: ProcessCDR(1,14736396,1,1,2) [2025-03-22 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736396', 'tblTempUsageDetail_20' ) start [2025-03-22 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736396', 'tblTempUsageDetail_20' ) end [2025-03-22 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:48:21] Production.INFO: ==9113== Releasing lock... [2025-03-22 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:49:05 [end_date_ymd] => 2025-03-22 08:49:05 [RateCDR] => 1 ) [2025-03-22 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:49:05' and `end` < '2025-03-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-03-22 08:49:18] Production.INFO: count ==162 [2025-03-22 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:49:05 - End Time 2025-03-22 08:49:05 [2025-03-22 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736401', 'tblTempUsageDetail_20' ) start [2025-03-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736401', 'tblTempUsageDetail_20' ) end [2025-03-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736401', 'tblTempVendorCDR_20' ) start [2025-03-22 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736401', 'tblTempVendorCDR_20' ) end [2025-03-22 08:49:18] Production.INFO: ProcessCDR(1,14736401,1,1,2) [2025-03-22 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736401', 'tblTempUsageDetail_20' ) start [2025-03-22 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736401', 'tblTempUsageDetail_20' ) end [2025-03-22 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:49:21] Production.INFO: ==9191== Releasing lock... [2025-03-22 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:50:05 [end_date_ymd] => 2025-03-22 08:50:05 [RateCDR] => 1 ) [2025-03-22 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:50:05' and `end` < '2025-03-22 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:50:18] Production.INFO: count ==167 [2025-03-22 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:50:05 - End Time 2025-03-22 08:50:05 [2025-03-22 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736406', 'tblTempUsageDetail_20' ) start [2025-03-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736406', 'tblTempUsageDetail_20' ) end [2025-03-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736406', 'tblTempVendorCDR_20' ) start [2025-03-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736406', 'tblTempVendorCDR_20' ) end [2025-03-22 08:50:18] Production.INFO: ProcessCDR(1,14736406,1,1,2) [2025-03-22 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736406', 'tblTempUsageDetail_20' ) start [2025-03-22 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736406', 'tblTempUsageDetail_20' ) end [2025-03-22 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:50:21] Production.INFO: ==9270== Releasing lock... [2025-03-22 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:51:05 [end_date_ymd] => 2025-03-22 08:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:51:05' and `end` < '2025-03-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-03-22 08:51:18] Production.INFO: count ==167 [2025-03-22 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:51:05 - End Time 2025-03-22 08:51:05 [2025-03-22 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736412', 'tblTempUsageDetail_20' ) start [2025-03-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736412', 'tblTempUsageDetail_20' ) end [2025-03-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736412', 'tblTempVendorCDR_20' ) start [2025-03-22 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736412', 'tblTempVendorCDR_20' ) end [2025-03-22 08:51:18] Production.INFO: ProcessCDR(1,14736412,1,1,2) [2025-03-22 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736412', 'tblTempUsageDetail_20' ) start [2025-03-22 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736412', 'tblTempUsageDetail_20' ) end [2025-03-22 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:51:21] Production.INFO: ==9349== Releasing lock... [2025-03-22 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:52:05 [end_date_ymd] => 2025-03-22 08:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:52:05' and `end` < '2025-03-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-03-22 08:52:17] Production.INFO: count ==167 [2025-03-22 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:52:05 - End Time 2025-03-22 08:52:05 [2025-03-22 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736417', 'tblTempUsageDetail_20' ) start [2025-03-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736417', 'tblTempUsageDetail_20' ) end [2025-03-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736417', 'tblTempVendorCDR_20' ) start [2025-03-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736417', 'tblTempVendorCDR_20' ) end [2025-03-22 08:52:17] Production.INFO: ProcessCDR(1,14736417,1,1,2) [2025-03-22 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736417', 'tblTempUsageDetail_20' ) start [2025-03-22 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736417', 'tblTempUsageDetail_20' ) end [2025-03-22 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:52:20] Production.INFO: ==9425== Releasing lock... [2025-03-22 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-22 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:53:05 [end_date_ymd] => 2025-03-22 08:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:53:05' and `end` < '2025-03-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-03-22 08:53:17] Production.INFO: count ==171 [2025-03-22 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:53:05 - End Time 2025-03-22 08:53:05 [2025-03-22 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736422', 'tblTempUsageDetail_20' ) start [2025-03-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736422', 'tblTempUsageDetail_20' ) end [2025-03-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736422', 'tblTempVendorCDR_20' ) start [2025-03-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736422', 'tblTempVendorCDR_20' ) end [2025-03-22 08:53:17] Production.INFO: ProcessCDR(1,14736422,1,1,2) [2025-03-22 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736422', 'tblTempUsageDetail_20' ) start [2025-03-22 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736422', 'tblTempUsageDetail_20' ) end [2025-03-22 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:53:20] Production.INFO: ==9541== Releasing lock... [2025-03-22 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:53:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:54:04 [end_date_ymd] => 2025-03-22 08:54:04 [RateCDR] => 1 ) [2025-03-22 08: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-03-22 05:54:04' and `end` < '2025-03-22 08: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-03-22 08:54:17] Production.INFO: count ==171 [2025-03-22 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:54:04 - End Time 2025-03-22 08:54:04 [2025-03-22 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736427', 'tblTempUsageDetail_20' ) start [2025-03-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736427', 'tblTempUsageDetail_20' ) end [2025-03-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736427', 'tblTempVendorCDR_20' ) start [2025-03-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736427', 'tblTempVendorCDR_20' ) end [2025-03-22 08:54:17] Production.INFO: ProcessCDR(1,14736427,1,1,2) [2025-03-22 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736427', 'tblTempUsageDetail_20' ) start [2025-03-22 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736427', 'tblTempUsageDetail_20' ) end [2025-03-22 08:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:54:20] Production.INFO: ==9616== Releasing lock... [2025-03-22 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:55:05 [end_date_ymd] => 2025-03-22 08:55:05 [RateCDR] => 1 ) [2025-03-22 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:55:05' and `end` < '2025-03-22 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:55:18] Production.INFO: count ==171 [2025-03-22 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:55:05 - End Time 2025-03-22 08:55:05 [2025-03-22 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736432', 'tblTempUsageDetail_20' ) start [2025-03-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736432', 'tblTempUsageDetail_20' ) end [2025-03-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736432', 'tblTempVendorCDR_20' ) start [2025-03-22 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736432', 'tblTempVendorCDR_20' ) end [2025-03-22 08:55:18] Production.INFO: ProcessCDR(1,14736432,1,1,2) [2025-03-22 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736432', 'tblTempUsageDetail_20' ) start [2025-03-22 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736432', 'tblTempUsageDetail_20' ) end [2025-03-22 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:55:21] Production.INFO: ==9697== Releasing lock... [2025-03-22 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:56:06 [end_date_ymd] => 2025-03-22 08:56:06 [RateCDR] => 1 ) [2025-03-22 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:56:06' and `end` < '2025-03-22 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:56:18] Production.INFO: count ==171 [2025-03-22 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:56:06 - End Time 2025-03-22 08:56:06 [2025-03-22 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736437', 'tblTempUsageDetail_20' ) start [2025-03-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736437', 'tblTempUsageDetail_20' ) end [2025-03-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736437', 'tblTempVendorCDR_20' ) start [2025-03-22 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736437', 'tblTempVendorCDR_20' ) end [2025-03-22 08:56:18] Production.INFO: ProcessCDR(1,14736437,1,1,2) [2025-03-22 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736437', 'tblTempUsageDetail_20' ) start [2025-03-22 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736437', 'tblTempUsageDetail_20' ) end [2025-03-22 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:56:21] Production.INFO: ==9779== Releasing lock... [2025-03-22 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:57:05 [end_date_ymd] => 2025-03-22 08:57:05 [RateCDR] => 1 ) [2025-03-22 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:57:05' and `end` < '2025-03-22 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:57:17] Production.INFO: count ==175 [2025-03-22 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:57:05 - End Time 2025-03-22 08:57:05 [2025-03-22 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736442', 'tblTempUsageDetail_20' ) start [2025-03-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736442', 'tblTempUsageDetail_20' ) end [2025-03-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736442', 'tblTempVendorCDR_20' ) start [2025-03-22 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736442', 'tblTempVendorCDR_20' ) end [2025-03-22 08:57:17] Production.INFO: ProcessCDR(1,14736442,1,1,2) [2025-03-22 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736442', 'tblTempUsageDetail_20' ) start [2025-03-22 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736442', 'tblTempUsageDetail_20' ) end [2025-03-22 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:57:21] Production.INFO: ==9854== Releasing lock... [2025-03-22 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-22 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:58:06 [end_date_ymd] => 2025-03-22 08:58:06 [RateCDR] => 1 ) [2025-03-22 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 05:58:06' and `end` < '2025-03-22 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 08:58:18] Production.INFO: count ==177 [2025-03-22 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 05:58:06 - End Time 2025-03-22 08:58:06 [2025-03-22 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736447', 'tblTempUsageDetail_20' ) start [2025-03-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736447', 'tblTempUsageDetail_20' ) end [2025-03-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736447', 'tblTempVendorCDR_20' ) start [2025-03-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736447', 'tblTempVendorCDR_20' ) end [2025-03-22 08:58:18] Production.INFO: ProcessCDR(1,14736447,1,1,2) [2025-03-22 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736447', 'tblTempUsageDetail_20' ) start [2025-03-22 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736447', 'tblTempUsageDetail_20' ) end [2025-03-22 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:58:23] Production.INFO: ==9931== Releasing lock... [2025-03-22 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:58:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-22 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 05:59:05 [end_date_ymd] => 2025-03-22 08:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 05:59:05' and `end` < '2025-03-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-03-22 08:59:17] Production.INFO: count ==177 [2025-03-22 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-22 05:59:05 - End Time 2025-03-22 08:59:05 [2025-03-22 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736452', 'tblTempUsageDetail_20' ) start [2025-03-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736452', 'tblTempUsageDetail_20' ) end [2025-03-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736452', 'tblTempVendorCDR_20' ) start [2025-03-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736452', 'tblTempVendorCDR_20' ) end [2025-03-22 08:59:17] Production.INFO: ProcessCDR(1,14736452,1,1,2) [2025-03-22 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736452', 'tblTempUsageDetail_20' ) start [2025-03-22 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736452', 'tblTempUsageDetail_20' ) end [2025-03-22 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 08:59:21] Production.INFO: ==10017== Releasing lock... [2025-03-22 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 08:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-22 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:00:06 [end_date_ymd] => 2025-03-22 09:00:06 [RateCDR] => 1 ) [2025-03-22 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:00:06' and `end` < '2025-03-22 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:00:18] Production.INFO: count ==177 [2025-03-22 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:00:06 - End Time 2025-03-22 09:00:06 [2025-03-22 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736457', 'tblTempUsageDetail_20' ) start [2025-03-22 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736457', 'tblTempUsageDetail_20' ) end [2025-03-22 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736457', 'tblTempVendorCDR_20' ) start [2025-03-22 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736457', 'tblTempVendorCDR_20' ) end [2025-03-22 09:00:18] Production.INFO: ProcessCDR(1,14736457,1,1,2) [2025-03-22 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736457', 'tblTempUsageDetail_20' ) start [2025-03-22 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736457', 'tblTempUsageDetail_20' ) end [2025-03-22 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:00:22] Production.INFO: ==10116== Releasing lock... [2025-03-22 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-22 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:01:06 [end_date_ymd] => 2025-03-22 09:01:06 [RateCDR] => 1 ) [2025-03-22 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:01:06' and `end` < '2025-03-22 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:01:18] Production.INFO: count ==177 [2025-03-22 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:01:06 - End Time 2025-03-22 09:01:06 [2025-03-22 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736463', 'tblTempUsageDetail_20' ) start [2025-03-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736463', 'tblTempUsageDetail_20' ) end [2025-03-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736463', 'tblTempVendorCDR_20' ) start [2025-03-22 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736463', 'tblTempVendorCDR_20' ) end [2025-03-22 09:01:18] Production.INFO: ProcessCDR(1,14736463,1,1,2) [2025-03-22 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736463', 'tblTempUsageDetail_20' ) start [2025-03-22 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736463', 'tblTempUsageDetail_20' ) end [2025-03-22 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:01:21] Production.INFO: ==10222== Releasing lock... [2025-03-22 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-22 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:02:05 [end_date_ymd] => 2025-03-22 09:02:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:02:05' and `end` < '2025-03-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-03-22 09:02:17] Production.INFO: count ==188 [2025-03-22 09:02:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:02:05 - End Time 2025-03-22 09:02:05 [2025-03-22 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736468', 'tblTempUsageDetail_20' ) start [2025-03-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736468', 'tblTempUsageDetail_20' ) end [2025-03-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736468', 'tblTempVendorCDR_20' ) start [2025-03-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736468', 'tblTempVendorCDR_20' ) end [2025-03-22 09:02:17] Production.INFO: ProcessCDR(1,14736468,1,1,2) [2025-03-22 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736468', 'tblTempUsageDetail_20' ) start [2025-03-22 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736468', 'tblTempUsageDetail_20' ) end [2025-03-22 09:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:02:20] Production.INFO: ==10321== Releasing lock... [2025-03-22 09:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:02:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-22 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:03:05 [end_date_ymd] => 2025-03-22 09:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:03:05' and `end` < '2025-03-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-03-22 09:03:17] Production.INFO: count ==191 [2025-03-22 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:03:05 - End Time 2025-03-22 09:03:05 [2025-03-22 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736473', 'tblTempUsageDetail_20' ) start [2025-03-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736473', 'tblTempUsageDetail_20' ) end [2025-03-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736473', 'tblTempVendorCDR_20' ) start [2025-03-22 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736473', 'tblTempVendorCDR_20' ) end [2025-03-22 09:03:17] Production.INFO: ProcessCDR(1,14736473,1,1,2) [2025-03-22 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736473', 'tblTempUsageDetail_20' ) start [2025-03-22 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736473', 'tblTempUsageDetail_20' ) end [2025-03-22 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:03:21] Production.INFO: ==10418== Releasing lock... [2025-03-22 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:03:21] Production.INFO: 30 MB #Memory Used# [2025-03-22 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:04:06 [end_date_ymd] => 2025-03-22 09:04:06 [RateCDR] => 1 ) [2025-03-22 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:04:06' and `end` < '2025-03-22 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:04:18] Production.INFO: count ==196 [2025-03-22 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:04:06 - End Time 2025-03-22 09:04:06 [2025-03-22 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736478', 'tblTempUsageDetail_20' ) start [2025-03-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736478', 'tblTempUsageDetail_20' ) end [2025-03-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736478', 'tblTempVendorCDR_20' ) start [2025-03-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736478', 'tblTempVendorCDR_20' ) end [2025-03-22 09:04:18] Production.INFO: ProcessCDR(1,14736478,1,1,2) [2025-03-22 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736478', 'tblTempUsageDetail_20' ) start [2025-03-22 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736478', 'tblTempUsageDetail_20' ) end [2025-03-22 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:04:21] Production.INFO: ==10515== Releasing lock... [2025-03-22 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:04:21] Production.INFO: 30 MB #Memory Used# [2025-03-22 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:05:05 [end_date_ymd] => 2025-03-22 09:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:05:05' and `end` < '2025-03-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-03-22 09:05:17] Production.INFO: count ==196 [2025-03-22 09:05:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:05:05 - End Time 2025-03-22 09:05:05 [2025-03-22 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736483', 'tblTempUsageDetail_20' ) start [2025-03-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736483', 'tblTempUsageDetail_20' ) end [2025-03-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736483', 'tblTempVendorCDR_20' ) start [2025-03-22 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736483', 'tblTempVendorCDR_20' ) end [2025-03-22 09:05:17] Production.INFO: ProcessCDR(1,14736483,1,1,2) [2025-03-22 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736483', 'tblTempUsageDetail_20' ) start [2025-03-22 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736483', 'tblTempUsageDetail_20' ) end [2025-03-22 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:05:21] Production.INFO: ==10606== Releasing lock... [2025-03-22 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-22 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:06:06 [end_date_ymd] => 2025-03-22 09:06:06 [RateCDR] => 1 ) [2025-03-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-03-22 06:06:06' and `end` < '2025-03-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-03-22 09:06:18] Production.INFO: count ==203 [2025-03-22 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:06:06 - End Time 2025-03-22 09:06:06 [2025-03-22 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736488', 'tblTempUsageDetail_20' ) start [2025-03-22 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736488', 'tblTempUsageDetail_20' ) end [2025-03-22 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736488', 'tblTempVendorCDR_20' ) start [2025-03-22 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736488', 'tblTempVendorCDR_20' ) end [2025-03-22 09:06:18] Production.INFO: ProcessCDR(1,14736488,1,1,2) [2025-03-22 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736488', 'tblTempUsageDetail_20' ) start [2025-03-22 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736488', 'tblTempUsageDetail_20' ) end [2025-03-22 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:06:23] Production.INFO: ==10703== Releasing lock... [2025-03-22 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:06:23] Production.INFO: 30 MB #Memory Used# [2025-03-22 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:07:05 [end_date_ymd] => 2025-03-22 09:07:05 [RateCDR] => 1 ) [2025-03-22 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:07:05' and `end` < '2025-03-22 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:07:17] Production.INFO: count ==207 [2025-03-22 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:07:05 - End Time 2025-03-22 09:07:05 [2025-03-22 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736493', 'tblTempUsageDetail_20' ) start [2025-03-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736493', 'tblTempUsageDetail_20' ) end [2025-03-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736493', 'tblTempVendorCDR_20' ) start [2025-03-22 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736493', 'tblTempVendorCDR_20' ) end [2025-03-22 09:07:17] Production.INFO: ProcessCDR(1,14736493,1,1,2) [2025-03-22 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736493', 'tblTempUsageDetail_20' ) start [2025-03-22 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736493', 'tblTempUsageDetail_20' ) end [2025-03-22 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:07:21] Production.INFO: ==10786== Releasing lock... [2025-03-22 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-22 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:08:06 [end_date_ymd] => 2025-03-22 09:08:06 [RateCDR] => 1 ) [2025-03-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-03-22 06:08:06' and `end` < '2025-03-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-03-22 09:08:18] Production.INFO: count ==209 [2025-03-22 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:08:06 - End Time 2025-03-22 09:08:06 [2025-03-22 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736498', 'tblTempUsageDetail_20' ) start [2025-03-22 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736498', 'tblTempUsageDetail_20' ) end [2025-03-22 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736498', 'tblTempVendorCDR_20' ) start [2025-03-22 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736498', 'tblTempVendorCDR_20' ) end [2025-03-22 09:08:18] Production.INFO: ProcessCDR(1,14736498,1,1,2) [2025-03-22 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736498', 'tblTempUsageDetail_20' ) start [2025-03-22 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736498', 'tblTempUsageDetail_20' ) end [2025-03-22 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:08:23] Production.INFO: ==10884== Releasing lock... [2025-03-22 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-22 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:09:05 [end_date_ymd] => 2025-03-22 09:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:09:05' and `end` < '2025-03-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-03-22 09:09:17] Production.INFO: count ==215 [2025-03-22 09:09:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:09:05 - End Time 2025-03-22 09:09:05 [2025-03-22 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736503', 'tblTempUsageDetail_20' ) start [2025-03-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736503', 'tblTempUsageDetail_20' ) end [2025-03-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736503', 'tblTempVendorCDR_20' ) start [2025-03-22 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736503', 'tblTempVendorCDR_20' ) end [2025-03-22 09:09:18] Production.INFO: ProcessCDR(1,14736503,1,1,2) [2025-03-22 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736503', 'tblTempUsageDetail_20' ) start [2025-03-22 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736503', 'tblTempUsageDetail_20' ) end [2025-03-22 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:09:21] Production.INFO: ==11019== Releasing lock... [2025-03-22 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-22 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:10:06 [end_date_ymd] => 2025-03-22 09:10:06 [RateCDR] => 1 ) [2025-03-22 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:10:06' and `end` < '2025-03-22 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:10:18] Production.INFO: count ==225 [2025-03-22 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:10:06 - End Time 2025-03-22 09:10:06 [2025-03-22 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736508', 'tblTempUsageDetail_20' ) start [2025-03-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736508', 'tblTempUsageDetail_20' ) end [2025-03-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736508', 'tblTempVendorCDR_20' ) start [2025-03-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736508', 'tblTempVendorCDR_20' ) end [2025-03-22 09:10:18] Production.INFO: ProcessCDR(1,14736508,1,1,2) [2025-03-22 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736508', 'tblTempUsageDetail_20' ) start [2025-03-22 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736508', 'tblTempUsageDetail_20' ) end [2025-03-22 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:10:22] Production.INFO: ==11112== Releasing lock... [2025-03-22 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-22 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:11:05 [end_date_ymd] => 2025-03-22 09:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:11:05' and `end` < '2025-03-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-03-22 09:11:17] Production.INFO: count ==256 [2025-03-22 09:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:11:05 - End Time 2025-03-22 09:11:05 [2025-03-22 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736514', 'tblTempUsageDetail_20' ) start [2025-03-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736514', 'tblTempUsageDetail_20' ) end [2025-03-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736514', 'tblTempVendorCDR_20' ) start [2025-03-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736514', 'tblTempVendorCDR_20' ) end [2025-03-22 09:11:17] Production.INFO: ProcessCDR(1,14736514,1,1,2) [2025-03-22 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736514', 'tblTempUsageDetail_20' ) start [2025-03-22 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736514', 'tblTempUsageDetail_20' ) end [2025-03-22 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:11:22] Production.INFO: ==11208== Releasing lock... [2025-03-22 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-22 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:12:05 [end_date_ymd] => 2025-03-22 09:12:05 [RateCDR] => 1 ) [2025-03-22 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:12:05' and `end` < '2025-03-22 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:12:18] Production.INFO: count ==258 [2025-03-22 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:12:05 - End Time 2025-03-22 09:12:05 [2025-03-22 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736519', 'tblTempUsageDetail_20' ) start [2025-03-22 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736519', 'tblTempUsageDetail_20' ) end [2025-03-22 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736519', 'tblTempVendorCDR_20' ) start [2025-03-22 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736519', 'tblTempVendorCDR_20' ) end [2025-03-22 09:12:18] Production.INFO: ProcessCDR(1,14736519,1,1,2) [2025-03-22 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736519', 'tblTempUsageDetail_20' ) start [2025-03-22 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736519', 'tblTempUsageDetail_20' ) end [2025-03-22 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:12:21] Production.INFO: ==11302== Releasing lock... [2025-03-22 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:13:05 [end_date_ymd] => 2025-03-22 09:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:13:05' and `end` < '2025-03-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-03-22 09:13:17] Production.INFO: count ==265 [2025-03-22 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:13:05 - End Time 2025-03-22 09:13:05 [2025-03-22 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736524', 'tblTempUsageDetail_20' ) start [2025-03-22 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736524', 'tblTempUsageDetail_20' ) end [2025-03-22 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736524', 'tblTempVendorCDR_20' ) start [2025-03-22 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736524', 'tblTempVendorCDR_20' ) end [2025-03-22 09:13:17] Production.INFO: ProcessCDR(1,14736524,1,1,2) [2025-03-22 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736524', 'tblTempUsageDetail_20' ) start [2025-03-22 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736524', 'tblTempUsageDetail_20' ) end [2025-03-22 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:13:20] Production.INFO: ==11398== Releasing lock... [2025-03-22 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:13:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-22 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:14:05 [end_date_ymd] => 2025-03-22 09:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:14:05' and `end` < '2025-03-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-03-22 09:14:17] Production.INFO: count ==268 [2025-03-22 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:14:05 - End Time 2025-03-22 09:14:05 [2025-03-22 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736529', 'tblTempUsageDetail_20' ) start [2025-03-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736529', 'tblTempUsageDetail_20' ) end [2025-03-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736529', 'tblTempVendorCDR_20' ) start [2025-03-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736529', 'tblTempVendorCDR_20' ) end [2025-03-22 09:14:17] Production.INFO: ProcessCDR(1,14736529,1,1,2) [2025-03-22 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736529', 'tblTempUsageDetail_20' ) start [2025-03-22 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736529', 'tblTempUsageDetail_20' ) end [2025-03-22 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:14:22] Production.INFO: ==11496== Releasing lock... [2025-03-22 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:14:22] Production.INFO: 31 MB #Memory Used# [2025-03-22 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:15:05 [end_date_ymd] => 2025-03-22 09:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:15:05' and `end` < '2025-03-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-03-22 09:15:17] Production.INFO: count ==269 [2025-03-22 09:15:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:15:05 - End Time 2025-03-22 09:15:05 [2025-03-22 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736534', 'tblTempUsageDetail_20' ) start [2025-03-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736534', 'tblTempUsageDetail_20' ) end [2025-03-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736534', 'tblTempVendorCDR_20' ) start [2025-03-22 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736534', 'tblTempVendorCDR_20' ) end [2025-03-22 09:15:17] Production.INFO: ProcessCDR(1,14736534,1,1,2) [2025-03-22 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736534', 'tblTempUsageDetail_20' ) start [2025-03-22 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736534', 'tblTempUsageDetail_20' ) end [2025-03-22 09:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:15:20] Production.INFO: ==11587== Releasing lock... [2025-03-22 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:16:05 [end_date_ymd] => 2025-03-22 09:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:16:05' and `end` < '2025-03-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-03-22 09:16:17] Production.INFO: count ==283 [2025-03-22 09:16:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:16:05 - End Time 2025-03-22 09:16:05 [2025-03-22 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736539', 'tblTempUsageDetail_20' ) start [2025-03-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736539', 'tblTempUsageDetail_20' ) end [2025-03-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736539', 'tblTempVendorCDR_20' ) start [2025-03-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736539', 'tblTempVendorCDR_20' ) end [2025-03-22 09:16:17] Production.INFO: ProcessCDR(1,14736539,1,1,2) [2025-03-22 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736539', 'tblTempUsageDetail_20' ) start [2025-03-22 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736539', 'tblTempUsageDetail_20' ) end [2025-03-22 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:16:21] Production.INFO: ==11681== Releasing lock... [2025-03-22 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-22 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:17:06 [end_date_ymd] => 2025-03-22 09:17:06 [RateCDR] => 1 ) [2025-03-22 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:17:06' and `end` < '2025-03-22 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:17:18] Production.INFO: count ==283 [2025-03-22 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:17:06 - End Time 2025-03-22 09:17:06 [2025-03-22 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736544', 'tblTempUsageDetail_20' ) start [2025-03-22 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736544', 'tblTempUsageDetail_20' ) end [2025-03-22 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736544', 'tblTempVendorCDR_20' ) start [2025-03-22 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736544', 'tblTempVendorCDR_20' ) end [2025-03-22 09:17:18] Production.INFO: ProcessCDR(1,14736544,1,1,2) [2025-03-22 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736544', 'tblTempUsageDetail_20' ) start [2025-03-22 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736544', 'tblTempUsageDetail_20' ) end [2025-03-22 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:17:22] Production.INFO: ==11773== Releasing lock... [2025-03-22 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-22 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:18:05 [end_date_ymd] => 2025-03-22 09:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:18:05' and `end` < '2025-03-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-03-22 09:18:18] Production.INFO: count ==289 [2025-03-22 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:18:05 - End Time 2025-03-22 09:18:05 [2025-03-22 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736549', 'tblTempUsageDetail_20' ) start [2025-03-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736549', 'tblTempUsageDetail_20' ) end [2025-03-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736549', 'tblTempVendorCDR_20' ) start [2025-03-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736549', 'tblTempVendorCDR_20' ) end [2025-03-22 09:18:18] Production.INFO: ProcessCDR(1,14736549,1,1,2) [2025-03-22 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736549', 'tblTempUsageDetail_20' ) start [2025-03-22 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736549', 'tblTempUsageDetail_20' ) end [2025-03-22 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:18:21] Production.INFO: ==11895== Releasing lock... [2025-03-22 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:19:05 [end_date_ymd] => 2025-03-22 09:19:05 [RateCDR] => 1 ) [2025-03-22 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:19:05' and `end` < '2025-03-22 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:19:18] Production.INFO: count ==290 [2025-03-22 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:19:05 - End Time 2025-03-22 09:19:05 [2025-03-22 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736554', 'tblTempUsageDetail_20' ) start [2025-03-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736554', 'tblTempUsageDetail_20' ) end [2025-03-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736554', 'tblTempVendorCDR_20' ) start [2025-03-22 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736554', 'tblTempVendorCDR_20' ) end [2025-03-22 09:19:18] Production.INFO: ProcessCDR(1,14736554,1,1,2) [2025-03-22 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736554', 'tblTempUsageDetail_20' ) start [2025-03-22 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736554', 'tblTempUsageDetail_20' ) end [2025-03-22 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:19:21] Production.INFO: ==11985== Releasing lock... [2025-03-22 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:20:06 [end_date_ymd] => 2025-03-22 09:20:06 [RateCDR] => 1 ) [2025-03-22 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:20:06' and `end` < '2025-03-22 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:20:18] Production.INFO: count ==302 [2025-03-22 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:20:06 - End Time 2025-03-22 09:20:06 [2025-03-22 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736560', 'tblTempUsageDetail_20' ) start [2025-03-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736560', 'tblTempUsageDetail_20' ) end [2025-03-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736560', 'tblTempVendorCDR_20' ) start [2025-03-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736560', 'tblTempVendorCDR_20' ) end [2025-03-22 09:20:18] Production.INFO: ProcessCDR(1,14736560,1,1,2) [2025-03-22 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736560', 'tblTempUsageDetail_20' ) start [2025-03-22 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736560', 'tblTempUsageDetail_20' ) end [2025-03-22 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:20:22] Production.INFO: ==12078== Releasing lock... [2025-03-22 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:21:05 [end_date_ymd] => 2025-03-22 09:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:21:05' and `end` < '2025-03-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-03-22 09:21:18] Production.INFO: count ==302 [2025-03-22 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:21:05 - End Time 2025-03-22 09:21:05 [2025-03-22 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736565', 'tblTempUsageDetail_20' ) start [2025-03-22 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736565', 'tblTempUsageDetail_20' ) end [2025-03-22 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736565', 'tblTempVendorCDR_20' ) start [2025-03-22 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736565', 'tblTempVendorCDR_20' ) end [2025-03-22 09:21:18] Production.INFO: ProcessCDR(1,14736565,1,1,2) [2025-03-22 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736565', 'tblTempUsageDetail_20' ) start [2025-03-22 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736565', 'tblTempUsageDetail_20' ) end [2025-03-22 09:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:21:21] Production.INFO: ==12156== Releasing lock... [2025-03-22 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:22:04 [end_date_ymd] => 2025-03-22 09:22:04 [RateCDR] => 1 ) [2025-03-22 09:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:22:04' and `end` < '2025-03-22 09:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:22:17] Production.INFO: count ==305 [2025-03-22 09:22:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:22:04 - End Time 2025-03-22 09:22:04 [2025-03-22 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736567', 'tblTempUsageDetail_20' ) start [2025-03-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736567', 'tblTempUsageDetail_20' ) end [2025-03-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736567', 'tblTempVendorCDR_20' ) start [2025-03-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736567', 'tblTempVendorCDR_20' ) end [2025-03-22 09:22:17] Production.INFO: ProcessCDR(1,14736567,1,1,2) [2025-03-22 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736567', 'tblTempUsageDetail_20' ) start [2025-03-22 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736567', 'tblTempUsageDetail_20' ) end [2025-03-22 09:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:22:20] Production.INFO: ==12233== Releasing lock... [2025-03-22 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-22 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:23:05 [end_date_ymd] => 2025-03-22 09:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:23:05' and `end` < '2025-03-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-03-22 09:23:17] Production.INFO: count ==312 [2025-03-22 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:23:05 - End Time 2025-03-22 09:23:05 [2025-03-22 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736575', 'tblTempUsageDetail_20' ) start [2025-03-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736575', 'tblTempUsageDetail_20' ) end [2025-03-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736575', 'tblTempVendorCDR_20' ) start [2025-03-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736575', 'tblTempVendorCDR_20' ) end [2025-03-22 09:23:17] Production.INFO: ProcessCDR(1,14736575,1,1,2) [2025-03-22 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736575', 'tblTempUsageDetail_20' ) start [2025-03-22 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736575', 'tblTempUsageDetail_20' ) end [2025-03-22 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:23:21] Production.INFO: ==12307== Releasing lock... [2025-03-22 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:23:21] Production.INFO: 31 MB #Memory Used# [2025-03-22 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:24:05 [end_date_ymd] => 2025-03-22 09:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:24:05' and `end` < '2025-03-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-03-22 09:24:17] Production.INFO: count ==312 [2025-03-22 09:24:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:24:05 - End Time 2025-03-22 09:24:05 [2025-03-22 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736580', 'tblTempUsageDetail_20' ) start [2025-03-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736580', 'tblTempUsageDetail_20' ) end [2025-03-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736580', 'tblTempVendorCDR_20' ) start [2025-03-22 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736580', 'tblTempVendorCDR_20' ) end [2025-03-22 09:24:17] Production.INFO: ProcessCDR(1,14736580,1,1,2) [2025-03-22 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736580', 'tblTempUsageDetail_20' ) start [2025-03-22 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736580', 'tblTempUsageDetail_20' ) end [2025-03-22 09:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:24:20] Production.INFO: ==12423== Releasing lock... [2025-03-22 09:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:24:20] Production.INFO: 31 MB #Memory Used# [2025-03-22 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:25:05 [end_date_ymd] => 2025-03-22 09:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:25:05' and `end` < '2025-03-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-03-22 09:25:17] Production.INFO: count ==312 [2025-03-22 09:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:25:05 - End Time 2025-03-22 09:25:05 [2025-03-22 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736585', 'tblTempUsageDetail_20' ) start [2025-03-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736585', 'tblTempUsageDetail_20' ) end [2025-03-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736585', 'tblTempVendorCDR_20' ) start [2025-03-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736585', 'tblTempVendorCDR_20' ) end [2025-03-22 09:25:17] Production.INFO: ProcessCDR(1,14736585,1,1,2) [2025-03-22 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736585', 'tblTempUsageDetail_20' ) start [2025-03-22 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736585', 'tblTempUsageDetail_20' ) end [2025-03-22 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:25:20] Production.INFO: ==12498== Releasing lock... [2025-03-22 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:25:20] Production.INFO: 31 MB #Memory Used# [2025-03-22 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:26:05 [end_date_ymd] => 2025-03-22 09:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:26:05' and `end` < '2025-03-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-03-22 09:26:18] Production.INFO: count ==320 [2025-03-22 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:26:05 - End Time 2025-03-22 09:26:05 [2025-03-22 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736590', 'tblTempUsageDetail_20' ) start [2025-03-22 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736590', 'tblTempUsageDetail_20' ) end [2025-03-22 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736590', 'tblTempVendorCDR_20' ) start [2025-03-22 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736590', 'tblTempVendorCDR_20' ) end [2025-03-22 09:26:18] Production.INFO: ProcessCDR(1,14736590,1,1,2) [2025-03-22 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736590', 'tblTempUsageDetail_20' ) start [2025-03-22 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736590', 'tblTempUsageDetail_20' ) end [2025-03-22 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:26:21] Production.INFO: ==12571== Releasing lock... [2025-03-22 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-22 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:27:05 [end_date_ymd] => 2025-03-22 09:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:27:05' and `end` < '2025-03-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-03-22 09:27:17] Production.INFO: count ==326 [2025-03-22 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:27:05 - End Time 2025-03-22 09:27:05 [2025-03-22 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736595', 'tblTempUsageDetail_20' ) start [2025-03-22 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736595', 'tblTempUsageDetail_20' ) end [2025-03-22 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736595', 'tblTempVendorCDR_20' ) start [2025-03-22 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736595', 'tblTempVendorCDR_20' ) end [2025-03-22 09:27:17] Production.INFO: ProcessCDR(1,14736595,1,1,2) [2025-03-22 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736595', 'tblTempUsageDetail_20' ) start [2025-03-22 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736595', 'tblTempUsageDetail_20' ) end [2025-03-22 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:27:21] Production.INFO: ==12653== Releasing lock... [2025-03-22 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:28:06 [end_date_ymd] => 2025-03-22 09:28:06 [RateCDR] => 1 ) [2025-03-22 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:28:06' and `end` < '2025-03-22 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:28:18] Production.INFO: count ==326 [2025-03-22 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:28:06 - End Time 2025-03-22 09:28:06 [2025-03-22 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736600', 'tblTempUsageDetail_20' ) start [2025-03-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736600', 'tblTempUsageDetail_20' ) end [2025-03-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736600', 'tblTempVendorCDR_20' ) start [2025-03-22 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736600', 'tblTempVendorCDR_20' ) end [2025-03-22 09:28:18] Production.INFO: ProcessCDR(1,14736600,1,1,2) [2025-03-22 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736600', 'tblTempUsageDetail_20' ) start [2025-03-22 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736600', 'tblTempUsageDetail_20' ) end [2025-03-22 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:28:21] Production.INFO: ==12736== Releasing lock... [2025-03-22 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:29:05 [end_date_ymd] => 2025-03-22 09:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:29:05' and `end` < '2025-03-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-03-22 09:29:17] Production.INFO: count ==326 [2025-03-22 09:29:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:29:05 - End Time 2025-03-22 09:29:05 [2025-03-22 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736605', 'tblTempUsageDetail_20' ) start [2025-03-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736605', 'tblTempUsageDetail_20' ) end [2025-03-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736605', 'tblTempVendorCDR_20' ) start [2025-03-22 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736605', 'tblTempVendorCDR_20' ) end [2025-03-22 09:29:17] Production.INFO: ProcessCDR(1,14736605,1,1,2) [2025-03-22 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736605', 'tblTempUsageDetail_20' ) start [2025-03-22 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736605', 'tblTempUsageDetail_20' ) end [2025-03-22 09:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:29:20] Production.INFO: ==12807== Releasing lock... [2025-03-22 09:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:30:06 [end_date_ymd] => 2025-03-22 09:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 06:30:06' and `end` < '2025-03-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-03-22 09:30:18] Production.INFO: count ==341 [2025-03-22 09:30:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:30:06 - End Time 2025-03-22 09:30:06 [2025-03-22 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736611', 'tblTempUsageDetail_20' ) start [2025-03-22 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736611', 'tblTempUsageDetail_20' ) end [2025-03-22 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736611', 'tblTempVendorCDR_20' ) start [2025-03-22 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736611', 'tblTempVendorCDR_20' ) end [2025-03-22 09:30:18] Production.INFO: ProcessCDR(1,14736611,1,1,2) [2025-03-22 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736611', 'tblTempUsageDetail_20' ) start [2025-03-22 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736611', 'tblTempUsageDetail_20' ) end [2025-03-22 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:30:22] Production.INFO: ==12885== Releasing lock... [2025-03-22 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:31:05 [end_date_ymd] => 2025-03-22 09:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:31:05' and `end` < '2025-03-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-03-22 09:31:17] Production.INFO: count ==366 [2025-03-22 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:31:05 - End Time 2025-03-22 09:31:05 [2025-03-22 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736616', 'tblTempUsageDetail_20' ) start [2025-03-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736616', 'tblTempUsageDetail_20' ) end [2025-03-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736616', 'tblTempVendorCDR_20' ) start [2025-03-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736616', 'tblTempVendorCDR_20' ) end [2025-03-22 09:31:18] Production.INFO: ProcessCDR(1,14736616,1,1,2) [2025-03-22 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736616', 'tblTempUsageDetail_20' ) start [2025-03-22 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736616', 'tblTempUsageDetail_20' ) end [2025-03-22 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:31:22] Production.INFO: ==12961== Releasing lock... [2025-03-22 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:31:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:32:05 [end_date_ymd] => 2025-03-22 09:32:05 [RateCDR] => 1 ) [2025-03-22 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:32:05' and `end` < '2025-03-22 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:32:17] Production.INFO: count ==366 [2025-03-22 09:32:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:32:05 - End Time 2025-03-22 09:32:05 [2025-03-22 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736621', 'tblTempUsageDetail_20' ) start [2025-03-22 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736621', 'tblTempUsageDetail_20' ) end [2025-03-22 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736621', 'tblTempVendorCDR_20' ) start [2025-03-22 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736621', 'tblTempVendorCDR_20' ) end [2025-03-22 09:32:17] Production.INFO: ProcessCDR(1,14736621,1,1,2) [2025-03-22 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736621', 'tblTempUsageDetail_20' ) start [2025-03-22 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736621', 'tblTempUsageDetail_20' ) end [2025-03-22 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:32:21] Production.INFO: ==13035== Releasing lock... [2025-03-22 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:33:05 [end_date_ymd] => 2025-03-22 09:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:33:05' and `end` < '2025-03-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-03-22 09:33:17] Production.INFO: count ==366 [2025-03-22 09:33:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:33:05 - End Time 2025-03-22 09:33:05 [2025-03-22 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736626', 'tblTempUsageDetail_20' ) start [2025-03-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736626', 'tblTempUsageDetail_20' ) end [2025-03-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736626', 'tblTempVendorCDR_20' ) start [2025-03-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736626', 'tblTempVendorCDR_20' ) end [2025-03-22 09:33:17] Production.INFO: ProcessCDR(1,14736626,1,1,2) [2025-03-22 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736626', 'tblTempUsageDetail_20' ) start [2025-03-22 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736626', 'tblTempUsageDetail_20' ) end [2025-03-22 09:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:33:20] Production.INFO: ==13114== Releasing lock... [2025-03-22 09:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:33:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:34:05 [end_date_ymd] => 2025-03-22 09:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:34:05' and `end` < '2025-03-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-03-22 09:34:18] Production.INFO: count ==366 [2025-03-22 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:34:05 - End Time 2025-03-22 09:34:05 [2025-03-22 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736631', 'tblTempUsageDetail_20' ) start [2025-03-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736631', 'tblTempUsageDetail_20' ) end [2025-03-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736631', 'tblTempVendorCDR_20' ) start [2025-03-22 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736631', 'tblTempVendorCDR_20' ) end [2025-03-22 09:34:18] Production.INFO: ProcessCDR(1,14736631,1,1,2) [2025-03-22 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736631', 'tblTempUsageDetail_20' ) start [2025-03-22 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736631', 'tblTempUsageDetail_20' ) end [2025-03-22 09:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:34:21] Production.INFO: ==13191== Releasing lock... [2025-03-22 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:35:05 [end_date_ymd] => 2025-03-22 09:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:35:05' and `end` < '2025-03-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-03-22 09:35:17] Production.INFO: count ==366 [2025-03-22 09:35:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:35:05 - End Time 2025-03-22 09:35:05 [2025-03-22 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736636', 'tblTempUsageDetail_20' ) start [2025-03-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736636', 'tblTempUsageDetail_20' ) end [2025-03-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736636', 'tblTempVendorCDR_20' ) start [2025-03-22 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736636', 'tblTempVendorCDR_20' ) end [2025-03-22 09:35:17] Production.INFO: ProcessCDR(1,14736636,1,1,2) [2025-03-22 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736636', 'tblTempUsageDetail_20' ) start [2025-03-22 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736636', 'tblTempUsageDetail_20' ) end [2025-03-22 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:35:21] Production.INFO: ==13270== Releasing lock... [2025-03-22 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:36:05 [end_date_ymd] => 2025-03-22 09:36:05 [RateCDR] => 1 ) [2025-03-22 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:36:05' and `end` < '2025-03-22 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:36:17] Production.INFO: count ==366 [2025-03-22 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:36:05 - End Time 2025-03-22 09:36:05 [2025-03-22 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736641', 'tblTempUsageDetail_20' ) start [2025-03-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736641', 'tblTempUsageDetail_20' ) end [2025-03-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736641', 'tblTempVendorCDR_20' ) start [2025-03-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736641', 'tblTempVendorCDR_20' ) end [2025-03-22 09:36:18] Production.INFO: ProcessCDR(1,14736641,1,1,2) [2025-03-22 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736641', 'tblTempUsageDetail_20' ) start [2025-03-22 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736641', 'tblTempUsageDetail_20' ) end [2025-03-22 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:36:21] Production.INFO: ==13344== Releasing lock... [2025-03-22 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:37:05 [end_date_ymd] => 2025-03-22 09:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:37:05' and `end` < '2025-03-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-03-22 09:37:18] Production.INFO: count ==380 [2025-03-22 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:37:05 - End Time 2025-03-22 09:37:05 [2025-03-22 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736646', 'tblTempUsageDetail_20' ) start [2025-03-22 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736646', 'tblTempUsageDetail_20' ) end [2025-03-22 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736646', 'tblTempVendorCDR_20' ) start [2025-03-22 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736646', 'tblTempVendorCDR_20' ) end [2025-03-22 09:37:18] Production.INFO: ProcessCDR(1,14736646,1,1,2) [2025-03-22 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736646', 'tblTempUsageDetail_20' ) start [2025-03-22 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736646', 'tblTempUsageDetail_20' ) end [2025-03-22 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:37:22] Production.INFO: ==13419== Releasing lock... [2025-03-22 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:38:05 [end_date_ymd] => 2025-03-22 09:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:38:05' and `end` < '2025-03-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-03-22 09:38:17] Production.INFO: count ==380 [2025-03-22 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:38:05 - End Time 2025-03-22 09:38:05 [2025-03-22 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736651', 'tblTempUsageDetail_20' ) start [2025-03-22 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736651', 'tblTempUsageDetail_20' ) end [2025-03-22 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736651', 'tblTempVendorCDR_20' ) start [2025-03-22 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736651', 'tblTempVendorCDR_20' ) end [2025-03-22 09:38:18] Production.INFO: ProcessCDR(1,14736651,1,1,2) [2025-03-22 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736651', 'tblTempUsageDetail_20' ) start [2025-03-22 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736651', 'tblTempUsageDetail_20' ) end [2025-03-22 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:38:21] Production.INFO: ==13497== Releasing lock... [2025-03-22 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-22 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:39:06 [end_date_ymd] => 2025-03-22 09:39:06 [RateCDR] => 1 ) [2025-03-22 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:39:06' and `end` < '2025-03-22 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:39:18] Production.INFO: count ==385 [2025-03-22 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:39:06 - End Time 2025-03-22 09:39:06 [2025-03-22 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736656', 'tblTempUsageDetail_20' ) start [2025-03-22 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736656', 'tblTempUsageDetail_20' ) end [2025-03-22 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736656', 'tblTempVendorCDR_20' ) start [2025-03-22 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736656', 'tblTempVendorCDR_20' ) end [2025-03-22 09:39:18] Production.INFO: ProcessCDR(1,14736656,1,1,2) [2025-03-22 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736656', 'tblTempUsageDetail_20' ) start [2025-03-22 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736656', 'tblTempUsageDetail_20' ) end [2025-03-22 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:39:22] Production.INFO: ==13608== Releasing lock... [2025-03-22 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:40:06 [end_date_ymd] => 2025-03-22 09:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 06:40:06' and `end` < '2025-03-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-03-22 09:40:18] Production.INFO: count ==386 [2025-03-22 09:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:40:06 - End Time 2025-03-22 09:40:06 [2025-03-22 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736662', 'tblTempUsageDetail_20' ) start [2025-03-22 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736662', 'tblTempUsageDetail_20' ) end [2025-03-22 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736662', 'tblTempVendorCDR_20' ) start [2025-03-22 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736662', 'tblTempVendorCDR_20' ) end [2025-03-22 09:40:19] Production.INFO: ProcessCDR(1,14736662,1,1,2) [2025-03-22 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736662', 'tblTempUsageDetail_20' ) start [2025-03-22 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736662', 'tblTempUsageDetail_20' ) end [2025-03-22 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:40:23] Production.INFO: ==13689== Releasing lock... [2025-03-22 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:41:05 [end_date_ymd] => 2025-03-22 09:41:05 [RateCDR] => 1 ) [2025-03-22 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:41:05' and `end` < '2025-03-22 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:41:17] Production.INFO: count ==386 [2025-03-22 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:41:05 - End Time 2025-03-22 09:41:05 [2025-03-22 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736667', 'tblTempUsageDetail_20' ) start [2025-03-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736667', 'tblTempUsageDetail_20' ) end [2025-03-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736667', 'tblTempVendorCDR_20' ) start [2025-03-22 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736667', 'tblTempVendorCDR_20' ) end [2025-03-22 09:41:18] Production.INFO: ProcessCDR(1,14736667,1,1,2) [2025-03-22 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736667', 'tblTempUsageDetail_20' ) start [2025-03-22 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736667', 'tblTempUsageDetail_20' ) end [2025-03-22 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:41:21] Production.INFO: ==13770== Releasing lock... [2025-03-22 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:42:05 [end_date_ymd] => 2025-03-22 09:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:42:05' and `end` < '2025-03-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-03-22 09:42:17] Production.INFO: count ==390 [2025-03-22 09:42:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:42:05 - End Time 2025-03-22 09:42:05 [2025-03-22 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736672', 'tblTempUsageDetail_20' ) start [2025-03-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736672', 'tblTempUsageDetail_20' ) end [2025-03-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736672', 'tblTempVendorCDR_20' ) start [2025-03-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736672', 'tblTempVendorCDR_20' ) end [2025-03-22 09:42:17] Production.INFO: ProcessCDR(1,14736672,1,1,2) [2025-03-22 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736672', 'tblTempUsageDetail_20' ) start [2025-03-22 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736672', 'tblTempUsageDetail_20' ) end [2025-03-22 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:42:21] Production.INFO: ==13840== Releasing lock... [2025-03-22 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:43:05 [end_date_ymd] => 2025-03-22 09:43:05 [RateCDR] => 1 ) [2025-03-22 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:43:05' and `end` < '2025-03-22 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:43:17] Production.INFO: count ==393 [2025-03-22 09:43:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:43:05 - End Time 2025-03-22 09:43:05 [2025-03-22 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736677', 'tblTempUsageDetail_20' ) start [2025-03-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736677', 'tblTempUsageDetail_20' ) end [2025-03-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736677', 'tblTempVendorCDR_20' ) start [2025-03-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736677', 'tblTempVendorCDR_20' ) end [2025-03-22 09:43:17] Production.INFO: ProcessCDR(1,14736677,1,1,2) [2025-03-22 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736677', 'tblTempUsageDetail_20' ) start [2025-03-22 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736677', 'tblTempUsageDetail_20' ) end [2025-03-22 09:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:43:21] Production.INFO: ==13914== Releasing lock... [2025-03-22 09:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:43:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:44:05 [end_date_ymd] => 2025-03-22 09:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:44:05' and `end` < '2025-03-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-03-22 09:44:17] Production.INFO: count ==394 [2025-03-22 09:44:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:44:05 - End Time 2025-03-22 09:44:05 [2025-03-22 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736682', 'tblTempUsageDetail_20' ) start [2025-03-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736682', 'tblTempUsageDetail_20' ) end [2025-03-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736682', 'tblTempVendorCDR_20' ) start [2025-03-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736682', 'tblTempVendorCDR_20' ) end [2025-03-22 09:44:17] Production.INFO: ProcessCDR(1,14736682,1,1,2) [2025-03-22 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736682', 'tblTempUsageDetail_20' ) start [2025-03-22 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736682', 'tblTempUsageDetail_20' ) end [2025-03-22 09:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:44:20] Production.INFO: ==13989== Releasing lock... [2025-03-22 09:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:44:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:45:06 [end_date_ymd] => 2025-03-22 09:45:06 [RateCDR] => 1 ) [2025-03-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-03-22 06:45:06' and `end` < '2025-03-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-03-22 09:45:18] Production.INFO: count ==400 [2025-03-22 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:45:06 - End Time 2025-03-22 09:45:06 [2025-03-22 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736687', 'tblTempUsageDetail_20' ) start [2025-03-22 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736687', 'tblTempUsageDetail_20' ) end [2025-03-22 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736687', 'tblTempVendorCDR_20' ) start [2025-03-22 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736687', 'tblTempVendorCDR_20' ) end [2025-03-22 09:45:18] Production.INFO: ProcessCDR(1,14736687,1,1,2) [2025-03-22 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736687', 'tblTempUsageDetail_20' ) start [2025-03-22 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736687', 'tblTempUsageDetail_20' ) end [2025-03-22 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:45:21] Production.INFO: ==14061== Releasing lock... [2025-03-22 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:46:05 [end_date_ymd] => 2025-03-22 09:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:46:05' and `end` < '2025-03-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-03-22 09:46:17] Production.INFO: count ==408 [2025-03-22 09:46:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:46:05 - End Time 2025-03-22 09:46:05 [2025-03-22 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736692', 'tblTempUsageDetail_20' ) start [2025-03-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736692', 'tblTempUsageDetail_20' ) end [2025-03-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736692', 'tblTempVendorCDR_20' ) start [2025-03-22 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736692', 'tblTempVendorCDR_20' ) end [2025-03-22 09:46:17] Production.INFO: ProcessCDR(1,14736692,1,1,2) [2025-03-22 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736692', 'tblTempUsageDetail_20' ) start [2025-03-22 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736692', 'tblTempUsageDetail_20' ) end [2025-03-22 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:46:22] Production.INFO: ==14136== Releasing lock... [2025-03-22 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:47:05 [end_date_ymd] => 2025-03-22 09:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:47:05' and `end` < '2025-03-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-03-22 09:47:18] Production.INFO: count ==409 [2025-03-22 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:47:05 - End Time 2025-03-22 09:47:05 [2025-03-22 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736697', 'tblTempUsageDetail_20' ) start [2025-03-22 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736697', 'tblTempUsageDetail_20' ) end [2025-03-22 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736697', 'tblTempVendorCDR_20' ) start [2025-03-22 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736697', 'tblTempVendorCDR_20' ) end [2025-03-22 09:47:18] Production.INFO: ProcessCDR(1,14736697,1,1,2) [2025-03-22 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736697', 'tblTempUsageDetail_20' ) start [2025-03-22 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736697', 'tblTempUsageDetail_20' ) end [2025-03-22 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:47:21] Production.INFO: ==14209== Releasing lock... [2025-03-22 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:48:05 [end_date_ymd] => 2025-03-22 09:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:48:05' and `end` < '2025-03-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-03-22 09:48:17] Production.INFO: count ==417 [2025-03-22 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:48:05 - End Time 2025-03-22 09:48:05 [2025-03-22 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736702', 'tblTempUsageDetail_20' ) start [2025-03-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736702', 'tblTempUsageDetail_20' ) end [2025-03-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736702', 'tblTempVendorCDR_20' ) start [2025-03-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736702', 'tblTempVendorCDR_20' ) end [2025-03-22 09:48:17] Production.INFO: ProcessCDR(1,14736702,1,1,2) [2025-03-22 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736702', 'tblTempUsageDetail_20' ) start [2025-03-22 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736702', 'tblTempUsageDetail_20' ) end [2025-03-22 09:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:48:20] Production.INFO: ==14282== Releasing lock... [2025-03-22 09:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:48:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-22 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:49:05 [end_date_ymd] => 2025-03-22 09:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:49:05' and `end` < '2025-03-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-03-22 09:49:17] Production.INFO: count ==423 [2025-03-22 09:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:49:05 - End Time 2025-03-22 09:49:05 [2025-03-22 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736707', 'tblTempUsageDetail_20' ) start [2025-03-22 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736707', 'tblTempUsageDetail_20' ) end [2025-03-22 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736707', 'tblTempVendorCDR_20' ) start [2025-03-22 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736707', 'tblTempVendorCDR_20' ) end [2025-03-22 09:49:17] Production.INFO: ProcessCDR(1,14736707,1,1,2) [2025-03-22 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736707', 'tblTempUsageDetail_20' ) start [2025-03-22 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736707', 'tblTempUsageDetail_20' ) end [2025-03-22 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:49:22] Production.INFO: ==14354== Releasing lock... [2025-03-22 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:49:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:50:06 [end_date_ymd] => 2025-03-22 09:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 06:50:06' and `end` < '2025-03-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-03-22 09:50:18] Production.INFO: count ==433 [2025-03-22 09:50:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:50:06 - End Time 2025-03-22 09:50:06 [2025-03-22 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736713', 'tblTempUsageDetail_20' ) start [2025-03-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736713', 'tblTempUsageDetail_20' ) end [2025-03-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736713', 'tblTempVendorCDR_20' ) start [2025-03-22 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736713', 'tblTempVendorCDR_20' ) end [2025-03-22 09:50:18] Production.INFO: ProcessCDR(1,14736713,1,1,2) [2025-03-22 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736713', 'tblTempUsageDetail_20' ) start [2025-03-22 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736713', 'tblTempUsageDetail_20' ) end [2025-03-22 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:50:22] Production.INFO: ==14433== Releasing lock... [2025-03-22 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:51:05 [end_date_ymd] => 2025-03-22 09:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:51:05' and `end` < '2025-03-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-03-22 09:51:17] Production.INFO: count ==437 [2025-03-22 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:51:05 - End Time 2025-03-22 09:51:05 [2025-03-22 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736718', 'tblTempUsageDetail_20' ) start [2025-03-22 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736718', 'tblTempUsageDetail_20' ) end [2025-03-22 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736718', 'tblTempVendorCDR_20' ) start [2025-03-22 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736718', 'tblTempVendorCDR_20' ) end [2025-03-22 09:51:18] Production.INFO: ProcessCDR(1,14736718,1,1,2) [2025-03-22 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736718', 'tblTempUsageDetail_20' ) start [2025-03-22 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736718', 'tblTempUsageDetail_20' ) end [2025-03-22 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:51:21] Production.INFO: ==14517== Releasing lock... [2025-03-22 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:52:06 [end_date_ymd] => 2025-03-22 09:52:06 [RateCDR] => 1 ) [2025-03-22 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:52:06' and `end` < '2025-03-22 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:52:18] Production.INFO: count ==451 [2025-03-22 09:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:52:06 - End Time 2025-03-22 09:52:06 [2025-03-22 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736723', 'tblTempUsageDetail_20' ) start [2025-03-22 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736723', 'tblTempUsageDetail_20' ) end [2025-03-22 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736723', 'tblTempVendorCDR_20' ) start [2025-03-22 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736723', 'tblTempVendorCDR_20' ) end [2025-03-22 09:52:18] Production.INFO: ProcessCDR(1,14736723,1,1,2) [2025-03-22 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736723', 'tblTempUsageDetail_20' ) start [2025-03-22 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736723', 'tblTempUsageDetail_20' ) end [2025-03-22 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:52:21] Production.INFO: ==14589== Releasing lock... [2025-03-22 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:53:05 [end_date_ymd] => 2025-03-22 09:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:53:05' and `end` < '2025-03-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-03-22 09:53:18] Production.INFO: count ==451 [2025-03-22 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:53:05 - End Time 2025-03-22 09:53:05 [2025-03-22 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736728', 'tblTempUsageDetail_20' ) start [2025-03-22 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736728', 'tblTempUsageDetail_20' ) end [2025-03-22 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736728', 'tblTempVendorCDR_20' ) start [2025-03-22 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736728', 'tblTempVendorCDR_20' ) end [2025-03-22 09:53:18] Production.INFO: ProcessCDR(1,14736728,1,1,2) [2025-03-22 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736728', 'tblTempUsageDetail_20' ) start [2025-03-22 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736728', 'tblTempUsageDetail_20' ) end [2025-03-22 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:53:21] Production.INFO: ==14666== Releasing lock... [2025-03-22 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:53:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:54:06 [end_date_ymd] => 2025-03-22 09:54:06 [RateCDR] => 1 ) [2025-03-22 09:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:54:06' and `end` < '2025-03-22 09:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:54:18] Production.INFO: count ==451 [2025-03-22 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:54:06 - End Time 2025-03-22 09:54:06 [2025-03-22 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736733', 'tblTempUsageDetail_20' ) start [2025-03-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736733', 'tblTempUsageDetail_20' ) end [2025-03-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736733', 'tblTempVendorCDR_20' ) start [2025-03-22 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736733', 'tblTempVendorCDR_20' ) end [2025-03-22 09:54:18] Production.INFO: ProcessCDR(1,14736733,1,1,2) [2025-03-22 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736733', 'tblTempUsageDetail_20' ) start [2025-03-22 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736733', 'tblTempUsageDetail_20' ) end [2025-03-22 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:54:22] Production.INFO: ==14744== Releasing lock... [2025-03-22 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:54:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:55:05 [end_date_ymd] => 2025-03-22 09:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:55:05' and `end` < '2025-03-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-03-22 09:55:17] Production.INFO: count ==456 [2025-03-22 09:55:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:55:05 - End Time 2025-03-22 09:55:05 [2025-03-22 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736738', 'tblTempUsageDetail_20' ) start [2025-03-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736738', 'tblTempUsageDetail_20' ) end [2025-03-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736738', 'tblTempVendorCDR_20' ) start [2025-03-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736738', 'tblTempVendorCDR_20' ) end [2025-03-22 09:55:17] Production.INFO: ProcessCDR(1,14736738,1,1,2) [2025-03-22 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736738', 'tblTempUsageDetail_20' ) start [2025-03-22 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736738', 'tblTempUsageDetail_20' ) end [2025-03-22 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:55:21] Production.INFO: ==14855== Releasing lock... [2025-03-22 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:56:06 [end_date_ymd] => 2025-03-22 09:56:06 [RateCDR] => 1 ) [2025-03-22 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:56:06' and `end` < '2025-03-22 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:56:18] Production.INFO: count ==456 [2025-03-22 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:56:06 - End Time 2025-03-22 09:56:06 [2025-03-22 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736743', 'tblTempUsageDetail_20' ) start [2025-03-22 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736743', 'tblTempUsageDetail_20' ) end [2025-03-22 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736743', 'tblTempVendorCDR_20' ) start [2025-03-22 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736743', 'tblTempVendorCDR_20' ) end [2025-03-22 09:56:18] Production.INFO: ProcessCDR(1,14736743,1,1,2) [2025-03-22 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736743', 'tblTempUsageDetail_20' ) start [2025-03-22 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736743', 'tblTempUsageDetail_20' ) end [2025-03-22 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:56:21] Production.INFO: ==14928== Releasing lock... [2025-03-22 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:57:05 [end_date_ymd] => 2025-03-22 09:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:57:05' and `end` < '2025-03-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-03-22 09:57:17] Production.INFO: count ==456 [2025-03-22 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:57:05 - End Time 2025-03-22 09:57:05 [2025-03-22 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736748', 'tblTempUsageDetail_20' ) start [2025-03-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736748', 'tblTempUsageDetail_20' ) end [2025-03-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736748', 'tblTempVendorCDR_20' ) start [2025-03-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736748', 'tblTempVendorCDR_20' ) end [2025-03-22 09:57:18] Production.INFO: ProcessCDR(1,14736748,1,1,2) [2025-03-22 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736748', 'tblTempUsageDetail_20' ) start [2025-03-22 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736748', 'tblTempUsageDetail_20' ) end [2025-03-22 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:57:21] Production.INFO: ==15004== Releasing lock... [2025-03-22 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-22 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:58:06 [end_date_ymd] => 2025-03-22 09:58:06 [RateCDR] => 1 ) [2025-03-22 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 06:58:06' and `end` < '2025-03-22 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 09:58:18] Production.INFO: count ==457 [2025-03-22 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 06:58:06 - End Time 2025-03-22 09:58:06 [2025-03-22 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736753', 'tblTempUsageDetail_20' ) start [2025-03-22 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736753', 'tblTempUsageDetail_20' ) end [2025-03-22 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736753', 'tblTempVendorCDR_20' ) start [2025-03-22 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736753', 'tblTempVendorCDR_20' ) end [2025-03-22 09:58:18] Production.INFO: ProcessCDR(1,14736753,1,1,2) [2025-03-22 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736753', 'tblTempUsageDetail_20' ) start [2025-03-22 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736753', 'tblTempUsageDetail_20' ) end [2025-03-22 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:58:23] Production.INFO: ==15074== Releasing lock... [2025-03-22 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:58:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 06:59:05 [end_date_ymd] => 2025-03-22 09:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 06:59:05' and `end` < '2025-03-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-03-22 09:59:17] Production.INFO: count ==457 [2025-03-22 09:59:17] Production.ERROR: pbx CDR StartTime 2025-03-22 06:59:05 - End Time 2025-03-22 09:59:05 [2025-03-22 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736758', 'tblTempUsageDetail_20' ) start [2025-03-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736758', 'tblTempUsageDetail_20' ) end [2025-03-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736758', 'tblTempVendorCDR_20' ) start [2025-03-22 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736758', 'tblTempVendorCDR_20' ) end [2025-03-22 09:59:17] Production.INFO: ProcessCDR(1,14736758,1,1,2) [2025-03-22 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736758', 'tblTempUsageDetail_20' ) start [2025-03-22 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736758', 'tblTempUsageDetail_20' ) end [2025-03-22 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 09:59:21] Production.INFO: ==15147== Releasing lock... [2025-03-22 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 09:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:00:06 [end_date_ymd] => 2025-03-22 10:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:00:06' and `end` < '2025-03-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-03-22 10:00:18] Production.INFO: count ==465 [2025-03-22 10:00:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:00:06 - End Time 2025-03-22 10:00:06 [2025-03-22 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736764', 'tblTempUsageDetail_20' ) start [2025-03-22 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736764', 'tblTempUsageDetail_20' ) end [2025-03-22 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736764', 'tblTempVendorCDR_20' ) start [2025-03-22 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736764', 'tblTempVendorCDR_20' ) end [2025-03-22 10:00:18] Production.INFO: ProcessCDR(1,14736764,1,1,2) [2025-03-22 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736764', 'tblTempUsageDetail_20' ) start [2025-03-22 10:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736764', 'tblTempUsageDetail_20' ) end [2025-03-22 10:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:00:21] Production.INFO: ==15226== Releasing lock... [2025-03-22 10:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:00:21] Production.INFO: 32 MB #Memory Used# [2025-03-22 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:01:05 [end_date_ymd] => 2025-03-22 10:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:01:05' and `end` < '2025-03-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-03-22 10:01:17] Production.INFO: count ==491 [2025-03-22 10:01:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:01:05 - End Time 2025-03-22 10:01:05 [2025-03-22 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736769', 'tblTempUsageDetail_20' ) start [2025-03-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736769', 'tblTempUsageDetail_20' ) end [2025-03-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736769', 'tblTempVendorCDR_20' ) start [2025-03-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736769', 'tblTempVendorCDR_20' ) end [2025-03-22 10:01:17] Production.INFO: ProcessCDR(1,14736769,1,1,2) [2025-03-22 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736769', 'tblTempUsageDetail_20' ) start [2025-03-22 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736769', 'tblTempUsageDetail_20' ) end [2025-03-22 10:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:01:20] Production.INFO: ==15316== Releasing lock... [2025-03-22 10:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:01:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:02:05 [end_date_ymd] => 2025-03-22 10:02:05 [RateCDR] => 1 ) [2025-03-22 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:02:05' and `end` < '2025-03-22 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:02:17] Production.INFO: count ==494 [2025-03-22 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:02:05 - End Time 2025-03-22 10:02:05 [2025-03-22 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736774', 'tblTempUsageDetail_20' ) start [2025-03-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736774', 'tblTempUsageDetail_20' ) end [2025-03-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736774', 'tblTempVendorCDR_20' ) start [2025-03-22 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736774', 'tblTempVendorCDR_20' ) end [2025-03-22 10:02:18] Production.INFO: ProcessCDR(1,14736774,1,1,2) [2025-03-22 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736774', 'tblTempUsageDetail_20' ) start [2025-03-22 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736774', 'tblTempUsageDetail_20' ) end [2025-03-22 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:02:23] Production.INFO: ==15389== Releasing lock... [2025-03-22 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:02:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:03:05 [end_date_ymd] => 2025-03-22 10:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:03:05' and `end` < '2025-03-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-03-22 10:03:17] Production.INFO: count ==495 [2025-03-22 10:03:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:03:05 - End Time 2025-03-22 10:03:05 [2025-03-22 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736779', 'tblTempUsageDetail_20' ) start [2025-03-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736779', 'tblTempUsageDetail_20' ) end [2025-03-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736779', 'tblTempVendorCDR_20' ) start [2025-03-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736779', 'tblTempVendorCDR_20' ) end [2025-03-22 10:03:17] Production.INFO: ProcessCDR(1,14736779,1,1,2) [2025-03-22 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736779', 'tblTempUsageDetail_20' ) start [2025-03-22 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736779', 'tblTempUsageDetail_20' ) end [2025-03-22 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:03:22] Production.INFO: ==15462== Releasing lock... [2025-03-22 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:03:22] Production.INFO: 32 MB #Memory Used# [2025-03-22 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:04:05 [end_date_ymd] => 2025-03-22 10:04:05 [RateCDR] => 1 ) [2025-03-22 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:04:05' and `end` < '2025-03-22 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:04:17] Production.INFO: count ==503 [2025-03-22 10:04:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:04:05 - End Time 2025-03-22 10:04:05 [2025-03-22 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736784', 'tblTempUsageDetail_20' ) start [2025-03-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736784', 'tblTempUsageDetail_20' ) end [2025-03-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736784', 'tblTempVendorCDR_20' ) start [2025-03-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736784', 'tblTempVendorCDR_20' ) end [2025-03-22 10:04:17] Production.INFO: ProcessCDR(1,14736784,1,1,2) [2025-03-22 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736784', 'tblTempUsageDetail_20' ) start [2025-03-22 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736784', 'tblTempUsageDetail_20' ) end [2025-03-22 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:04:21] Production.INFO: ==15537== Releasing lock... [2025-03-22 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:04:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:05:05 [end_date_ymd] => 2025-03-22 10:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:05:05' and `end` < '2025-03-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-03-22 10:05:17] Production.INFO: count ==518 [2025-03-22 10:05:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:05:05 - End Time 2025-03-22 10:05:05 [2025-03-22 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736789', 'tblTempUsageDetail_20' ) start [2025-03-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736789', 'tblTempUsageDetail_20' ) end [2025-03-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736789', 'tblTempVendorCDR_20' ) start [2025-03-22 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736789', 'tblTempVendorCDR_20' ) end [2025-03-22 10:05:17] Production.INFO: ProcessCDR(1,14736789,1,1,2) [2025-03-22 10:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736789', 'tblTempUsageDetail_20' ) start [2025-03-22 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736789', 'tblTempUsageDetail_20' ) end [2025-03-22 10:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:05:22] Production.INFO: ==15610== Releasing lock... [2025-03-22 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:05:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:06:05 [end_date_ymd] => 2025-03-22 10:06:05 [RateCDR] => 1 ) [2025-03-22 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:06:05' and `end` < '2025-03-22 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:06:17] Production.INFO: count ==531 [2025-03-22 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:06:05 - End Time 2025-03-22 10:06:05 [2025-03-22 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736794', 'tblTempUsageDetail_20' ) start [2025-03-22 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736794', 'tblTempUsageDetail_20' ) end [2025-03-22 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736794', 'tblTempVendorCDR_20' ) start [2025-03-22 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736794', 'tblTempVendorCDR_20' ) end [2025-03-22 10:06:18] Production.INFO: ProcessCDR(1,14736794,1,1,2) [2025-03-22 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736794', 'tblTempUsageDetail_20' ) start [2025-03-22 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736794', 'tblTempUsageDetail_20' ) end [2025-03-22 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:06:21] Production.INFO: ==15682== Releasing lock... [2025-03-22 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-22 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:07:05 [end_date_ymd] => 2025-03-22 10:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:07:05' and `end` < '2025-03-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-03-22 10:07:17] Production.INFO: count ==538 [2025-03-22 10:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:07:05 - End Time 2025-03-22 10:07:05 [2025-03-22 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736799', 'tblTempUsageDetail_20' ) start [2025-03-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736799', 'tblTempUsageDetail_20' ) end [2025-03-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736799', 'tblTempVendorCDR_20' ) start [2025-03-22 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736799', 'tblTempVendorCDR_20' ) end [2025-03-22 10:07:17] Production.INFO: ProcessCDR(1,14736799,1,1,2) [2025-03-22 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736799', 'tblTempUsageDetail_20' ) start [2025-03-22 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736799', 'tblTempUsageDetail_20' ) end [2025-03-22 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:07:21] Production.INFO: ==15756== Releasing lock... [2025-03-22 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:07:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:08:06 [end_date_ymd] => 2025-03-22 10:08:06 [RateCDR] => 1 ) [2025-03-22 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:08:06' and `end` < '2025-03-22 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:08:18] Production.INFO: count ==534 [2025-03-22 10:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:08:06 - End Time 2025-03-22 10:08:06 [2025-03-22 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736804', 'tblTempUsageDetail_20' ) start [2025-03-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736804', 'tblTempUsageDetail_20' ) end [2025-03-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736804', 'tblTempVendorCDR_20' ) start [2025-03-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736804', 'tblTempVendorCDR_20' ) end [2025-03-22 10:08:18] Production.INFO: ProcessCDR(1,14736804,1,1,2) [2025-03-22 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736804', 'tblTempUsageDetail_20' ) start [2025-03-22 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736804', 'tblTempUsageDetail_20' ) end [2025-03-22 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:08:23] Production.INFO: ==15834== Releasing lock... [2025-03-22 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:08:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:09:05 [end_date_ymd] => 2025-03-22 10:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:09:05' and `end` < '2025-03-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-03-22 10:09:18] Production.INFO: count ==534 [2025-03-22 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:09:05 - End Time 2025-03-22 10:09:05 [2025-03-22 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736809', 'tblTempUsageDetail_20' ) start [2025-03-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736809', 'tblTempUsageDetail_20' ) end [2025-03-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736809', 'tblTempVendorCDR_20' ) start [2025-03-22 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736809', 'tblTempVendorCDR_20' ) end [2025-03-22 10:09:18] Production.INFO: ProcessCDR(1,14736809,1,1,2) [2025-03-22 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736809', 'tblTempUsageDetail_20' ) start [2025-03-22 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736809', 'tblTempUsageDetail_20' ) end [2025-03-22 10:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:09:21] Production.INFO: ==15907== Releasing lock... [2025-03-22 10:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:10:06 [end_date_ymd] => 2025-03-22 10:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:10:06' and `end` < '2025-03-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-03-22 10:10:18] Production.INFO: count ==544 [2025-03-22 10:10:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:10:06 - End Time 2025-03-22 10:10:06 [2025-03-22 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736814', 'tblTempUsageDetail_20' ) start [2025-03-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736814', 'tblTempUsageDetail_20' ) end [2025-03-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736814', 'tblTempVendorCDR_20' ) start [2025-03-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736814', 'tblTempVendorCDR_20' ) end [2025-03-22 10:10:18] Production.INFO: ProcessCDR(1,14736814,1,1,2) [2025-03-22 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736814', 'tblTempUsageDetail_20' ) start [2025-03-22 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736814', 'tblTempUsageDetail_20' ) end [2025-03-22 10:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:10:21] Production.INFO: ==16022== Releasing lock... [2025-03-22 10:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:11:05 [end_date_ymd] => 2025-03-22 10:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:11:05' and `end` < '2025-03-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-03-22 10:11:17] Production.INFO: count ==558 [2025-03-22 10:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:11:05 - End Time 2025-03-22 10:11:05 [2025-03-22 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736820', 'tblTempUsageDetail_20' ) start [2025-03-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736820', 'tblTempUsageDetail_20' ) end [2025-03-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736820', 'tblTempVendorCDR_20' ) start [2025-03-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736820', 'tblTempVendorCDR_20' ) end [2025-03-22 10:11:17] Production.INFO: ProcessCDR(1,14736820,1,1,2) [2025-03-22 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736820', 'tblTempUsageDetail_20' ) start [2025-03-22 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736820', 'tblTempUsageDetail_20' ) end [2025-03-22 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:11:21] Production.INFO: ==16095== Releasing lock... [2025-03-22 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:11:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:12:06 [end_date_ymd] => 2025-03-22 10:12:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:12:06' and `end` < '2025-03-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-03-22 10:12:18] Production.INFO: count ==558 [2025-03-22 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:12:06 - End Time 2025-03-22 10:12:06 [2025-03-22 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736825', 'tblTempUsageDetail_20' ) start [2025-03-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736825', 'tblTempUsageDetail_20' ) end [2025-03-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736825', 'tblTempVendorCDR_20' ) start [2025-03-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736825', 'tblTempVendorCDR_20' ) end [2025-03-22 10:12:18] Production.INFO: ProcessCDR(1,14736825,1,1,2) [2025-03-22 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736825', 'tblTempUsageDetail_20' ) start [2025-03-22 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736825', 'tblTempUsageDetail_20' ) end [2025-03-22 10:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:12:22] Production.INFO: ==16174== Releasing lock... [2025-03-22 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:12:22] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:13:05 [end_date_ymd] => 2025-03-22 10:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:13:05' and `end` < '2025-03-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-03-22 10:13:17] Production.INFO: count ==565 [2025-03-22 10:13:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:13:05 - End Time 2025-03-22 10:13:05 [2025-03-22 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736830', 'tblTempUsageDetail_20' ) start [2025-03-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736830', 'tblTempUsageDetail_20' ) end [2025-03-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736830', 'tblTempVendorCDR_20' ) start [2025-03-22 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736830', 'tblTempVendorCDR_20' ) end [2025-03-22 10:13:18] Production.INFO: ProcessCDR(1,14736830,1,1,2) [2025-03-22 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736830', 'tblTempUsageDetail_20' ) start [2025-03-22 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736830', 'tblTempUsageDetail_20' ) end [2025-03-22 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:13:22] Production.INFO: ==16245== Releasing lock... [2025-03-22 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:14:05 [end_date_ymd] => 2025-03-22 10:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:14:05' and `end` < '2025-03-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-03-22 10:14:17] Production.INFO: count ==566 [2025-03-22 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:14:05 - End Time 2025-03-22 10:14:05 [2025-03-22 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736835', 'tblTempUsageDetail_20' ) start [2025-03-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736835', 'tblTempUsageDetail_20' ) end [2025-03-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736835', 'tblTempVendorCDR_20' ) start [2025-03-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736835', 'tblTempVendorCDR_20' ) end [2025-03-22 10:14:18] Production.INFO: ProcessCDR(1,14736835,1,1,2) [2025-03-22 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736835', 'tblTempUsageDetail_20' ) start [2025-03-22 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736835', 'tblTempUsageDetail_20' ) end [2025-03-22 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:14:23] Production.INFO: ==16317== Releasing lock... [2025-03-22 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:14:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-22 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:15:05 [end_date_ymd] => 2025-03-22 10:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:15:05' and `end` < '2025-03-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-03-22 10:15:17] Production.INFO: count ==581 [2025-03-22 10:15:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:15:05 - End Time 2025-03-22 10:15:05 [2025-03-22 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736840', 'tblTempUsageDetail_20' ) start [2025-03-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736840', 'tblTempUsageDetail_20' ) end [2025-03-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736840', 'tblTempVendorCDR_20' ) start [2025-03-22 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736840', 'tblTempVendorCDR_20' ) end [2025-03-22 10:15:17] Production.INFO: ProcessCDR(1,14736840,1,1,2) [2025-03-22 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736840', 'tblTempUsageDetail_20' ) start [2025-03-22 10:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736840', 'tblTempUsageDetail_20' ) end [2025-03-22 10:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:15:20] Production.INFO: ==16391== Releasing lock... [2025-03-22 10:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:15:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:16:05 [end_date_ymd] => 2025-03-22 10:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:16:05' and `end` < '2025-03-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-03-22 10:16:18] Production.INFO: count ==581 [2025-03-22 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:16:05 - End Time 2025-03-22 10:16:05 [2025-03-22 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736845', 'tblTempUsageDetail_20' ) start [2025-03-22 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736845', 'tblTempUsageDetail_20' ) end [2025-03-22 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736845', 'tblTempVendorCDR_20' ) start [2025-03-22 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736845', 'tblTempVendorCDR_20' ) end [2025-03-22 10:16:18] Production.INFO: ProcessCDR(1,14736845,1,1,2) [2025-03-22 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736845', 'tblTempUsageDetail_20' ) start [2025-03-22 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736845', 'tblTempUsageDetail_20' ) end [2025-03-22 10:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:16:21] Production.INFO: ==16466== Releasing lock... [2025-03-22 10:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:17:06 [end_date_ymd] => 2025-03-22 10:17:06 [RateCDR] => 1 ) [2025-03-22 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:17:06' and `end` < '2025-03-22 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:17:18] Production.INFO: count ==581 [2025-03-22 10:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:17:06 - End Time 2025-03-22 10:17:06 [2025-03-22 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736850', 'tblTempUsageDetail_20' ) start [2025-03-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736850', 'tblTempUsageDetail_20' ) end [2025-03-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736850', 'tblTempVendorCDR_20' ) start [2025-03-22 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736850', 'tblTempVendorCDR_20' ) end [2025-03-22 10:17:18] Production.INFO: ProcessCDR(1,14736850,1,1,2) [2025-03-22 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736850', 'tblTempUsageDetail_20' ) start [2025-03-22 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736850', 'tblTempUsageDetail_20' ) end [2025-03-22 10:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:17:22] Production.INFO: ==16538== Releasing lock... [2025-03-22 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:18:05 [end_date_ymd] => 2025-03-22 10:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:18:05' and `end` < '2025-03-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-03-22 10:18:17] Production.INFO: count ==586 [2025-03-22 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:18:05 - End Time 2025-03-22 10:18:05 [2025-03-22 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736855', 'tblTempUsageDetail_20' ) start [2025-03-22 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736855', 'tblTempUsageDetail_20' ) end [2025-03-22 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736855', 'tblTempVendorCDR_20' ) start [2025-03-22 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736855', 'tblTempVendorCDR_20' ) end [2025-03-22 10:18:18] Production.INFO: ProcessCDR(1,14736855,1,1,2) [2025-03-22 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736855', 'tblTempUsageDetail_20' ) start [2025-03-22 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736855', 'tblTempUsageDetail_20' ) end [2025-03-22 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:18:21] Production.INFO: ==16608== Releasing lock... [2025-03-22 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:19:05 [end_date_ymd] => 2025-03-22 10:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:19:05' and `end` < '2025-03-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-03-22 10:19:17] Production.INFO: count ==592 [2025-03-22 10:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:19:05 - End Time 2025-03-22 10:19:05 [2025-03-22 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736860', 'tblTempUsageDetail_20' ) start [2025-03-22 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736860', 'tblTempUsageDetail_20' ) end [2025-03-22 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736860', 'tblTempVendorCDR_20' ) start [2025-03-22 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736860', 'tblTempVendorCDR_20' ) end [2025-03-22 10:19:18] Production.INFO: ProcessCDR(1,14736860,1,1,2) [2025-03-22 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736860', 'tblTempUsageDetail_20' ) start [2025-03-22 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736860', 'tblTempUsageDetail_20' ) end [2025-03-22 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:19:21] Production.INFO: ==16682== Releasing lock... [2025-03-22 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:19:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:20:06 [end_date_ymd] => 2025-03-22 10:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:20:06' and `end` < '2025-03-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-03-22 10:20:18] Production.INFO: count ==605 [2025-03-22 10:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:20:06 - End Time 2025-03-22 10:20:06 [2025-03-22 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736866', 'tblTempUsageDetail_20' ) start [2025-03-22 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736866', 'tblTempUsageDetail_20' ) end [2025-03-22 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736866', 'tblTempVendorCDR_20' ) start [2025-03-22 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736866', 'tblTempVendorCDR_20' ) end [2025-03-22 10:20:18] Production.INFO: ProcessCDR(1,14736866,1,1,2) [2025-03-22 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736866', 'tblTempUsageDetail_20' ) start [2025-03-22 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736866', 'tblTempUsageDetail_20' ) end [2025-03-22 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:20:22] Production.INFO: ==16757== Releasing lock... [2025-03-22 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:21:05 [end_date_ymd] => 2025-03-22 10:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:21:05' and `end` < '2025-03-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-03-22 10:21:17] Production.INFO: count ==607 [2025-03-22 10:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:21:05 - End Time 2025-03-22 10:21:05 [2025-03-22 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736871', 'tblTempUsageDetail_20' ) start [2025-03-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736871', 'tblTempUsageDetail_20' ) end [2025-03-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736871', 'tblTempVendorCDR_20' ) start [2025-03-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736871', 'tblTempVendorCDR_20' ) end [2025-03-22 10:21:18] Production.INFO: ProcessCDR(1,14736871,1,1,2) [2025-03-22 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736871', 'tblTempUsageDetail_20' ) start [2025-03-22 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736871', 'tblTempUsageDetail_20' ) end [2025-03-22 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:21:23] Production.INFO: ==16835== Releasing lock... [2025-03-22 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:22:05 [end_date_ymd] => 2025-03-22 10:22:05 [RateCDR] => 1 ) [2025-03-22 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:22:05' and `end` < '2025-03-22 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:22:17] Production.INFO: count ==608 [2025-03-22 10:22:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:22:05 - End Time 2025-03-22 10:22:05 [2025-03-22 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736876', 'tblTempUsageDetail_20' ) start [2025-03-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736876', 'tblTempUsageDetail_20' ) end [2025-03-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736876', 'tblTempVendorCDR_20' ) start [2025-03-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736876', 'tblTempVendorCDR_20' ) end [2025-03-22 10:22:17] Production.INFO: ProcessCDR(1,14736876,1,1,2) [2025-03-22 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736876', 'tblTempUsageDetail_20' ) start [2025-03-22 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736876', 'tblTempUsageDetail_20' ) end [2025-03-22 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:22:22] Production.INFO: ==16908== Releasing lock... [2025-03-22 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:22:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:23:05 [end_date_ymd] => 2025-03-22 10:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:23:05' and `end` < '2025-03-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-03-22 10:23:18] Production.INFO: count ==611 [2025-03-22 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:23:05 - End Time 2025-03-22 10:23:05 [2025-03-22 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736881', 'tblTempUsageDetail_20' ) start [2025-03-22 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736881', 'tblTempUsageDetail_20' ) end [2025-03-22 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736881', 'tblTempVendorCDR_20' ) start [2025-03-22 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736881', 'tblTempVendorCDR_20' ) end [2025-03-22 10:23:18] Production.INFO: ProcessCDR(1,14736881,1,1,2) [2025-03-22 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736881', 'tblTempUsageDetail_20' ) start [2025-03-22 10:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736881', 'tblTempUsageDetail_20' ) end [2025-03-22 10:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:23:23] Production.INFO: ==16982== Releasing lock... [2025-03-22 10:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:23:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:24:05 [end_date_ymd] => 2025-03-22 10:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:24:05' and `end` < '2025-03-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-03-22 10:24:17] Production.INFO: count ==611 [2025-03-22 10:24:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:24:05 - End Time 2025-03-22 10:24:05 [2025-03-22 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736886', 'tblTempUsageDetail_20' ) start [2025-03-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736886', 'tblTempUsageDetail_20' ) end [2025-03-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736886', 'tblTempVendorCDR_20' ) start [2025-03-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736886', 'tblTempVendorCDR_20' ) end [2025-03-22 10:24:17] Production.INFO: ProcessCDR(1,14736886,1,1,2) [2025-03-22 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736886', 'tblTempUsageDetail_20' ) start [2025-03-22 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736886', 'tblTempUsageDetail_20' ) end [2025-03-22 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:24:21] Production.INFO: ==17052== Releasing lock... [2025-03-22 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-22 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:25:05 [end_date_ymd] => 2025-03-22 10:25:05 [RateCDR] => 1 ) [2025-03-22 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:25:05' and `end` < '2025-03-22 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:25:18] Production.INFO: count ==612 [2025-03-22 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:25:05 - End Time 2025-03-22 10:25:05 [2025-03-22 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736891', 'tblTempUsageDetail_20' ) start [2025-03-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736891', 'tblTempUsageDetail_20' ) end [2025-03-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736891', 'tblTempVendorCDR_20' ) start [2025-03-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736891', 'tblTempVendorCDR_20' ) end [2025-03-22 10:25:18] Production.INFO: ProcessCDR(1,14736891,1,1,2) [2025-03-22 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736891', 'tblTempUsageDetail_20' ) start [2025-03-22 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736891', 'tblTempUsageDetail_20' ) end [2025-03-22 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:25:21] Production.INFO: ==17125== Releasing lock... [2025-03-22 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:26:05 [end_date_ymd] => 2025-03-22 10:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:26:05' and `end` < '2025-03-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-03-22 10:26:17] Production.INFO: count ==631 [2025-03-22 10:26:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:26:05 - End Time 2025-03-22 10:26:05 [2025-03-22 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736896', 'tblTempUsageDetail_20' ) start [2025-03-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736896', 'tblTempUsageDetail_20' ) end [2025-03-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736896', 'tblTempVendorCDR_20' ) start [2025-03-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736896', 'tblTempVendorCDR_20' ) end [2025-03-22 10:26:17] Production.INFO: ProcessCDR(1,14736896,1,1,2) [2025-03-22 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736896', 'tblTempUsageDetail_20' ) start [2025-03-22 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736896', 'tblTempUsageDetail_20' ) end [2025-03-22 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:26:21] Production.INFO: ==17243== Releasing lock... [2025-03-22 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:26:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:27:06 [end_date_ymd] => 2025-03-22 10:27:06 [RateCDR] => 1 ) [2025-03-22 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:27:06' and `end` < '2025-03-22 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:27:18] Production.INFO: count ==631 [2025-03-22 10:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:27:06 - End Time 2025-03-22 10:27:06 [2025-03-22 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736901', 'tblTempUsageDetail_20' ) start [2025-03-22 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736901', 'tblTempUsageDetail_20' ) end [2025-03-22 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736901', 'tblTempVendorCDR_20' ) start [2025-03-22 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736901', 'tblTempVendorCDR_20' ) end [2025-03-22 10:27:18] Production.INFO: ProcessCDR(1,14736901,1,1,2) [2025-03-22 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736901', 'tblTempUsageDetail_20' ) start [2025-03-22 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736901', 'tblTempUsageDetail_20' ) end [2025-03-22 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:27:21] Production.INFO: ==17322== Releasing lock... [2025-03-22 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:27:21] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:28:05 [end_date_ymd] => 2025-03-22 10:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:28:05' and `end` < '2025-03-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-03-22 10:28:17] Production.INFO: count ==632 [2025-03-22 10:28:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:28:05 - End Time 2025-03-22 10:28:05 [2025-03-22 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736906', 'tblTempUsageDetail_20' ) start [2025-03-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736906', 'tblTempUsageDetail_20' ) end [2025-03-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736906', 'tblTempVendorCDR_20' ) start [2025-03-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736906', 'tblTempVendorCDR_20' ) end [2025-03-22 10:28:17] Production.INFO: ProcessCDR(1,14736906,1,1,2) [2025-03-22 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736906', 'tblTempUsageDetail_20' ) start [2025-03-22 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736906', 'tblTempUsageDetail_20' ) end [2025-03-22 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:28:23] Production.INFO: ==17395== Releasing lock... [2025-03-22 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:28:23] Production.INFO: 33 MB #Memory Used# [2025-03-22 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:29:05 [end_date_ymd] => 2025-03-22 10:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:29:05' and `end` < '2025-03-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-03-22 10:29:18] Production.INFO: count ==639 [2025-03-22 10:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:29:05 - End Time 2025-03-22 10:29:05 [2025-03-22 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736911', 'tblTempUsageDetail_20' ) start [2025-03-22 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736911', 'tblTempUsageDetail_20' ) end [2025-03-22 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736911', 'tblTempVendorCDR_20' ) start [2025-03-22 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736911', 'tblTempVendorCDR_20' ) end [2025-03-22 10:29:18] Production.INFO: ProcessCDR(1,14736911,1,1,2) [2025-03-22 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736911', 'tblTempUsageDetail_20' ) start [2025-03-22 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736911', 'tblTempUsageDetail_20' ) end [2025-03-22 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:29:21] Production.INFO: ==17478== Releasing lock... [2025-03-22 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:30:06 [end_date_ymd] => 2025-03-22 10:30:06 [RateCDR] => 1 ) [2025-03-22 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:30:06' and `end` < '2025-03-22 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:30:18] Production.INFO: count ==651 [2025-03-22 10:30:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:30:06 - End Time 2025-03-22 10:30:06 [2025-03-22 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736916', 'tblTempUsageDetail_20' ) start [2025-03-22 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736916', 'tblTempUsageDetail_20' ) end [2025-03-22 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736916', 'tblTempVendorCDR_20' ) start [2025-03-22 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736916', 'tblTempVendorCDR_20' ) end [2025-03-22 10:30:18] Production.INFO: ProcessCDR(1,14736916,1,1,2) [2025-03-22 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736916', 'tblTempUsageDetail_20' ) start [2025-03-22 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736916', 'tblTempUsageDetail_20' ) end [2025-03-22 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:30:22] Production.INFO: ==17558== Releasing lock... [2025-03-22 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:31:06 [end_date_ymd] => 2025-03-22 10:31:06 [RateCDR] => 1 ) [2025-03-22 10:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:31:06' and `end` < '2025-03-22 10:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:31:18] Production.INFO: count ==671 [2025-03-22 10:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:31:06 - End Time 2025-03-22 10:31:06 [2025-03-22 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736922', 'tblTempUsageDetail_20' ) start [2025-03-22 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736922', 'tblTempUsageDetail_20' ) end [2025-03-22 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736922', 'tblTempVendorCDR_20' ) start [2025-03-22 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736922', 'tblTempVendorCDR_20' ) end [2025-03-22 10:31:18] Production.INFO: ProcessCDR(1,14736922,1,1,2) [2025-03-22 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736922', 'tblTempUsageDetail_20' ) start [2025-03-22 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736922', 'tblTempUsageDetail_20' ) end [2025-03-22 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:31:22] Production.INFO: ==17653== Releasing lock... [2025-03-22 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:32:05 [end_date_ymd] => 2025-03-22 10:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:32:05' and `end` < '2025-03-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-03-22 10:32:17] Production.INFO: count ==672 [2025-03-22 10:32:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:32:05 - End Time 2025-03-22 10:32:05 [2025-03-22 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736927', 'tblTempUsageDetail_20' ) start [2025-03-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736927', 'tblTempUsageDetail_20' ) end [2025-03-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736927', 'tblTempVendorCDR_20' ) start [2025-03-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736927', 'tblTempVendorCDR_20' ) end [2025-03-22 10:32:17] Production.INFO: ProcessCDR(1,14736927,1,1,2) [2025-03-22 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736927', 'tblTempUsageDetail_20' ) start [2025-03-22 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736927', 'tblTempUsageDetail_20' ) end [2025-03-22 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:32:21] Production.INFO: ==17728== Releasing lock... [2025-03-22 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:32:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:33:05 [end_date_ymd] => 2025-03-22 10:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:33:05' and `end` < '2025-03-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-03-22 10:33:18] Production.INFO: count ==672 [2025-03-22 10:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:33:05 - End Time 2025-03-22 10:33:05 [2025-03-22 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736932', 'tblTempUsageDetail_20' ) start [2025-03-22 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736932', 'tblTempUsageDetail_20' ) end [2025-03-22 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736932', 'tblTempVendorCDR_20' ) start [2025-03-22 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736932', 'tblTempVendorCDR_20' ) end [2025-03-22 10:33:18] Production.INFO: ProcessCDR(1,14736932,1,1,2) [2025-03-22 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736932', 'tblTempUsageDetail_20' ) start [2025-03-22 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736932', 'tblTempUsageDetail_20' ) end [2025-03-22 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:33:21] Production.INFO: ==17808== Releasing lock... [2025-03-22 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:33:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:34:05 [end_date_ymd] => 2025-03-22 10:34:05 [RateCDR] => 1 ) [2025-03-22 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:34:05' and `end` < '2025-03-22 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:34:17] Production.INFO: count ==672 [2025-03-22 10:34:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:34:05 - End Time 2025-03-22 10:34:05 [2025-03-22 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736937', 'tblTempUsageDetail_20' ) start [2025-03-22 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736937', 'tblTempUsageDetail_20' ) end [2025-03-22 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736937', 'tblTempVendorCDR_20' ) start [2025-03-22 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736937', 'tblTempVendorCDR_20' ) end [2025-03-22 10:34:17] Production.INFO: ProcessCDR(1,14736937,1,1,2) [2025-03-22 10:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736937', 'tblTempUsageDetail_20' ) start [2025-03-22 10:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736937', 'tblTempUsageDetail_20' ) end [2025-03-22 10:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:34:20] Production.INFO: ==17889== Releasing lock... [2025-03-22 10:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:34:20] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:35:05 [end_date_ymd] => 2025-03-22 10:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:35:05' and `end` < '2025-03-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-03-22 10:35:17] Production.INFO: count ==672 [2025-03-22 10:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:35:05 - End Time 2025-03-22 10:35:05 [2025-03-22 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736942', 'tblTempUsageDetail_20' ) start [2025-03-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736942', 'tblTempUsageDetail_20' ) end [2025-03-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736942', 'tblTempVendorCDR_20' ) start [2025-03-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736942', 'tblTempVendorCDR_20' ) end [2025-03-22 10:35:18] Production.INFO: ProcessCDR(1,14736942,1,1,2) [2025-03-22 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736942', 'tblTempUsageDetail_20' ) start [2025-03-22 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736942', 'tblTempUsageDetail_20' ) end [2025-03-22 10:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:35:21] Production.INFO: ==17969== Releasing lock... [2025-03-22 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:35:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:36:05 [end_date_ymd] => 2025-03-22 10:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:36:05' and `end` < '2025-03-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-03-22 10:36:18] Production.INFO: count ==673 [2025-03-22 10:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:36:05 - End Time 2025-03-22 10:36:05 [2025-03-22 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736947', 'tblTempUsageDetail_20' ) start [2025-03-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736947', 'tblTempUsageDetail_20' ) end [2025-03-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736947', 'tblTempVendorCDR_20' ) start [2025-03-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736947', 'tblTempVendorCDR_20' ) end [2025-03-22 10:36:18] Production.INFO: ProcessCDR(1,14736947,1,1,2) [2025-03-22 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736947', 'tblTempUsageDetail_20' ) start [2025-03-22 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736947', 'tblTempUsageDetail_20' ) end [2025-03-22 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:36:23] Production.INFO: ==18044== Releasing lock... [2025-03-22 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:36:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:37:05 [end_date_ymd] => 2025-03-22 10:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:37:05' and `end` < '2025-03-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-03-22 10:37:18] Production.INFO: count ==674 [2025-03-22 10:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:37:05 - End Time 2025-03-22 10:37:05 [2025-03-22 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736952', 'tblTempUsageDetail_20' ) start [2025-03-22 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736952', 'tblTempUsageDetail_20' ) end [2025-03-22 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736952', 'tblTempVendorCDR_20' ) start [2025-03-22 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736952', 'tblTempVendorCDR_20' ) end [2025-03-22 10:37:18] Production.INFO: ProcessCDR(1,14736952,1,1,2) [2025-03-22 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736952', 'tblTempUsageDetail_20' ) start [2025-03-22 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736952', 'tblTempUsageDetail_20' ) end [2025-03-22 10:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:37:23] Production.INFO: ==18118== Releasing lock... [2025-03-22 10:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:37:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:38:06 [end_date_ymd] => 2025-03-22 10:38:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:38:06' and `end` < '2025-03-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-03-22 10:38:18] Production.INFO: count ==676 [2025-03-22 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 07:38:06 - End Time 2025-03-22 10:38:06 [2025-03-22 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736957', 'tblTempUsageDetail_20' ) start [2025-03-22 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736957', 'tblTempUsageDetail_20' ) end [2025-03-22 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736957', 'tblTempVendorCDR_20' ) start [2025-03-22 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736957', 'tblTempVendorCDR_20' ) end [2025-03-22 10:38:19] Production.INFO: ProcessCDR(1,14736957,1,1,2) [2025-03-22 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736957', 'tblTempUsageDetail_20' ) start [2025-03-22 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736957', 'tblTempUsageDetail_20' ) end [2025-03-22 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:38:23] Production.INFO: ==18210== Releasing lock... [2025-03-22 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:38:23] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:39:05 [end_date_ymd] => 2025-03-22 10:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:39:05' and `end` < '2025-03-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-03-22 10:39:17] Production.INFO: count ==682 [2025-03-22 10:39:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:39:05 - End Time 2025-03-22 10:39:05 [2025-03-22 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736962', 'tblTempUsageDetail_20' ) start [2025-03-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736962', 'tblTempUsageDetail_20' ) end [2025-03-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736962', 'tblTempVendorCDR_20' ) start [2025-03-22 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736962', 'tblTempVendorCDR_20' ) end [2025-03-22 10:39:17] Production.INFO: ProcessCDR(1,14736962,1,1,2) [2025-03-22 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736962', 'tblTempUsageDetail_20' ) start [2025-03-22 10:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736962', 'tblTempUsageDetail_20' ) end [2025-03-22 10:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:39:21] Production.INFO: ==18292== Releasing lock... [2025-03-22 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:39:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:40:06 [end_date_ymd] => 2025-03-22 10:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:40:06' and `end` < '2025-03-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-03-22 10:40:19] Production.INFO: count ==685 [2025-03-22 10:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 07:40:06 - End Time 2025-03-22 10:40:06 [2025-03-22 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736968', 'tblTempUsageDetail_20' ) start [2025-03-22 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736968', 'tblTempUsageDetail_20' ) end [2025-03-22 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736968', 'tblTempVendorCDR_20' ) start [2025-03-22 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736968', 'tblTempVendorCDR_20' ) end [2025-03-22 10:40:19] Production.INFO: ProcessCDR(1,14736968,1,1,2) [2025-03-22 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736968', 'tblTempUsageDetail_20' ) start [2025-03-22 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736968', 'tblTempUsageDetail_20' ) end [2025-03-22 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:40:23] Production.INFO: ==18369== Releasing lock... [2025-03-22 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:40:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:41:05 [end_date_ymd] => 2025-03-22 10:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:41:05' and `end` < '2025-03-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-03-22 10:41:17] Production.INFO: count ==693 [2025-03-22 10:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:41:05 - End Time 2025-03-22 10:41:05 [2025-03-22 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736973', 'tblTempUsageDetail_20' ) start [2025-03-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736973', 'tblTempUsageDetail_20' ) end [2025-03-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736973', 'tblTempVendorCDR_20' ) start [2025-03-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736973', 'tblTempVendorCDR_20' ) end [2025-03-22 10:41:17] Production.INFO: ProcessCDR(1,14736973,1,1,2) [2025-03-22 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736973', 'tblTempUsageDetail_20' ) start [2025-03-22 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736973', 'tblTempUsageDetail_20' ) end [2025-03-22 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:41:21] Production.INFO: ==18491== Releasing lock... [2025-03-22 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:42:05 [end_date_ymd] => 2025-03-22 10:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:42:05' and `end` < '2025-03-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-03-22 10:42:18] Production.INFO: count ==693 [2025-03-22 10:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:42:05 - End Time 2025-03-22 10:42:05 [2025-03-22 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736978', 'tblTempUsageDetail_20' ) start [2025-03-22 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736978', 'tblTempUsageDetail_20' ) end [2025-03-22 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736978', 'tblTempVendorCDR_20' ) start [2025-03-22 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736978', 'tblTempVendorCDR_20' ) end [2025-03-22 10:42:18] Production.INFO: ProcessCDR(1,14736978,1,1,2) [2025-03-22 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736978', 'tblTempUsageDetail_20' ) start [2025-03-22 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736978', 'tblTempUsageDetail_20' ) end [2025-03-22 10:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:42:21] Production.INFO: ==18577== Releasing lock... [2025-03-22 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:43:05 [end_date_ymd] => 2025-03-22 10:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:43:05' and `end` < '2025-03-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-03-22 10:43:18] Production.INFO: count ==701 [2025-03-22 10:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:43:05 - End Time 2025-03-22 10:43:05 [2025-03-22 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736983', 'tblTempUsageDetail_20' ) start [2025-03-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736983', 'tblTempUsageDetail_20' ) end [2025-03-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736983', 'tblTempVendorCDR_20' ) start [2025-03-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736983', 'tblTempVendorCDR_20' ) end [2025-03-22 10:43:18] Production.INFO: ProcessCDR(1,14736983,1,1,2) [2025-03-22 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736983', 'tblTempUsageDetail_20' ) start [2025-03-22 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736983', 'tblTempUsageDetail_20' ) end [2025-03-22 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:43:23] Production.INFO: ==18651== Releasing lock... [2025-03-22 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:43:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:44:05 [end_date_ymd] => 2025-03-22 10:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:44:05' and `end` < '2025-03-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-03-22 10:44:17] Production.INFO: count ==702 [2025-03-22 10:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:44:05 - End Time 2025-03-22 10:44:05 [2025-03-22 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736988', 'tblTempUsageDetail_20' ) start [2025-03-22 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736988', 'tblTempUsageDetail_20' ) end [2025-03-22 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736988', 'tblTempVendorCDR_20' ) start [2025-03-22 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736988', 'tblTempVendorCDR_20' ) end [2025-03-22 10:44:18] Production.INFO: ProcessCDR(1,14736988,1,1,2) [2025-03-22 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736988', 'tblTempUsageDetail_20' ) start [2025-03-22 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736988', 'tblTempUsageDetail_20' ) end [2025-03-22 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:44:23] Production.INFO: ==18726== Releasing lock... [2025-03-22 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:45:05 [end_date_ymd] => 2025-03-22 10:45:05 [RateCDR] => 1 ) [2025-03-22 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:45:05' and `end` < '2025-03-22 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:45:17] Production.INFO: count ==704 [2025-03-22 10:45:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:45:05 - End Time 2025-03-22 10:45:05 [2025-03-22 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736993', 'tblTempUsageDetail_20' ) start [2025-03-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736993', 'tblTempUsageDetail_20' ) end [2025-03-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736993', 'tblTempVendorCDR_20' ) start [2025-03-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736993', 'tblTempVendorCDR_20' ) end [2025-03-22 10:45:17] Production.INFO: ProcessCDR(1,14736993,1,1,2) [2025-03-22 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736993', 'tblTempUsageDetail_20' ) start [2025-03-22 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736993', 'tblTempUsageDetail_20' ) end [2025-03-22 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:45:21] Production.INFO: ==18812== Releasing lock... [2025-03-22 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-22 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:46:05 [end_date_ymd] => 2025-03-22 10:46:05 [RateCDR] => 1 ) [2025-03-22 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:46:05' and `end` < '2025-03-22 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:46:18] Production.INFO: count ==707 [2025-03-22 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:46:05 - End Time 2025-03-22 10:46:05 [2025-03-22 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736998', 'tblTempUsageDetail_20' ) start [2025-03-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14736998', 'tblTempUsageDetail_20' ) end [2025-03-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736998', 'tblTempVendorCDR_20' ) start [2025-03-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14736998', 'tblTempVendorCDR_20' ) end [2025-03-22 10:46:18] Production.INFO: ProcessCDR(1,14736998,1,1,2) [2025-03-22 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14736998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14736998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14736998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14736998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736998', 'tblTempUsageDetail_20' ) start [2025-03-22 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14736998', 'tblTempUsageDetail_20' ) end [2025-03-22 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:46:22] Production.INFO: ==18889== Releasing lock... [2025-03-22 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:47:05 [end_date_ymd] => 2025-03-22 10:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:47:05' and `end` < '2025-03-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-03-22 10:47:17] Production.INFO: count ==707 [2025-03-22 10:47:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:47:05 - End Time 2025-03-22 10:47:05 [2025-03-22 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737003', 'tblTempUsageDetail_20' ) start [2025-03-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737003', 'tblTempUsageDetail_20' ) end [2025-03-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737003', 'tblTempVendorCDR_20' ) start [2025-03-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737003', 'tblTempVendorCDR_20' ) end [2025-03-22 10:47:17] Production.INFO: ProcessCDR(1,14737003,1,1,2) [2025-03-22 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737003', 'tblTempUsageDetail_20' ) start [2025-03-22 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737003', 'tblTempUsageDetail_20' ) end [2025-03-22 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:47:21] Production.INFO: ==18964== Releasing lock... [2025-03-22 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:48:05 [end_date_ymd] => 2025-03-22 10:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:48:05' and `end` < '2025-03-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-03-22 10:48:17] Production.INFO: count ==707 [2025-03-22 10:48:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:48:05 - End Time 2025-03-22 10:48:05 [2025-03-22 10:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737008', 'tblTempUsageDetail_20' ) start [2025-03-22 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737008', 'tblTempUsageDetail_20' ) end [2025-03-22 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737008', 'tblTempVendorCDR_20' ) start [2025-03-22 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737008', 'tblTempVendorCDR_20' ) end [2025-03-22 10:48:17] Production.INFO: ProcessCDR(1,14737008,1,1,2) [2025-03-22 10:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737008', 'tblTempUsageDetail_20' ) start [2025-03-22 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737008', 'tblTempUsageDetail_20' ) end [2025-03-22 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:48:21] Production.INFO: ==19048== Releasing lock... [2025-03-22 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:48:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:49:05 [end_date_ymd] => 2025-03-22 10:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:49:05' and `end` < '2025-03-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-03-22 10:49:17] Production.INFO: count ==708 [2025-03-22 10:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:49:05 - End Time 2025-03-22 10:49:05 [2025-03-22 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737013', 'tblTempUsageDetail_20' ) start [2025-03-22 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737013', 'tblTempUsageDetail_20' ) end [2025-03-22 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737013', 'tblTempVendorCDR_20' ) start [2025-03-22 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737013', 'tblTempVendorCDR_20' ) end [2025-03-22 10:49:17] Production.INFO: ProcessCDR(1,14737013,1,1,2) [2025-03-22 10:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737013', 'tblTempUsageDetail_20' ) start [2025-03-22 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737013', 'tblTempUsageDetail_20' ) end [2025-03-22 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:49:22] Production.INFO: ==19136== Releasing lock... [2025-03-22 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:49:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-22 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:50:06 [end_date_ymd] => 2025-03-22 10:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:50:06' and `end` < '2025-03-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-03-22 10:50:19] Production.INFO: count ==725 [2025-03-22 10:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 07:50:06 - End Time 2025-03-22 10:50:06 [2025-03-22 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737019', 'tblTempUsageDetail_20' ) start [2025-03-22 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737019', 'tblTempUsageDetail_20' ) end [2025-03-22 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737019', 'tblTempVendorCDR_20' ) start [2025-03-22 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737019', 'tblTempVendorCDR_20' ) end [2025-03-22 10:50:19] Production.INFO: ProcessCDR(1,14737019,1,1,2) [2025-03-22 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737019', 'tblTempUsageDetail_20' ) start [2025-03-22 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737019', 'tblTempUsageDetail_20' ) end [2025-03-22 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:50:22] Production.INFO: ==19216== Releasing lock... [2025-03-22 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:51:04 [end_date_ymd] => 2025-03-22 10:51:04 [RateCDR] => 1 ) [2025-03-22 10:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:51:04' and `end` < '2025-03-22 10:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:51:17] Production.INFO: count ==765 [2025-03-22 10:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 07:51:04 - End Time 2025-03-22 10:51:04 [2025-03-22 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737024', 'tblTempUsageDetail_20' ) start [2025-03-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737024', 'tblTempUsageDetail_20' ) end [2025-03-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737024', 'tblTempVendorCDR_20' ) start [2025-03-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737024', 'tblTempVendorCDR_20' ) end [2025-03-22 10:51:17] Production.INFO: ProcessCDR(1,14737024,1,1,2) [2025-03-22 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737024', 'tblTempUsageDetail_20' ) start [2025-03-22 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737024', 'tblTempUsageDetail_20' ) end [2025-03-22 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:51:21] Production.INFO: ==19301== Releasing lock... [2025-03-22 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:51:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:52:05 [end_date_ymd] => 2025-03-22 10:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:52:05' and `end` < '2025-03-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-03-22 10:52:18] Production.INFO: count ==767 [2025-03-22 10:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:52:05 - End Time 2025-03-22 10:52:05 [2025-03-22 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737029', 'tblTempUsageDetail_20' ) start [2025-03-22 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737029', 'tblTempUsageDetail_20' ) end [2025-03-22 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737029', 'tblTempVendorCDR_20' ) start [2025-03-22 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737029', 'tblTempVendorCDR_20' ) end [2025-03-22 10:52:18] Production.INFO: ProcessCDR(1,14737029,1,1,2) [2025-03-22 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737029', 'tblTempUsageDetail_20' ) start [2025-03-22 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737029', 'tblTempUsageDetail_20' ) end [2025-03-22 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:52:22] Production.INFO: ==19378== Releasing lock... [2025-03-22 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:52:22] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:53:06 [end_date_ymd] => 2025-03-22 10:53:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:53:06' and `end` < '2025-03-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-03-22 10:53:18] Production.INFO: count ==767 [2025-03-22 10:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:53:06 - End Time 2025-03-22 10:53:06 [2025-03-22 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737034', 'tblTempUsageDetail_20' ) start [2025-03-22 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737034', 'tblTempUsageDetail_20' ) end [2025-03-22 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737034', 'tblTempVendorCDR_20' ) start [2025-03-22 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737034', 'tblTempVendorCDR_20' ) end [2025-03-22 10:53:18] Production.INFO: ProcessCDR(1,14737034,1,1,2) [2025-03-22 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737034', 'tblTempUsageDetail_20' ) start [2025-03-22 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737034', 'tblTempUsageDetail_20' ) end [2025-03-22 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:53:22] Production.INFO: ==19455== Releasing lock... [2025-03-22 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:53:22] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:54:05 [end_date_ymd] => 2025-03-22 10:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:54:05' and `end` < '2025-03-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-03-22 10:54:17] Production.INFO: count ==776 [2025-03-22 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:54:05 - End Time 2025-03-22 10:54:05 [2025-03-22 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737039', 'tblTempUsageDetail_20' ) start [2025-03-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737039', 'tblTempUsageDetail_20' ) end [2025-03-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737039', 'tblTempVendorCDR_20' ) start [2025-03-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737039', 'tblTempVendorCDR_20' ) end [2025-03-22 10:54:18] Production.INFO: ProcessCDR(1,14737039,1,1,2) [2025-03-22 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737039', 'tblTempUsageDetail_20' ) start [2025-03-22 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737039', 'tblTempUsageDetail_20' ) end [2025-03-22 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:54:22] Production.INFO: ==19540== Releasing lock... [2025-03-22 10:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-22 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:55:06 [end_date_ymd] => 2025-03-22 10:55:06 [RateCDR] => 1 ) [2025-03-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-03-22 07:55:06' and `end` < '2025-03-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-03-22 10:55:18] Production.INFO: count ==783 [2025-03-22 10:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:55:06 - End Time 2025-03-22 10:55:06 [2025-03-22 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737044', 'tblTempUsageDetail_20' ) start [2025-03-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737044', 'tblTempUsageDetail_20' ) end [2025-03-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737044', 'tblTempVendorCDR_20' ) start [2025-03-22 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737044', 'tblTempVendorCDR_20' ) end [2025-03-22 10:55:18] Production.INFO: ProcessCDR(1,14737044,1,1,2) [2025-03-22 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737044', 'tblTempUsageDetail_20' ) start [2025-03-22 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737044', 'tblTempUsageDetail_20' ) end [2025-03-22 10:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:55:23] Production.INFO: ==19618== Releasing lock... [2025-03-22 10:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:55:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:56:05 [end_date_ymd] => 2025-03-22 10:56:05 [RateCDR] => 1 ) [2025-03-22 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:56:05' and `end` < '2025-03-22 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:56:18] Production.INFO: count ==783 [2025-03-22 10:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:56:05 - End Time 2025-03-22 10:56:05 [2025-03-22 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737049', 'tblTempUsageDetail_20' ) start [2025-03-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737049', 'tblTempUsageDetail_20' ) end [2025-03-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737049', 'tblTempVendorCDR_20' ) start [2025-03-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737049', 'tblTempVendorCDR_20' ) end [2025-03-22 10:56:18] Production.INFO: ProcessCDR(1,14737049,1,1,2) [2025-03-22 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737049', 'tblTempUsageDetail_20' ) start [2025-03-22 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737049', 'tblTempUsageDetail_20' ) end [2025-03-22 10:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:56:21] Production.INFO: ==19698== Releasing lock... [2025-03-22 10:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:56:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:57:05 [end_date_ymd] => 2025-03-22 10:57:05 [RateCDR] => 1 ) [2025-03-22 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:57:05' and `end` < '2025-03-22 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:57:17] Production.INFO: count ==779 [2025-03-22 10:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:57:05 - End Time 2025-03-22 10:57:05 [2025-03-22 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737054', 'tblTempUsageDetail_20' ) start [2025-03-22 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737054', 'tblTempUsageDetail_20' ) end [2025-03-22 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737054', 'tblTempVendorCDR_20' ) start [2025-03-22 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737054', 'tblTempVendorCDR_20' ) end [2025-03-22 10:57:18] Production.INFO: ProcessCDR(1,14737054,1,1,2) [2025-03-22 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737054', 'tblTempUsageDetail_20' ) start [2025-03-22 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737054', 'tblTempUsageDetail_20' ) end [2025-03-22 10:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:57:21] Production.INFO: ==19820== Releasing lock... [2025-03-22 10:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:57:21] Production.INFO: 34 MB #Memory Used# [2025-03-22 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:58:05 [end_date_ymd] => 2025-03-22 10:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 07:58:05' and `end` < '2025-03-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-03-22 10:58:17] Production.INFO: count ==785 [2025-03-22 10:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:58:05 - End Time 2025-03-22 10:58:05 [2025-03-22 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737059', 'tblTempUsageDetail_20' ) start [2025-03-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737059', 'tblTempUsageDetail_20' ) end [2025-03-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737059', 'tblTempVendorCDR_20' ) start [2025-03-22 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737059', 'tblTempVendorCDR_20' ) end [2025-03-22 10:58:18] Production.INFO: ProcessCDR(1,14737059,1,1,2) [2025-03-22 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737059', 'tblTempUsageDetail_20' ) start [2025-03-22 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737059', 'tblTempUsageDetail_20' ) end [2025-03-22 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:58:21] Production.INFO: ==19905== Releasing lock... [2025-03-22 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 07:59:06 [end_date_ymd] => 2025-03-22 10:59:06 [RateCDR] => 1 ) [2025-03-22 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 07:59:06' and `end` < '2025-03-22 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 10:59:18] Production.INFO: count ==798 [2025-03-22 10:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 07:59:06 - End Time 2025-03-22 10:59:06 [2025-03-22 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737064', 'tblTempUsageDetail_20' ) start [2025-03-22 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737064', 'tblTempUsageDetail_20' ) end [2025-03-22 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737064', 'tblTempVendorCDR_20' ) start [2025-03-22 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737064', 'tblTempVendorCDR_20' ) end [2025-03-22 10:59:19] Production.INFO: ProcessCDR(1,14737064,1,1,2) [2025-03-22 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737064', 'tblTempUsageDetail_20' ) start [2025-03-22 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737064', 'tblTempUsageDetail_20' ) end [2025-03-22 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 10:59:23] Production.INFO: ==19992== Releasing lock... [2025-03-22 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 10:59:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:00:06 [end_date_ymd] => 2025-03-22 11:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:00:06' and `end` < '2025-03-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-03-22 11:00:18] Production.INFO: count ==796 [2025-03-22 11:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:00:06 - End Time 2025-03-22 11:00:06 [2025-03-22 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737070', 'tblTempUsageDetail_20' ) start [2025-03-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737070', 'tblTempUsageDetail_20' ) end [2025-03-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737070', 'tblTempVendorCDR_20' ) start [2025-03-22 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737070', 'tblTempVendorCDR_20' ) end [2025-03-22 11:00:19] Production.INFO: ProcessCDR(1,14737070,1,1,2) [2025-03-22 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737070', 'tblTempUsageDetail_20' ) start [2025-03-22 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737070', 'tblTempUsageDetail_20' ) end [2025-03-22 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:00:22] Production.INFO: ==20070== Releasing lock... [2025-03-22 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:00:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:01:06 [end_date_ymd] => 2025-03-22 11:01:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:01:06' and `end` < '2025-03-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-03-22 11:01:18] Production.INFO: count ==815 [2025-03-22 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:01:06 - End Time 2025-03-22 11:01:06 [2025-03-22 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737075', 'tblTempUsageDetail_20' ) start [2025-03-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737075', 'tblTempUsageDetail_20' ) end [2025-03-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737075', 'tblTempVendorCDR_20' ) start [2025-03-22 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737075', 'tblTempVendorCDR_20' ) end [2025-03-22 11:01:18] Production.INFO: ProcessCDR(1,14737075,1,1,2) [2025-03-22 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737075', 'tblTempUsageDetail_20' ) start [2025-03-22 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737075', 'tblTempUsageDetail_20' ) end [2025-03-22 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:01:24] Production.INFO: ==20243== Releasing lock... [2025-03-22 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:01:24] Production.INFO: 34 MB #Memory Used# [2025-03-22 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:02:05 [end_date_ymd] => 2025-03-22 11:02:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:02:05' and `end` < '2025-03-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-03-22 11:02:17] Production.INFO: count ==816 [2025-03-22 11:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:02:05 - End Time 2025-03-22 11:02:05 [2025-03-22 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737080', 'tblTempUsageDetail_20' ) start [2025-03-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737080', 'tblTempUsageDetail_20' ) end [2025-03-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737080', 'tblTempVendorCDR_20' ) start [2025-03-22 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737080', 'tblTempVendorCDR_20' ) end [2025-03-22 11:02:18] Production.INFO: ProcessCDR(1,14737080,1,1,2) [2025-03-22 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737080', 'tblTempUsageDetail_20' ) start [2025-03-22 11:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737080', 'tblTempUsageDetail_20' ) end [2025-03-22 11:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:02:21] Production.INFO: ==20331== Releasing lock... [2025-03-22 11:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:02:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:03:05 [end_date_ymd] => 2025-03-22 11:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:03:05' and `end` < '2025-03-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-03-22 11:03:17] Production.INFO: count ==815 [2025-03-22 11:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:03:05 - End Time 2025-03-22 11:03:05 [2025-03-22 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737085', 'tblTempUsageDetail_20' ) start [2025-03-22 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737085', 'tblTempUsageDetail_20' ) end [2025-03-22 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737085', 'tblTempVendorCDR_20' ) start [2025-03-22 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737085', 'tblTempVendorCDR_20' ) end [2025-03-22 11:03:18] Production.INFO: ProcessCDR(1,14737085,1,1,2) [2025-03-22 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737085', 'tblTempUsageDetail_20' ) start [2025-03-22 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737085', 'tblTempUsageDetail_20' ) end [2025-03-22 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:03:23] Production.INFO: ==20409== Releasing lock... [2025-03-22 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:03:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:04:05 [end_date_ymd] => 2025-03-22 11:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:04:05' and `end` < '2025-03-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-03-22 11:04:17] Production.INFO: count ==816 [2025-03-22 11:04:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:04:05 - End Time 2025-03-22 11:04:05 [2025-03-22 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737090', 'tblTempUsageDetail_20' ) start [2025-03-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737090', 'tblTempUsageDetail_20' ) end [2025-03-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737090', 'tblTempVendorCDR_20' ) start [2025-03-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737090', 'tblTempVendorCDR_20' ) end [2025-03-22 11:04:17] Production.INFO: ProcessCDR(1,14737090,1,1,2) [2025-03-22 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737090', 'tblTempUsageDetail_20' ) start [2025-03-22 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737090', 'tblTempUsageDetail_20' ) end [2025-03-22 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:04:22] Production.INFO: ==20487== Releasing lock... [2025-03-22 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:04:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:05:05 [end_date_ymd] => 2025-03-22 11:05:05 [RateCDR] => 1 ) [2025-03-22 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:05:05' and `end` < '2025-03-22 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:05:17] Production.INFO: count ==814 [2025-03-22 11:05:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:05:05 - End Time 2025-03-22 11:05:05 [2025-03-22 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737095', 'tblTempUsageDetail_20' ) start [2025-03-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737095', 'tblTempUsageDetail_20' ) end [2025-03-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737095', 'tblTempVendorCDR_20' ) start [2025-03-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737095', 'tblTempVendorCDR_20' ) end [2025-03-22 11:05:17] Production.INFO: ProcessCDR(1,14737095,1,1,2) [2025-03-22 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737095', 'tblTempUsageDetail_20' ) start [2025-03-22 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737095', 'tblTempUsageDetail_20' ) end [2025-03-22 11:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:05:21] Production.INFO: ==20644== Releasing lock... [2025-03-22 11:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:05:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:06:06 [end_date_ymd] => 2025-03-22 11:06:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:06:06' and `end` < '2025-03-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-03-22 11:06:18] Production.INFO: count ==817 [2025-03-22 11:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:06:06 - End Time 2025-03-22 11:06:06 [2025-03-22 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737100', 'tblTempUsageDetail_20' ) start [2025-03-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737100', 'tblTempUsageDetail_20' ) end [2025-03-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737100', 'tblTempVendorCDR_20' ) start [2025-03-22 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737100', 'tblTempVendorCDR_20' ) end [2025-03-22 11:06:18] Production.INFO: ProcessCDR(1,14737100,1,1,2) [2025-03-22 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737100', 'tblTempUsageDetail_20' ) start [2025-03-22 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737100', 'tblTempUsageDetail_20' ) end [2025-03-22 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:06:22] Production.INFO: ==20716== Releasing lock... [2025-03-22 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:06:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:07:05 [end_date_ymd] => 2025-03-22 11:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:07:05' and `end` < '2025-03-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-03-22 11:07:17] Production.INFO: count ==835 [2025-03-22 11:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:07:05 - End Time 2025-03-22 11:07:05 [2025-03-22 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737105', 'tblTempUsageDetail_20' ) start [2025-03-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737105', 'tblTempUsageDetail_20' ) end [2025-03-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737105', 'tblTempVendorCDR_20' ) start [2025-03-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737105', 'tblTempVendorCDR_20' ) end [2025-03-22 11:07:17] Production.INFO: ProcessCDR(1,14737105,1,1,2) [2025-03-22 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737105', 'tblTempUsageDetail_20' ) start [2025-03-22 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737105', 'tblTempUsageDetail_20' ) end [2025-03-22 11:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:07:21] Production.INFO: ==20789== Releasing lock... [2025-03-22 11:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:07:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:08:06 [end_date_ymd] => 2025-03-22 11:08:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:08:06' and `end` < '2025-03-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-03-22 11:08:18] Production.INFO: count ==836 [2025-03-22 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:08:06 - End Time 2025-03-22 11:08:06 [2025-03-22 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737110', 'tblTempUsageDetail_20' ) start [2025-03-22 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737110', 'tblTempUsageDetail_20' ) end [2025-03-22 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737110', 'tblTempVendorCDR_20' ) start [2025-03-22 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737110', 'tblTempVendorCDR_20' ) end [2025-03-22 11:08:19] Production.INFO: ProcessCDR(1,14737110,1,1,2) [2025-03-22 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737110', 'tblTempUsageDetail_20' ) start [2025-03-22 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737110', 'tblTempUsageDetail_20' ) end [2025-03-22 11:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:08:24] Production.INFO: ==20943== Releasing lock... [2025-03-22 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:08:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:09:05 [end_date_ymd] => 2025-03-22 11:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:09:05' and `end` < '2025-03-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-03-22 11:09:17] Production.INFO: count ==839 [2025-03-22 11:09:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:09:05 - End Time 2025-03-22 11:09:05 [2025-03-22 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737115', 'tblTempUsageDetail_20' ) start [2025-03-22 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737115', 'tblTempUsageDetail_20' ) end [2025-03-22 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737115', 'tblTempVendorCDR_20' ) start [2025-03-22 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737115', 'tblTempVendorCDR_20' ) end [2025-03-22 11:09:17] Production.INFO: ProcessCDR(1,14737115,1,1,2) [2025-03-22 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737115', 'tblTempUsageDetail_20' ) start [2025-03-22 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737115', 'tblTempUsageDetail_20' ) end [2025-03-22 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:09:23] Production.INFO: ==21014== Releasing lock... [2025-03-22 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:10:06 [end_date_ymd] => 2025-03-22 11:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:10:06' and `end` < '2025-03-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-03-22 11:10:19] Production.INFO: count ==840 [2025-03-22 11:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:10:06 - End Time 2025-03-22 11:10:06 [2025-03-22 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737120', 'tblTempUsageDetail_20' ) start [2025-03-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737120', 'tblTempUsageDetail_20' ) end [2025-03-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737120', 'tblTempVendorCDR_20' ) start [2025-03-22 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737120', 'tblTempVendorCDR_20' ) end [2025-03-22 11:10:19] Production.INFO: ProcessCDR(1,14737120,1,1,2) [2025-03-22 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737120', 'tblTempUsageDetail_20' ) start [2025-03-22 11:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737120', 'tblTempUsageDetail_20' ) end [2025-03-22 11:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:10:24] Production.INFO: ==21095== Releasing lock... [2025-03-22 11:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:10:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:11:05 [end_date_ymd] => 2025-03-22 11:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:11:05' and `end` < '2025-03-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-03-22 11:11:17] Production.INFO: count ==863 [2025-03-22 11:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:11:05 - End Time 2025-03-22 11:11:05 [2025-03-22 11:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737126', 'tblTempUsageDetail_20' ) start [2025-03-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737126', 'tblTempUsageDetail_20' ) end [2025-03-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737126', 'tblTempVendorCDR_20' ) start [2025-03-22 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737126', 'tblTempVendorCDR_20' ) end [2025-03-22 11:11:18] Production.INFO: ProcessCDR(1,14737126,1,1,2) [2025-03-22 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737126', 'tblTempUsageDetail_20' ) start [2025-03-22 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737126', 'tblTempUsageDetail_20' ) end [2025-03-22 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:11:22] Production.INFO: ==21171== Releasing lock... [2025-03-22 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:11:22] Production.INFO: 35 MB #Memory Used# [2025-03-22 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:12:05 [end_date_ymd] => 2025-03-22 11:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:12:05' and `end` < '2025-03-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-03-22 11:12:17] Production.INFO: count ==864 [2025-03-22 11:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:12:05 - End Time 2025-03-22 11:12:05 [2025-03-22 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737131', 'tblTempUsageDetail_20' ) start [2025-03-22 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737131', 'tblTempUsageDetail_20' ) end [2025-03-22 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737131', 'tblTempVendorCDR_20' ) start [2025-03-22 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737131', 'tblTempVendorCDR_20' ) end [2025-03-22 11:12:18] Production.INFO: ProcessCDR(1,14737131,1,1,2) [2025-03-22 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737131', 'tblTempUsageDetail_20' ) start [2025-03-22 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737131', 'tblTempUsageDetail_20' ) end [2025-03-22 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:12:23] Production.INFO: ==21358== Releasing lock... [2025-03-22 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:12:23] Production.INFO: 35 MB #Memory Used# [2025-03-22 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:13:05 [end_date_ymd] => 2025-03-22 11:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:13:05' and `end` < '2025-03-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-03-22 11:13:17] Production.INFO: count ==863 [2025-03-22 11:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:13:05 - End Time 2025-03-22 11:13:05 [2025-03-22 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737136', 'tblTempUsageDetail_20' ) start [2025-03-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737136', 'tblTempUsageDetail_20' ) end [2025-03-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737136', 'tblTempVendorCDR_20' ) start [2025-03-22 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737136', 'tblTempVendorCDR_20' ) end [2025-03-22 11:13:18] Production.INFO: ProcessCDR(1,14737136,1,1,2) [2025-03-22 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737136', 'tblTempUsageDetail_20' ) start [2025-03-22 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737136', 'tblTempUsageDetail_20' ) end [2025-03-22 11:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:13:21] Production.INFO: ==21433== Releasing lock... [2025-03-22 11:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:13:21] Production.INFO: 35 MB #Memory Used# [2025-03-22 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:14:05 [end_date_ymd] => 2025-03-22 11:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:14:05' and `end` < '2025-03-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-03-22 11:14:17] Production.INFO: count ==864 [2025-03-22 11:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:14:05 - End Time 2025-03-22 11:14:05 [2025-03-22 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737141', 'tblTempUsageDetail_20' ) start [2025-03-22 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737141', 'tblTempUsageDetail_20' ) end [2025-03-22 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737141', 'tblTempVendorCDR_20' ) start [2025-03-22 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737141', 'tblTempVendorCDR_20' ) end [2025-03-22 11:14:18] Production.INFO: ProcessCDR(1,14737141,1,1,2) [2025-03-22 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737141', 'tblTempUsageDetail_20' ) start [2025-03-22 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737141', 'tblTempUsageDetail_20' ) end [2025-03-22 11:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:14:23] Production.INFO: ==21505== Releasing lock... [2025-03-22 11:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:14:23] Production.INFO: 35 MB #Memory Used# [2025-03-22 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:15:04 [end_date_ymd] => 2025-03-22 11:15:04 [RateCDR] => 1 ) [2025-03-22 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:15:04' and `end` < '2025-03-22 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:15:16] Production.INFO: count ==860 [2025-03-22 11:15:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:15:04 - End Time 2025-03-22 11:15:04 [2025-03-22 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737146', 'tblTempUsageDetail_20' ) start [2025-03-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737146', 'tblTempUsageDetail_20' ) end [2025-03-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737146', 'tblTempVendorCDR_20' ) start [2025-03-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737146', 'tblTempVendorCDR_20' ) end [2025-03-22 11:15:17] Production.INFO: ProcessCDR(1,14737146,1,1,2) [2025-03-22 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737146', 'tblTempUsageDetail_20' ) start [2025-03-22 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737146', 'tblTempUsageDetail_20' ) end [2025-03-22 11:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:15:20] Production.INFO: ==21659== Releasing lock... [2025-03-22 11:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:15:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:16:05 [end_date_ymd] => 2025-03-22 11:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:16:05' and `end` < '2025-03-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-03-22 11:16:17] Production.INFO: count ==861 [2025-03-22 11:16:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:16:05 - End Time 2025-03-22 11:16:05 [2025-03-22 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737151', 'tblTempUsageDetail_20' ) start [2025-03-22 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737151', 'tblTempUsageDetail_20' ) end [2025-03-22 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737151', 'tblTempVendorCDR_20' ) start [2025-03-22 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737151', 'tblTempVendorCDR_20' ) end [2025-03-22 11:16:17] Production.INFO: ProcessCDR(1,14737151,1,1,2) [2025-03-22 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737151', 'tblTempUsageDetail_20' ) start [2025-03-22 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737151', 'tblTempUsageDetail_20' ) end [2025-03-22 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:16:22] Production.INFO: ==21730== Releasing lock... [2025-03-22 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:16:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:17:05 [end_date_ymd] => 2025-03-22 11:17:05 [RateCDR] => 1 ) [2025-03-22 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:17:05' and `end` < '2025-03-22 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:17:17] Production.INFO: count ==864 [2025-03-22 11:17:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:17:05 - End Time 2025-03-22 11:17:05 [2025-03-22 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737156', 'tblTempUsageDetail_20' ) start [2025-03-22 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737156', 'tblTempUsageDetail_20' ) end [2025-03-22 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737156', 'tblTempVendorCDR_20' ) start [2025-03-22 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737156', 'tblTempVendorCDR_20' ) end [2025-03-22 11:17:17] Production.INFO: ProcessCDR(1,14737156,1,1,2) [2025-03-22 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737156', 'tblTempUsageDetail_20' ) start [2025-03-22 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737156', 'tblTempUsageDetail_20' ) end [2025-03-22 11:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:17:22] Production.INFO: ==21800== Releasing lock... [2025-03-22 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:17:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:18:05 [end_date_ymd] => 2025-03-22 11:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:18:05' and `end` < '2025-03-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-03-22 11:18:18] Production.INFO: count ==871 [2025-03-22 11:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:18:05 - End Time 2025-03-22 11:18:05 [2025-03-22 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737161', 'tblTempUsageDetail_20' ) start [2025-03-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737161', 'tblTempUsageDetail_20' ) end [2025-03-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737161', 'tblTempVendorCDR_20' ) start [2025-03-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737161', 'tblTempVendorCDR_20' ) end [2025-03-22 11:18:18] Production.INFO: ProcessCDR(1,14737161,1,1,2) [2025-03-22 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737161', 'tblTempUsageDetail_20' ) start [2025-03-22 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737161', 'tblTempUsageDetail_20' ) end [2025-03-22 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:18:23] Production.INFO: ==21876== Releasing lock... [2025-03-22 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:18:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-22 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:19:06 [end_date_ymd] => 2025-03-22 11:19:06 [RateCDR] => 1 ) [2025-03-22 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:19:06' and `end` < '2025-03-22 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:19:18] Production.INFO: count ==876 [2025-03-22 11:19:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:19:06 - End Time 2025-03-22 11:19:06 [2025-03-22 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737166', 'tblTempUsageDetail_20' ) start [2025-03-22 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737166', 'tblTempUsageDetail_20' ) end [2025-03-22 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737166', 'tblTempVendorCDR_20' ) start [2025-03-22 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737166', 'tblTempVendorCDR_20' ) end [2025-03-22 11:19:19] Production.INFO: ProcessCDR(1,14737166,1,1,2) [2025-03-22 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737166', 'tblTempUsageDetail_20' ) start [2025-03-22 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737166', 'tblTempUsageDetail_20' ) end [2025-03-22 11:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:19:22] Production.INFO: ==21952== Releasing lock... [2025-03-22 11:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:20:06 [end_date_ymd] => 2025-03-22 11:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:20:06' and `end` < '2025-03-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-03-22 11:20:18] Production.INFO: count ==891 [2025-03-22 11:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:20:06 - End Time 2025-03-22 11:20:06 [2025-03-22 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737172', 'tblTempUsageDetail_20' ) start [2025-03-22 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737172', 'tblTempUsageDetail_20' ) end [2025-03-22 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737172', 'tblTempVendorCDR_20' ) start [2025-03-22 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737172', 'tblTempVendorCDR_20' ) end [2025-03-22 11:20:18] Production.INFO: ProcessCDR(1,14737172,1,1,2) [2025-03-22 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737172', 'tblTempUsageDetail_20' ) start [2025-03-22 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737172', 'tblTempUsageDetail_20' ) end [2025-03-22 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:20:24] Production.INFO: ==22026== Releasing lock... [2025-03-22 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:20:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-22 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:21:06 [end_date_ymd] => 2025-03-22 11:21:06 [RateCDR] => 1 ) [2025-03-22 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:21:06' and `end` < '2025-03-22 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:21:18] Production.INFO: count ==900 [2025-03-22 11:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:21:06 - End Time 2025-03-22 11:21:06 [2025-03-22 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737177', 'tblTempUsageDetail_20' ) start [2025-03-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737177', 'tblTempUsageDetail_20' ) end [2025-03-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737177', 'tblTempVendorCDR_20' ) start [2025-03-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737177', 'tblTempVendorCDR_20' ) end [2025-03-22 11:21:19] Production.INFO: ProcessCDR(1,14737177,1,1,2) [2025-03-22 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737177', 'tblTempUsageDetail_20' ) start [2025-03-22 11:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737177', 'tblTempUsageDetail_20' ) end [2025-03-22 11:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:21:23] Production.INFO: ==22102== Releasing lock... [2025-03-22 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:21:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-22 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:22:05 [end_date_ymd] => 2025-03-22 11:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:22:05' and `end` < '2025-03-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-03-22 11:22:18] Production.INFO: count ==915 [2025-03-22 11:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:22:05 - End Time 2025-03-22 11:22:05 [2025-03-22 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737182', 'tblTempUsageDetail_20' ) start [2025-03-22 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737182', 'tblTempUsageDetail_20' ) end [2025-03-22 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737182', 'tblTempVendorCDR_20' ) start [2025-03-22 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737182', 'tblTempVendorCDR_20' ) end [2025-03-22 11:22:18] Production.INFO: ProcessCDR(1,14737182,1,1,2) [2025-03-22 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737182', 'tblTempUsageDetail_20' ) start [2025-03-22 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737182', 'tblTempUsageDetail_20' ) end [2025-03-22 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:22:22] Production.INFO: ==22173== Releasing lock... [2025-03-22 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:22:22] Production.INFO: 35 MB #Memory Used# [2025-03-22 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:23:05 [end_date_ymd] => 2025-03-22 11:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:23:05' and `end` < '2025-03-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-03-22 11:23:18] Production.INFO: count ==924 [2025-03-22 11:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:23:05 - End Time 2025-03-22 11:23:05 [2025-03-22 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737187', 'tblTempUsageDetail_20' ) start [2025-03-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737187', 'tblTempUsageDetail_20' ) end [2025-03-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737187', 'tblTempVendorCDR_20' ) start [2025-03-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737187', 'tblTempVendorCDR_20' ) end [2025-03-22 11:23:18] Production.INFO: ProcessCDR(1,14737187,1,1,2) [2025-03-22 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737187', 'tblTempUsageDetail_20' ) start [2025-03-22 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737187', 'tblTempUsageDetail_20' ) end [2025-03-22 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:23:23] Production.INFO: ==22246== Releasing lock... [2025-03-22 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:23:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-22 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:24:05 [end_date_ymd] => 2025-03-22 11:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:24:05' and `end` < '2025-03-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-03-22 11:24:18] Production.INFO: count ==928 [2025-03-22 11:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:24:05 - End Time 2025-03-22 11:24:05 [2025-03-22 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737192', 'tblTempUsageDetail_20' ) start [2025-03-22 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737192', 'tblTempUsageDetail_20' ) end [2025-03-22 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737192', 'tblTempVendorCDR_20' ) start [2025-03-22 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737192', 'tblTempVendorCDR_20' ) end [2025-03-22 11:24:18] Production.INFO: ProcessCDR(1,14737192,1,1,2) [2025-03-22 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737192', 'tblTempUsageDetail_20' ) start [2025-03-22 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737192', 'tblTempUsageDetail_20' ) end [2025-03-22 11:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:24:21] Production.INFO: ==22320== Releasing lock... [2025-03-22 11:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:24:21] Production.INFO: 35 MB #Memory Used# [2025-03-22 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:25:06 [end_date_ymd] => 2025-03-22 11:25:06 [RateCDR] => 1 ) [2025-03-22 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:25:06' and `end` < '2025-03-22 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:25:18] Production.INFO: count ==933 [2025-03-22 11:25:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:25:06 - End Time 2025-03-22 11:25:06 [2025-03-22 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737197', 'tblTempUsageDetail_20' ) start [2025-03-22 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737197', 'tblTempUsageDetail_20' ) end [2025-03-22 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737197', 'tblTempVendorCDR_20' ) start [2025-03-22 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737197', 'tblTempVendorCDR_20' ) end [2025-03-22 11:25:19] Production.INFO: ProcessCDR(1,14737197,1,1,2) [2025-03-22 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737197', 'tblTempUsageDetail_20' ) start [2025-03-22 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737197', 'tblTempUsageDetail_20' ) end [2025-03-22 11:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:25:22] Production.INFO: ==22395== Releasing lock... [2025-03-22 11:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-22 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:26:06 [end_date_ymd] => 2025-03-22 11:26:06 [RateCDR] => 1 ) [2025-03-22 11:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:26:06' and `end` < '2025-03-22 11:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:26:18] Production.INFO: count ==938 [2025-03-22 11:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:26:06 - End Time 2025-03-22 11:26:06 [2025-03-22 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737202', 'tblTempUsageDetail_20' ) start [2025-03-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737202', 'tblTempUsageDetail_20' ) end [2025-03-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737202', 'tblTempVendorCDR_20' ) start [2025-03-22 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737202', 'tblTempVendorCDR_20' ) end [2025-03-22 11:26:18] Production.INFO: ProcessCDR(1,14737202,1,1,2) [2025-03-22 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737202', 'tblTempUsageDetail_20' ) start [2025-03-22 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737202', 'tblTempUsageDetail_20' ) end [2025-03-22 11:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:26:22] Production.INFO: ==22478== Releasing lock... [2025-03-22 11:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-22 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:27:06 [end_date_ymd] => 2025-03-22 11:27:06 [RateCDR] => 1 ) [2025-03-22 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:27:06' and `end` < '2025-03-22 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:27:18] Production.INFO: count ==939 [2025-03-22 11:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:27:06 - End Time 2025-03-22 11:27:06 [2025-03-22 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737207', 'tblTempUsageDetail_20' ) start [2025-03-22 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737207', 'tblTempUsageDetail_20' ) end [2025-03-22 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737207', 'tblTempVendorCDR_20' ) start [2025-03-22 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737207', 'tblTempVendorCDR_20' ) end [2025-03-22 11:27:19] Production.INFO: ProcessCDR(1,14737207,1,1,2) [2025-03-22 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737207', 'tblTempUsageDetail_20' ) start [2025-03-22 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737207', 'tblTempUsageDetail_20' ) end [2025-03-22 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:27:22] Production.INFO: ==22551== Releasing lock... [2025-03-22 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-22 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:28:05 [end_date_ymd] => 2025-03-22 11:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:28:05' and `end` < '2025-03-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-03-22 11:28:18] Production.INFO: count ==941 [2025-03-22 11:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:28:05 - End Time 2025-03-22 11:28:05 [2025-03-22 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737212', 'tblTempUsageDetail_20' ) start [2025-03-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737212', 'tblTempUsageDetail_20' ) end [2025-03-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737212', 'tblTempVendorCDR_20' ) start [2025-03-22 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737212', 'tblTempVendorCDR_20' ) end [2025-03-22 11:28:18] Production.INFO: ProcessCDR(1,14737212,1,1,2) [2025-03-22 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737212', 'tblTempUsageDetail_20' ) start [2025-03-22 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737212', 'tblTempUsageDetail_20' ) end [2025-03-22 11:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:28:21] Production.INFO: ==22661== Releasing lock... [2025-03-22 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-22 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:29:06 [end_date_ymd] => 2025-03-22 11:29:06 [RateCDR] => 1 ) [2025-03-22 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:29:06' and `end` < '2025-03-22 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:29:18] Production.INFO: count ==942 [2025-03-22 11:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:29:06 - End Time 2025-03-22 11:29:06 [2025-03-22 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737217', 'tblTempUsageDetail_20' ) start [2025-03-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737217', 'tblTempUsageDetail_20' ) end [2025-03-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737217', 'tblTempVendorCDR_20' ) start [2025-03-22 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737217', 'tblTempVendorCDR_20' ) end [2025-03-22 11:29:18] Production.INFO: ProcessCDR(1,14737217,1,1,2) [2025-03-22 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737217', 'tblTempUsageDetail_20' ) start [2025-03-22 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737217', 'tblTempUsageDetail_20' ) end [2025-03-22 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:29:22] Production.INFO: ==22741== Releasing lock... [2025-03-22 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-22 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:30:06 [end_date_ymd] => 2025-03-22 11:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:30:06' and `end` < '2025-03-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-03-22 11:30:18] Production.INFO: count ==965 [2025-03-22 11:30:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:30:06 - End Time 2025-03-22 11:30:06 [2025-03-22 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737222', 'tblTempUsageDetail_20' ) start [2025-03-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737222', 'tblTempUsageDetail_20' ) end [2025-03-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737222', 'tblTempVendorCDR_20' ) start [2025-03-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737222', 'tblTempVendorCDR_20' ) end [2025-03-22 11:30:18] Production.INFO: ProcessCDR(1,14737222,1,1,2) [2025-03-22 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737222', 'tblTempUsageDetail_20' ) start [2025-03-22 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737222', 'tblTempUsageDetail_20' ) end [2025-03-22 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:30:22] Production.INFO: ==22819== Releasing lock... [2025-03-22 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-22 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:31:05 [end_date_ymd] => 2025-03-22 11:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:31:05' and `end` < '2025-03-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-03-22 11:31:18] Production.INFO: count ==1000 [2025-03-22 11:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:31:05 - End Time 2025-03-22 11:31:05 [2025-03-22 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737228', 'tblTempUsageDetail_20' ) start [2025-03-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737228', 'tblTempUsageDetail_20' ) end [2025-03-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737228', 'tblTempVendorCDR_20' ) start [2025-03-22 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737228', 'tblTempVendorCDR_20' ) end [2025-03-22 11:31:18] Production.INFO: ProcessCDR(1,14737228,1,1,2) [2025-03-22 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737228', 'tblTempUsageDetail_20' ) start [2025-03-22 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737228', 'tblTempUsageDetail_20' ) end [2025-03-22 11:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:31:22] Production.INFO: ==22892== Releasing lock... [2025-03-22 11:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-22 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:32:05 [end_date_ymd] => 2025-03-22 11:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:32:05' and `end` < '2025-03-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-03-22 11:32:17] Production.INFO: count ==1008 [2025-03-22 11:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:32:05 - End Time 2025-03-22 11:32:05 [2025-03-22 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737233', 'tblTempUsageDetail_20' ) start [2025-03-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737233', 'tblTempUsageDetail_20' ) end [2025-03-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737233', 'tblTempVendorCDR_20' ) start [2025-03-22 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737233', 'tblTempVendorCDR_20' ) end [2025-03-22 11:32:18] Production.INFO: ProcessCDR(1,14737233,1,1,2) [2025-03-22 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737233', 'tblTempUsageDetail_20' ) start [2025-03-22 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737233', 'tblTempUsageDetail_20' ) end [2025-03-22 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:32:21] Production.INFO: ==22966== Releasing lock... [2025-03-22 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:32:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-22 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:33:05 [end_date_ymd] => 2025-03-22 11:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:33:05' and `end` < '2025-03-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-03-22 11:33:17] Production.INFO: count ==1019 [2025-03-22 11:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:33:05 - End Time 2025-03-22 11:33:05 [2025-03-22 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737238', 'tblTempUsageDetail_20' ) start [2025-03-22 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737238', 'tblTempUsageDetail_20' ) end [2025-03-22 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737238', 'tblTempVendorCDR_20' ) start [2025-03-22 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737238', 'tblTempVendorCDR_20' ) end [2025-03-22 11:33:18] Production.INFO: ProcessCDR(1,14737238,1,1,2) [2025-03-22 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737238', 'tblTempUsageDetail_20' ) start [2025-03-22 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737238', 'tblTempUsageDetail_20' ) end [2025-03-22 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:33:23] Production.INFO: ==23040== Releasing lock... [2025-03-22 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:33:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-22 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:34:05 [end_date_ymd] => 2025-03-22 11:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:34:05' and `end` < '2025-03-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-03-22 11:34:17] Production.INFO: count ==1023 [2025-03-22 11:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:34:05 - End Time 2025-03-22 11:34:05 [2025-03-22 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737243', 'tblTempUsageDetail_20' ) start [2025-03-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737243', 'tblTempUsageDetail_20' ) end [2025-03-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737243', 'tblTempVendorCDR_20' ) start [2025-03-22 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737243', 'tblTempVendorCDR_20' ) end [2025-03-22 11:34:18] Production.INFO: ProcessCDR(1,14737243,1,1,2) [2025-03-22 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737243', 'tblTempUsageDetail_20' ) start [2025-03-22 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737243', 'tblTempUsageDetail_20' ) end [2025-03-22 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:34:23] Production.INFO: ==23113== Releasing lock... [2025-03-22 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:34:23] Production.INFO: 36 MB #Memory Used# [2025-03-22 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:35:05 [end_date_ymd] => 2025-03-22 11:35:05 [RateCDR] => 1 ) [2025-03-22 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:35:05' and `end` < '2025-03-22 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:35:18] Production.INFO: count ==1027 [2025-03-22 11:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:35:05 - End Time 2025-03-22 11:35:05 [2025-03-22 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737248', 'tblTempUsageDetail_20' ) start [2025-03-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737248', 'tblTempUsageDetail_20' ) end [2025-03-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737248', 'tblTempVendorCDR_20' ) start [2025-03-22 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737248', 'tblTempVendorCDR_20' ) end [2025-03-22 11:35:18] Production.INFO: ProcessCDR(1,14737248,1,1,2) [2025-03-22 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737248', 'tblTempUsageDetail_20' ) start [2025-03-22 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737248', 'tblTempUsageDetail_20' ) end [2025-03-22 11:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:35:21] Production.INFO: ==23184== Releasing lock... [2025-03-22 11:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:35:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:36:05 [end_date_ymd] => 2025-03-22 11:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:36:05' and `end` < '2025-03-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-03-22 11:36:18] Production.INFO: count ==1025 [2025-03-22 11:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:36:05 - End Time 2025-03-22 11:36:05 [2025-03-22 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737253', 'tblTempUsageDetail_20' ) start [2025-03-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737253', 'tblTempUsageDetail_20' ) end [2025-03-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737253', 'tblTempVendorCDR_20' ) start [2025-03-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737253', 'tblTempVendorCDR_20' ) end [2025-03-22 11:36:18] Production.INFO: ProcessCDR(1,14737253,1,1,2) [2025-03-22 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737253', 'tblTempUsageDetail_20' ) start [2025-03-22 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737253', 'tblTempUsageDetail_20' ) end [2025-03-22 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:36:23] Production.INFO: ==23257== Releasing lock... [2025-03-22 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:36:23] Production.INFO: 36 MB #Memory Used# [2025-03-22 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:37:06 [end_date_ymd] => 2025-03-22 11:37:06 [RateCDR] => 1 ) [2025-03-22 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:37:06' and `end` < '2025-03-22 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:37:18] Production.INFO: count ==1027 [2025-03-22 11:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:37:06 - End Time 2025-03-22 11:37:06 [2025-03-22 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737258', 'tblTempUsageDetail_20' ) start [2025-03-22 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737258', 'tblTempUsageDetail_20' ) end [2025-03-22 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737258', 'tblTempVendorCDR_20' ) start [2025-03-22 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737258', 'tblTempVendorCDR_20' ) end [2025-03-22 11:37:18] Production.INFO: ProcessCDR(1,14737258,1,1,2) [2025-03-22 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737258', 'tblTempUsageDetail_20' ) start [2025-03-22 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737258', 'tblTempUsageDetail_20' ) end [2025-03-22 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:37:23] Production.INFO: ==23332== Releasing lock... [2025-03-22 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:37:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:38:05 [end_date_ymd] => 2025-03-22 11:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:38:05' and `end` < '2025-03-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-03-22 11:38:17] Production.INFO: count ==1028 [2025-03-22 11:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:38:05 - End Time 2025-03-22 11:38:05 [2025-03-22 11:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737263', 'tblTempUsageDetail_20' ) start [2025-03-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737263', 'tblTempUsageDetail_20' ) end [2025-03-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737263', 'tblTempVendorCDR_20' ) start [2025-03-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737263', 'tblTempVendorCDR_20' ) end [2025-03-22 11:38:17] Production.INFO: ProcessCDR(1,14737263,1,1,2) [2025-03-22 11:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737263', 'tblTempUsageDetail_20' ) start [2025-03-22 11:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737263', 'tblTempUsageDetail_20' ) end [2025-03-22 11:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:38:21] Production.INFO: ==23405== Releasing lock... [2025-03-22 11:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:38:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:39:05 [end_date_ymd] => 2025-03-22 11:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:39:05' and `end` < '2025-03-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-03-22 11:39:17] Production.INFO: count ==1033 [2025-03-22 11:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:39:05 - End Time 2025-03-22 11:39:05 [2025-03-22 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737268', 'tblTempUsageDetail_20' ) start [2025-03-22 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737268', 'tblTempUsageDetail_20' ) end [2025-03-22 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737268', 'tblTempVendorCDR_20' ) start [2025-03-22 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737268', 'tblTempVendorCDR_20' ) end [2025-03-22 11:39:18] Production.INFO: ProcessCDR(1,14737268,1,1,2) [2025-03-22 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737268', 'tblTempUsageDetail_20' ) start [2025-03-22 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737268', 'tblTempUsageDetail_20' ) end [2025-03-22 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:39:23] Production.INFO: ==23477== Releasing lock... [2025-03-22 11:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:39:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-22 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:40:06 [end_date_ymd] => 2025-03-22 11:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:40:06' and `end` < '2025-03-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-03-22 11:40:18] Production.INFO: count ==1029 [2025-03-22 11:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:40:06 - End Time 2025-03-22 11:40:06 [2025-03-22 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737273', 'tblTempUsageDetail_20' ) start [2025-03-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737273', 'tblTempUsageDetail_20' ) end [2025-03-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737273', 'tblTempVendorCDR_20' ) start [2025-03-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737273', 'tblTempVendorCDR_20' ) end [2025-03-22 11:40:18] Production.INFO: ProcessCDR(1,14737273,1,1,2) [2025-03-22 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737273', 'tblTempUsageDetail_20' ) start [2025-03-22 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737273', 'tblTempUsageDetail_20' ) end [2025-03-22 11:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:40:22] Production.INFO: ==23552== Releasing lock... [2025-03-22 11:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-22 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:41:05 [end_date_ymd] => 2025-03-22 11:41:05 [RateCDR] => 1 ) [2025-03-22 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:41:05' and `end` < '2025-03-22 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:41:18] Production.INFO: count ==1064 [2025-03-22 11:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:41:05 - End Time 2025-03-22 11:41:05 [2025-03-22 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737279', 'tblTempUsageDetail_20' ) start [2025-03-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737279', 'tblTempUsageDetail_20' ) end [2025-03-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737279', 'tblTempVendorCDR_20' ) start [2025-03-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737279', 'tblTempVendorCDR_20' ) end [2025-03-22 11:41:18] Production.INFO: ProcessCDR(1,14737279,1,1,2) [2025-03-22 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737279', 'tblTempUsageDetail_20' ) start [2025-03-22 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737279', 'tblTempUsageDetail_20' ) end [2025-03-22 11:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:41:21] Production.INFO: ==23626== Releasing lock... [2025-03-22 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:41:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:42:05 [end_date_ymd] => 2025-03-22 11:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:42:05' and `end` < '2025-03-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-03-22 11:42:17] Production.INFO: count ==1078 [2025-03-22 11:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:42:05 - End Time 2025-03-22 11:42:05 [2025-03-22 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737284', 'tblTempUsageDetail_20' ) start [2025-03-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737284', 'tblTempUsageDetail_20' ) end [2025-03-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737284', 'tblTempVendorCDR_20' ) start [2025-03-22 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737284', 'tblTempVendorCDR_20' ) end [2025-03-22 11:42:18] Production.INFO: ProcessCDR(1,14737284,1,1,2) [2025-03-22 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737284', 'tblTempUsageDetail_20' ) start [2025-03-22 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737284', 'tblTempUsageDetail_20' ) end [2025-03-22 11:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:42:21] Production.INFO: ==23702== Releasing lock... [2025-03-22 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:42:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:43:05 [end_date_ymd] => 2025-03-22 11:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:43:05' and `end` < '2025-03-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-03-22 11:43:18] Production.INFO: count ==1083 [2025-03-22 11:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:43:05 - End Time 2025-03-22 11:43:05 [2025-03-22 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737289', 'tblTempUsageDetail_20' ) start [2025-03-22 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737289', 'tblTempUsageDetail_20' ) end [2025-03-22 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737289', 'tblTempVendorCDR_20' ) start [2025-03-22 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737289', 'tblTempVendorCDR_20' ) end [2025-03-22 11:43:18] Production.INFO: ProcessCDR(1,14737289,1,1,2) [2025-03-22 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737289', 'tblTempUsageDetail_20' ) start [2025-03-22 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737289', 'tblTempUsageDetail_20' ) end [2025-03-22 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:43:23] Production.INFO: ==23817== Releasing lock... [2025-03-22 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:43:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:44:05 [end_date_ymd] => 2025-03-22 11:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:44:05' and `end` < '2025-03-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-03-22 11:44:17] Production.INFO: count ==1093 [2025-03-22 11:44:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:44:05 - End Time 2025-03-22 11:44:05 [2025-03-22 11:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737294', 'tblTempUsageDetail_20' ) start [2025-03-22 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737294', 'tblTempUsageDetail_20' ) end [2025-03-22 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737294', 'tblTempVendorCDR_20' ) start [2025-03-22 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737294', 'tblTempVendorCDR_20' ) end [2025-03-22 11:44:17] Production.INFO: ProcessCDR(1,14737294,1,1,2) [2025-03-22 11:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737294', 'tblTempUsageDetail_20' ) start [2025-03-22 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737294', 'tblTempUsageDetail_20' ) end [2025-03-22 11:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:44:21] Production.INFO: ==23889== Releasing lock... [2025-03-22 11:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:44:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:45:05 [end_date_ymd] => 2025-03-22 11:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:45:05' and `end` < '2025-03-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-03-22 11:45:18] Production.INFO: count ==1099 [2025-03-22 11:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:45:05 - End Time 2025-03-22 11:45:05 [2025-03-22 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737299', 'tblTempUsageDetail_20' ) start [2025-03-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737299', 'tblTempUsageDetail_20' ) end [2025-03-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737299', 'tblTempVendorCDR_20' ) start [2025-03-22 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737299', 'tblTempVendorCDR_20' ) end [2025-03-22 11:45:18] Production.INFO: ProcessCDR(1,14737299,1,1,2) [2025-03-22 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737299', 'tblTempUsageDetail_20' ) start [2025-03-22 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737299', 'tblTempUsageDetail_20' ) end [2025-03-22 11:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:45:21] Production.INFO: ==23962== Releasing lock... [2025-03-22 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:45:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:46:05 [end_date_ymd] => 2025-03-22 11:46:05 [RateCDR] => 1 ) [2025-03-22 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:46:05' and `end` < '2025-03-22 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:46:17] Production.INFO: count ==1106 [2025-03-22 11:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:46:05 - End Time 2025-03-22 11:46:05 [2025-03-22 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737304', 'tblTempUsageDetail_20' ) start [2025-03-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737304', 'tblTempUsageDetail_20' ) end [2025-03-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737304', 'tblTempVendorCDR_20' ) start [2025-03-22 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737304', 'tblTempVendorCDR_20' ) end [2025-03-22 11:46:18] Production.INFO: ProcessCDR(1,14737304,1,1,2) [2025-03-22 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737304', 'tblTempUsageDetail_20' ) start [2025-03-22 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737304', 'tblTempUsageDetail_20' ) end [2025-03-22 11:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:46:23] Production.INFO: ==24036== Releasing lock... [2025-03-22 11:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:46:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:47:05 [end_date_ymd] => 2025-03-22 11:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:47:05' and `end` < '2025-03-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-03-22 11:47:17] Production.INFO: count ==1107 [2025-03-22 11:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:47:05 - End Time 2025-03-22 11:47:05 [2025-03-22 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737309', 'tblTempUsageDetail_20' ) start [2025-03-22 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737309', 'tblTempUsageDetail_20' ) end [2025-03-22 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737309', 'tblTempVendorCDR_20' ) start [2025-03-22 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737309', 'tblTempVendorCDR_20' ) end [2025-03-22 11:47:18] Production.INFO: ProcessCDR(1,14737309,1,1,2) [2025-03-22 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737309', 'tblTempUsageDetail_20' ) start [2025-03-22 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737309', 'tblTempUsageDetail_20' ) end [2025-03-22 11:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:47:21] Production.INFO: ==24107== Releasing lock... [2025-03-22 11:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:48:06 [end_date_ymd] => 2025-03-22 11:48:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:48:06' and `end` < '2025-03-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-03-22 11:48:18] Production.INFO: count ==1110 [2025-03-22 11:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:48:06 - End Time 2025-03-22 11:48:06 [2025-03-22 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737314', 'tblTempUsageDetail_20' ) start [2025-03-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737314', 'tblTempUsageDetail_20' ) end [2025-03-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737314', 'tblTempVendorCDR_20' ) start [2025-03-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737314', 'tblTempVendorCDR_20' ) end [2025-03-22 11:48:18] Production.INFO: ProcessCDR(1,14737314,1,1,2) [2025-03-22 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737314', 'tblTempUsageDetail_20' ) start [2025-03-22 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737314', 'tblTempUsageDetail_20' ) end [2025-03-22 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:48:22] Production.INFO: ==24180== Releasing lock... [2025-03-22 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:49:04 [end_date_ymd] => 2025-03-22 11:49:04 [RateCDR] => 1 ) [2025-03-22 11: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-03-22 08:49:04' and `end` < '2025-03-22 11: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-03-22 11:49:17] Production.INFO: count ==1109 [2025-03-22 11:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:49:04 - End Time 2025-03-22 11:49:04 [2025-03-22 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737319', 'tblTempUsageDetail_20' ) start [2025-03-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737319', 'tblTempUsageDetail_20' ) end [2025-03-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737319', 'tblTempVendorCDR_20' ) start [2025-03-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737319', 'tblTempVendorCDR_20' ) end [2025-03-22 11:49:17] Production.INFO: ProcessCDR(1,14737319,1,1,2) [2025-03-22 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737319', 'tblTempUsageDetail_20' ) start [2025-03-22 11:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737319', 'tblTempUsageDetail_20' ) end [2025-03-22 11:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:49:20] Production.INFO: ==24258== Releasing lock... [2025-03-22 11:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:49:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:50:06 [end_date_ymd] => 2025-03-22 11:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 08:50:06' and `end` < '2025-03-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-03-22 11:50:19] Production.INFO: count ==1124 [2025-03-22 11:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 08:50:06 - End Time 2025-03-22 11:50:06 [2025-03-22 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737325', 'tblTempUsageDetail_20' ) start [2025-03-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737325', 'tblTempUsageDetail_20' ) end [2025-03-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737325', 'tblTempVendorCDR_20' ) start [2025-03-22 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737325', 'tblTempVendorCDR_20' ) end [2025-03-22 11:50:19] Production.INFO: ProcessCDR(1,14737325,1,1,2) [2025-03-22 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737325', 'tblTempUsageDetail_20' ) start [2025-03-22 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737325', 'tblTempUsageDetail_20' ) end [2025-03-22 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:50:24] Production.INFO: ==24333== Releasing lock... [2025-03-22 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:50:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:51:05 [end_date_ymd] => 2025-03-22 11:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:51:05' and `end` < '2025-03-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-03-22 11:51:17] Production.INFO: count ==1155 [2025-03-22 11:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:51:05 - End Time 2025-03-22 11:51:05 [2025-03-22 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737330', 'tblTempUsageDetail_20' ) start [2025-03-22 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737330', 'tblTempUsageDetail_20' ) end [2025-03-22 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737330', 'tblTempVendorCDR_20' ) start [2025-03-22 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737330', 'tblTempVendorCDR_20' ) end [2025-03-22 11:51:18] Production.INFO: ProcessCDR(1,14737330,1,1,2) [2025-03-22 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737330', 'tblTempUsageDetail_20' ) start [2025-03-22 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737330', 'tblTempUsageDetail_20' ) end [2025-03-22 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:51:22] Production.INFO: ==24416== Releasing lock... [2025-03-22 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:52:05 [end_date_ymd] => 2025-03-22 11:52:05 [RateCDR] => 1 ) [2025-03-22 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:52:05' and `end` < '2025-03-22 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:52:18] Production.INFO: count ==1158 [2025-03-22 11:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:52:05 - End Time 2025-03-22 11:52:05 [2025-03-22 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737335', 'tblTempUsageDetail_20' ) start [2025-03-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737335', 'tblTempUsageDetail_20' ) end [2025-03-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737335', 'tblTempVendorCDR_20' ) start [2025-03-22 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737335', 'tblTempVendorCDR_20' ) end [2025-03-22 11:52:18] Production.INFO: ProcessCDR(1,14737335,1,1,2) [2025-03-22 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737335', 'tblTempUsageDetail_20' ) start [2025-03-22 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737335', 'tblTempUsageDetail_20' ) end [2025-03-22 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:52:23] Production.INFO: ==24495== Releasing lock... [2025-03-22 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:52:23] Production.INFO: 37 MB #Memory Used# [2025-03-22 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:53:05 [end_date_ymd] => 2025-03-22 11:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:53:05' and `end` < '2025-03-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-03-22 11:53:17] Production.INFO: count ==1167 [2025-03-22 11:53:17] Production.ERROR: pbx CDR StartTime 2025-03-22 08:53:05 - End Time 2025-03-22 11:53:05 [2025-03-22 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737340', 'tblTempUsageDetail_20' ) start [2025-03-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737340', 'tblTempUsageDetail_20' ) end [2025-03-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737340', 'tblTempVendorCDR_20' ) start [2025-03-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737340', 'tblTempVendorCDR_20' ) end [2025-03-22 11:53:17] Production.INFO: ProcessCDR(1,14737340,1,1,2) [2025-03-22 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737340', 'tblTempUsageDetail_20' ) start [2025-03-22 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737340', 'tblTempUsageDetail_20' ) end [2025-03-22 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:53:22] Production.INFO: ==24568== Releasing lock... [2025-03-22 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:53:22] Production.INFO: 37 MB #Memory Used# [2025-03-22 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:54:05 [end_date_ymd] => 2025-03-22 11:54:05 [RateCDR] => 1 ) [2025-03-22 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:54:05' and `end` < '2025-03-22 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:54:17] Production.INFO: count ==1174 [2025-03-22 11:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:54:05 - End Time 2025-03-22 11:54:05 [2025-03-22 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737345', 'tblTempUsageDetail_20' ) start [2025-03-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737345', 'tblTempUsageDetail_20' ) end [2025-03-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737345', 'tblTempVendorCDR_20' ) start [2025-03-22 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737345', 'tblTempVendorCDR_20' ) end [2025-03-22 11:54:18] Production.INFO: ProcessCDR(1,14737345,1,1,2) [2025-03-22 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737345', 'tblTempUsageDetail_20' ) start [2025-03-22 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737345', 'tblTempUsageDetail_20' ) end [2025-03-22 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:54:23] Production.INFO: ==24638== Releasing lock... [2025-03-22 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:54:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:55:06 [end_date_ymd] => 2025-03-22 11:55:06 [RateCDR] => 1 ) [2025-03-22 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:55:06' and `end` < '2025-03-22 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:55:18] Production.INFO: count ==1176 [2025-03-22 11:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:55:06 - End Time 2025-03-22 11:55:06 [2025-03-22 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737350', 'tblTempUsageDetail_20' ) start [2025-03-22 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737350', 'tblTempUsageDetail_20' ) end [2025-03-22 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737350', 'tblTempVendorCDR_20' ) start [2025-03-22 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737350', 'tblTempVendorCDR_20' ) end [2025-03-22 11:55:19] Production.INFO: ProcessCDR(1,14737350,1,1,2) [2025-03-22 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737350', 'tblTempUsageDetail_20' ) start [2025-03-22 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737350', 'tblTempUsageDetail_20' ) end [2025-03-22 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:55:23] Production.INFO: ==24714== Releasing lock... [2025-03-22 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:55:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:56:05 [end_date_ymd] => 2025-03-22 11:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:56:05' and `end` < '2025-03-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-03-22 11:56:18] Production.INFO: count ==1184 [2025-03-22 11:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:56:05 - End Time 2025-03-22 11:56:05 [2025-03-22 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737355', 'tblTempUsageDetail_20' ) start [2025-03-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737355', 'tblTempUsageDetail_20' ) end [2025-03-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737355', 'tblTempVendorCDR_20' ) start [2025-03-22 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737355', 'tblTempVendorCDR_20' ) end [2025-03-22 11:56:18] Production.INFO: ProcessCDR(1,14737355,1,1,2) [2025-03-22 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737355', 'tblTempUsageDetail_20' ) start [2025-03-22 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737355', 'tblTempUsageDetail_20' ) end [2025-03-22 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:56:23] Production.INFO: ==24787== Releasing lock... [2025-03-22 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:56:23] Production.INFO: 37 MB #Memory Used# [2025-03-22 11:57:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:57:07 [end_date_ymd] => 2025-03-22 11:57:07 [RateCDR] => 1 ) [2025-03-22 11:57:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 08:57:07' and `end` < '2025-03-22 11:57:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 11:57:19] Production.INFO: count ==1181 [2025-03-22 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-22 08:57:07 - End Time 2025-03-22 11:57:07 [2025-03-22 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737360', 'tblTempUsageDetail_20' ) start [2025-03-22 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737360', 'tblTempUsageDetail_20' ) end [2025-03-22 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737360', 'tblTempVendorCDR_20' ) start [2025-03-22 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737360', 'tblTempVendorCDR_20' ) end [2025-03-22 11:57:20] Production.INFO: ProcessCDR(1,14737360,1,1,2) [2025-03-22 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737360', 'tblTempUsageDetail_20' ) start [2025-03-22 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737360', 'tblTempUsageDetail_20' ) end [2025-03-22 11:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:57:24] Production.INFO: ==24862== Releasing lock... [2025-03-22 11:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:57:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:58:05 [end_date_ymd] => 2025-03-22 11:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:58:05' and `end` < '2025-03-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-03-22 11:58:17] Production.INFO: count ==1181 [2025-03-22 11:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:58:05 - End Time 2025-03-22 11:58:05 [2025-03-22 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737365', 'tblTempUsageDetail_20' ) start [2025-03-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737365', 'tblTempUsageDetail_20' ) end [2025-03-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737365', 'tblTempVendorCDR_20' ) start [2025-03-22 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737365', 'tblTempVendorCDR_20' ) end [2025-03-22 11:58:18] Production.INFO: ProcessCDR(1,14737365,1,1,2) [2025-03-22 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737365', 'tblTempUsageDetail_20' ) start [2025-03-22 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737365', 'tblTempUsageDetail_20' ) end [2025-03-22 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:58:23] Production.INFO: ==24973== Releasing lock... [2025-03-22 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 08:59:05 [end_date_ymd] => 2025-03-22 11:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 08:59:05' and `end` < '2025-03-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-03-22 11:59:17] Production.INFO: count ==1187 [2025-03-22 11:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 08:59:05 - End Time 2025-03-22 11:59:05 [2025-03-22 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737370', 'tblTempUsageDetail_20' ) start [2025-03-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737370', 'tblTempUsageDetail_20' ) end [2025-03-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737370', 'tblTempVendorCDR_20' ) start [2025-03-22 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737370', 'tblTempVendorCDR_20' ) end [2025-03-22 11:59:18] Production.INFO: ProcessCDR(1,14737370,1,1,2) [2025-03-22 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737370', 'tblTempUsageDetail_20' ) start [2025-03-22 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737370', 'tblTempUsageDetail_20' ) end [2025-03-22 11:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 11:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 11:59:21] Production.INFO: ==25047== Releasing lock... [2025-03-22 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 11:59:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:00:06 [end_date_ymd] => 2025-03-22 12:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:00:06' and `end` < '2025-03-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-03-22 12:00:19] Production.INFO: count ==1197 [2025-03-22 12:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:00:06 - End Time 2025-03-22 12:00:06 [2025-03-22 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737376', 'tblTempUsageDetail_20' ) start [2025-03-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737376', 'tblTempUsageDetail_20' ) end [2025-03-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737376', 'tblTempVendorCDR_20' ) start [2025-03-22 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737376', 'tblTempVendorCDR_20' ) end [2025-03-22 12:00:19] Production.INFO: ProcessCDR(1,14737376,1,1,2) [2025-03-22 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737376', 'tblTempUsageDetail_20' ) start [2025-03-22 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737376', 'tblTempUsageDetail_20' ) end [2025-03-22 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:00:23] Production.INFO: ==25122== Releasing lock... [2025-03-22 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:00:23] Production.INFO: 37 MB #Memory Used# [2025-03-22 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:01:05 [end_date_ymd] => 2025-03-22 12:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:01:05' and `end` < '2025-03-22 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:01:17] Production.INFO: count ==1234 [2025-03-22 12:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:01:05 - End Time 2025-03-22 12:01:05 [2025-03-22 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737381', 'tblTempUsageDetail_20' ) start [2025-03-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737381', 'tblTempUsageDetail_20' ) end [2025-03-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737381', 'tblTempVendorCDR_20' ) start [2025-03-22 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737381', 'tblTempVendorCDR_20' ) end [2025-03-22 12:01:18] Production.INFO: ProcessCDR(1,14737381,1,1,2) [2025-03-22 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737381', 'tblTempUsageDetail_20' ) start [2025-03-22 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737381', 'tblTempUsageDetail_20' ) end [2025-03-22 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:01:24] Production.INFO: ==25205== Releasing lock... [2025-03-22 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:01:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:02:06 [end_date_ymd] => 2025-03-22 12:02:06 [RateCDR] => 1 ) [2025-03-22 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:02:06' and `end` < '2025-03-22 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:02:19] Production.INFO: count ==1214 [2025-03-22 12:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:02:06 - End Time 2025-03-22 12:02:06 [2025-03-22 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737386', 'tblTempUsageDetail_20' ) start [2025-03-22 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737386', 'tblTempUsageDetail_20' ) end [2025-03-22 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737386', 'tblTempVendorCDR_20' ) start [2025-03-22 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737386', 'tblTempVendorCDR_20' ) end [2025-03-22 12:02:19] Production.INFO: ProcessCDR(1,14737386,1,1,2) [2025-03-22 12:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737386', 'tblTempUsageDetail_20' ) start [2025-03-22 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737386', 'tblTempUsageDetail_20' ) end [2025-03-22 12:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:02:25] Production.INFO: ==25300== Releasing lock... [2025-03-22 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:02:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:03:06 [end_date_ymd] => 2025-03-22 12:03:06 [RateCDR] => 1 ) [2025-03-22 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:03:06' and `end` < '2025-03-22 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:03:18] Production.INFO: count ==1235 [2025-03-22 12:03:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:03:06 - End Time 2025-03-22 12:03:06 [2025-03-22 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737391', 'tblTempUsageDetail_20' ) start [2025-03-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737391', 'tblTempUsageDetail_20' ) end [2025-03-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737391', 'tblTempVendorCDR_20' ) start [2025-03-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737391', 'tblTempVendorCDR_20' ) end [2025-03-22 12:03:19] Production.INFO: ProcessCDR(1,14737391,1,1,2) [2025-03-22 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737391', 'tblTempUsageDetail_20' ) start [2025-03-22 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737391', 'tblTempUsageDetail_20' ) end [2025-03-22 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:03:24] Production.INFO: ==25375== Releasing lock... [2025-03-22 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:03:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:04:05 [end_date_ymd] => 2025-03-22 12:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:04:05' and `end` < '2025-03-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-03-22 12:04:17] Production.INFO: count ==1236 [2025-03-22 12:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:04:05 - End Time 2025-03-22 12:04:05 [2025-03-22 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737396', 'tblTempUsageDetail_20' ) start [2025-03-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737396', 'tblTempUsageDetail_20' ) end [2025-03-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737396', 'tblTempVendorCDR_20' ) start [2025-03-22 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737396', 'tblTempVendorCDR_20' ) end [2025-03-22 12:04:18] Production.INFO: ProcessCDR(1,14737396,1,1,2) [2025-03-22 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737396', 'tblTempUsageDetail_20' ) start [2025-03-22 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737396', 'tblTempUsageDetail_20' ) end [2025-03-22 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:04:23] Production.INFO: ==25448== Releasing lock... [2025-03-22 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:04:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:05:06 [end_date_ymd] => 2025-03-22 12:05:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:05:06' and `end` < '2025-03-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-03-22 12:05:18] Production.INFO: count ==1242 [2025-03-22 12:05:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:05:06 - End Time 2025-03-22 12:05:06 [2025-03-22 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737401', 'tblTempUsageDetail_20' ) start [2025-03-22 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737401', 'tblTempUsageDetail_20' ) end [2025-03-22 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737401', 'tblTempVendorCDR_20' ) start [2025-03-22 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737401', 'tblTempVendorCDR_20' ) end [2025-03-22 12:05:19] Production.INFO: ProcessCDR(1,14737401,1,1,2) [2025-03-22 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737401', 'tblTempUsageDetail_20' ) start [2025-03-22 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737401', 'tblTempUsageDetail_20' ) end [2025-03-22 12:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:05:24] Production.INFO: ==25521== Releasing lock... [2025-03-22 12:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:05:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:06:05 [end_date_ymd] => 2025-03-22 12:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:06:05' and `end` < '2025-03-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-03-22 12:06:17] Production.INFO: count ==1242 [2025-03-22 12:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:06:05 - End Time 2025-03-22 12:06:05 [2025-03-22 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737406', 'tblTempUsageDetail_20' ) start [2025-03-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737406', 'tblTempUsageDetail_20' ) end [2025-03-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737406', 'tblTempVendorCDR_20' ) start [2025-03-22 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737406', 'tblTempVendorCDR_20' ) end [2025-03-22 12:06:18] Production.INFO: ProcessCDR(1,14737406,1,1,2) [2025-03-22 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737406', 'tblTempUsageDetail_20' ) start [2025-03-22 12:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737406', 'tblTempUsageDetail_20' ) end [2025-03-22 12:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:06:24] Production.INFO: ==25592== Releasing lock... [2025-03-22 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:06:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:07:05 [end_date_ymd] => 2025-03-22 12:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:07:05' and `end` < '2025-03-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-03-22 12:07:18] Production.INFO: count ==1240 [2025-03-22 12:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:07:05 - End Time 2025-03-22 12:07:05 [2025-03-22 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737411', 'tblTempUsageDetail_20' ) start [2025-03-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737411', 'tblTempUsageDetail_20' ) end [2025-03-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737411', 'tblTempVendorCDR_20' ) start [2025-03-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737411', 'tblTempVendorCDR_20' ) end [2025-03-22 12:07:18] Production.INFO: ProcessCDR(1,14737411,1,1,2) [2025-03-22 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737411', 'tblTempUsageDetail_20' ) start [2025-03-22 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737411', 'tblTempUsageDetail_20' ) end [2025-03-22 12:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:07:24] Production.INFO: ==25664== Releasing lock... [2025-03-22 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:07:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:08:05 [end_date_ymd] => 2025-03-22 12:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:08:05' and `end` < '2025-03-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-03-22 12:08:18] Production.INFO: count ==1249 [2025-03-22 12:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:08:05 - End Time 2025-03-22 12:08:05 [2025-03-22 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737416', 'tblTempUsageDetail_20' ) start [2025-03-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737416', 'tblTempUsageDetail_20' ) end [2025-03-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737416', 'tblTempVendorCDR_20' ) start [2025-03-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737416', 'tblTempVendorCDR_20' ) end [2025-03-22 12:08:18] Production.INFO: ProcessCDR(1,14737416,1,1,2) [2025-03-22 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737416', 'tblTempUsageDetail_20' ) start [2025-03-22 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737416', 'tblTempUsageDetail_20' ) end [2025-03-22 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:08:24] Production.INFO: ==25746== Releasing lock... [2025-03-22 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:08:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:09:06 [end_date_ymd] => 2025-03-22 12:09:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:09:06' and `end` < '2025-03-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-03-22 12:09:18] Production.INFO: count ==1253 [2025-03-22 12:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:09:06 - End Time 2025-03-22 12:09:06 [2025-03-22 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737421', 'tblTempUsageDetail_20' ) start [2025-03-22 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737421', 'tblTempUsageDetail_20' ) end [2025-03-22 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737421', 'tblTempVendorCDR_20' ) start [2025-03-22 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737421', 'tblTempVendorCDR_20' ) end [2025-03-22 12:09:19] Production.INFO: ProcessCDR(1,14737421,1,1,2) [2025-03-22 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737421', 'tblTempUsageDetail_20' ) start [2025-03-22 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737421', 'tblTempUsageDetail_20' ) end [2025-03-22 12:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:09:25] Production.INFO: ==25821== Releasing lock... [2025-03-22 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:09:25] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:10:06 [end_date_ymd] => 2025-03-22 12:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:10:06' and `end` < '2025-03-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-03-22 12:10:18] Production.INFO: count ==1254 [2025-03-22 12:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:10:06 - End Time 2025-03-22 12:10:06 [2025-03-22 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737427', 'tblTempUsageDetail_20' ) start [2025-03-22 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737427', 'tblTempUsageDetail_20' ) end [2025-03-22 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737427', 'tblTempVendorCDR_20' ) start [2025-03-22 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737427', 'tblTempVendorCDR_20' ) end [2025-03-22 12:10:19] Production.INFO: ProcessCDR(1,14737427,1,1,2) [2025-03-22 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737427', 'tblTempUsageDetail_20' ) start [2025-03-22 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737427', 'tblTempUsageDetail_20' ) end [2025-03-22 12:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:10:25] Production.INFO: ==25901== Releasing lock... [2025-03-22 12:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:10:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:11:05 [end_date_ymd] => 2025-03-22 12:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:11:05' and `end` < '2025-03-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-03-22 12:11:17] Production.INFO: count ==1254 [2025-03-22 12:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:11:05 - End Time 2025-03-22 12:11:05 [2025-03-22 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737432', 'tblTempUsageDetail_20' ) start [2025-03-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737432', 'tblTempUsageDetail_20' ) end [2025-03-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737432', 'tblTempVendorCDR_20' ) start [2025-03-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737432', 'tblTempVendorCDR_20' ) end [2025-03-22 12:11:18] Production.INFO: ProcessCDR(1,14737432,1,1,2) [2025-03-22 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737432', 'tblTempUsageDetail_20' ) start [2025-03-22 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737432', 'tblTempUsageDetail_20' ) end [2025-03-22 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:11:23] Production.INFO: ==25977== Releasing lock... [2025-03-22 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:11:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:12:06 [end_date_ymd] => 2025-03-22 12:12:06 [RateCDR] => 1 ) [2025-03-22 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:12:06' and `end` < '2025-03-22 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:12:19] Production.INFO: count ==1267 [2025-03-22 12:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:12:06 - End Time 2025-03-22 12:12:06 [2025-03-22 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737437', 'tblTempUsageDetail_20' ) start [2025-03-22 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737437', 'tblTempUsageDetail_20' ) end [2025-03-22 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737437', 'tblTempVendorCDR_20' ) start [2025-03-22 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737437', 'tblTempVendorCDR_20' ) end [2025-03-22 12:12:19] Production.INFO: ProcessCDR(1,14737437,1,1,2) [2025-03-22 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737437', 'tblTempUsageDetail_20' ) start [2025-03-22 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737437', 'tblTempUsageDetail_20' ) end [2025-03-22 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:12:25] Production.INFO: ==26058== Releasing lock... [2025-03-22 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:12:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:13:05 [end_date_ymd] => 2025-03-22 12:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:13:05' and `end` < '2025-03-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-03-22 12:13:17] Production.INFO: count ==1258 [2025-03-22 12:13:17] Production.ERROR: pbx CDR StartTime 2025-03-22 09:13:05 - End Time 2025-03-22 12:13:05 [2025-03-22 12:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737442', 'tblTempUsageDetail_20' ) start [2025-03-22 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737442', 'tblTempUsageDetail_20' ) end [2025-03-22 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737442', 'tblTempVendorCDR_20' ) start [2025-03-22 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737442', 'tblTempVendorCDR_20' ) end [2025-03-22 12:13:17] Production.INFO: ProcessCDR(1,14737442,1,1,2) [2025-03-22 12:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737442', 'tblTempUsageDetail_20' ) start [2025-03-22 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737442', 'tblTempUsageDetail_20' ) end [2025-03-22 12:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:13:23] Production.INFO: ==26132== Releasing lock... [2025-03-22 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:13:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:14:06 [end_date_ymd] => 2025-03-22 12:14:06 [RateCDR] => 1 ) [2025-03-22 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:14:06' and `end` < '2025-03-22 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:14:18] Production.INFO: count ==1253 [2025-03-22 12:14:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:14:06 - End Time 2025-03-22 12:14:06 [2025-03-22 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737447', 'tblTempUsageDetail_20' ) start [2025-03-22 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737447', 'tblTempUsageDetail_20' ) end [2025-03-22 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737447', 'tblTempVendorCDR_20' ) start [2025-03-22 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737447', 'tblTempVendorCDR_20' ) end [2025-03-22 12:14:19] Production.INFO: ProcessCDR(1,14737447,1,1,2) [2025-03-22 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737447', 'tblTempUsageDetail_20' ) start [2025-03-22 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737447', 'tblTempUsageDetail_20' ) end [2025-03-22 12:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:14:25] Production.INFO: ==26246== Releasing lock... [2025-03-22 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:14:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:15:05 [end_date_ymd] => 2025-03-22 12:15:05 [RateCDR] => 1 ) [2025-03-22 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:15:05' and `end` < '2025-03-22 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:15:17] Production.INFO: count ==1254 [2025-03-22 12:15:17] Production.ERROR: pbx CDR StartTime 2025-03-22 09:15:05 - End Time 2025-03-22 12:15:05 [2025-03-22 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737452', 'tblTempUsageDetail_20' ) start [2025-03-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737452', 'tblTempUsageDetail_20' ) end [2025-03-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737452', 'tblTempVendorCDR_20' ) start [2025-03-22 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737452', 'tblTempVendorCDR_20' ) end [2025-03-22 12:15:18] Production.INFO: ProcessCDR(1,14737452,1,1,2) [2025-03-22 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737452', 'tblTempUsageDetail_20' ) start [2025-03-22 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737452', 'tblTempUsageDetail_20' ) end [2025-03-22 12:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:15:23] Production.INFO: ==26320== Releasing lock... [2025-03-22 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:15:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:16:06 [end_date_ymd] => 2025-03-22 12:16:06 [RateCDR] => 1 ) [2025-03-22 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:16:06' and `end` < '2025-03-22 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:16:18] Production.INFO: count ==1247 [2025-03-22 12:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:16:06 - End Time 2025-03-22 12:16:06 [2025-03-22 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737457', 'tblTempUsageDetail_20' ) start [2025-03-22 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737457', 'tblTempUsageDetail_20' ) end [2025-03-22 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737457', 'tblTempVendorCDR_20' ) start [2025-03-22 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737457', 'tblTempVendorCDR_20' ) end [2025-03-22 12:16:18] Production.INFO: ProcessCDR(1,14737457,1,1,2) [2025-03-22 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737457', 'tblTempUsageDetail_20' ) start [2025-03-22 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737457', 'tblTempUsageDetail_20' ) end [2025-03-22 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:16:24] Production.INFO: ==26397== Releasing lock... [2025-03-22 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:16:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:17:05 [end_date_ymd] => 2025-03-22 12:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:17:05' and `end` < '2025-03-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-03-22 12:17:18] Production.INFO: count ==1243 [2025-03-22 12:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:17:05 - End Time 2025-03-22 12:17:05 [2025-03-22 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737462', 'tblTempUsageDetail_20' ) start [2025-03-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737462', 'tblTempUsageDetail_20' ) end [2025-03-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737462', 'tblTempVendorCDR_20' ) start [2025-03-22 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737462', 'tblTempVendorCDR_20' ) end [2025-03-22 12:17:18] Production.INFO: ProcessCDR(1,14737462,1,1,2) [2025-03-22 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737462', 'tblTempUsageDetail_20' ) start [2025-03-22 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737462', 'tblTempUsageDetail_20' ) end [2025-03-22 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:17:22] Production.INFO: ==26475== Releasing lock... [2025-03-22 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:17:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:18:06 [end_date_ymd] => 2025-03-22 12:18:06 [RateCDR] => 1 ) [2025-03-22 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:18:06' and `end` < '2025-03-22 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:18:18] Production.INFO: count ==1244 [2025-03-22 12:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:18:06 - End Time 2025-03-22 12:18:06 [2025-03-22 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737467', 'tblTempUsageDetail_20' ) start [2025-03-22 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737467', 'tblTempUsageDetail_20' ) end [2025-03-22 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737467', 'tblTempVendorCDR_20' ) start [2025-03-22 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737467', 'tblTempVendorCDR_20' ) end [2025-03-22 12:18:19] Production.INFO: ProcessCDR(1,14737467,1,1,2) [2025-03-22 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737467', 'tblTempUsageDetail_20' ) start [2025-03-22 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737467', 'tblTempUsageDetail_20' ) end [2025-03-22 12:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:18:24] Production.INFO: ==26552== Releasing lock... [2025-03-22 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:18:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:19:06 [end_date_ymd] => 2025-03-22 12:19:06 [RateCDR] => 1 ) [2025-03-22 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:19:06' and `end` < '2025-03-22 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:19:18] Production.INFO: count ==1247 [2025-03-22 12:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:19:06 - End Time 2025-03-22 12:19:06 [2025-03-22 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737472', 'tblTempUsageDetail_20' ) start [2025-03-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737472', 'tblTempUsageDetail_20' ) end [2025-03-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737472', 'tblTempVendorCDR_20' ) start [2025-03-22 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737472', 'tblTempVendorCDR_20' ) end [2025-03-22 12:19:18] Production.INFO: ProcessCDR(1,14737472,1,1,2) [2025-03-22 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737472', 'tblTempUsageDetail_20' ) start [2025-03-22 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737472', 'tblTempUsageDetail_20' ) end [2025-03-22 12:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:19:24] Production.INFO: ==26633== Releasing lock... [2025-03-22 12:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:19:24] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:20:06 [end_date_ymd] => 2025-03-22 12:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:20:06' and `end` < '2025-03-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-03-22 12:20:19] Production.INFO: count ==1254 [2025-03-22 12:20:20] Production.ERROR: pbx CDR StartTime 2025-03-22 09:20:06 - End Time 2025-03-22 12:20:06 [2025-03-22 12:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737477', 'tblTempUsageDetail_20' ) start [2025-03-22 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737477', 'tblTempUsageDetail_20' ) end [2025-03-22 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737477', 'tblTempVendorCDR_20' ) start [2025-03-22 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737477', 'tblTempVendorCDR_20' ) end [2025-03-22 12:20:20] Production.INFO: ProcessCDR(1,14737477,1,1,2) [2025-03-22 12:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737477', 'tblTempUsageDetail_20' ) start [2025-03-22 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737477', 'tblTempUsageDetail_20' ) end [2025-03-22 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:20:24] Production.INFO: ==26713== Releasing lock... [2025-03-22 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:20:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:21:06 [end_date_ymd] => 2025-03-22 12:21:06 [RateCDR] => 1 ) [2025-03-22 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:21:06' and `end` < '2025-03-22 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:21:18] Production.INFO: count ==1274 [2025-03-22 12:21:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:21:06 - End Time 2025-03-22 12:21:06 [2025-03-22 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737483', 'tblTempUsageDetail_20' ) start [2025-03-22 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737483', 'tblTempUsageDetail_20' ) end [2025-03-22 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737483', 'tblTempVendorCDR_20' ) start [2025-03-22 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737483', 'tblTempVendorCDR_20' ) end [2025-03-22 12:21:19] Production.INFO: ProcessCDR(1,14737483,1,1,2) [2025-03-22 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737483', 'tblTempUsageDetail_20' ) start [2025-03-22 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737483', 'tblTempUsageDetail_20' ) end [2025-03-22 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:21:23] Production.INFO: ==26791== Releasing lock... [2025-03-22 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:21:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:22:05 [end_date_ymd] => 2025-03-22 12:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:22:05' and `end` < '2025-03-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-03-22 12:22:17] Production.INFO: count ==1260 [2025-03-22 12:22:17] Production.ERROR: pbx CDR StartTime 2025-03-22 09:22:05 - End Time 2025-03-22 12:22:05 [2025-03-22 12:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737488', 'tblTempUsageDetail_20' ) start [2025-03-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737488', 'tblTempUsageDetail_20' ) end [2025-03-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737488', 'tblTempVendorCDR_20' ) start [2025-03-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737488', 'tblTempVendorCDR_20' ) end [2025-03-22 12:22:17] Production.INFO: ProcessCDR(1,14737488,1,1,2) [2025-03-22 12:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737488', 'tblTempUsageDetail_20' ) start [2025-03-22 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737488', 'tblTempUsageDetail_20' ) end [2025-03-22 12:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:22:21] Production.INFO: ==26871== Releasing lock... [2025-03-22 12:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:22:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:23:05 [end_date_ymd] => 2025-03-22 12:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:23:05' and `end` < '2025-03-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-03-22 12:23:18] Production.INFO: count ==1253 [2025-03-22 12:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:23:05 - End Time 2025-03-22 12:23:05 [2025-03-22 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737493', 'tblTempUsageDetail_20' ) start [2025-03-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737493', 'tblTempUsageDetail_20' ) end [2025-03-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737493', 'tblTempVendorCDR_20' ) start [2025-03-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737493', 'tblTempVendorCDR_20' ) end [2025-03-22 12:23:18] Production.INFO: ProcessCDR(1,14737493,1,1,2) [2025-03-22 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737493', 'tblTempUsageDetail_20' ) start [2025-03-22 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737493', 'tblTempUsageDetail_20' ) end [2025-03-22 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:23:22] Production.INFO: ==26950== Releasing lock... [2025-03-22 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:24:05 [end_date_ymd] => 2025-03-22 12:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:24:05' and `end` < '2025-03-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-03-22 12:24:18] Production.INFO: count ==1256 [2025-03-22 12:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:24:05 - End Time 2025-03-22 12:24:05 [2025-03-22 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737498', 'tblTempUsageDetail_20' ) start [2025-03-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737498', 'tblTempUsageDetail_20' ) end [2025-03-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737498', 'tblTempVendorCDR_20' ) start [2025-03-22 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737498', 'tblTempVendorCDR_20' ) end [2025-03-22 12:24:18] Production.INFO: ProcessCDR(1,14737498,1,1,2) [2025-03-22 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737498', 'tblTempUsageDetail_20' ) start [2025-03-22 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737498', 'tblTempUsageDetail_20' ) end [2025-03-22 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:24:23] Production.INFO: ==27026== Releasing lock... [2025-03-22 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:25:05 [end_date_ymd] => 2025-03-22 12:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:25:05' and `end` < '2025-03-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-03-22 12:25:18] Production.INFO: count ==1255 [2025-03-22 12:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:25:05 - End Time 2025-03-22 12:25:05 [2025-03-22 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737503', 'tblTempUsageDetail_20' ) start [2025-03-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737503', 'tblTempUsageDetail_20' ) end [2025-03-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737503', 'tblTempVendorCDR_20' ) start [2025-03-22 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737503', 'tblTempVendorCDR_20' ) end [2025-03-22 12:25:18] Production.INFO: ProcessCDR(1,14737503,1,1,2) [2025-03-22 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737503', 'tblTempUsageDetail_20' ) start [2025-03-22 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737503', 'tblTempUsageDetail_20' ) end [2025-03-22 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:25:21] Production.INFO: ==27105== Releasing lock... [2025-03-22 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:25:21] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:26:06 [end_date_ymd] => 2025-03-22 12:26:06 [RateCDR] => 1 ) [2025-03-22 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:26:06' and `end` < '2025-03-22 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:26:18] Production.INFO: count ==1256 [2025-03-22 12:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:26:06 - End Time 2025-03-22 12:26:06 [2025-03-22 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737508', 'tblTempUsageDetail_20' ) start [2025-03-22 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737508', 'tblTempUsageDetail_20' ) end [2025-03-22 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737508', 'tblTempVendorCDR_20' ) start [2025-03-22 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737508', 'tblTempVendorCDR_20' ) end [2025-03-22 12:26:19] Production.INFO: ProcessCDR(1,14737508,1,1,2) [2025-03-22 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737508', 'tblTempUsageDetail_20' ) start [2025-03-22 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737508', 'tblTempUsageDetail_20' ) end [2025-03-22 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:26:22] Production.INFO: ==27181== Releasing lock... [2025-03-22 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:26:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:27:05 [end_date_ymd] => 2025-03-22 12:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:27:05' and `end` < '2025-03-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-03-22 12:27:18] Production.INFO: count ==1256 [2025-03-22 12:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:27:05 - End Time 2025-03-22 12:27:05 [2025-03-22 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737513', 'tblTempUsageDetail_20' ) start [2025-03-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737513', 'tblTempUsageDetail_20' ) end [2025-03-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737513', 'tblTempVendorCDR_20' ) start [2025-03-22 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737513', 'tblTempVendorCDR_20' ) end [2025-03-22 12:27:18] Production.INFO: ProcessCDR(1,14737513,1,1,2) [2025-03-22 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737513', 'tblTempUsageDetail_20' ) start [2025-03-22 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737513', 'tblTempUsageDetail_20' ) end [2025-03-22 12:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:27:21] Production.INFO: ==27261== Releasing lock... [2025-03-22 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:27:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:28:05 [end_date_ymd] => 2025-03-22 12:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:28:05' and `end` < '2025-03-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-03-22 12:28:17] Production.INFO: count ==1256 [2025-03-22 12:28:17] Production.ERROR: pbx CDR StartTime 2025-03-22 09:28:05 - End Time 2025-03-22 12:28:05 [2025-03-22 12:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737518', 'tblTempUsageDetail_20' ) start [2025-03-22 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737518', 'tblTempUsageDetail_20' ) end [2025-03-22 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737518', 'tblTempVendorCDR_20' ) start [2025-03-22 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737518', 'tblTempVendorCDR_20' ) end [2025-03-22 12:28:18] Production.INFO: ProcessCDR(1,14737518,1,1,2) [2025-03-22 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737518', 'tblTempUsageDetail_20' ) start [2025-03-22 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737518', 'tblTempUsageDetail_20' ) end [2025-03-22 12:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:28:21] Production.INFO: ==27343== Releasing lock... [2025-03-22 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:28:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:29:06 [end_date_ymd] => 2025-03-22 12:29:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:29:06' and `end` < '2025-03-22 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:29:18] Production.INFO: count ==1256 [2025-03-22 12:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:29:06 - End Time 2025-03-22 12:29:06 [2025-03-22 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737523', 'tblTempUsageDetail_20' ) start [2025-03-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737523', 'tblTempUsageDetail_20' ) end [2025-03-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737523', 'tblTempVendorCDR_20' ) start [2025-03-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737523', 'tblTempVendorCDR_20' ) end [2025-03-22 12:29:19] Production.INFO: ProcessCDR(1,14737523,1,1,2) [2025-03-22 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737523', 'tblTempUsageDetail_20' ) start [2025-03-22 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737523', 'tblTempUsageDetail_20' ) end [2025-03-22 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:29:22] Production.INFO: ==27465== Releasing lock... [2025-03-22 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:30:05 [end_date_ymd] => 2025-03-22 12:30:05 [RateCDR] => 1 ) [2025-03-22 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:30:05' and `end` < '2025-03-22 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:30:18] Production.INFO: count ==1240 [2025-03-22 12:30:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:30:05 - End Time 2025-03-22 12:30:05 [2025-03-22 12:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737529', 'tblTempUsageDetail_20' ) start [2025-03-22 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737529', 'tblTempUsageDetail_20' ) end [2025-03-22 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737529', 'tblTempVendorCDR_20' ) start [2025-03-22 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737529', 'tblTempVendorCDR_20' ) end [2025-03-22 12:30:18] Production.INFO: ProcessCDR(1,14737529,1,1,2) [2025-03-22 12:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737529', 'tblTempUsageDetail_20' ) start [2025-03-22 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737529', 'tblTempUsageDetail_20' ) end [2025-03-22 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:30:22] Production.INFO: ==27544== Releasing lock... [2025-03-22 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:30:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:31:05 [end_date_ymd] => 2025-03-22 12:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:31:05' and `end` < '2025-03-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-03-22 12:31:17] Production.INFO: count ==1244 [2025-03-22 12:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:31:05 - End Time 2025-03-22 12:31:05 [2025-03-22 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737534', 'tblTempUsageDetail_20' ) start [2025-03-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737534', 'tblTempUsageDetail_20' ) end [2025-03-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737534', 'tblTempVendorCDR_20' ) start [2025-03-22 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737534', 'tblTempVendorCDR_20' ) end [2025-03-22 12:31:18] Production.INFO: ProcessCDR(1,14737534,1,1,2) [2025-03-22 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737534', 'tblTempUsageDetail_20' ) start [2025-03-22 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737534', 'tblTempUsageDetail_20' ) end [2025-03-22 12:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:31:21] Production.INFO: ==27625== Releasing lock... [2025-03-22 12:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:31:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:32:05 [end_date_ymd] => 2025-03-22 12:32:05 [RateCDR] => 1 ) [2025-03-22 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:32:05' and `end` < '2025-03-22 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:32:17] Production.INFO: count ==1254 [2025-03-22 12:32:17] Production.ERROR: pbx CDR StartTime 2025-03-22 09:32:05 - End Time 2025-03-22 12:32:05 [2025-03-22 12:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737539', 'tblTempUsageDetail_20' ) start [2025-03-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737539', 'tblTempUsageDetail_20' ) end [2025-03-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737539', 'tblTempVendorCDR_20' ) start [2025-03-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737539', 'tblTempVendorCDR_20' ) end [2025-03-22 12:32:17] Production.INFO: ProcessCDR(1,14737539,1,1,2) [2025-03-22 12:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737539', 'tblTempUsageDetail_20' ) start [2025-03-22 12:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737539', 'tblTempUsageDetail_20' ) end [2025-03-22 12:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:32:21] Production.INFO: ==27707== Releasing lock... [2025-03-22 12:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:32:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:33:06 [end_date_ymd] => 2025-03-22 12:33:06 [RateCDR] => 1 ) [2025-03-22 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:33:06' and `end` < '2025-03-22 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:33:18] Production.INFO: count ==1254 [2025-03-22 12:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:33:06 - End Time 2025-03-22 12:33:06 [2025-03-22 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737544', 'tblTempUsageDetail_20' ) start [2025-03-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737544', 'tblTempUsageDetail_20' ) end [2025-03-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737544', 'tblTempVendorCDR_20' ) start [2025-03-22 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737544', 'tblTempVendorCDR_20' ) end [2025-03-22 12:33:18] Production.INFO: ProcessCDR(1,14737544,1,1,2) [2025-03-22 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737544', 'tblTempUsageDetail_20' ) start [2025-03-22 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737544', 'tblTempUsageDetail_20' ) end [2025-03-22 12:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:33:21] Production.INFO: ==27798== Releasing lock... [2025-03-22 12:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:33:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:34:04 [end_date_ymd] => 2025-03-22 12:34:04 [RateCDR] => 1 ) [2025-03-22 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:34:04' and `end` < '2025-03-22 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:34:17] Production.INFO: count ==1258 [2025-03-22 12:34:17] Production.ERROR: pbx CDR StartTime 2025-03-22 09:34:04 - End Time 2025-03-22 12:34:04 [2025-03-22 12:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737549', 'tblTempUsageDetail_20' ) start [2025-03-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737549', 'tblTempUsageDetail_20' ) end [2025-03-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737549', 'tblTempVendorCDR_20' ) start [2025-03-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737549', 'tblTempVendorCDR_20' ) end [2025-03-22 12:34:17] Production.INFO: ProcessCDR(1,14737549,1,1,2) [2025-03-22 12:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737549', 'tblTempUsageDetail_20' ) start [2025-03-22 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737549', 'tblTempUsageDetail_20' ) end [2025-03-22 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:34:23] Production.INFO: ==27872== Releasing lock... [2025-03-22 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:34:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:35:05 [end_date_ymd] => 2025-03-22 12:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:35:05' and `end` < '2025-03-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-03-22 12:35:18] Production.INFO: count ==1265 [2025-03-22 12:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:35:05 - End Time 2025-03-22 12:35:05 [2025-03-22 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737554', 'tblTempUsageDetail_20' ) start [2025-03-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737554', 'tblTempUsageDetail_20' ) end [2025-03-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737554', 'tblTempVendorCDR_20' ) start [2025-03-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737554', 'tblTempVendorCDR_20' ) end [2025-03-22 12:35:18] Production.INFO: ProcessCDR(1,14737554,1,1,2) [2025-03-22 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737554', 'tblTempUsageDetail_20' ) start [2025-03-22 12:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737554', 'tblTempUsageDetail_20' ) end [2025-03-22 12:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:35:23] Production.INFO: ==27958== Releasing lock... [2025-03-22 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:35:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:36:06 [end_date_ymd] => 2025-03-22 12:36:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:36:06' and `end` < '2025-03-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-03-22 12:36:18] Production.INFO: count ==1279 [2025-03-22 12:36:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:36:06 - End Time 2025-03-22 12:36:06 [2025-03-22 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737559', 'tblTempUsageDetail_20' ) start [2025-03-22 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737559', 'tblTempUsageDetail_20' ) end [2025-03-22 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737559', 'tblTempVendorCDR_20' ) start [2025-03-22 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737559', 'tblTempVendorCDR_20' ) end [2025-03-22 12:36:19] Production.INFO: ProcessCDR(1,14737559,1,1,2) [2025-03-22 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737559', 'tblTempUsageDetail_20' ) start [2025-03-22 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737559', 'tblTempUsageDetail_20' ) end [2025-03-22 12:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:36:24] Production.INFO: ==28037== Releasing lock... [2025-03-22 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:36:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:37:05 [end_date_ymd] => 2025-03-22 12:37:05 [RateCDR] => 1 ) [2025-03-22 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:37:05' and `end` < '2025-03-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-03-22 12:37:18] Production.INFO: count ==1275 [2025-03-22 12:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:37:05 - End Time 2025-03-22 12:37:05 [2025-03-22 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737564', 'tblTempUsageDetail_20' ) start [2025-03-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737564', 'tblTempUsageDetail_20' ) end [2025-03-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737564', 'tblTempVendorCDR_20' ) start [2025-03-22 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737564', 'tblTempVendorCDR_20' ) end [2025-03-22 12:37:18] Production.INFO: ProcessCDR(1,14737564,1,1,2) [2025-03-22 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737564', 'tblTempUsageDetail_20' ) start [2025-03-22 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737564', 'tblTempUsageDetail_20' ) end [2025-03-22 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:37:23] Production.INFO: ==28119== Releasing lock... [2025-03-22 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:37:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:38:06 [end_date_ymd] => 2025-03-22 12:38:06 [RateCDR] => 1 ) [2025-03-22 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:38:06' and `end` < '2025-03-22 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:38:18] Production.INFO: count ==1280 [2025-03-22 12:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:38:06 - End Time 2025-03-22 12:38:06 [2025-03-22 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737569', 'tblTempUsageDetail_20' ) start [2025-03-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737569', 'tblTempUsageDetail_20' ) end [2025-03-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737569', 'tblTempVendorCDR_20' ) start [2025-03-22 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737569', 'tblTempVendorCDR_20' ) end [2025-03-22 12:38:19] Production.INFO: ProcessCDR(1,14737569,1,1,2) [2025-03-22 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737569', 'tblTempUsageDetail_20' ) start [2025-03-22 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737569', 'tblTempUsageDetail_20' ) end [2025-03-22 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:38:23] Production.INFO: ==28202== Releasing lock... [2025-03-22 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:38:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:39:05 [end_date_ymd] => 2025-03-22 12:39:05 [RateCDR] => 1 ) [2025-03-22 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:39:05' and `end` < '2025-03-22 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:39:17] Production.INFO: count ==1286 [2025-03-22 12:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:39:05 - End Time 2025-03-22 12:39:05 [2025-03-22 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737574', 'tblTempUsageDetail_20' ) start [2025-03-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737574', 'tblTempUsageDetail_20' ) end [2025-03-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737574', 'tblTempVendorCDR_20' ) start [2025-03-22 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737574', 'tblTempVendorCDR_20' ) end [2025-03-22 12:39:18] Production.INFO: ProcessCDR(1,14737574,1,1,2) [2025-03-22 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737574', 'tblTempUsageDetail_20' ) start [2025-03-22 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737574', 'tblTempUsageDetail_20' ) end [2025-03-22 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:39:23] Production.INFO: ==28277== Releasing lock... [2025-03-22 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:39:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:40:06 [end_date_ymd] => 2025-03-22 12:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:40:06' and `end` < '2025-03-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-03-22 12:40:18] Production.INFO: count ==1303 [2025-03-22 12:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:40:06 - End Time 2025-03-22 12:40:06 [2025-03-22 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737580', 'tblTempUsageDetail_20' ) start [2025-03-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737580', 'tblTempUsageDetail_20' ) end [2025-03-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737580', 'tblTempVendorCDR_20' ) start [2025-03-22 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737580', 'tblTempVendorCDR_20' ) end [2025-03-22 12:40:19] Production.INFO: ProcessCDR(1,14737580,1,1,2) [2025-03-22 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737580', 'tblTempUsageDetail_20' ) start [2025-03-22 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737580', 'tblTempUsageDetail_20' ) end [2025-03-22 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:40:22] Production.INFO: ==28362== Releasing lock... [2025-03-22 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:41:05 [end_date_ymd] => 2025-03-22 12:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:41:05' and `end` < '2025-03-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-03-22 12:41:18] Production.INFO: count ==1328 [2025-03-22 12:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:41:05 - End Time 2025-03-22 12:41:05 [2025-03-22 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737585', 'tblTempUsageDetail_20' ) start [2025-03-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737585', 'tblTempUsageDetail_20' ) end [2025-03-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737585', 'tblTempVendorCDR_20' ) start [2025-03-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737585', 'tblTempVendorCDR_20' ) end [2025-03-22 12:41:18] Production.INFO: ProcessCDR(1,14737585,1,1,2) [2025-03-22 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737585', 'tblTempUsageDetail_20' ) start [2025-03-22 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737585', 'tblTempUsageDetail_20' ) end [2025-03-22 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:41:23] Production.INFO: ==28447== Releasing lock... [2025-03-22 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:41:23] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:42:06 [end_date_ymd] => 2025-03-22 12:42:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:42:06' and `end` < '2025-03-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-03-22 12:42:18] Production.INFO: count ==1338 [2025-03-22 12:42:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:42:06 - End Time 2025-03-22 12:42:06 [2025-03-22 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737590', 'tblTempUsageDetail_20' ) start [2025-03-22 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737590', 'tblTempUsageDetail_20' ) end [2025-03-22 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737590', 'tblTempVendorCDR_20' ) start [2025-03-22 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737590', 'tblTempVendorCDR_20' ) end [2025-03-22 12:42:19] Production.INFO: ProcessCDR(1,14737590,1,1,2) [2025-03-22 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737590', 'tblTempUsageDetail_20' ) start [2025-03-22 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737590', 'tblTempUsageDetail_20' ) end [2025-03-22 12:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:42:22] Production.INFO: ==28520== Releasing lock... [2025-03-22 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:43:05 [end_date_ymd] => 2025-03-22 12:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:43:05' and `end` < '2025-03-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-03-22 12:43:17] Production.INFO: count ==1329 [2025-03-22 12:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:43:05 - End Time 2025-03-22 12:43:05 [2025-03-22 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737595', 'tblTempUsageDetail_20' ) start [2025-03-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737595', 'tblTempUsageDetail_20' ) end [2025-03-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737595', 'tblTempVendorCDR_20' ) start [2025-03-22 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737595', 'tblTempVendorCDR_20' ) end [2025-03-22 12:43:18] Production.INFO: ProcessCDR(1,14737595,1,1,2) [2025-03-22 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737595', 'tblTempUsageDetail_20' ) start [2025-03-22 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737595', 'tblTempUsageDetail_20' ) end [2025-03-22 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:43:21] Production.INFO: ==28597== Releasing lock... [2025-03-22 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:43:21] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:44:05 [end_date_ymd] => 2025-03-22 12:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:44:05' and `end` < '2025-03-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-03-22 12:44:18] Production.INFO: count ==1324 [2025-03-22 12:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:44:05 - End Time 2025-03-22 12:44:05 [2025-03-22 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737600', 'tblTempUsageDetail_20' ) start [2025-03-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737600', 'tblTempUsageDetail_20' ) end [2025-03-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737600', 'tblTempVendorCDR_20' ) start [2025-03-22 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737600', 'tblTempVendorCDR_20' ) end [2025-03-22 12:44:18] Production.INFO: ProcessCDR(1,14737600,1,1,2) [2025-03-22 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737600', 'tblTempUsageDetail_20' ) start [2025-03-22 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737600', 'tblTempUsageDetail_20' ) end [2025-03-22 12:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:44:21] Production.INFO: ==28677== Releasing lock... [2025-03-22 12:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:44:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:45:05 [end_date_ymd] => 2025-03-22 12:45:05 [RateCDR] => 1 ) [2025-03-22 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:45:05' and `end` < '2025-03-22 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:45:18] Production.INFO: count ==1329 [2025-03-22 12:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:45:05 - End Time 2025-03-22 12:45:05 [2025-03-22 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737605', 'tblTempUsageDetail_20' ) start [2025-03-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737605', 'tblTempUsageDetail_20' ) end [2025-03-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737605', 'tblTempVendorCDR_20' ) start [2025-03-22 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737605', 'tblTempVendorCDR_20' ) end [2025-03-22 12:45:18] Production.INFO: ProcessCDR(1,14737605,1,1,2) [2025-03-22 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737605', 'tblTempUsageDetail_20' ) start [2025-03-22 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737605', 'tblTempUsageDetail_20' ) end [2025-03-22 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:45:23] Production.INFO: ==28792== Releasing lock... [2025-03-22 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:45:23] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:46:05 [end_date_ymd] => 2025-03-22 12:46:05 [RateCDR] => 1 ) [2025-03-22 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:46:05' and `end` < '2025-03-22 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:46:18] Production.INFO: count ==1321 [2025-03-22 12:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:46:05 - End Time 2025-03-22 12:46:05 [2025-03-22 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737610', 'tblTempUsageDetail_20' ) start [2025-03-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737610', 'tblTempUsageDetail_20' ) end [2025-03-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737610', 'tblTempVendorCDR_20' ) start [2025-03-22 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737610', 'tblTempVendorCDR_20' ) end [2025-03-22 12:46:18] Production.INFO: ProcessCDR(1,14737610,1,1,2) [2025-03-22 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737610', 'tblTempUsageDetail_20' ) start [2025-03-22 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737610', 'tblTempUsageDetail_20' ) end [2025-03-22 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:46:22] Production.INFO: ==28866== Releasing lock... [2025-03-22 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:47:06 [end_date_ymd] => 2025-03-22 12:47:06 [RateCDR] => 1 ) [2025-03-22 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:47:06' and `end` < '2025-03-22 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:47:18] Production.INFO: count ==1328 [2025-03-22 12:47:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:47:06 - End Time 2025-03-22 12:47:06 [2025-03-22 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737615', 'tblTempUsageDetail_20' ) start [2025-03-22 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737615', 'tblTempUsageDetail_20' ) end [2025-03-22 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737615', 'tblTempVendorCDR_20' ) start [2025-03-22 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737615', 'tblTempVendorCDR_20' ) end [2025-03-22 12:47:19] Production.INFO: ProcessCDR(1,14737615,1,1,2) [2025-03-22 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737615', 'tblTempUsageDetail_20' ) start [2025-03-22 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737615', 'tblTempUsageDetail_20' ) end [2025-03-22 12:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:47:22] Production.INFO: ==28947== Releasing lock... [2025-03-22 12:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:47:22] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:48:06 [end_date_ymd] => 2025-03-22 12:48:06 [RateCDR] => 1 ) [2025-03-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-03-22 09:48:06' and `end` < '2025-03-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-03-22 12:48:18] Production.INFO: count ==1320 [2025-03-22 12:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:48:06 - End Time 2025-03-22 12:48:06 [2025-03-22 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737620', 'tblTempUsageDetail_20' ) start [2025-03-22 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737620', 'tblTempUsageDetail_20' ) end [2025-03-22 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737620', 'tblTempVendorCDR_20' ) start [2025-03-22 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737620', 'tblTempVendorCDR_20' ) end [2025-03-22 12:48:19] Production.INFO: ProcessCDR(1,14737620,1,1,2) [2025-03-22 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737620', 'tblTempUsageDetail_20' ) start [2025-03-22 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737620', 'tblTempUsageDetail_20' ) end [2025-03-22 12:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:48:24] Production.INFO: ==29025== Releasing lock... [2025-03-22 12:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:48:24] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:49:05 [end_date_ymd] => 2025-03-22 12:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:49:05' and `end` < '2025-03-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-03-22 12:49:17] Production.INFO: count ==1324 [2025-03-22 12:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:49:05 - End Time 2025-03-22 12:49:05 [2025-03-22 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737625', 'tblTempUsageDetail_20' ) start [2025-03-22 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737625', 'tblTempUsageDetail_20' ) end [2025-03-22 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737625', 'tblTempVendorCDR_20' ) start [2025-03-22 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737625', 'tblTempVendorCDR_20' ) end [2025-03-22 12:49:18] Production.INFO: ProcessCDR(1,14737625,1,1,2) [2025-03-22 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737625', 'tblTempUsageDetail_20' ) start [2025-03-22 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737625', 'tblTempUsageDetail_20' ) end [2025-03-22 12:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:49:21] Production.INFO: ==29107== Releasing lock... [2025-03-22 12:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:49:21] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:50:07 [end_date_ymd] => 2025-03-22 12:50:07 [RateCDR] => 1 ) [2025-03-22 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:50:07' and `end` < '2025-03-22 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:50:19] Production.INFO: count ==1321 [2025-03-22 12:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:50:07 - End Time 2025-03-22 12:50:07 [2025-03-22 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737631', 'tblTempUsageDetail_20' ) start [2025-03-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737631', 'tblTempUsageDetail_20' ) end [2025-03-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737631', 'tblTempVendorCDR_20' ) start [2025-03-22 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737631', 'tblTempVendorCDR_20' ) end [2025-03-22 12:50:19] Production.INFO: ProcessCDR(1,14737631,1,1,2) [2025-03-22 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737631', 'tblTempUsageDetail_20' ) start [2025-03-22 12:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737631', 'tblTempUsageDetail_20' ) end [2025-03-22 12:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:50:25] Production.INFO: ==29184== Releasing lock... [2025-03-22 12:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:50:25] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:51:05 [end_date_ymd] => 2025-03-22 12:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:51:05' and `end` < '2025-03-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-03-22 12:51:17] Production.INFO: count ==1337 [2025-03-22 12:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:51:05 - End Time 2025-03-22 12:51:05 [2025-03-22 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737636', 'tblTempUsageDetail_20' ) start [2025-03-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737636', 'tblTempUsageDetail_20' ) end [2025-03-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737636', 'tblTempVendorCDR_20' ) start [2025-03-22 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737636', 'tblTempVendorCDR_20' ) end [2025-03-22 12:51:18] Production.INFO: ProcessCDR(1,14737636,1,1,2) [2025-03-22 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737636', 'tblTempUsageDetail_20' ) start [2025-03-22 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737636', 'tblTempUsageDetail_20' ) end [2025-03-22 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:51:21] Production.INFO: ==29264== Releasing lock... [2025-03-22 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:52:06 [end_date_ymd] => 2025-03-22 12:52:06 [RateCDR] => 1 ) [2025-03-22 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:52:06' and `end` < '2025-03-22 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:52:18] Production.INFO: count ==1324 [2025-03-22 12:52:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:52:06 - End Time 2025-03-22 12:52:06 [2025-03-22 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737641', 'tblTempUsageDetail_20' ) start [2025-03-22 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737641', 'tblTempUsageDetail_20' ) end [2025-03-22 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737641', 'tblTempVendorCDR_20' ) start [2025-03-22 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737641', 'tblTempVendorCDR_20' ) end [2025-03-22 12:52:19] Production.INFO: ProcessCDR(1,14737641,1,1,2) [2025-03-22 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737641', 'tblTempUsageDetail_20' ) start [2025-03-22 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737641', 'tblTempUsageDetail_20' ) end [2025-03-22 12:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:52:24] Production.INFO: ==29344== Releasing lock... [2025-03-22 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:52:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:53:06 [end_date_ymd] => 2025-03-22 12:53:06 [RateCDR] => 1 ) [2025-03-22 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:53:06' and `end` < '2025-03-22 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:53:18] Production.INFO: count ==1320 [2025-03-22 12:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:53:06 - End Time 2025-03-22 12:53:06 [2025-03-22 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737646', 'tblTempUsageDetail_20' ) start [2025-03-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737646', 'tblTempUsageDetail_20' ) end [2025-03-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737646', 'tblTempVendorCDR_20' ) start [2025-03-22 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737646', 'tblTempVendorCDR_20' ) end [2025-03-22 12:53:18] Production.INFO: ProcessCDR(1,14737646,1,1,2) [2025-03-22 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737646', 'tblTempUsageDetail_20' ) start [2025-03-22 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737646', 'tblTempUsageDetail_20' ) end [2025-03-22 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:53:22] Production.INFO: ==29420== Releasing lock... [2025-03-22 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:54:05 [end_date_ymd] => 2025-03-22 12:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:54:05' and `end` < '2025-03-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-03-22 12:54:18] Production.INFO: count ==1327 [2025-03-22 12:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:54:05 - End Time 2025-03-22 12:54:05 [2025-03-22 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737651', 'tblTempUsageDetail_20' ) start [2025-03-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737651', 'tblTempUsageDetail_20' ) end [2025-03-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737651', 'tblTempVendorCDR_20' ) start [2025-03-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737651', 'tblTempVendorCDR_20' ) end [2025-03-22 12:54:18] Production.INFO: ProcessCDR(1,14737651,1,1,2) [2025-03-22 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737651', 'tblTempUsageDetail_20' ) start [2025-03-22 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737651', 'tblTempUsageDetail_20' ) end [2025-03-22 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:54:22] Production.INFO: ==29501== Releasing lock... [2025-03-22 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:54:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:55:05 [end_date_ymd] => 2025-03-22 12:55:05 [RateCDR] => 1 ) [2025-03-22 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:55:05' and `end` < '2025-03-22 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:55:17] Production.INFO: count ==1330 [2025-03-22 12:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:55:05 - End Time 2025-03-22 12:55:05 [2025-03-22 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737656', 'tblTempUsageDetail_20' ) start [2025-03-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737656', 'tblTempUsageDetail_20' ) end [2025-03-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737656', 'tblTempVendorCDR_20' ) start [2025-03-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737656', 'tblTempVendorCDR_20' ) end [2025-03-22 12:55:18] Production.INFO: ProcessCDR(1,14737656,1,1,2) [2025-03-22 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737656', 'tblTempUsageDetail_20' ) start [2025-03-22 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737656', 'tblTempUsageDetail_20' ) end [2025-03-22 12:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:55:21] Production.INFO: ==29581== Releasing lock... [2025-03-22 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:55:21] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:56:06 [end_date_ymd] => 2025-03-22 12:56:06 [RateCDR] => 1 ) [2025-03-22 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:56:06' and `end` < '2025-03-22 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:56:19] Production.INFO: count ==1330 [2025-03-22 12:56:19] Production.ERROR: pbx CDR StartTime 2025-03-22 09:56:06 - End Time 2025-03-22 12:56:06 [2025-03-22 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737661', 'tblTempUsageDetail_20' ) start [2025-03-22 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737661', 'tblTempUsageDetail_20' ) end [2025-03-22 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737661', 'tblTempVendorCDR_20' ) start [2025-03-22 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737661', 'tblTempVendorCDR_20' ) end [2025-03-22 12:56:19] Production.INFO: ProcessCDR(1,14737661,1,1,2) [2025-03-22 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737661', 'tblTempUsageDetail_20' ) start [2025-03-22 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737661', 'tblTempUsageDetail_20' ) end [2025-03-22 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:56:22] Production.INFO: ==29665== Releasing lock... [2025-03-22 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:56:22] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:57:05 [end_date_ymd] => 2025-03-22 12:57:05 [RateCDR] => 1 ) [2025-03-22 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:57:05' and `end` < '2025-03-22 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:57:18] Production.INFO: count ==1333 [2025-03-22 12:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:57:05 - End Time 2025-03-22 12:57:05 [2025-03-22 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737666', 'tblTempUsageDetail_20' ) start [2025-03-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737666', 'tblTempUsageDetail_20' ) end [2025-03-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737666', 'tblTempVendorCDR_20' ) start [2025-03-22 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737666', 'tblTempVendorCDR_20' ) end [2025-03-22 12:57:18] Production.INFO: ProcessCDR(1,14737666,1,1,2) [2025-03-22 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737666', 'tblTempUsageDetail_20' ) start [2025-03-22 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737666', 'tblTempUsageDetail_20' ) end [2025-03-22 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:57:23] Production.INFO: ==29752== Releasing lock... [2025-03-22 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:57:23] Production.INFO: 38 MB #Memory Used# [2025-03-22 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:58:06 [end_date_ymd] => 2025-03-22 12:58:06 [RateCDR] => 1 ) [2025-03-22 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 09:58:06' and `end` < '2025-03-22 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 12:58:18] Production.INFO: count ==1334 [2025-03-22 12:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:58:06 - End Time 2025-03-22 12:58:06 [2025-03-22 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737671', 'tblTempUsageDetail_20' ) start [2025-03-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737671', 'tblTempUsageDetail_20' ) end [2025-03-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737671', 'tblTempVendorCDR_20' ) start [2025-03-22 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737671', 'tblTempVendorCDR_20' ) end [2025-03-22 12:58:18] Production.INFO: ProcessCDR(1,14737671,1,1,2) [2025-03-22 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737671', 'tblTempUsageDetail_20' ) start [2025-03-22 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737671', 'tblTempUsageDetail_20' ) end [2025-03-22 12:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:58:24] Production.INFO: ==29836== Releasing lock... [2025-03-22 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:58:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 09:59:05 [end_date_ymd] => 2025-03-22 12:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 09:59:05' and `end` < '2025-03-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-03-22 12:59:17] Production.INFO: count ==1334 [2025-03-22 12:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 09:59:05 - End Time 2025-03-22 12:59:05 [2025-03-22 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737676', 'tblTempUsageDetail_20' ) start [2025-03-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737676', 'tblTempUsageDetail_20' ) end [2025-03-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737676', 'tblTempVendorCDR_20' ) start [2025-03-22 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737676', 'tblTempVendorCDR_20' ) end [2025-03-22 12:59:18] Production.INFO: ProcessCDR(1,14737676,1,1,2) [2025-03-22 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737676', 'tblTempUsageDetail_20' ) start [2025-03-22 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737676', 'tblTempUsageDetail_20' ) end [2025-03-22 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 12:59:21] Production.INFO: ==29927== Releasing lock... [2025-03-22 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 12:59:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:00:07 [end_date_ymd] => 2025-03-22 13:00:07 [RateCDR] => 1 ) [2025-03-22 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:00:07' and `end` < '2025-03-22 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:00:19] Production.INFO: count ==1338 [2025-03-22 13:00:20] Production.ERROR: pbx CDR StartTime 2025-03-22 10:00:07 - End Time 2025-03-22 13:00:07 [2025-03-22 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737682', 'tblTempUsageDetail_20' ) start [2025-03-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737682', 'tblTempUsageDetail_20' ) end [2025-03-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737682', 'tblTempVendorCDR_20' ) start [2025-03-22 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737682', 'tblTempVendorCDR_20' ) end [2025-03-22 13:00:20] Production.INFO: ProcessCDR(1,14737682,1,1,2) [2025-03-22 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737682', 'tblTempUsageDetail_20' ) start [2025-03-22 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737682', 'tblTempUsageDetail_20' ) end [2025-03-22 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:00:24] Production.INFO: ==30058== Releasing lock... [2025-03-22 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:00:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:01:05 [end_date_ymd] => 2025-03-22 13:01:05 [RateCDR] => 1 ) [2025-03-22 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:01:05' and `end` < '2025-03-22 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:01:17] Production.INFO: count ==1356 [2025-03-22 13:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:01:05 - End Time 2025-03-22 13:01:05 [2025-03-22 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737687', 'tblTempUsageDetail_20' ) start [2025-03-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737687', 'tblTempUsageDetail_20' ) end [2025-03-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737687', 'tblTempVendorCDR_20' ) start [2025-03-22 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737687', 'tblTempVendorCDR_20' ) end [2025-03-22 13:01:18] Production.INFO: ProcessCDR(1,14737687,1,1,2) [2025-03-22 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737687', 'tblTempUsageDetail_20' ) start [2025-03-22 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737687', 'tblTempUsageDetail_20' ) end [2025-03-22 13:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:01:22] Production.INFO: ==30161== Releasing lock... [2025-03-22 13:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:01:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:02:06 [end_date_ymd] => 2025-03-22 13:02:06 [RateCDR] => 1 ) [2025-03-22 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:02:06' and `end` < '2025-03-22 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:02:19] Production.INFO: count ==1353 [2025-03-22 13:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:02:06 - End Time 2025-03-22 13:02:06 [2025-03-22 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737692', 'tblTempUsageDetail_20' ) start [2025-03-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737692', 'tblTempUsageDetail_20' ) end [2025-03-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737692', 'tblTempVendorCDR_20' ) start [2025-03-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737692', 'tblTempVendorCDR_20' ) end [2025-03-22 13:02:19] Production.INFO: ProcessCDR(1,14737692,1,1,2) [2025-03-22 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737692', 'tblTempUsageDetail_20' ) start [2025-03-22 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737692', 'tblTempUsageDetail_20' ) end [2025-03-22 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:02:23] Production.INFO: ==30243== Releasing lock... [2025-03-22 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:02:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:03:06 [end_date_ymd] => 2025-03-22 13:03:06 [RateCDR] => 1 ) [2025-03-22 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:03:06' and `end` < '2025-03-22 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:03:18] Production.INFO: count ==1352 [2025-03-22 13:03:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:03:06 - End Time 2025-03-22 13:03:06 [2025-03-22 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737697', 'tblTempUsageDetail_20' ) start [2025-03-22 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737697', 'tblTempUsageDetail_20' ) end [2025-03-22 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737697', 'tblTempVendorCDR_20' ) start [2025-03-22 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737697', 'tblTempVendorCDR_20' ) end [2025-03-22 13:03:19] Production.INFO: ProcessCDR(1,14737697,1,1,2) [2025-03-22 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737697', 'tblTempUsageDetail_20' ) start [2025-03-22 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737697', 'tblTempUsageDetail_20' ) end [2025-03-22 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:03:23] Production.INFO: ==30327== Releasing lock... [2025-03-22 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:03:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:04:06 [end_date_ymd] => 2025-03-22 13:04:06 [RateCDR] => 1 ) [2025-03-22 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:04:06' and `end` < '2025-03-22 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:04:18] Production.INFO: count ==1340 [2025-03-22 13:04:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:04:06 - End Time 2025-03-22 13:04:06 [2025-03-22 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737702', 'tblTempUsageDetail_20' ) start [2025-03-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737702', 'tblTempUsageDetail_20' ) end [2025-03-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737702', 'tblTempVendorCDR_20' ) start [2025-03-22 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737702', 'tblTempVendorCDR_20' ) end [2025-03-22 13:04:19] Production.INFO: ProcessCDR(1,14737702,1,1,2) [2025-03-22 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737702', 'tblTempUsageDetail_20' ) start [2025-03-22 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737702', 'tblTempUsageDetail_20' ) end [2025-03-22 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:04:23] Production.INFO: ==30412== Releasing lock... [2025-03-22 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:05:05 [end_date_ymd] => 2025-03-22 13:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:05:05' and `end` < '2025-03-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-03-22 13:05:17] Production.INFO: count ==1332 [2025-03-22 13:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:05:05 - End Time 2025-03-22 13:05:05 [2025-03-22 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737707', 'tblTempUsageDetail_20' ) start [2025-03-22 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737707', 'tblTempUsageDetail_20' ) end [2025-03-22 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737707', 'tblTempVendorCDR_20' ) start [2025-03-22 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737707', 'tblTempVendorCDR_20' ) end [2025-03-22 13:05:18] Production.INFO: ProcessCDR(1,14737707,1,1,2) [2025-03-22 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737707', 'tblTempUsageDetail_20' ) start [2025-03-22 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737707', 'tblTempUsageDetail_20' ) end [2025-03-22 13:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:05:22] Production.INFO: ==30491== Releasing lock... [2025-03-22 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:05:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:06:06 [end_date_ymd] => 2025-03-22 13:06:06 [RateCDR] => 1 ) [2025-03-22 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:06:06' and `end` < '2025-03-22 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:06:18] Production.INFO: count ==1339 [2025-03-22 13:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:06:06 - End Time 2025-03-22 13:06:06 [2025-03-22 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737712', 'tblTempUsageDetail_20' ) start [2025-03-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737712', 'tblTempUsageDetail_20' ) end [2025-03-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737712', 'tblTempVendorCDR_20' ) start [2025-03-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737712', 'tblTempVendorCDR_20' ) end [2025-03-22 13:06:19] Production.INFO: ProcessCDR(1,14737712,1,1,2) [2025-03-22 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737712', 'tblTempUsageDetail_20' ) start [2025-03-22 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737712', 'tblTempUsageDetail_20' ) end [2025-03-22 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:06:23] Production.INFO: ==30582== Releasing lock... [2025-03-22 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:06:23] Production.INFO: 38 MB #Memory Used# [2025-03-22 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:07:06 [end_date_ymd] => 2025-03-22 13:07:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:07:06' and `end` < '2025-03-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-03-22 13:07:18] Production.INFO: count ==1336 [2025-03-22 13:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:07:06 - End Time 2025-03-22 13:07:06 [2025-03-22 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737717', 'tblTempUsageDetail_20' ) start [2025-03-22 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737717', 'tblTempUsageDetail_20' ) end [2025-03-22 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737717', 'tblTempVendorCDR_20' ) start [2025-03-22 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737717', 'tblTempVendorCDR_20' ) end [2025-03-22 13:07:18] Production.INFO: ProcessCDR(1,14737717,1,1,2) [2025-03-22 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737717', 'tblTempUsageDetail_20' ) start [2025-03-22 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737717', 'tblTempUsageDetail_20' ) end [2025-03-22 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:07:22] Production.INFO: ==30664== Releasing lock... [2025-03-22 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:07:22] Production.INFO: 38 MB #Memory Used# [2025-03-22 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:08:06 [end_date_ymd] => 2025-03-22 13:08:06 [RateCDR] => 1 ) [2025-03-22 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:08:06' and `end` < '2025-03-22 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:08:18] Production.INFO: count ==1336 [2025-03-22 13:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:08:06 - End Time 2025-03-22 13:08:06 [2025-03-22 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737722', 'tblTempUsageDetail_20' ) start [2025-03-22 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737722', 'tblTempUsageDetail_20' ) end [2025-03-22 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737722', 'tblTempVendorCDR_20' ) start [2025-03-22 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737722', 'tblTempVendorCDR_20' ) end [2025-03-22 13:08:19] Production.INFO: ProcessCDR(1,14737722,1,1,2) [2025-03-22 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737722', 'tblTempUsageDetail_20' ) start [2025-03-22 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737722', 'tblTempUsageDetail_20' ) end [2025-03-22 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:08:22] Production.INFO: ==30744== Releasing lock... [2025-03-22 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:08:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:09:06 [end_date_ymd] => 2025-03-22 13:09:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:09:06' and `end` < '2025-03-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-03-22 13:09:18] Production.INFO: count ==1342 [2025-03-22 13:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:09:06 - End Time 2025-03-22 13:09:06 [2025-03-22 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737727', 'tblTempUsageDetail_20' ) start [2025-03-22 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737727', 'tblTempUsageDetail_20' ) end [2025-03-22 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737727', 'tblTempVendorCDR_20' ) start [2025-03-22 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737727', 'tblTempVendorCDR_20' ) end [2025-03-22 13:09:19] Production.INFO: ProcessCDR(1,14737727,1,1,2) [2025-03-22 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737727', 'tblTempUsageDetail_20' ) start [2025-03-22 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737727', 'tblTempUsageDetail_20' ) end [2025-03-22 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:09:24] Production.INFO: ==30829== Releasing lock... [2025-03-22 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:09:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:10:07 [end_date_ymd] => 2025-03-22 13:10:07 [RateCDR] => 1 ) [2025-03-22 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:10:07' and `end` < '2025-03-22 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:10:19] Production.INFO: count ==1341 [2025-03-22 13:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:10:07 - End Time 2025-03-22 13:10:07 [2025-03-22 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737733', 'tblTempUsageDetail_20' ) start [2025-03-22 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737733', 'tblTempUsageDetail_20' ) end [2025-03-22 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737733', 'tblTempVendorCDR_20' ) start [2025-03-22 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737733', 'tblTempVendorCDR_20' ) end [2025-03-22 13:10:20] Production.INFO: ProcessCDR(1,14737733,1,1,2) [2025-03-22 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737733', 'tblTempUsageDetail_20' ) start [2025-03-22 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737733', 'tblTempUsageDetail_20' ) end [2025-03-22 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:10:25] Production.INFO: ==30918== Releasing lock... [2025-03-22 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:10:25] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:11:05 [end_date_ymd] => 2025-03-22 13:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:11:05' and `end` < '2025-03-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-03-22 13:11:17] Production.INFO: count ==1350 [2025-03-22 13:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:11:05 - End Time 2025-03-22 13:11:05 [2025-03-22 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737738', 'tblTempUsageDetail_20' ) start [2025-03-22 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737738', 'tblTempUsageDetail_20' ) end [2025-03-22 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737738', 'tblTempVendorCDR_20' ) start [2025-03-22 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737738', 'tblTempVendorCDR_20' ) end [2025-03-22 13:11:18] Production.INFO: ProcessCDR(1,14737738,1,1,2) [2025-03-22 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737738', 'tblTempUsageDetail_20' ) start [2025-03-22 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737738', 'tblTempUsageDetail_20' ) end [2025-03-22 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:11:24] Production.INFO: ==31002== Releasing lock... [2025-03-22 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:11:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:12:05 [end_date_ymd] => 2025-03-22 13:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:12:05' and `end` < '2025-03-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-03-22 13:12:18] Production.INFO: count ==1338 [2025-03-22 13:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:12:05 - End Time 2025-03-22 13:12:05 [2025-03-22 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737743', 'tblTempUsageDetail_20' ) start [2025-03-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737743', 'tblTempUsageDetail_20' ) end [2025-03-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737743', 'tblTempVendorCDR_20' ) start [2025-03-22 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737743', 'tblTempVendorCDR_20' ) end [2025-03-22 13:12:18] Production.INFO: ProcessCDR(1,14737743,1,1,2) [2025-03-22 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737743', 'tblTempUsageDetail_20' ) start [2025-03-22 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737743', 'tblTempUsageDetail_20' ) end [2025-03-22 13:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:12:22] Production.INFO: ==31086== Releasing lock... [2025-03-22 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:12:22] Production.INFO: 38 MB #Memory Used# [2025-03-22 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:13:05 [end_date_ymd] => 2025-03-22 13:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:13:05' and `end` < '2025-03-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-03-22 13:13:18] Production.INFO: count ==1328 [2025-03-22 13:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:13:05 - End Time 2025-03-22 13:13:05 [2025-03-22 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737748', 'tblTempUsageDetail_20' ) start [2025-03-22 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737748', 'tblTempUsageDetail_20' ) end [2025-03-22 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737748', 'tblTempVendorCDR_20' ) start [2025-03-22 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737748', 'tblTempVendorCDR_20' ) end [2025-03-22 13:13:18] Production.INFO: ProcessCDR(1,14737748,1,1,2) [2025-03-22 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737748', 'tblTempUsageDetail_20' ) start [2025-03-22 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737748', 'tblTempUsageDetail_20' ) end [2025-03-22 13:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:13:22] Production.INFO: ==31173== Releasing lock... [2025-03-22 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:13:22] Production.INFO: 38 MB #Memory Used# [2025-03-22 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:14:06 [end_date_ymd] => 2025-03-22 13:14:06 [RateCDR] => 1 ) [2025-03-22 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:14:06' and `end` < '2025-03-22 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:14:18] Production.INFO: count ==1327 [2025-03-22 13:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:14:06 - End Time 2025-03-22 13:14:06 [2025-03-22 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737753', 'tblTempUsageDetail_20' ) start [2025-03-22 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737753', 'tblTempUsageDetail_20' ) end [2025-03-22 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737753', 'tblTempVendorCDR_20' ) start [2025-03-22 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737753', 'tblTempVendorCDR_20' ) end [2025-03-22 13:14:19] Production.INFO: ProcessCDR(1,14737753,1,1,2) [2025-03-22 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737753', 'tblTempUsageDetail_20' ) start [2025-03-22 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737753', 'tblTempUsageDetail_20' ) end [2025-03-22 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:14:22] Production.INFO: ==31258== Releasing lock... [2025-03-22 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:14:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:15:05 [end_date_ymd] => 2025-03-22 13:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:15:05' and `end` < '2025-03-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-03-22 13:15:18] Production.INFO: count ==1330 [2025-03-22 13:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:15:05 - End Time 2025-03-22 13:15:05 [2025-03-22 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737758', 'tblTempUsageDetail_20' ) start [2025-03-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737758', 'tblTempUsageDetail_20' ) end [2025-03-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737758', 'tblTempVendorCDR_20' ) start [2025-03-22 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737758', 'tblTempVendorCDR_20' ) end [2025-03-22 13:15:18] Production.INFO: ProcessCDR(1,14737758,1,1,2) [2025-03-22 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737758', 'tblTempUsageDetail_20' ) start [2025-03-22 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737758', 'tblTempUsageDetail_20' ) end [2025-03-22 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:15:22] Production.INFO: ==31339== Releasing lock... [2025-03-22 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:16:06 [end_date_ymd] => 2025-03-22 13:16:06 [RateCDR] => 1 ) [2025-03-22 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:16:06' and `end` < '2025-03-22 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:16:19] Production.INFO: count ==1346 [2025-03-22 13:16:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:16:06 - End Time 2025-03-22 13:16:06 [2025-03-22 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737763', 'tblTempUsageDetail_20' ) start [2025-03-22 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737763', 'tblTempUsageDetail_20' ) end [2025-03-22 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737763', 'tblTempVendorCDR_20' ) start [2025-03-22 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737763', 'tblTempVendorCDR_20' ) end [2025-03-22 13:16:19] Production.INFO: ProcessCDR(1,14737763,1,1,2) [2025-03-22 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737763', 'tblTempUsageDetail_20' ) start [2025-03-22 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737763', 'tblTempUsageDetail_20' ) end [2025-03-22 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:16:23] Production.INFO: ==31458== Releasing lock... [2025-03-22 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:16:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:17:06 [end_date_ymd] => 2025-03-22 13:17:06 [RateCDR] => 1 ) [2025-03-22 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:17:06' and `end` < '2025-03-22 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:17:18] Production.INFO: count ==1372 [2025-03-22 13:17:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:17:06 - End Time 2025-03-22 13:17:06 [2025-03-22 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737768', 'tblTempUsageDetail_20' ) start [2025-03-22 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737768', 'tblTempUsageDetail_20' ) end [2025-03-22 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737768', 'tblTempVendorCDR_20' ) start [2025-03-22 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737768', 'tblTempVendorCDR_20' ) end [2025-03-22 13:17:19] Production.INFO: ProcessCDR(1,14737768,1,1,2) [2025-03-22 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737768', 'tblTempUsageDetail_20' ) start [2025-03-22 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737768', 'tblTempUsageDetail_20' ) end [2025-03-22 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:17:24] Production.INFO: ==31543== Releasing lock... [2025-03-22 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:17:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:18:06 [end_date_ymd] => 2025-03-22 13:18:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:18:06' and `end` < '2025-03-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-03-22 13:18:18] Production.INFO: count ==1368 [2025-03-22 13:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:18:06 - End Time 2025-03-22 13:18:06 [2025-03-22 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737773', 'tblTempUsageDetail_20' ) start [2025-03-22 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737773', 'tblTempUsageDetail_20' ) end [2025-03-22 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737773', 'tblTempVendorCDR_20' ) start [2025-03-22 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737773', 'tblTempVendorCDR_20' ) end [2025-03-22 13:18:19] Production.INFO: ProcessCDR(1,14737773,1,1,2) [2025-03-22 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737773', 'tblTempUsageDetail_20' ) start [2025-03-22 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737773', 'tblTempUsageDetail_20' ) end [2025-03-22 13:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:18:23] Production.INFO: ==31635== Releasing lock... [2025-03-22 13:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:18:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:19:05 [end_date_ymd] => 2025-03-22 13:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:19:05' and `end` < '2025-03-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-03-22 13:19:18] Production.INFO: count ==1373 [2025-03-22 13:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:19:05 - End Time 2025-03-22 13:19:05 [2025-03-22 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737778', 'tblTempUsageDetail_20' ) start [2025-03-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737778', 'tblTempUsageDetail_20' ) end [2025-03-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737778', 'tblTempVendorCDR_20' ) start [2025-03-22 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737778', 'tblTempVendorCDR_20' ) end [2025-03-22 13:19:18] Production.INFO: ProcessCDR(1,14737778,1,1,2) [2025-03-22 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737778', 'tblTempUsageDetail_20' ) start [2025-03-22 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737778', 'tblTempUsageDetail_20' ) end [2025-03-22 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:19:22] Production.INFO: ==31717== Releasing lock... [2025-03-22 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:20:07 [end_date_ymd] => 2025-03-22 13:20:07 [RateCDR] => 1 ) [2025-03-22 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:20:07' and `end` < '2025-03-22 13:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:20:20] Production.INFO: count ==1382 [2025-03-22 13:20:21] Production.ERROR: pbx CDR StartTime 2025-03-22 10:20:07 - End Time 2025-03-22 13:20:07 [2025-03-22 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737784', 'tblTempUsageDetail_20' ) start [2025-03-22 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737784', 'tblTempUsageDetail_20' ) end [2025-03-22 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737784', 'tblTempVendorCDR_20' ) start [2025-03-22 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737784', 'tblTempVendorCDR_20' ) end [2025-03-22 13:20:21] Production.INFO: ProcessCDR(1,14737784,1,1,2) [2025-03-22 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737784', 'tblTempUsageDetail_20' ) start [2025-03-22 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737784', 'tblTempUsageDetail_20' ) end [2025-03-22 13:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:20:25] Production.INFO: ==31805== Releasing lock... [2025-03-22 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:20:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:21:05 [end_date_ymd] => 2025-03-22 13:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:21:05' and `end` < '2025-03-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-03-22 13:21:18] Production.INFO: count ==1395 [2025-03-22 13:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:21:05 - End Time 2025-03-22 13:21:05 [2025-03-22 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737789', 'tblTempUsageDetail_20' ) start [2025-03-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737789', 'tblTempUsageDetail_20' ) end [2025-03-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737789', 'tblTempVendorCDR_20' ) start [2025-03-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737789', 'tblTempVendorCDR_20' ) end [2025-03-22 13:21:18] Production.INFO: ProcessCDR(1,14737789,1,1,2) [2025-03-22 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737789', 'tblTempUsageDetail_20' ) start [2025-03-22 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737789', 'tblTempUsageDetail_20' ) end [2025-03-22 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:21:24] Production.INFO: ==31886== Releasing lock... [2025-03-22 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:21:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:22:05 [end_date_ymd] => 2025-03-22 13:22:05 [RateCDR] => 1 ) [2025-03-22 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:22:05' and `end` < '2025-03-22 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:22:17] Production.INFO: count ==1422 [2025-03-22 13:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:22:05 - End Time 2025-03-22 13:22:05 [2025-03-22 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737794', 'tblTempUsageDetail_20' ) start [2025-03-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737794', 'tblTempUsageDetail_20' ) end [2025-03-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737794', 'tblTempVendorCDR_20' ) start [2025-03-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737794', 'tblTempVendorCDR_20' ) end [2025-03-22 13:22:18] Production.INFO: ProcessCDR(1,14737794,1,1,2) [2025-03-22 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737794', 'tblTempUsageDetail_20' ) start [2025-03-22 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737794', 'tblTempUsageDetail_20' ) end [2025-03-22 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:22:22] Production.INFO: ==31970== Releasing lock... [2025-03-22 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:23:05 [end_date_ymd] => 2025-03-22 13:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:23:05' and `end` < '2025-03-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-03-22 13:23:18] Production.INFO: count ==1416 [2025-03-22 13:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:23:05 - End Time 2025-03-22 13:23:05 [2025-03-22 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737799', 'tblTempUsageDetail_20' ) start [2025-03-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737799', 'tblTempUsageDetail_20' ) end [2025-03-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737799', 'tblTempVendorCDR_20' ) start [2025-03-22 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737799', 'tblTempVendorCDR_20' ) end [2025-03-22 13:23:18] Production.INFO: ProcessCDR(1,14737799,1,1,2) [2025-03-22 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737799', 'tblTempUsageDetail_20' ) start [2025-03-22 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737799', 'tblTempUsageDetail_20' ) end [2025-03-22 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:23:22] Production.INFO: ==32054== Releasing lock... [2025-03-22 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:23:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:24:05 [end_date_ymd] => 2025-03-22 13:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:24:05' and `end` < '2025-03-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-03-22 13:24:18] Production.INFO: count ==1416 [2025-03-22 13:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:24:05 - End Time 2025-03-22 13:24:05 [2025-03-22 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737804', 'tblTempUsageDetail_20' ) start [2025-03-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737804', 'tblTempUsageDetail_20' ) end [2025-03-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737804', 'tblTempVendorCDR_20' ) start [2025-03-22 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737804', 'tblTempVendorCDR_20' ) end [2025-03-22 13:24:18] Production.INFO: ProcessCDR(1,14737804,1,1,2) [2025-03-22 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737804', 'tblTempUsageDetail_20' ) start [2025-03-22 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737804', 'tblTempUsageDetail_20' ) end [2025-03-22 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:24:22] Production.INFO: ==32137== Releasing lock... [2025-03-22 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:25:05 [end_date_ymd] => 2025-03-22 13:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:25:05' and `end` < '2025-03-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-03-22 13:25:18] Production.INFO: count ==1409 [2025-03-22 13:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:25:05 - End Time 2025-03-22 13:25:05 [2025-03-22 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737809', 'tblTempUsageDetail_20' ) start [2025-03-22 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737809', 'tblTempUsageDetail_20' ) end [2025-03-22 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737809', 'tblTempVendorCDR_20' ) start [2025-03-22 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737809', 'tblTempVendorCDR_20' ) end [2025-03-22 13:25:19] Production.INFO: ProcessCDR(1,14737809,1,1,2) [2025-03-22 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737809', 'tblTempUsageDetail_20' ) start [2025-03-22 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737809', 'tblTempUsageDetail_20' ) end [2025-03-22 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:25:24] Production.INFO: ==32220== Releasing lock... [2025-03-22 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:25:24] Production.INFO: 39 MB #Memory Used# [2025-03-22 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:26:05 [end_date_ymd] => 2025-03-22 13:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:26:05' and `end` < '2025-03-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-03-22 13:26:17] Production.INFO: count ==1406 [2025-03-22 13:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:26:05 - End Time 2025-03-22 13:26:05 [2025-03-22 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737814', 'tblTempUsageDetail_20' ) start [2025-03-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737814', 'tblTempUsageDetail_20' ) end [2025-03-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737814', 'tblTempVendorCDR_20' ) start [2025-03-22 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737814', 'tblTempVendorCDR_20' ) end [2025-03-22 13:26:18] Production.INFO: ProcessCDR(1,14737814,1,1,2) [2025-03-22 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737814', 'tblTempUsageDetail_20' ) start [2025-03-22 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737814', 'tblTempUsageDetail_20' ) end [2025-03-22 13:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:26:21] Production.INFO: ==32308== Releasing lock... [2025-03-22 13:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:26:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:27:06 [end_date_ymd] => 2025-03-22 13:27:06 [RateCDR] => 1 ) [2025-03-22 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:27:06' and `end` < '2025-03-22 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:27:18] Production.INFO: count ==1420 [2025-03-22 13:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:27:06 - End Time 2025-03-22 13:27:06 [2025-03-22 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737819', 'tblTempUsageDetail_20' ) start [2025-03-22 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737819', 'tblTempUsageDetail_20' ) end [2025-03-22 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737819', 'tblTempVendorCDR_20' ) start [2025-03-22 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737819', 'tblTempVendorCDR_20' ) end [2025-03-22 13:27:19] Production.INFO: ProcessCDR(1,14737819,1,1,2) [2025-03-22 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737819', 'tblTempUsageDetail_20' ) start [2025-03-22 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737819', 'tblTempUsageDetail_20' ) end [2025-03-22 13:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:27:22] Production.INFO: ==32389== Releasing lock... [2025-03-22 13:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:27:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:28:05 [end_date_ymd] => 2025-03-22 13:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:28:05' and `end` < '2025-03-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-03-22 13:28:17] Production.INFO: count ==1427 [2025-03-22 13:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:28:05 - End Time 2025-03-22 13:28:05 [2025-03-22 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737824', 'tblTempUsageDetail_20' ) start [2025-03-22 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737824', 'tblTempUsageDetail_20' ) end [2025-03-22 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737824', 'tblTempVendorCDR_20' ) start [2025-03-22 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737824', 'tblTempVendorCDR_20' ) end [2025-03-22 13:28:18] Production.INFO: ProcessCDR(1,14737824,1,1,2) [2025-03-22 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737824', 'tblTempUsageDetail_20' ) start [2025-03-22 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737824', 'tblTempUsageDetail_20' ) end [2025-03-22 13:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:28:21] Production.INFO: ==32466== Releasing lock... [2025-03-22 13:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:29:06 [end_date_ymd] => 2025-03-22 13:29:06 [RateCDR] => 1 ) [2025-03-22 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:29:06' and `end` < '2025-03-22 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:29:18] Production.INFO: count ==1421 [2025-03-22 13:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:29:06 - End Time 2025-03-22 13:29:06 [2025-03-22 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737829', 'tblTempUsageDetail_20' ) start [2025-03-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737829', 'tblTempUsageDetail_20' ) end [2025-03-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737829', 'tblTempVendorCDR_20' ) start [2025-03-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737829', 'tblTempVendorCDR_20' ) end [2025-03-22 13:29:18] Production.INFO: ProcessCDR(1,14737829,1,1,2) [2025-03-22 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737829', 'tblTempUsageDetail_20' ) start [2025-03-22 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737829', 'tblTempUsageDetail_20' ) end [2025-03-22 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:29:22] Production.INFO: ==32543== Releasing lock... [2025-03-22 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:29:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:30:06 [end_date_ymd] => 2025-03-22 13:30:06 [RateCDR] => 1 ) [2025-03-22 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:30:06' and `end` < '2025-03-22 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:30:18] Production.INFO: count ==1413 [2025-03-22 13:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:30:06 - End Time 2025-03-22 13:30:06 [2025-03-22 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737835', 'tblTempUsageDetail_20' ) start [2025-03-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737835', 'tblTempUsageDetail_20' ) end [2025-03-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737835', 'tblTempVendorCDR_20' ) start [2025-03-22 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737835', 'tblTempVendorCDR_20' ) end [2025-03-22 13:30:19] Production.INFO: ProcessCDR(1,14737835,1,1,2) [2025-03-22 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737835', 'tblTempUsageDetail_20' ) start [2025-03-22 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737835', 'tblTempUsageDetail_20' ) end [2025-03-22 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:30:22] Production.INFO: ==32623== Releasing lock... [2025-03-22 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:30:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:31:05 [end_date_ymd] => 2025-03-22 13:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:31:05' and `end` < '2025-03-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-03-22 13:31:18] Production.INFO: count ==1403 [2025-03-22 13:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:31:05 - End Time 2025-03-22 13:31:05 [2025-03-22 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737840', 'tblTempUsageDetail_20' ) start [2025-03-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737840', 'tblTempUsageDetail_20' ) end [2025-03-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737840', 'tblTempVendorCDR_20' ) start [2025-03-22 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737840', 'tblTempVendorCDR_20' ) end [2025-03-22 13:31:18] Production.INFO: ProcessCDR(1,14737840,1,1,2) [2025-03-22 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737840', 'tblTempUsageDetail_20' ) start [2025-03-22 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737840', 'tblTempUsageDetail_20' ) end [2025-03-22 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:31:22] Production.INFO: ==32742== Releasing lock... [2025-03-22 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:32:05 [end_date_ymd] => 2025-03-22 13:32:05 [RateCDR] => 1 ) [2025-03-22 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:32:05' and `end` < '2025-03-22 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:32:18] Production.INFO: count ==1402 [2025-03-22 13:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:32:05 - End Time 2025-03-22 13:32:05 [2025-03-22 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737845', 'tblTempUsageDetail_20' ) start [2025-03-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737845', 'tblTempUsageDetail_20' ) end [2025-03-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737845', 'tblTempVendorCDR_20' ) start [2025-03-22 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737845', 'tblTempVendorCDR_20' ) end [2025-03-22 13:32:18] Production.INFO: ProcessCDR(1,14737845,1,1,2) [2025-03-22 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737845', 'tblTempUsageDetail_20' ) start [2025-03-22 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737845', 'tblTempUsageDetail_20' ) end [2025-03-22 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:32:22] Production.INFO: ==370== Releasing lock... [2025-03-22 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:32:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:33:05 [end_date_ymd] => 2025-03-22 13:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:33:05' and `end` < '2025-03-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-03-22 13:33:17] Production.INFO: count ==1404 [2025-03-22 13:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:33:05 - End Time 2025-03-22 13:33:05 [2025-03-22 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737850', 'tblTempUsageDetail_20' ) start [2025-03-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737850', 'tblTempUsageDetail_20' ) end [2025-03-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737850', 'tblTempVendorCDR_20' ) start [2025-03-22 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737850', 'tblTempVendorCDR_20' ) end [2025-03-22 13:33:18] Production.INFO: ProcessCDR(1,14737850,1,1,2) [2025-03-22 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737850', 'tblTempUsageDetail_20' ) start [2025-03-22 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737850', 'tblTempUsageDetail_20' ) end [2025-03-22 13:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:33:21] Production.INFO: ==449== Releasing lock... [2025-03-22 13:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:33:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:34:05 [end_date_ymd] => 2025-03-22 13:34:05 [RateCDR] => 1 ) [2025-03-22 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:34:05' and `end` < '2025-03-22 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:34:18] Production.INFO: count ==1404 [2025-03-22 13:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:34:05 - End Time 2025-03-22 13:34:05 [2025-03-22 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737855', 'tblTempUsageDetail_20' ) start [2025-03-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737855', 'tblTempUsageDetail_20' ) end [2025-03-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737855', 'tblTempVendorCDR_20' ) start [2025-03-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737855', 'tblTempVendorCDR_20' ) end [2025-03-22 13:34:18] Production.INFO: ProcessCDR(1,14737855,1,1,2) [2025-03-22 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737855', 'tblTempUsageDetail_20' ) start [2025-03-22 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737855', 'tblTempUsageDetail_20' ) end [2025-03-22 13:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:34:22] Production.INFO: ==526== Releasing lock... [2025-03-22 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:34:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:35:05 [end_date_ymd] => 2025-03-22 13:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:35:05' and `end` < '2025-03-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-03-22 13:35:17] Production.INFO: count ==1402 [2025-03-22 13:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:35:05 - End Time 2025-03-22 13:35:05 [2025-03-22 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737860', 'tblTempUsageDetail_20' ) start [2025-03-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737860', 'tblTempUsageDetail_20' ) end [2025-03-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737860', 'tblTempVendorCDR_20' ) start [2025-03-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737860', 'tblTempVendorCDR_20' ) end [2025-03-22 13:35:18] Production.INFO: ProcessCDR(1,14737860,1,1,2) [2025-03-22 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737860', 'tblTempUsageDetail_20' ) start [2025-03-22 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737860', 'tblTempUsageDetail_20' ) end [2025-03-22 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:35:23] Production.INFO: ==601== Releasing lock... [2025-03-22 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:36:06 [end_date_ymd] => 2025-03-22 13:36:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:36:06' and `end` < '2025-03-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-03-22 13:36:18] Production.INFO: count ==1403 [2025-03-22 13:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:36:06 - End Time 2025-03-22 13:36:06 [2025-03-22 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737865', 'tblTempUsageDetail_20' ) start [2025-03-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737865', 'tblTempUsageDetail_20' ) end [2025-03-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737865', 'tblTempVendorCDR_20' ) start [2025-03-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737865', 'tblTempVendorCDR_20' ) end [2025-03-22 13:36:18] Production.INFO: ProcessCDR(1,14737865,1,1,2) [2025-03-22 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737865', 'tblTempUsageDetail_20' ) start [2025-03-22 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737865', 'tblTempUsageDetail_20' ) end [2025-03-22 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:36:24] Production.INFO: ==706== Releasing lock... [2025-03-22 13:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:36:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:37:05 [end_date_ymd] => 2025-03-22 13:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:37:05' and `end` < '2025-03-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-03-22 13:37:17] Production.INFO: count ==1401 [2025-03-22 13:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:37:05 - End Time 2025-03-22 13:37:05 [2025-03-22 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737870', 'tblTempUsageDetail_20' ) start [2025-03-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737870', 'tblTempUsageDetail_20' ) end [2025-03-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737870', 'tblTempVendorCDR_20' ) start [2025-03-22 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737870', 'tblTempVendorCDR_20' ) end [2025-03-22 13:37:18] Production.INFO: ProcessCDR(1,14737870,1,1,2) [2025-03-22 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737870', 'tblTempUsageDetail_20' ) start [2025-03-22 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737870', 'tblTempUsageDetail_20' ) end [2025-03-22 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:37:23] Production.INFO: ==780== Releasing lock... [2025-03-22 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:37:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:38:06 [end_date_ymd] => 2025-03-22 13:38:06 [RateCDR] => 1 ) [2025-03-22 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:38:06' and `end` < '2025-03-22 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:38:18] Production.INFO: count ==1401 [2025-03-22 13:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:38:06 - End Time 2025-03-22 13:38:06 [2025-03-22 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737875', 'tblTempUsageDetail_20' ) start [2025-03-22 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737875', 'tblTempUsageDetail_20' ) end [2025-03-22 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737875', 'tblTempVendorCDR_20' ) start [2025-03-22 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737875', 'tblTempVendorCDR_20' ) end [2025-03-22 13:38:19] Production.INFO: ProcessCDR(1,14737875,1,1,2) [2025-03-22 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737875', 'tblTempUsageDetail_20' ) start [2025-03-22 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737875', 'tblTempUsageDetail_20' ) end [2025-03-22 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:38:24] Production.INFO: ==856== Releasing lock... [2025-03-22 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:38:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:39:05 [end_date_ymd] => 2025-03-22 13:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:39:05' and `end` < '2025-03-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-03-22 13:39:17] Production.INFO: count ==1400 [2025-03-22 13:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:39:05 - End Time 2025-03-22 13:39:05 [2025-03-22 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737880', 'tblTempUsageDetail_20' ) start [2025-03-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737880', 'tblTempUsageDetail_20' ) end [2025-03-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737880', 'tblTempVendorCDR_20' ) start [2025-03-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737880', 'tblTempVendorCDR_20' ) end [2025-03-22 13:39:18] Production.INFO: ProcessCDR(1,14737880,1,1,2) [2025-03-22 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737880', 'tblTempUsageDetail_20' ) start [2025-03-22 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737880', 'tblTempUsageDetail_20' ) end [2025-03-22 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:39:21] Production.INFO: ==930== Releasing lock... [2025-03-22 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:39:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:40:06 [end_date_ymd] => 2025-03-22 13:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:40:06' and `end` < '2025-03-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-03-22 13:40:18] Production.INFO: count ==1408 [2025-03-22 13:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:40:06 - End Time 2025-03-22 13:40:06 [2025-03-22 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737886', 'tblTempUsageDetail_20' ) start [2025-03-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737886', 'tblTempUsageDetail_20' ) end [2025-03-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737886', 'tblTempVendorCDR_20' ) start [2025-03-22 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737886', 'tblTempVendorCDR_20' ) end [2025-03-22 13:40:19] Production.INFO: ProcessCDR(1,14737886,1,1,2) [2025-03-22 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737886', 'tblTempUsageDetail_20' ) start [2025-03-22 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737886', 'tblTempUsageDetail_20' ) end [2025-03-22 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:40:24] Production.INFO: ==1004== Releasing lock... [2025-03-22 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:40:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:41:05 [end_date_ymd] => 2025-03-22 13:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:41:05' and `end` < '2025-03-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-03-22 13:41:17] Production.INFO: count ==1434 [2025-03-22 13:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:41:05 - End Time 2025-03-22 13:41:05 [2025-03-22 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737891', 'tblTempUsageDetail_20' ) start [2025-03-22 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737891', 'tblTempUsageDetail_20' ) end [2025-03-22 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737891', 'tblTempVendorCDR_20' ) start [2025-03-22 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737891', 'tblTempVendorCDR_20' ) end [2025-03-22 13:41:18] Production.INFO: ProcessCDR(1,14737891,1,1,2) [2025-03-22 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737891', 'tblTempUsageDetail_20' ) start [2025-03-22 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737891', 'tblTempUsageDetail_20' ) end [2025-03-22 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:41:22] Production.INFO: ==1079== Releasing lock... [2025-03-22 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:42:05 [end_date_ymd] => 2025-03-22 13:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:42:05' and `end` < '2025-03-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-03-22 13:42:18] Production.INFO: count ==1430 [2025-03-22 13:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:42:05 - End Time 2025-03-22 13:42:05 [2025-03-22 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737896', 'tblTempUsageDetail_20' ) start [2025-03-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737896', 'tblTempUsageDetail_20' ) end [2025-03-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737896', 'tblTempVendorCDR_20' ) start [2025-03-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737896', 'tblTempVendorCDR_20' ) end [2025-03-22 13:42:18] Production.INFO: ProcessCDR(1,14737896,1,1,2) [2025-03-22 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737896', 'tblTempUsageDetail_20' ) start [2025-03-22 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737896', 'tblTempUsageDetail_20' ) end [2025-03-22 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:42:24] Production.INFO: ==1155== Releasing lock... [2025-03-22 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:42:24] Production.INFO: 39 MB #Memory Used# [2025-03-22 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:43:05 [end_date_ymd] => 2025-03-22 13:43:05 [RateCDR] => 1 ) [2025-03-22 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:43:05' and `end` < '2025-03-22 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:43:17] Production.INFO: count ==1428 [2025-03-22 13:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:43:05 - End Time 2025-03-22 13:43:05 [2025-03-22 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737901', 'tblTempUsageDetail_20' ) start [2025-03-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737901', 'tblTempUsageDetail_20' ) end [2025-03-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737901', 'tblTempVendorCDR_20' ) start [2025-03-22 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737901', 'tblTempVendorCDR_20' ) end [2025-03-22 13:43:18] Production.INFO: ProcessCDR(1,14737901,1,1,2) [2025-03-22 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737901', 'tblTempUsageDetail_20' ) start [2025-03-22 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737901', 'tblTempUsageDetail_20' ) end [2025-03-22 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:43:21] Production.INFO: ==1233== Releasing lock... [2025-03-22 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:43:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:44:05 [end_date_ymd] => 2025-03-22 13:44:05 [RateCDR] => 1 ) [2025-03-22 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:44:05' and `end` < '2025-03-22 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:44:18] Production.INFO: count ==1430 [2025-03-22 13:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:44:05 - End Time 2025-03-22 13:44:05 [2025-03-22 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737906', 'tblTempUsageDetail_20' ) start [2025-03-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737906', 'tblTempUsageDetail_20' ) end [2025-03-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737906', 'tblTempVendorCDR_20' ) start [2025-03-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737906', 'tblTempVendorCDR_20' ) end [2025-03-22 13:44:18] Production.INFO: ProcessCDR(1,14737906,1,1,2) [2025-03-22 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737906', 'tblTempUsageDetail_20' ) start [2025-03-22 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737906', 'tblTempUsageDetail_20' ) end [2025-03-22 13:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:44:21] Production.INFO: ==1321== Releasing lock... [2025-03-22 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:44:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:45:06 [end_date_ymd] => 2025-03-22 13:45:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:45:06' and `end` < '2025-03-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-03-22 13:45:18] Production.INFO: count ==1433 [2025-03-22 13:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:45:06 - End Time 2025-03-22 13:45:06 [2025-03-22 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737911', 'tblTempUsageDetail_20' ) start [2025-03-22 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737911', 'tblTempUsageDetail_20' ) end [2025-03-22 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737911', 'tblTempVendorCDR_20' ) start [2025-03-22 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737911', 'tblTempVendorCDR_20' ) end [2025-03-22 13:45:18] Production.INFO: ProcessCDR(1,14737911,1,1,2) [2025-03-22 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737911', 'tblTempUsageDetail_20' ) start [2025-03-22 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737911', 'tblTempUsageDetail_20' ) end [2025-03-22 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:45:22] Production.INFO: ==1399== Releasing lock... [2025-03-22 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:45:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:46:05 [end_date_ymd] => 2025-03-22 13:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:46:05' and `end` < '2025-03-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-03-22 13:46:18] Production.INFO: count ==1439 [2025-03-22 13:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:46:05 - End Time 2025-03-22 13:46:05 [2025-03-22 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737916', 'tblTempUsageDetail_20' ) start [2025-03-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737916', 'tblTempUsageDetail_20' ) end [2025-03-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737916', 'tblTempVendorCDR_20' ) start [2025-03-22 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737916', 'tblTempVendorCDR_20' ) end [2025-03-22 13:46:18] Production.INFO: ProcessCDR(1,14737916,1,1,2) [2025-03-22 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737916', 'tblTempUsageDetail_20' ) start [2025-03-22 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737916', 'tblTempUsageDetail_20' ) end [2025-03-22 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:46:23] Production.INFO: ==1542== Releasing lock... [2025-03-22 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:46:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:47:05 [end_date_ymd] => 2025-03-22 13:47:05 [RateCDR] => 1 ) [2025-03-22 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:47:05' and `end` < '2025-03-22 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:47:18] Production.INFO: count ==1440 [2025-03-22 13:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:47:05 - End Time 2025-03-22 13:47:05 [2025-03-22 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737921', 'tblTempUsageDetail_20' ) start [2025-03-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737921', 'tblTempUsageDetail_20' ) end [2025-03-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737921', 'tblTempVendorCDR_20' ) start [2025-03-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737921', 'tblTempVendorCDR_20' ) end [2025-03-22 13:47:18] Production.INFO: ProcessCDR(1,14737921,1,1,2) [2025-03-22 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737921', 'tblTempUsageDetail_20' ) start [2025-03-22 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737921', 'tblTempUsageDetail_20' ) end [2025-03-22 13:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:47:21] Production.INFO: ==1618== Releasing lock... [2025-03-22 13:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:47:21] Production.INFO: 39 MB #Memory Used# [2025-03-22 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:48:05 [end_date_ymd] => 2025-03-22 13:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:48:05' and `end` < '2025-03-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-03-22 13:48:18] Production.INFO: count ==1549 [2025-03-22 13:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:48:05 - End Time 2025-03-22 13:48:05 [2025-03-22 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737926', 'tblTempUsageDetail_20' ) start [2025-03-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737926', 'tblTempUsageDetail_20' ) end [2025-03-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737926', 'tblTempVendorCDR_20' ) start [2025-03-22 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737926', 'tblTempVendorCDR_20' ) end [2025-03-22 13:48:18] Production.INFO: ProcessCDR(1,14737926,1,1,2) [2025-03-22 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737926', 'tblTempUsageDetail_20' ) start [2025-03-22 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737926', 'tblTempUsageDetail_20' ) end [2025-03-22 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:48:22] Production.INFO: ==1690== Releasing lock... [2025-03-22 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:49:06 [end_date_ymd] => 2025-03-22 13:49:06 [RateCDR] => 1 ) [2025-03-22 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:49:06' and `end` < '2025-03-22 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:49:18] Production.INFO: count ==1568 [2025-03-22 13:49:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:49:06 - End Time 2025-03-22 13:49:06 [2025-03-22 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737931', 'tblTempUsageDetail_20' ) start [2025-03-22 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737931', 'tblTempUsageDetail_20' ) end [2025-03-22 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737931', 'tblTempVendorCDR_20' ) start [2025-03-22 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737931', 'tblTempVendorCDR_20' ) end [2025-03-22 13:49:19] Production.INFO: ProcessCDR(1,14737931,1,1,2) [2025-03-22 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737931', 'tblTempUsageDetail_20' ) start [2025-03-22 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737931', 'tblTempUsageDetail_20' ) end [2025-03-22 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:49:24] Production.INFO: ==1768== Releasing lock... [2025-03-22 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:49:24] Production.INFO: 40 MB #Memory Used# [2025-03-22 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:50:06 [end_date_ymd] => 2025-03-22 13:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 10:50:06' and `end` < '2025-03-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-03-22 13:50:18] Production.INFO: count ==1557 [2025-03-22 13:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:50:06 - End Time 2025-03-22 13:50:06 [2025-03-22 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737936', 'tblTempUsageDetail_20' ) start [2025-03-22 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737936', 'tblTempUsageDetail_20' ) end [2025-03-22 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737936', 'tblTempVendorCDR_20' ) start [2025-03-22 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737936', 'tblTempVendorCDR_20' ) end [2025-03-22 13:50:19] Production.INFO: ProcessCDR(1,14737936,1,1,2) [2025-03-22 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737936', 'tblTempUsageDetail_20' ) start [2025-03-22 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737936', 'tblTempUsageDetail_20' ) end [2025-03-22 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:50:24] Production.INFO: ==1847== Releasing lock... [2025-03-22 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:51:06 [end_date_ymd] => 2025-03-22 13:51:06 [RateCDR] => 1 ) [2025-03-22 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:51:06' and `end` < '2025-03-22 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:51:18] Production.INFO: count ==1566 [2025-03-22 13:51:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:51:06 - End Time 2025-03-22 13:51:06 [2025-03-22 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737942', 'tblTempUsageDetail_20' ) start [2025-03-22 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737942', 'tblTempUsageDetail_20' ) end [2025-03-22 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737942', 'tblTempVendorCDR_20' ) start [2025-03-22 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737942', 'tblTempVendorCDR_20' ) end [2025-03-22 13:51:19] Production.INFO: ProcessCDR(1,14737942,1,1,2) [2025-03-22 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737942', 'tblTempUsageDetail_20' ) start [2025-03-22 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737942', 'tblTempUsageDetail_20' ) end [2025-03-22 13:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:51:24] Production.INFO: ==1924== Releasing lock... [2025-03-22 13:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:51:24] Production.INFO: 40 MB #Memory Used# [2025-03-22 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:52:05 [end_date_ymd] => 2025-03-22 13:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:52:05' and `end` < '2025-03-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-03-22 13:52:17] Production.INFO: count ==1566 [2025-03-22 13:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:52:05 - End Time 2025-03-22 13:52:05 [2025-03-22 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737947', 'tblTempUsageDetail_20' ) start [2025-03-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737947', 'tblTempUsageDetail_20' ) end [2025-03-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737947', 'tblTempVendorCDR_20' ) start [2025-03-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737947', 'tblTempVendorCDR_20' ) end [2025-03-22 13:52:18] Production.INFO: ProcessCDR(1,14737947,1,1,2) [2025-03-22 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737947', 'tblTempUsageDetail_20' ) start [2025-03-22 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737947', 'tblTempUsageDetail_20' ) end [2025-03-22 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:52:23] Production.INFO: ==1997== Releasing lock... [2025-03-22 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:52:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:53:05 [end_date_ymd] => 2025-03-22 13:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:53:05' and `end` < '2025-03-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-03-22 13:53:17] Production.INFO: count ==1571 [2025-03-22 13:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:53:05 - End Time 2025-03-22 13:53:05 [2025-03-22 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737952', 'tblTempUsageDetail_20' ) start [2025-03-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737952', 'tblTempUsageDetail_20' ) end [2025-03-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737952', 'tblTempVendorCDR_20' ) start [2025-03-22 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737952', 'tblTempVendorCDR_20' ) end [2025-03-22 13:53:18] Production.INFO: ProcessCDR(1,14737952,1,1,2) [2025-03-22 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737952', 'tblTempUsageDetail_20' ) start [2025-03-22 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737952', 'tblTempUsageDetail_20' ) end [2025-03-22 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:53:23] Production.INFO: ==2067== Releasing lock... [2025-03-22 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:53:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:54:05 [end_date_ymd] => 2025-03-22 13:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:54:05' and `end` < '2025-03-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-03-22 13:54:17] Production.INFO: count ==1570 [2025-03-22 13:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:54:05 - End Time 2025-03-22 13:54:05 [2025-03-22 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737957', 'tblTempUsageDetail_20' ) start [2025-03-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737957', 'tblTempUsageDetail_20' ) end [2025-03-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737957', 'tblTempVendorCDR_20' ) start [2025-03-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737957', 'tblTempVendorCDR_20' ) end [2025-03-22 13:54:18] Production.INFO: ProcessCDR(1,14737957,1,1,2) [2025-03-22 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737957', 'tblTempUsageDetail_20' ) start [2025-03-22 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737957', 'tblTempUsageDetail_20' ) end [2025-03-22 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:54:23] Production.INFO: ==2139== Releasing lock... [2025-03-22 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:54:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:55:05 [end_date_ymd] => 2025-03-22 13:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:55:05' and `end` < '2025-03-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-03-22 13:55:18] Production.INFO: count ==1570 [2025-03-22 13:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:55:05 - End Time 2025-03-22 13:55:05 [2025-03-22 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737962', 'tblTempUsageDetail_20' ) start [2025-03-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737962', 'tblTempUsageDetail_20' ) end [2025-03-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737962', 'tblTempVendorCDR_20' ) start [2025-03-22 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737962', 'tblTempVendorCDR_20' ) end [2025-03-22 13:55:18] Production.INFO: ProcessCDR(1,14737962,1,1,2) [2025-03-22 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737962', 'tblTempUsageDetail_20' ) start [2025-03-22 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737962', 'tblTempUsageDetail_20' ) end [2025-03-22 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:55:23] Production.INFO: ==2215== Releasing lock... [2025-03-22 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:55:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:56:05 [end_date_ymd] => 2025-03-22 13:56:05 [RateCDR] => 1 ) [2025-03-22 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:56:05' and `end` < '2025-03-22 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:56:17] Production.INFO: count ==1566 [2025-03-22 13:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:56:05 - End Time 2025-03-22 13:56:05 [2025-03-22 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737967', 'tblTempUsageDetail_20' ) start [2025-03-22 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737967', 'tblTempUsageDetail_20' ) end [2025-03-22 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737967', 'tblTempVendorCDR_20' ) start [2025-03-22 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737967', 'tblTempVendorCDR_20' ) end [2025-03-22 13:56:18] Production.INFO: ProcessCDR(1,14737967,1,1,2) [2025-03-22 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737967', 'tblTempUsageDetail_20' ) start [2025-03-22 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737967', 'tblTempUsageDetail_20' ) end [2025-03-22 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:56:23] Production.INFO: ==2286== Releasing lock... [2025-03-22 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:56:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:57:05 [end_date_ymd] => 2025-03-22 13:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:57:05' and `end` < '2025-03-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-03-22 13:57:18] Production.INFO: count ==1565 [2025-03-22 13:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:57:05 - End Time 2025-03-22 13:57:05 [2025-03-22 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737972', 'tblTempUsageDetail_20' ) start [2025-03-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737972', 'tblTempUsageDetail_20' ) end [2025-03-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737972', 'tblTempVendorCDR_20' ) start [2025-03-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737972', 'tblTempVendorCDR_20' ) end [2025-03-22 13:57:18] Production.INFO: ProcessCDR(1,14737972,1,1,2) [2025-03-22 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737972', 'tblTempUsageDetail_20' ) start [2025-03-22 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737972', 'tblTempUsageDetail_20' ) end [2025-03-22 13:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:57:21] Production.INFO: ==2360== Releasing lock... [2025-03-22 13:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:57:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:58:05 [end_date_ymd] => 2025-03-22 13:58:05 [RateCDR] => 1 ) [2025-03-22 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 10:58:05' and `end` < '2025-03-22 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 13:58:18] Production.INFO: count ==1568 [2025-03-22 13:58:19] Production.ERROR: pbx CDR StartTime 2025-03-22 10:58:05 - End Time 2025-03-22 13:58:05 [2025-03-22 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737977', 'tblTempUsageDetail_20' ) start [2025-03-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737977', 'tblTempUsageDetail_20' ) end [2025-03-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737977', 'tblTempVendorCDR_20' ) start [2025-03-22 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737977', 'tblTempVendorCDR_20' ) end [2025-03-22 13:58:19] Production.INFO: ProcessCDR(1,14737977,1,1,2) [2025-03-22 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737977', 'tblTempUsageDetail_20' ) start [2025-03-22 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737977', 'tblTempUsageDetail_20' ) end [2025-03-22 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:58:23] Production.INFO: ==2433== Releasing lock... [2025-03-22 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:58:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 10:59:05 [end_date_ymd] => 2025-03-22 13:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 10:59:05' and `end` < '2025-03-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-03-22 13:59:17] Production.INFO: count ==1565 [2025-03-22 13:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 10:59:05 - End Time 2025-03-22 13:59:05 [2025-03-22 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737982', 'tblTempUsageDetail_20' ) start [2025-03-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737982', 'tblTempUsageDetail_20' ) end [2025-03-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737982', 'tblTempVendorCDR_20' ) start [2025-03-22 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737982', 'tblTempVendorCDR_20' ) end [2025-03-22 13:59:18] Production.INFO: ProcessCDR(1,14737982,1,1,2) [2025-03-22 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737982', 'tblTempUsageDetail_20' ) start [2025-03-22 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737982', 'tblTempUsageDetail_20' ) end [2025-03-22 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 13:59:24] Production.INFO: ==2504== Releasing lock... [2025-03-22 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 13:59:24] Production.INFO: 40 MB #Memory Used# [2025-03-22 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:00:06 [end_date_ymd] => 2025-03-22 14:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 11:00:06' and `end` < '2025-03-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-03-22 14:00:19] Production.INFO: count ==1570 [2025-03-22 14:00:20] Production.ERROR: pbx CDR StartTime 2025-03-22 11:00:06 - End Time 2025-03-22 14:00:06 [2025-03-22 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737988', 'tblTempUsageDetail_20' ) start [2025-03-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737988', 'tblTempUsageDetail_20' ) end [2025-03-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737988', 'tblTempVendorCDR_20' ) start [2025-03-22 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737988', 'tblTempVendorCDR_20' ) end [2025-03-22 14:00:20] Production.INFO: ProcessCDR(1,14737988,1,1,2) [2025-03-22 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737988', 'tblTempUsageDetail_20' ) start [2025-03-22 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737988', 'tblTempUsageDetail_20' ) end [2025-03-22 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:00:23] Production.INFO: ==2578== Releasing lock... [2025-03-22 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:00:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:01:05 [end_date_ymd] => 2025-03-22 14:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:01:05' and `end` < '2025-03-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-03-22 14:01:18] Production.INFO: count ==1589 [2025-03-22 14:01:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:01:05 - End Time 2025-03-22 14:01:05 [2025-03-22 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737992', 'tblTempUsageDetail_20' ) start [2025-03-22 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737992', 'tblTempUsageDetail_20' ) end [2025-03-22 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737992', 'tblTempVendorCDR_20' ) start [2025-03-22 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737992', 'tblTempVendorCDR_20' ) end [2025-03-22 14:01:19] Production.INFO: ProcessCDR(1,14737992,1,1,2) [2025-03-22 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737992', 'tblTempUsageDetail_20' ) start [2025-03-22 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737992', 'tblTempUsageDetail_20' ) end [2025-03-22 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:01:22] Production.INFO: ==2667== Releasing lock... [2025-03-22 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:01:22] Production.INFO: 40 MB #Memory Used# [2025-03-22 14:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:02:07 [end_date_ymd] => 2025-03-22 14:02:07 [RateCDR] => 1 ) [2025-03-22 14:02:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:02:07' and `end` < '2025-03-22 14:02:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:02:19] Production.INFO: count ==1590 [2025-03-22 14:02:20] Production.ERROR: pbx CDR StartTime 2025-03-22 11:02:07 - End Time 2025-03-22 14:02:07 [2025-03-22 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737998', 'tblTempUsageDetail_20' ) start [2025-03-22 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14737998', 'tblTempUsageDetail_20' ) end [2025-03-22 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737998', 'tblTempVendorCDR_20' ) start [2025-03-22 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14737998', 'tblTempVendorCDR_20' ) end [2025-03-22 14:02:20] Production.INFO: ProcessCDR(1,14737998,1,1,2) [2025-03-22 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14737998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14737998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14737998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14737998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737998', 'tblTempUsageDetail_20' ) start [2025-03-22 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14737998', 'tblTempUsageDetail_20' ) end [2025-03-22 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:02:23] Production.INFO: ==2781== Releasing lock... [2025-03-22 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:02:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:03:05 [end_date_ymd] => 2025-03-22 14:03:05 [RateCDR] => 1 ) [2025-03-22 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:03:05' and `end` < '2025-03-22 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:03:17] Production.INFO: count ==1593 [2025-03-22 14:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:03:05 - End Time 2025-03-22 14:03:05 [2025-03-22 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738003', 'tblTempUsageDetail_20' ) start [2025-03-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738003', 'tblTempUsageDetail_20' ) end [2025-03-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738003', 'tblTempVendorCDR_20' ) start [2025-03-22 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738003', 'tblTempVendorCDR_20' ) end [2025-03-22 14:03:18] Production.INFO: ProcessCDR(1,14738003,1,1,2) [2025-03-22 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738003', 'tblTempUsageDetail_20' ) start [2025-03-22 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738003', 'tblTempUsageDetail_20' ) end [2025-03-22 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:03:22] Production.INFO: ==2850== Releasing lock... [2025-03-22 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:03:22] Production.INFO: 40 MB #Memory Used# [2025-03-22 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:04:06 [end_date_ymd] => 2025-03-22 14:04:06 [RateCDR] => 1 ) [2025-03-22 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:04:06' and `end` < '2025-03-22 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:04:19] Production.INFO: count ==1595 [2025-03-22 14:04:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:04:06 - End Time 2025-03-22 14:04:06 [2025-03-22 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738008', 'tblTempUsageDetail_20' ) start [2025-03-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738008', 'tblTempUsageDetail_20' ) end [2025-03-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738008', 'tblTempVendorCDR_20' ) start [2025-03-22 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738008', 'tblTempVendorCDR_20' ) end [2025-03-22 14:04:19] Production.INFO: ProcessCDR(1,14738008,1,1,2) [2025-03-22 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738008', 'tblTempUsageDetail_20' ) start [2025-03-22 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738008', 'tblTempUsageDetail_20' ) end [2025-03-22 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:04:23] Production.INFO: ==2929== Releasing lock... [2025-03-22 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:04:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:05:05 [end_date_ymd] => 2025-03-22 14:05:05 [RateCDR] => 1 ) [2025-03-22 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:05:05' and `end` < '2025-03-22 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:05:17] Production.INFO: count ==1842 [2025-03-22 14:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:05:05 - End Time 2025-03-22 14:05:05 [2025-03-22 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738013', 'tblTempUsageDetail_20' ) start [2025-03-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738013', 'tblTempUsageDetail_20' ) end [2025-03-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738013', 'tblTempVendorCDR_20' ) start [2025-03-22 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738013', 'tblTempVendorCDR_20' ) end [2025-03-22 14:05:18] Production.INFO: ProcessCDR(1,14738013,1,1,2) [2025-03-22 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738013', 'tblTempUsageDetail_20' ) start [2025-03-22 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738013', 'tblTempUsageDetail_20' ) end [2025-03-22 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:05:22] Production.INFO: ==3001== Releasing lock... [2025-03-22 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:05:22] Production.INFO: 42 MB #Memory Used# [2025-03-22 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:06:06 [end_date_ymd] => 2025-03-22 14:06:06 [RateCDR] => 1 ) [2025-03-22 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:06:06' and `end` < '2025-03-22 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:06:18] Production.INFO: count ==1839 [2025-03-22 14:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:06:06 - End Time 2025-03-22 14:06:06 [2025-03-22 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738018', 'tblTempUsageDetail_20' ) start [2025-03-22 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738018', 'tblTempUsageDetail_20' ) end [2025-03-22 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738018', 'tblTempVendorCDR_20' ) start [2025-03-22 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738018', 'tblTempVendorCDR_20' ) end [2025-03-22 14:06:19] Production.INFO: ProcessCDR(1,14738018,1,1,2) [2025-03-22 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738018', 'tblTempUsageDetail_20' ) start [2025-03-22 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738018', 'tblTempUsageDetail_20' ) end [2025-03-22 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:06:24] Production.INFO: ==3072== Releasing lock... [2025-03-22 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:06:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:07:05 [end_date_ymd] => 2025-03-22 14:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:07:05' and `end` < '2025-03-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-03-22 14:07:17] Production.INFO: count ==1837 [2025-03-22 14:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:07:05 - End Time 2025-03-22 14:07:05 [2025-03-22 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738023', 'tblTempUsageDetail_20' ) start [2025-03-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738023', 'tblTempUsageDetail_20' ) end [2025-03-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738023', 'tblTempVendorCDR_20' ) start [2025-03-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738023', 'tblTempVendorCDR_20' ) end [2025-03-22 14:07:18] Production.INFO: ProcessCDR(1,14738023,1,1,2) [2025-03-22 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738023', 'tblTempUsageDetail_20' ) start [2025-03-22 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738023', 'tblTempUsageDetail_20' ) end [2025-03-22 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:07:23] Production.INFO: ==3149== Releasing lock... [2025-03-22 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:08:06 [end_date_ymd] => 2025-03-22 14:08:06 [RateCDR] => 1 ) [2025-03-22 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:08:06' and `end` < '2025-03-22 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:08:18] Production.INFO: count ==1842 [2025-03-22 14:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:08:06 - End Time 2025-03-22 14:08:06 [2025-03-22 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738028', 'tblTempUsageDetail_20' ) start [2025-03-22 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738028', 'tblTempUsageDetail_20' ) end [2025-03-22 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738028', 'tblTempVendorCDR_20' ) start [2025-03-22 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738028', 'tblTempVendorCDR_20' ) end [2025-03-22 14:08:19] Production.INFO: ProcessCDR(1,14738028,1,1,2) [2025-03-22 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738028', 'tblTempUsageDetail_20' ) start [2025-03-22 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738028', 'tblTempUsageDetail_20' ) end [2025-03-22 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:08:22] Production.INFO: ==3226== Releasing lock... [2025-03-22 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:09:05 [end_date_ymd] => 2025-03-22 14:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:09:05' and `end` < '2025-03-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-03-22 14:09:18] Production.INFO: count ==1841 [2025-03-22 14:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:09:05 - End Time 2025-03-22 14:09:05 [2025-03-22 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738033', 'tblTempUsageDetail_20' ) start [2025-03-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738033', 'tblTempUsageDetail_20' ) end [2025-03-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738033', 'tblTempVendorCDR_20' ) start [2025-03-22 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738033', 'tblTempVendorCDR_20' ) end [2025-03-22 14:09:18] Production.INFO: ProcessCDR(1,14738033,1,1,2) [2025-03-22 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738033', 'tblTempUsageDetail_20' ) start [2025-03-22 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738033', 'tblTempUsageDetail_20' ) end [2025-03-22 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:09:24] Production.INFO: ==3296== Releasing lock... [2025-03-22 14:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:09:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:10:07 [end_date_ymd] => 2025-03-22 14:10:07 [RateCDR] => 1 ) [2025-03-22 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:10:07' and `end` < '2025-03-22 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:10:19] Production.INFO: count ==1866 [2025-03-22 14:10:20] Production.ERROR: pbx CDR StartTime 2025-03-22 11:10:07 - End Time 2025-03-22 14:10:07 [2025-03-22 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738039', 'tblTempUsageDetail_20' ) start [2025-03-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738039', 'tblTempUsageDetail_20' ) end [2025-03-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738039', 'tblTempVendorCDR_20' ) start [2025-03-22 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738039', 'tblTempVendorCDR_20' ) end [2025-03-22 14:10:20] Production.INFO: ProcessCDR(1,14738039,1,1,2) [2025-03-22 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738039', 'tblTempUsageDetail_20' ) start [2025-03-22 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738039', 'tblTempUsageDetail_20' ) end [2025-03-22 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:10:25] Production.INFO: ==3371== Releasing lock... [2025-03-22 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:10:25] Production.INFO: 42 MB #Memory Used# [2025-03-22 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:11:05 [end_date_ymd] => 2025-03-22 14:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:11:05' and `end` < '2025-03-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-03-22 14:11:17] Production.INFO: count ==1887 [2025-03-22 14:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:11:05 - End Time 2025-03-22 14:11:05 [2025-03-22 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738044', 'tblTempUsageDetail_20' ) start [2025-03-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738044', 'tblTempUsageDetail_20' ) end [2025-03-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738044', 'tblTempVendorCDR_20' ) start [2025-03-22 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738044', 'tblTempVendorCDR_20' ) end [2025-03-22 14:11:18] Production.INFO: ProcessCDR(1,14738044,1,1,2) [2025-03-22 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738044', 'tblTempUsageDetail_20' ) start [2025-03-22 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738044', 'tblTempUsageDetail_20' ) end [2025-03-22 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:11:21] Production.INFO: ==3450== Releasing lock... [2025-03-22 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:11:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-22 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:12:06 [end_date_ymd] => 2025-03-22 14:12:06 [RateCDR] => 1 ) [2025-03-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-03-22 11:12:06' and `end` < '2025-03-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-03-22 14:12:18] Production.INFO: count ==1888 [2025-03-22 14:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:12:06 - End Time 2025-03-22 14:12:06 [2025-03-22 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738049', 'tblTempUsageDetail_20' ) start [2025-03-22 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738049', 'tblTempUsageDetail_20' ) end [2025-03-22 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738049', 'tblTempVendorCDR_20' ) start [2025-03-22 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738049', 'tblTempVendorCDR_20' ) end [2025-03-22 14:12:19] Production.INFO: ProcessCDR(1,14738049,1,1,2) [2025-03-22 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738049', 'tblTempUsageDetail_20' ) start [2025-03-22 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738049', 'tblTempUsageDetail_20' ) end [2025-03-22 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:12:23] Production.INFO: ==3522== Releasing lock... [2025-03-22 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:12:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-22 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:13:05 [end_date_ymd] => 2025-03-22 14:13:05 [RateCDR] => 1 ) [2025-03-22 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:13:05' and `end` < '2025-03-22 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:13:18] Production.INFO: count ==1890 [2025-03-22 14:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:13:05 - End Time 2025-03-22 14:13:05 [2025-03-22 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738054', 'tblTempUsageDetail_20' ) start [2025-03-22 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738054', 'tblTempUsageDetail_20' ) end [2025-03-22 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738054', 'tblTempVendorCDR_20' ) start [2025-03-22 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738054', 'tblTempVendorCDR_20' ) end [2025-03-22 14:13:19] Production.INFO: ProcessCDR(1,14738054,1,1,2) [2025-03-22 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738054', 'tblTempUsageDetail_20' ) start [2025-03-22 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738054', 'tblTempUsageDetail_20' ) end [2025-03-22 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:13:23] Production.INFO: ==3595== Releasing lock... [2025-03-22 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:13:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-22 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:14:06 [end_date_ymd] => 2025-03-22 14:14:06 [RateCDR] => 1 ) [2025-03-22 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:14:06' and `end` < '2025-03-22 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:14:18] Production.INFO: count ==1909 [2025-03-22 14:14:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:14:06 - End Time 2025-03-22 14:14:06 [2025-03-22 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738059', 'tblTempUsageDetail_20' ) start [2025-03-22 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738059', 'tblTempUsageDetail_20' ) end [2025-03-22 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738059', 'tblTempVendorCDR_20' ) start [2025-03-22 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738059', 'tblTempVendorCDR_20' ) end [2025-03-22 14:14:19] Production.INFO: ProcessCDR(1,14738059,1,1,2) [2025-03-22 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738059', 'tblTempUsageDetail_20' ) start [2025-03-22 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738059', 'tblTempUsageDetail_20' ) end [2025-03-22 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:14:24] Production.INFO: ==3669== Releasing lock... [2025-03-22 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:14:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-22 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:15:05 [end_date_ymd] => 2025-03-22 14:15:05 [RateCDR] => 1 ) [2025-03-22 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:15:05' and `end` < '2025-03-22 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:15:18] Production.INFO: count ==1987 [2025-03-22 14:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:15:05 - End Time 2025-03-22 14:15:05 [2025-03-22 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738064', 'tblTempUsageDetail_20' ) start [2025-03-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738064', 'tblTempUsageDetail_20' ) end [2025-03-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738064', 'tblTempVendorCDR_20' ) start [2025-03-22 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738064', 'tblTempVendorCDR_20' ) end [2025-03-22 14:15:18] Production.INFO: ProcessCDR(1,14738064,1,1,2) [2025-03-22 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738064', 'tblTempUsageDetail_20' ) start [2025-03-22 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738064', 'tblTempUsageDetail_20' ) end [2025-03-22 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:15:23] Production.INFO: ==3743== Releasing lock... [2025-03-22 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:15:23] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:16:05 [end_date_ymd] => 2025-03-22 14:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:16:05' and `end` < '2025-03-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-03-22 14:16:18] Production.INFO: count ==1980 [2025-03-22 14:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:16:05 - End Time 2025-03-22 14:16:05 [2025-03-22 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738069', 'tblTempUsageDetail_20' ) start [2025-03-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738069', 'tblTempUsageDetail_20' ) end [2025-03-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738069', 'tblTempVendorCDR_20' ) start [2025-03-22 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738069', 'tblTempVendorCDR_20' ) end [2025-03-22 14:16:18] Production.INFO: ProcessCDR(1,14738069,1,1,2) [2025-03-22 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738069', 'tblTempUsageDetail_20' ) start [2025-03-22 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738069', 'tblTempUsageDetail_20' ) end [2025-03-22 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:16:22] Production.INFO: ==3814== Releasing lock... [2025-03-22 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:16:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:17:05 [end_date_ymd] => 2025-03-22 14:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:17:05' and `end` < '2025-03-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-03-22 14:17:18] Production.INFO: count ==1978 [2025-03-22 14:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:17:05 - End Time 2025-03-22 14:17:05 [2025-03-22 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738074', 'tblTempUsageDetail_20' ) start [2025-03-22 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738074', 'tblTempUsageDetail_20' ) end [2025-03-22 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738074', 'tblTempVendorCDR_20' ) start [2025-03-22 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738074', 'tblTempVendorCDR_20' ) end [2025-03-22 14:17:18] Production.INFO: ProcessCDR(1,14738074,1,1,2) [2025-03-22 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738074', 'tblTempUsageDetail_20' ) start [2025-03-22 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738074', 'tblTempUsageDetail_20' ) end [2025-03-22 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:17:23] Production.INFO: ==3926== Releasing lock... [2025-03-22 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:18:06 [end_date_ymd] => 2025-03-22 14:18:06 [RateCDR] => 1 ) [2025-03-22 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:18:06' and `end` < '2025-03-22 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:18:18] Production.INFO: count ==1991 [2025-03-22 14:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:18:06 - End Time 2025-03-22 14:18:06 [2025-03-22 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738079', 'tblTempUsageDetail_20' ) start [2025-03-22 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738079', 'tblTempUsageDetail_20' ) end [2025-03-22 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738079', 'tblTempVendorCDR_20' ) start [2025-03-22 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738079', 'tblTempVendorCDR_20' ) end [2025-03-22 14:18:19] Production.INFO: ProcessCDR(1,14738079,1,1,2) [2025-03-22 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738079', 'tblTempUsageDetail_20' ) start [2025-03-22 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738079', 'tblTempUsageDetail_20' ) end [2025-03-22 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:18:24] Production.INFO: ==3999== Releasing lock... [2025-03-22 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:18:24] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:19:05 [end_date_ymd] => 2025-03-22 14:19:05 [RateCDR] => 1 ) [2025-03-22 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:19:05' and `end` < '2025-03-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-03-22 14:19:18] Production.INFO: count ==1994 [2025-03-22 14:19:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:19:05 - End Time 2025-03-22 14:19:05 [2025-03-22 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738084', 'tblTempUsageDetail_20' ) start [2025-03-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738084', 'tblTempUsageDetail_20' ) end [2025-03-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738084', 'tblTempVendorCDR_20' ) start [2025-03-22 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738084', 'tblTempVendorCDR_20' ) end [2025-03-22 14:19:19] Production.INFO: ProcessCDR(1,14738084,1,1,2) [2025-03-22 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738084', 'tblTempUsageDetail_20' ) start [2025-03-22 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738084', 'tblTempUsageDetail_20' ) end [2025-03-22 14:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:19:24] Production.INFO: ==4072== Releasing lock... [2025-03-22 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:19:24] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:20:06 [end_date_ymd] => 2025-03-22 14:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 11:20:06' and `end` < '2025-03-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-03-22 14:20:19] Production.INFO: count ==2002 [2025-03-22 14:20:20] Production.ERROR: pbx CDR StartTime 2025-03-22 11:20:06 - End Time 2025-03-22 14:20:06 [2025-03-22 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738090', 'tblTempUsageDetail_20' ) start [2025-03-22 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738090', 'tblTempUsageDetail_20' ) end [2025-03-22 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738090', 'tblTempVendorCDR_20' ) start [2025-03-22 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738090', 'tblTempVendorCDR_20' ) end [2025-03-22 14:20:20] Production.INFO: ProcessCDR(1,14738090,1,1,2) [2025-03-22 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738090', 'tblTempUsageDetail_20' ) start [2025-03-22 14:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738090', 'tblTempUsageDetail_20' ) end [2025-03-22 14:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:20:25] Production.INFO: ==4150== Releasing lock... [2025-03-22 14:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:20:25] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:21:05 [end_date_ymd] => 2025-03-22 14:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:21:05' and `end` < '2025-03-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-03-22 14:21:17] Production.INFO: count ==1997 [2025-03-22 14:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:21:05 - End Time 2025-03-22 14:21:05 [2025-03-22 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738095', 'tblTempUsageDetail_20' ) start [2025-03-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738095', 'tblTempUsageDetail_20' ) end [2025-03-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738095', 'tblTempVendorCDR_20' ) start [2025-03-22 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738095', 'tblTempVendorCDR_20' ) end [2025-03-22 14:21:18] Production.INFO: ProcessCDR(1,14738095,1,1,2) [2025-03-22 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738095', 'tblTempUsageDetail_20' ) start [2025-03-22 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738095', 'tblTempUsageDetail_20' ) end [2025-03-22 14:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:21:22] Production.INFO: ==4225== Releasing lock... [2025-03-22 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:21:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:22:05 [end_date_ymd] => 2025-03-22 14:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:22:05' and `end` < '2025-03-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-03-22 14:22:18] Production.INFO: count ==2002 [2025-03-22 14:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:22:05 - End Time 2025-03-22 14:22:05 [2025-03-22 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738100', 'tblTempUsageDetail_20' ) start [2025-03-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738100', 'tblTempUsageDetail_20' ) end [2025-03-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738100', 'tblTempVendorCDR_20' ) start [2025-03-22 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738100', 'tblTempVendorCDR_20' ) end [2025-03-22 14:22:18] Production.INFO: ProcessCDR(1,14738100,1,1,2) [2025-03-22 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738100', 'tblTempUsageDetail_20' ) start [2025-03-22 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738100', 'tblTempUsageDetail_20' ) end [2025-03-22 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:22:22] Production.INFO: ==4295== Releasing lock... [2025-03-22 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:22:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:23:05 [end_date_ymd] => 2025-03-22 14:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:23:05' and `end` < '2025-03-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-03-22 14:23:17] Production.INFO: count ==1980 [2025-03-22 14:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:23:05 - End Time 2025-03-22 14:23:05 [2025-03-22 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738105', 'tblTempUsageDetail_20' ) start [2025-03-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738105', 'tblTempUsageDetail_20' ) end [2025-03-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738105', 'tblTempVendorCDR_20' ) start [2025-03-22 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738105', 'tblTempVendorCDR_20' ) end [2025-03-22 14:23:18] Production.INFO: ProcessCDR(1,14738105,1,1,2) [2025-03-22 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738105', 'tblTempUsageDetail_20' ) start [2025-03-22 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738105', 'tblTempUsageDetail_20' ) end [2025-03-22 14:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:23:22] Production.INFO: ==4369== Releasing lock... [2025-03-22 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:23:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:24:05 [end_date_ymd] => 2025-03-22 14:24:05 [RateCDR] => 1 ) [2025-03-22 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:24:05' and `end` < '2025-03-22 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:24:18] Production.INFO: count ==1985 [2025-03-22 14:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:24:05 - End Time 2025-03-22 14:24:05 [2025-03-22 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738110', 'tblTempUsageDetail_20' ) start [2025-03-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738110', 'tblTempUsageDetail_20' ) end [2025-03-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738110', 'tblTempVendorCDR_20' ) start [2025-03-22 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738110', 'tblTempVendorCDR_20' ) end [2025-03-22 14:24:18] Production.INFO: ProcessCDR(1,14738110,1,1,2) [2025-03-22 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738110', 'tblTempUsageDetail_20' ) start [2025-03-22 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738110', 'tblTempUsageDetail_20' ) end [2025-03-22 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:24:22] Production.INFO: ==4450== Releasing lock... [2025-03-22 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:24:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:25:05 [end_date_ymd] => 2025-03-22 14:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:25:05' and `end` < '2025-03-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-03-22 14:25:18] Production.INFO: count ==1970 [2025-03-22 14:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:25:05 - End Time 2025-03-22 14:25:05 [2025-03-22 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738115', 'tblTempUsageDetail_20' ) start [2025-03-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738115', 'tblTempUsageDetail_20' ) end [2025-03-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738115', 'tblTempVendorCDR_20' ) start [2025-03-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738115', 'tblTempVendorCDR_20' ) end [2025-03-22 14:25:18] Production.INFO: ProcessCDR(1,14738115,1,1,2) [2025-03-22 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738115', 'tblTempUsageDetail_20' ) start [2025-03-22 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738115', 'tblTempUsageDetail_20' ) end [2025-03-22 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:25:22] Production.INFO: ==4525== Releasing lock... [2025-03-22 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:25:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:26:05 [end_date_ymd] => 2025-03-22 14:26:05 [RateCDR] => 1 ) [2025-03-22 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:26:05' and `end` < '2025-03-22 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:26:17] Production.INFO: count ==1976 [2025-03-22 14:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:26:05 - End Time 2025-03-22 14:26:05 [2025-03-22 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738120', 'tblTempUsageDetail_20' ) start [2025-03-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738120', 'tblTempUsageDetail_20' ) end [2025-03-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738120', 'tblTempVendorCDR_20' ) start [2025-03-22 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738120', 'tblTempVendorCDR_20' ) end [2025-03-22 14:26:18] Production.INFO: ProcessCDR(1,14738120,1,1,2) [2025-03-22 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738120', 'tblTempUsageDetail_20' ) start [2025-03-22 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738120', 'tblTempUsageDetail_20' ) end [2025-03-22 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:26:22] Production.INFO: ==4609== Releasing lock... [2025-03-22 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:26:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:27:06 [end_date_ymd] => 2025-03-22 14:27:06 [RateCDR] => 1 ) [2025-03-22 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:27:06' and `end` < '2025-03-22 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:27:18] Production.INFO: count ==1981 [2025-03-22 14:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:27:06 - End Time 2025-03-22 14:27:06 [2025-03-22 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738125', 'tblTempUsageDetail_20' ) start [2025-03-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738125', 'tblTempUsageDetail_20' ) end [2025-03-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738125', 'tblTempVendorCDR_20' ) start [2025-03-22 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738125', 'tblTempVendorCDR_20' ) end [2025-03-22 14:27:19] Production.INFO: ProcessCDR(1,14738125,1,1,2) [2025-03-22 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738125', 'tblTempUsageDetail_20' ) start [2025-03-22 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738125', 'tblTempUsageDetail_20' ) end [2025-03-22 14:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:27:22] Production.INFO: ==4684== Releasing lock... [2025-03-22 14:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:27:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:28:05 [end_date_ymd] => 2025-03-22 14:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:28:05' and `end` < '2025-03-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-03-22 14:28:17] Production.INFO: count ==1980 [2025-03-22 14:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:28:05 - End Time 2025-03-22 14:28:05 [2025-03-22 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738130', 'tblTempUsageDetail_20' ) start [2025-03-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738130', 'tblTempUsageDetail_20' ) end [2025-03-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738130', 'tblTempVendorCDR_20' ) start [2025-03-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738130', 'tblTempVendorCDR_20' ) end [2025-03-22 14:28:18] Production.INFO: ProcessCDR(1,14738130,1,1,2) [2025-03-22 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738130', 'tblTempUsageDetail_20' ) start [2025-03-22 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738130', 'tblTempUsageDetail_20' ) end [2025-03-22 14:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:28:22] Production.INFO: ==4756== Releasing lock... [2025-03-22 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:28:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:29:05 [end_date_ymd] => 2025-03-22 14:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:29:05' and `end` < '2025-03-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-03-22 14:29:18] Production.INFO: count ==1983 [2025-03-22 14:29:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:29:05 - End Time 2025-03-22 14:29:05 [2025-03-22 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738135', 'tblTempUsageDetail_20' ) start [2025-03-22 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738135', 'tblTempUsageDetail_20' ) end [2025-03-22 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738135', 'tblTempVendorCDR_20' ) start [2025-03-22 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738135', 'tblTempVendorCDR_20' ) end [2025-03-22 14:29:19] Production.INFO: ProcessCDR(1,14738135,1,1,2) [2025-03-22 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738135', 'tblTempUsageDetail_20' ) start [2025-03-22 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738135', 'tblTempUsageDetail_20' ) end [2025-03-22 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:29:24] Production.INFO: ==4826== Releasing lock... [2025-03-22 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:29:24] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:30:06 [end_date_ymd] => 2025-03-22 14:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 11:30:06' and `end` < '2025-03-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-03-22 14:30:19] Production.INFO: count ==1995 [2025-03-22 14:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:30:06 - End Time 2025-03-22 14:30:06 [2025-03-22 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738141', 'tblTempUsageDetail_20' ) start [2025-03-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738141', 'tblTempUsageDetail_20' ) end [2025-03-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738141', 'tblTempVendorCDR_20' ) start [2025-03-22 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738141', 'tblTempVendorCDR_20' ) end [2025-03-22 14:30:19] Production.INFO: ProcessCDR(1,14738141,1,1,2) [2025-03-22 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738141', 'tblTempUsageDetail_20' ) start [2025-03-22 14:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738141', 'tblTempUsageDetail_20' ) end [2025-03-22 14:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:30:24] Production.INFO: ==4903== Releasing lock... [2025-03-22 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:30:24] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:31:05 [end_date_ymd] => 2025-03-22 14:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:31:05' and `end` < '2025-03-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-03-22 14:31:17] Production.INFO: count ==1967 [2025-03-22 14:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:31:05 - End Time 2025-03-22 14:31:05 [2025-03-22 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738146', 'tblTempUsageDetail_20' ) start [2025-03-22 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738146', 'tblTempUsageDetail_20' ) end [2025-03-22 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738146', 'tblTempVendorCDR_20' ) start [2025-03-22 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738146', 'tblTempVendorCDR_20' ) end [2025-03-22 14:31:18] Production.INFO: ProcessCDR(1,14738146,1,1,2) [2025-03-22 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738146', 'tblTempUsageDetail_20' ) start [2025-03-22 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738146', 'tblTempUsageDetail_20' ) end [2025-03-22 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:31:23] Production.INFO: ==4979== Releasing lock... [2025-03-22 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:31:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:32:05 [end_date_ymd] => 2025-03-22 14:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:32:05' and `end` < '2025-03-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-03-22 14:32:18] Production.INFO: count ==1949 [2025-03-22 14:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:32:05 - End Time 2025-03-22 14:32:05 [2025-03-22 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738151', 'tblTempUsageDetail_20' ) start [2025-03-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738151', 'tblTempUsageDetail_20' ) end [2025-03-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738151', 'tblTempVendorCDR_20' ) start [2025-03-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738151', 'tblTempVendorCDR_20' ) end [2025-03-22 14:32:18] Production.INFO: ProcessCDR(1,14738151,1,1,2) [2025-03-22 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738151', 'tblTempUsageDetail_20' ) start [2025-03-22 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738151', 'tblTempUsageDetail_20' ) end [2025-03-22 14:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:32:22] Production.INFO: ==5048== Releasing lock... [2025-03-22 14:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:32:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:33:05 [end_date_ymd] => 2025-03-22 14:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:33:05' and `end` < '2025-03-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-03-22 14:33:18] Production.INFO: count ==1943 [2025-03-22 14:33:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:33:05 - End Time 2025-03-22 14:33:05 [2025-03-22 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738156', 'tblTempUsageDetail_20' ) start [2025-03-22 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738156', 'tblTempUsageDetail_20' ) end [2025-03-22 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738156', 'tblTempVendorCDR_20' ) start [2025-03-22 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738156', 'tblTempVendorCDR_20' ) end [2025-03-22 14:33:19] Production.INFO: ProcessCDR(1,14738156,1,1,2) [2025-03-22 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738156', 'tblTempUsageDetail_20' ) start [2025-03-22 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738156', 'tblTempUsageDetail_20' ) end [2025-03-22 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:33:22] Production.INFO: ==5163== Releasing lock... [2025-03-22 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:33:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:34:05 [end_date_ymd] => 2025-03-22 14:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:34:05' and `end` < '2025-03-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-03-22 14:34:17] Production.INFO: count ==1940 [2025-03-22 14:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:34:05 - End Time 2025-03-22 14:34:05 [2025-03-22 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738161', 'tblTempUsageDetail_20' ) start [2025-03-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738161', 'tblTempUsageDetail_20' ) end [2025-03-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738161', 'tblTempVendorCDR_20' ) start [2025-03-22 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738161', 'tblTempVendorCDR_20' ) end [2025-03-22 14:34:18] Production.INFO: ProcessCDR(1,14738161,1,1,2) [2025-03-22 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738161', 'tblTempUsageDetail_20' ) start [2025-03-22 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738161', 'tblTempUsageDetail_20' ) end [2025-03-22 14:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:34:21] Production.INFO: ==5236== Releasing lock... [2025-03-22 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:34:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-22 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:35:05 [end_date_ymd] => 2025-03-22 14:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:35:05' and `end` < '2025-03-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-03-22 14:35:18] Production.INFO: count ==1940 [2025-03-22 14:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:35:05 - End Time 2025-03-22 14:35:05 [2025-03-22 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738166', 'tblTempUsageDetail_20' ) start [2025-03-22 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738166', 'tblTempUsageDetail_20' ) end [2025-03-22 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738166', 'tblTempVendorCDR_20' ) start [2025-03-22 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738166', 'tblTempVendorCDR_20' ) end [2025-03-22 14:35:19] Production.INFO: ProcessCDR(1,14738166,1,1,2) [2025-03-22 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738166', 'tblTempUsageDetail_20' ) start [2025-03-22 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738166', 'tblTempUsageDetail_20' ) end [2025-03-22 14:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:35:22] Production.INFO: ==5305== Releasing lock... [2025-03-22 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:35:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:36:05 [end_date_ymd] => 2025-03-22 14:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:36:05' and `end` < '2025-03-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-03-22 14:36:18] Production.INFO: count ==1946 [2025-03-22 14:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:36:05 - End Time 2025-03-22 14:36:05 [2025-03-22 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738171', 'tblTempUsageDetail_20' ) start [2025-03-22 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738171', 'tblTempUsageDetail_20' ) end [2025-03-22 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738171', 'tblTempVendorCDR_20' ) start [2025-03-22 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738171', 'tblTempVendorCDR_20' ) end [2025-03-22 14:36:18] Production.INFO: ProcessCDR(1,14738171,1,1,2) [2025-03-22 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738171', 'tblTempUsageDetail_20' ) start [2025-03-22 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738171', 'tblTempUsageDetail_20' ) end [2025-03-22 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:36:23] Production.INFO: ==5379== Releasing lock... [2025-03-22 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:36:23] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:37:05 [end_date_ymd] => 2025-03-22 14:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:37:05' and `end` < '2025-03-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-03-22 14:37:18] Production.INFO: count ==1974 [2025-03-22 14:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:37:05 - End Time 2025-03-22 14:37:05 [2025-03-22 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738176', 'tblTempUsageDetail_20' ) start [2025-03-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738176', 'tblTempUsageDetail_20' ) end [2025-03-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738176', 'tblTempVendorCDR_20' ) start [2025-03-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738176', 'tblTempVendorCDR_20' ) end [2025-03-22 14:37:18] Production.INFO: ProcessCDR(1,14738176,1,1,2) [2025-03-22 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738176', 'tblTempUsageDetail_20' ) start [2025-03-22 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738176', 'tblTempUsageDetail_20' ) end [2025-03-22 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:37:23] Production.INFO: ==5453== Releasing lock... [2025-03-22 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:37:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:38:05 [end_date_ymd] => 2025-03-22 14:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:38:05' and `end` < '2025-03-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-03-22 14:38:17] Production.INFO: count ==1972 [2025-03-22 14:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:38:05 - End Time 2025-03-22 14:38:05 [2025-03-22 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738181', 'tblTempUsageDetail_20' ) start [2025-03-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738181', 'tblTempUsageDetail_20' ) end [2025-03-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738181', 'tblTempVendorCDR_20' ) start [2025-03-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738181', 'tblTempVendorCDR_20' ) end [2025-03-22 14:38:18] Production.INFO: ProcessCDR(1,14738181,1,1,2) [2025-03-22 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738181', 'tblTempUsageDetail_20' ) start [2025-03-22 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738181', 'tblTempUsageDetail_20' ) end [2025-03-22 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:38:23] Production.INFO: ==5524== Releasing lock... [2025-03-22 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:38:23] Production.INFO: 43 MB #Memory Used# [2025-03-22 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:39:05 [end_date_ymd] => 2025-03-22 14:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:39:05' and `end` < '2025-03-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-03-22 14:39:18] Production.INFO: count ==2039 [2025-03-22 14:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:39:05 - End Time 2025-03-22 14:39:05 [2025-03-22 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738186', 'tblTempUsageDetail_20' ) start [2025-03-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738186', 'tblTempUsageDetail_20' ) end [2025-03-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738186', 'tblTempVendorCDR_20' ) start [2025-03-22 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738186', 'tblTempVendorCDR_20' ) end [2025-03-22 14:39:18] Production.INFO: ProcessCDR(1,14738186,1,1,2) [2025-03-22 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738186', 'tblTempUsageDetail_20' ) start [2025-03-22 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738186', 'tblTempUsageDetail_20' ) end [2025-03-22 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:39:23] Production.INFO: ==5603== Releasing lock... [2025-03-22 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:39:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-22 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:40:06 [end_date_ymd] => 2025-03-22 14:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 11:40:06' and `end` < '2025-03-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-03-22 14:40:19] Production.INFO: count ==2510 [2025-03-22 14:40:20] Production.ERROR: pbx CDR StartTime 2025-03-22 11:40:06 - End Time 2025-03-22 14:40:06 [2025-03-22 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738192', 'tblTempUsageDetail_20' ) start [2025-03-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738192', 'tblTempUsageDetail_20' ) end [2025-03-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738192', 'tblTempVendorCDR_20' ) start [2025-03-22 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738192', 'tblTempVendorCDR_20' ) end [2025-03-22 14:40:20] Production.INFO: ProcessCDR(1,14738192,1,1,2) [2025-03-22 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738192', 'tblTempUsageDetail_20' ) start [2025-03-22 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738192', 'tblTempUsageDetail_20' ) end [2025-03-22 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:40:24] Production.INFO: ==5680== Releasing lock... [2025-03-22 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:40:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:41:05 [end_date_ymd] => 2025-03-22 14:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:41:05' and `end` < '2025-03-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-03-22 14:41:18] Production.INFO: count ==2490 [2025-03-22 14:41:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:41:05 - End Time 2025-03-22 14:41:05 [2025-03-22 14:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738197', 'tblTempUsageDetail_20' ) start [2025-03-22 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738197', 'tblTempUsageDetail_20' ) end [2025-03-22 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738197', 'tblTempVendorCDR_20' ) start [2025-03-22 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738197', 'tblTempVendorCDR_20' ) end [2025-03-22 14:41:19] Production.INFO: ProcessCDR(1,14738197,1,1,2) [2025-03-22 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738197', 'tblTempUsageDetail_20' ) start [2025-03-22 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738197', 'tblTempUsageDetail_20' ) end [2025-03-22 14:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:41:24] Production.INFO: ==5751== Releasing lock... [2025-03-22 14:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:41:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:42:06 [end_date_ymd] => 2025-03-22 14:42:06 [RateCDR] => 1 ) [2025-03-22 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:42:06' and `end` < '2025-03-22 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:42:18] Production.INFO: count ==2515 [2025-03-22 14:42:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:42:06 - End Time 2025-03-22 14:42:06 [2025-03-22 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738202', 'tblTempUsageDetail_20' ) start [2025-03-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738202', 'tblTempUsageDetail_20' ) end [2025-03-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738202', 'tblTempVendorCDR_20' ) start [2025-03-22 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738202', 'tblTempVendorCDR_20' ) end [2025-03-22 14:42:19] Production.INFO: ProcessCDR(1,14738202,1,1,2) [2025-03-22 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738202', 'tblTempUsageDetail_20' ) start [2025-03-22 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738202', 'tblTempUsageDetail_20' ) end [2025-03-22 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:42:23] Production.INFO: ==5825== Releasing lock... [2025-03-22 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:42:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:43:05 [end_date_ymd] => 2025-03-22 14:43:05 [RateCDR] => 1 ) [2025-03-22 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:43:05' and `end` < '2025-03-22 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:43:18] Production.INFO: count ==2504 [2025-03-22 14:43:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:43:05 - End Time 2025-03-22 14:43:05 [2025-03-22 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738207', 'tblTempUsageDetail_20' ) start [2025-03-22 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738207', 'tblTempUsageDetail_20' ) end [2025-03-22 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738207', 'tblTempVendorCDR_20' ) start [2025-03-22 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738207', 'tblTempVendorCDR_20' ) end [2025-03-22 14:43:19] Production.INFO: ProcessCDR(1,14738207,1,1,2) [2025-03-22 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738207', 'tblTempUsageDetail_20' ) start [2025-03-22 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738207', 'tblTempUsageDetail_20' ) end [2025-03-22 14:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:43:24] Production.INFO: ==5903== Releasing lock... [2025-03-22 14:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:43:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:44:06 [end_date_ymd] => 2025-03-22 14:44:06 [RateCDR] => 1 ) [2025-03-22 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:44:06' and `end` < '2025-03-22 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:44:18] Production.INFO: count ==2502 [2025-03-22 14:44:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:44:06 - End Time 2025-03-22 14:44:06 [2025-03-22 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738212', 'tblTempUsageDetail_20' ) start [2025-03-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738212', 'tblTempUsageDetail_20' ) end [2025-03-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738212', 'tblTempVendorCDR_20' ) start [2025-03-22 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738212', 'tblTempVendorCDR_20' ) end [2025-03-22 14:44:19] Production.INFO: ProcessCDR(1,14738212,1,1,2) [2025-03-22 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738212', 'tblTempUsageDetail_20' ) start [2025-03-22 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738212', 'tblTempUsageDetail_20' ) end [2025-03-22 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:44:23] Production.INFO: ==5989== Releasing lock... [2025-03-22 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:44:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:45:05 [end_date_ymd] => 2025-03-22 14:45:05 [RateCDR] => 1 ) [2025-03-22 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:45:05' and `end` < '2025-03-22 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:45:18] Production.INFO: count ==2500 [2025-03-22 14:45:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:45:05 - End Time 2025-03-22 14:45:05 [2025-03-22 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738217', 'tblTempUsageDetail_20' ) start [2025-03-22 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738217', 'tblTempUsageDetail_20' ) end [2025-03-22 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738217', 'tblTempVendorCDR_20' ) start [2025-03-22 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738217', 'tblTempVendorCDR_20' ) end [2025-03-22 14:45:19] Production.INFO: ProcessCDR(1,14738217,1,1,2) [2025-03-22 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738217', 'tblTempUsageDetail_20' ) start [2025-03-22 14:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738217', 'tblTempUsageDetail_20' ) end [2025-03-22 14:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:45:24] Production.INFO: ==6072== Releasing lock... [2025-03-22 14:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:45:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:46:06 [end_date_ymd] => 2025-03-22 14:46:06 [RateCDR] => 1 ) [2025-03-22 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:46:06' and `end` < '2025-03-22 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:46:18] Production.INFO: count ==2494 [2025-03-22 14:46:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:46:06 - End Time 2025-03-22 14:46:06 [2025-03-22 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738222', 'tblTempUsageDetail_20' ) start [2025-03-22 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738222', 'tblTempUsageDetail_20' ) end [2025-03-22 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738222', 'tblTempVendorCDR_20' ) start [2025-03-22 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738222', 'tblTempVendorCDR_20' ) end [2025-03-22 14:46:20] Production.INFO: ProcessCDR(1,14738222,1,1,2) [2025-03-22 14:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738222', 'tblTempUsageDetail_20' ) start [2025-03-22 14:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738222', 'tblTempUsageDetail_20' ) end [2025-03-22 14:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:46:24] Production.INFO: ==6158== Releasing lock... [2025-03-22 14:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:46:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:47:04 [end_date_ymd] => 2025-03-22 14:47:04 [RateCDR] => 1 ) [2025-03-22 14:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:47:04' and `end` < '2025-03-22 14:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:47:17] Production.INFO: count ==2498 [2025-03-22 14:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:47:04 - End Time 2025-03-22 14:47:04 [2025-03-22 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738227', 'tblTempUsageDetail_20' ) start [2025-03-22 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738227', 'tblTempUsageDetail_20' ) end [2025-03-22 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738227', 'tblTempVendorCDR_20' ) start [2025-03-22 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738227', 'tblTempVendorCDR_20' ) end [2025-03-22 14:47:18] Production.INFO: ProcessCDR(1,14738227,1,1,2) [2025-03-22 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738227', 'tblTempUsageDetail_20' ) start [2025-03-22 14:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738227', 'tblTempUsageDetail_20' ) end [2025-03-22 14:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:47:23] Production.INFO: ==6238== Releasing lock... [2025-03-22 14:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:47:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:48:05 [end_date_ymd] => 2025-03-22 14:48:05 [RateCDR] => 1 ) [2025-03-22 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:48:05' and `end` < '2025-03-22 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:48:18] Production.INFO: count ==2497 [2025-03-22 14:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:48:05 - End Time 2025-03-22 14:48:05 [2025-03-22 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738232', 'tblTempUsageDetail_20' ) start [2025-03-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738232', 'tblTempUsageDetail_20' ) end [2025-03-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738232', 'tblTempVendorCDR_20' ) start [2025-03-22 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738232', 'tblTempVendorCDR_20' ) end [2025-03-22 14:48:19] Production.INFO: ProcessCDR(1,14738232,1,1,2) [2025-03-22 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738232', 'tblTempUsageDetail_20' ) start [2025-03-22 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738232', 'tblTempUsageDetail_20' ) end [2025-03-22 14:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:48:24] Production.INFO: ==6361== Releasing lock... [2025-03-22 14:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:48:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:49:05 [end_date_ymd] => 2025-03-22 14:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:49:05' and `end` < '2025-03-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-03-22 14:49:17] Production.INFO: count ==2483 [2025-03-22 14:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:49:05 - End Time 2025-03-22 14:49:05 [2025-03-22 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738237', 'tblTempUsageDetail_20' ) start [2025-03-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738237', 'tblTempUsageDetail_20' ) end [2025-03-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738237', 'tblTempVendorCDR_20' ) start [2025-03-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738237', 'tblTempVendorCDR_20' ) end [2025-03-22 14:49:18] Production.INFO: ProcessCDR(1,14738237,1,1,2) [2025-03-22 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738237', 'tblTempUsageDetail_20' ) start [2025-03-22 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738237', 'tblTempUsageDetail_20' ) end [2025-03-22 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:49:22] Production.INFO: ==6444== Releasing lock... [2025-03-22 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:49:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:50:06 [end_date_ymd] => 2025-03-22 14:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 11:50:06' and `end` < '2025-03-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-03-22 14:50:19] Production.INFO: count ==2482 [2025-03-22 14:50:20] Production.ERROR: pbx CDR StartTime 2025-03-22 11:50:06 - End Time 2025-03-22 14:50:06 [2025-03-22 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738243', 'tblTempUsageDetail_20' ) start [2025-03-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738243', 'tblTempUsageDetail_20' ) end [2025-03-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738243', 'tblTempVendorCDR_20' ) start [2025-03-22 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738243', 'tblTempVendorCDR_20' ) end [2025-03-22 14:50:20] Production.INFO: ProcessCDR(1,14738243,1,1,2) [2025-03-22 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738243', 'tblTempUsageDetail_20' ) start [2025-03-22 14:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738243', 'tblTempUsageDetail_20' ) end [2025-03-22 14:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:50:24] Production.INFO: ==6518== Releasing lock... [2025-03-22 14:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:50:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:51:05 [end_date_ymd] => 2025-03-22 14:51:05 [RateCDR] => 1 ) [2025-03-22 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:51:05' and `end` < '2025-03-22 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:51:17] Production.INFO: count ==2470 [2025-03-22 14:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:51:05 - End Time 2025-03-22 14:51:05 [2025-03-22 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738248', 'tblTempUsageDetail_20' ) start [2025-03-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738248', 'tblTempUsageDetail_20' ) end [2025-03-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738248', 'tblTempVendorCDR_20' ) start [2025-03-22 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738248', 'tblTempVendorCDR_20' ) end [2025-03-22 14:51:19] Production.INFO: ProcessCDR(1,14738248,1,1,2) [2025-03-22 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738248', 'tblTempUsageDetail_20' ) start [2025-03-22 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738248', 'tblTempUsageDetail_20' ) end [2025-03-22 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:51:24] Production.INFO: ==6597== Releasing lock... [2025-03-22 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:51:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-22 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:52:05 [end_date_ymd] => 2025-03-22 14:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:52:05' and `end` < '2025-03-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-03-22 14:52:17] Production.INFO: count ==2482 [2025-03-22 14:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 11:52:05 - End Time 2025-03-22 14:52:05 [2025-03-22 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738253', 'tblTempUsageDetail_20' ) start [2025-03-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738253', 'tblTempUsageDetail_20' ) end [2025-03-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738253', 'tblTempVendorCDR_20' ) start [2025-03-22 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738253', 'tblTempVendorCDR_20' ) end [2025-03-22 14:52:19] Production.INFO: ProcessCDR(1,14738253,1,1,2) [2025-03-22 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738253', 'tblTempUsageDetail_20' ) start [2025-03-22 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738253', 'tblTempUsageDetail_20' ) end [2025-03-22 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:52:23] Production.INFO: ==6670== Releasing lock... [2025-03-22 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:52:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:53:06 [end_date_ymd] => 2025-03-22 14:53:06 [RateCDR] => 1 ) [2025-03-22 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:53:06' and `end` < '2025-03-22 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:53:18] Production.INFO: count ==2480 [2025-03-22 14:53:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:53:06 - End Time 2025-03-22 14:53:06 [2025-03-22 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738258', 'tblTempUsageDetail_20' ) start [2025-03-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738258', 'tblTempUsageDetail_20' ) end [2025-03-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738258', 'tblTempVendorCDR_20' ) start [2025-03-22 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738258', 'tblTempVendorCDR_20' ) end [2025-03-22 14:53:19] Production.INFO: ProcessCDR(1,14738258,1,1,2) [2025-03-22 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738258', 'tblTempUsageDetail_20' ) start [2025-03-22 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738258', 'tblTempUsageDetail_20' ) end [2025-03-22 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:53:23] Production.INFO: ==6748== Releasing lock... [2025-03-22 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:53:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:54:05 [end_date_ymd] => 2025-03-22 14:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:54:05' and `end` < '2025-03-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-03-22 14:54:18] Production.INFO: count ==2477 [2025-03-22 14:54:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:54:05 - End Time 2025-03-22 14:54:05 [2025-03-22 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738263', 'tblTempUsageDetail_20' ) start [2025-03-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738263', 'tblTempUsageDetail_20' ) end [2025-03-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738263', 'tblTempVendorCDR_20' ) start [2025-03-22 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738263', 'tblTempVendorCDR_20' ) end [2025-03-22 14:54:19] Production.INFO: ProcessCDR(1,14738263,1,1,2) [2025-03-22 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738263', 'tblTempUsageDetail_20' ) start [2025-03-22 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738263', 'tblTempUsageDetail_20' ) end [2025-03-22 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:54:22] Production.INFO: ==6821== Releasing lock... [2025-03-22 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:54:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-22 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:55:05 [end_date_ymd] => 2025-03-22 14:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:55:05' and `end` < '2025-03-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-03-22 14:55:18] Production.INFO: count ==2475 [2025-03-22 14:55:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:55:05 - End Time 2025-03-22 14:55:05 [2025-03-22 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738268', 'tblTempUsageDetail_20' ) start [2025-03-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738268', 'tblTempUsageDetail_20' ) end [2025-03-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738268', 'tblTempVendorCDR_20' ) start [2025-03-22 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738268', 'tblTempVendorCDR_20' ) end [2025-03-22 14:55:19] Production.INFO: ProcessCDR(1,14738268,1,1,2) [2025-03-22 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738268', 'tblTempUsageDetail_20' ) start [2025-03-22 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738268', 'tblTempUsageDetail_20' ) end [2025-03-22 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:55:23] Production.INFO: ==6904== Releasing lock... [2025-03-22 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:55:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-22 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:56:05 [end_date_ymd] => 2025-03-22 14:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:56:05' and `end` < '2025-03-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-03-22 14:56:18] Production.INFO: count ==2498 [2025-03-22 14:56:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:56:05 - End Time 2025-03-22 14:56:05 [2025-03-22 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738273', 'tblTempUsageDetail_20' ) start [2025-03-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738273', 'tblTempUsageDetail_20' ) end [2025-03-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738273', 'tblTempVendorCDR_20' ) start [2025-03-22 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738273', 'tblTempVendorCDR_20' ) end [2025-03-22 14:56:19] Production.INFO: ProcessCDR(1,14738273,1,1,2) [2025-03-22 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738273', 'tblTempUsageDetail_20' ) start [2025-03-22 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738273', 'tblTempUsageDetail_20' ) end [2025-03-22 14:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:56:24] Production.INFO: ==6998== Releasing lock... [2025-03-22 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:56:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:57:06 [end_date_ymd] => 2025-03-22 14:57:06 [RateCDR] => 1 ) [2025-03-22 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 11:57:06' and `end` < '2025-03-22 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 14:57:18] Production.INFO: count ==2498 [2025-03-22 14:57:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:57:06 - End Time 2025-03-22 14:57:06 [2025-03-22 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738278', 'tblTempUsageDetail_20' ) start [2025-03-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738278', 'tblTempUsageDetail_20' ) end [2025-03-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738278', 'tblTempVendorCDR_20' ) start [2025-03-22 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738278', 'tblTempVendorCDR_20' ) end [2025-03-22 14:57:19] Production.INFO: ProcessCDR(1,14738278,1,1,2) [2025-03-22 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738278', 'tblTempUsageDetail_20' ) start [2025-03-22 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738278', 'tblTempUsageDetail_20' ) end [2025-03-22 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:57:24] Production.INFO: ==7097== Releasing lock... [2025-03-22 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:57:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:58:05 [end_date_ymd] => 2025-03-22 14:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:58:05' and `end` < '2025-03-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-03-22 14:58:18] Production.INFO: count ==2506 [2025-03-22 14:58:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:58:05 - End Time 2025-03-22 14:58:05 [2025-03-22 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738283', 'tblTempUsageDetail_20' ) start [2025-03-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738283', 'tblTempUsageDetail_20' ) end [2025-03-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738283', 'tblTempVendorCDR_20' ) start [2025-03-22 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738283', 'tblTempVendorCDR_20' ) end [2025-03-22 14:58:19] Production.INFO: ProcessCDR(1,14738283,1,1,2) [2025-03-22 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738283', 'tblTempUsageDetail_20' ) start [2025-03-22 14:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738283', 'tblTempUsageDetail_20' ) end [2025-03-22 14:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:58:24] Production.INFO: ==7170== Releasing lock... [2025-03-22 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:58:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 11:59:05 [end_date_ymd] => 2025-03-22 14:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 11:59:05' and `end` < '2025-03-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-03-22 14:59:18] Production.INFO: count ==2516 [2025-03-22 14:59:19] Production.ERROR: pbx CDR StartTime 2025-03-22 11:59:05 - End Time 2025-03-22 14:59:05 [2025-03-22 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738288', 'tblTempUsageDetail_20' ) start [2025-03-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738288', 'tblTempUsageDetail_20' ) end [2025-03-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738288', 'tblTempVendorCDR_20' ) start [2025-03-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738288', 'tblTempVendorCDR_20' ) end [2025-03-22 14:59:19] Production.INFO: ProcessCDR(1,14738288,1,1,2) [2025-03-22 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738288', 'tblTempUsageDetail_20' ) start [2025-03-22 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738288', 'tblTempUsageDetail_20' ) end [2025-03-22 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 14:59:23] Production.INFO: ==7245== Releasing lock... [2025-03-22 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 14:59:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:00:06 [end_date_ymd] => 2025-03-22 15:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:00:06' and `end` < '2025-03-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-03-22 15:00:18] Production.INFO: count ==2513 [2025-03-22 15:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:00:06 - End Time 2025-03-22 15:00:06 [2025-03-22 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738293', 'tblTempUsageDetail_20' ) start [2025-03-22 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738293', 'tblTempUsageDetail_20' ) end [2025-03-22 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738293', 'tblTempVendorCDR_20' ) start [2025-03-22 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738293', 'tblTempVendorCDR_20' ) end [2025-03-22 15:00:19] Production.INFO: ProcessCDR(1,14738293,1,1,2) [2025-03-22 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738293', 'tblTempUsageDetail_20' ) start [2025-03-22 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738293', 'tblTempUsageDetail_20' ) end [2025-03-22 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:00:23] Production.INFO: ==7323== Releasing lock... [2025-03-22 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:00:23] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:01:05 [end_date_ymd] => 2025-03-22 15:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:01:05' and `end` < '2025-03-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-03-22 15:01:18] Production.INFO: count ==2507 [2025-03-22 15:01:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:01:05 - End Time 2025-03-22 15:01:05 [2025-03-22 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738299', 'tblTempUsageDetail_20' ) start [2025-03-22 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738299', 'tblTempUsageDetail_20' ) end [2025-03-22 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738299', 'tblTempVendorCDR_20' ) start [2025-03-22 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738299', 'tblTempVendorCDR_20' ) end [2025-03-22 15:01:19] Production.INFO: ProcessCDR(1,14738299,1,1,2) [2025-03-22 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738299', 'tblTempUsageDetail_20' ) start [2025-03-22 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738299', 'tblTempUsageDetail_20' ) end [2025-03-22 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:01:23] Production.INFO: ==7407== Releasing lock... [2025-03-22 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:01:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:02:05 [end_date_ymd] => 2025-03-22 15:02:05 [RateCDR] => 1 ) [2025-03-22 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:02:05' and `end` < '2025-03-22 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:02:18] Production.INFO: count ==2517 [2025-03-22 15:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:02:05 - End Time 2025-03-22 15:02:05 [2025-03-22 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738304', 'tblTempUsageDetail_20' ) start [2025-03-22 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738304', 'tblTempUsageDetail_20' ) end [2025-03-22 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738304', 'tblTempVendorCDR_20' ) start [2025-03-22 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738304', 'tblTempVendorCDR_20' ) end [2025-03-22 15:02:19] Production.INFO: ProcessCDR(1,14738304,1,1,2) [2025-03-22 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738304', 'tblTempUsageDetail_20' ) start [2025-03-22 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738304', 'tblTempUsageDetail_20' ) end [2025-03-22 15:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:02:24] Production.INFO: ==7562== Releasing lock... [2025-03-22 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:02:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:03:05 [end_date_ymd] => 2025-03-22 15:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:03:05' and `end` < '2025-03-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-03-22 15:03:18] Production.INFO: count ==2513 [2025-03-22 15:03:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:03:05 - End Time 2025-03-22 15:03:05 [2025-03-22 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738309', 'tblTempUsageDetail_20' ) start [2025-03-22 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738309', 'tblTempUsageDetail_20' ) end [2025-03-22 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738309', 'tblTempVendorCDR_20' ) start [2025-03-22 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738309', 'tblTempVendorCDR_20' ) end [2025-03-22 15:03:19] Production.INFO: ProcessCDR(1,14738309,1,1,2) [2025-03-22 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738309', 'tblTempUsageDetail_20' ) start [2025-03-22 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738309', 'tblTempUsageDetail_20' ) end [2025-03-22 15:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:03:24] Production.INFO: ==7634== Releasing lock... [2025-03-22 15:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:03:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:04:05 [end_date_ymd] => 2025-03-22 15:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:04:05' and `end` < '2025-03-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-03-22 15:04:17] Production.INFO: count ==2521 [2025-03-22 15:04:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:04:05 - End Time 2025-03-22 15:04:05 [2025-03-22 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738314', 'tblTempUsageDetail_20' ) start [2025-03-22 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738314', 'tblTempUsageDetail_20' ) end [2025-03-22 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738314', 'tblTempVendorCDR_20' ) start [2025-03-22 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738314', 'tblTempVendorCDR_20' ) end [2025-03-22 15:04:19] Production.INFO: ProcessCDR(1,14738314,1,1,2) [2025-03-22 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738314', 'tblTempUsageDetail_20' ) start [2025-03-22 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738314', 'tblTempUsageDetail_20' ) end [2025-03-22 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:04:24] Production.INFO: ==7745== Releasing lock... [2025-03-22 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:04:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:05:05 [end_date_ymd] => 2025-03-22 15:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:05:05' and `end` < '2025-03-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-03-22 15:05:18] Production.INFO: count ==2525 [2025-03-22 15:05:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:05:05 - End Time 2025-03-22 15:05:05 [2025-03-22 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738319', 'tblTempUsageDetail_20' ) start [2025-03-22 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738319', 'tblTempUsageDetail_20' ) end [2025-03-22 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738319', 'tblTempVendorCDR_20' ) start [2025-03-22 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738319', 'tblTempVendorCDR_20' ) end [2025-03-22 15:05:19] Production.INFO: ProcessCDR(1,14738319,1,1,2) [2025-03-22 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738319', 'tblTempUsageDetail_20' ) start [2025-03-22 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738319', 'tblTempUsageDetail_20' ) end [2025-03-22 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:05:22] Production.INFO: ==7897== Releasing lock... [2025-03-22 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:05:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:06:05 [end_date_ymd] => 2025-03-22 15:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:06:05' and `end` < '2025-03-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-03-22 15:06:18] Production.INFO: count ==2533 [2025-03-22 15:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:06:05 - End Time 2025-03-22 15:06:05 [2025-03-22 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738324', 'tblTempUsageDetail_20' ) start [2025-03-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738324', 'tblTempUsageDetail_20' ) end [2025-03-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738324', 'tblTempVendorCDR_20' ) start [2025-03-22 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738324', 'tblTempVendorCDR_20' ) end [2025-03-22 15:06:19] Production.INFO: ProcessCDR(1,14738324,1,1,2) [2025-03-22 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738324', 'tblTempUsageDetail_20' ) start [2025-03-22 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738324', 'tblTempUsageDetail_20' ) end [2025-03-22 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:06:24] Production.INFO: ==7972== Releasing lock... [2025-03-22 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:06:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:07:05 [end_date_ymd] => 2025-03-22 15:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:07:05' and `end` < '2025-03-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-03-22 15:07:18] Production.INFO: count ==2513 [2025-03-22 15:07:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:07:05 - End Time 2025-03-22 15:07:05 [2025-03-22 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738329', 'tblTempUsageDetail_20' ) start [2025-03-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738329', 'tblTempUsageDetail_20' ) end [2025-03-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738329', 'tblTempVendorCDR_20' ) start [2025-03-22 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738329', 'tblTempVendorCDR_20' ) end [2025-03-22 15:07:19] Production.INFO: ProcessCDR(1,14738329,1,1,2) [2025-03-22 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738329', 'tblTempUsageDetail_20' ) start [2025-03-22 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738329', 'tblTempUsageDetail_20' ) end [2025-03-22 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:07:22] Production.INFO: ==8047== Releasing lock... [2025-03-22 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:07:22] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:08:05 [end_date_ymd] => 2025-03-22 15:08:05 [RateCDR] => 1 ) [2025-03-22 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:08:05' and `end` < '2025-03-22 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:08:18] Production.INFO: count ==2506 [2025-03-22 15:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:08:05 - End Time 2025-03-22 15:08:05 [2025-03-22 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738334', 'tblTempUsageDetail_20' ) start [2025-03-22 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738334', 'tblTempUsageDetail_20' ) end [2025-03-22 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738334', 'tblTempVendorCDR_20' ) start [2025-03-22 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738334', 'tblTempVendorCDR_20' ) end [2025-03-22 15:08:19] Production.INFO: ProcessCDR(1,14738334,1,1,2) [2025-03-22 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738334', 'tblTempUsageDetail_20' ) start [2025-03-22 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738334', 'tblTempUsageDetail_20' ) end [2025-03-22 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:08:24] Production.INFO: ==8125== Releasing lock... [2025-03-22 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:08:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:09:05 [end_date_ymd] => 2025-03-22 15:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:09:05' and `end` < '2025-03-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-03-22 15:09:18] Production.INFO: count ==2514 [2025-03-22 15:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:09:05 - End Time 2025-03-22 15:09:05 [2025-03-22 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738339', 'tblTempUsageDetail_20' ) start [2025-03-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738339', 'tblTempUsageDetail_20' ) end [2025-03-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738339', 'tblTempVendorCDR_20' ) start [2025-03-22 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738339', 'tblTempVendorCDR_20' ) end [2025-03-22 15:09:19] Production.INFO: ProcessCDR(1,14738339,1,1,2) [2025-03-22 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738339', 'tblTempUsageDetail_20' ) start [2025-03-22 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738339', 'tblTempUsageDetail_20' ) end [2025-03-22 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:09:24] Production.INFO: ==8278== Releasing lock... [2025-03-22 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:09:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:10:06 [end_date_ymd] => 2025-03-22 15:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:10:06' and `end` < '2025-03-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-03-22 15:10:18] Production.INFO: count ==2514 [2025-03-22 15:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:10:06 - End Time 2025-03-22 15:10:06 [2025-03-22 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738344', 'tblTempUsageDetail_20' ) start [2025-03-22 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738344', 'tblTempUsageDetail_20' ) end [2025-03-22 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738344', 'tblTempVendorCDR_20' ) start [2025-03-22 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738344', 'tblTempVendorCDR_20' ) end [2025-03-22 15:10:20] Production.INFO: ProcessCDR(1,14738344,1,1,2) [2025-03-22 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738344', 'tblTempUsageDetail_20' ) start [2025-03-22 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738344', 'tblTempUsageDetail_20' ) end [2025-03-22 15:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:10:25] Production.INFO: ==8373== Releasing lock... [2025-03-22 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:10:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:11:05 [end_date_ymd] => 2025-03-22 15:11:05 [RateCDR] => 1 ) [2025-03-22 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:11:05' and `end` < '2025-03-22 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:11:18] Production.INFO: count ==2542 [2025-03-22 15:11:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:11:05 - End Time 2025-03-22 15:11:05 [2025-03-22 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738350', 'tblTempUsageDetail_20' ) start [2025-03-22 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738350', 'tblTempUsageDetail_20' ) end [2025-03-22 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738350', 'tblTempVendorCDR_20' ) start [2025-03-22 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738350', 'tblTempVendorCDR_20' ) end [2025-03-22 15:11:19] Production.INFO: ProcessCDR(1,14738350,1,1,2) [2025-03-22 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738350', 'tblTempUsageDetail_20' ) start [2025-03-22 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738350', 'tblTempUsageDetail_20' ) end [2025-03-22 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:11:24] Production.INFO: ==8450== Releasing lock... [2025-03-22 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:11:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:12:05 [end_date_ymd] => 2025-03-22 15:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:12:05' and `end` < '2025-03-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-03-22 15:12:18] Production.INFO: count ==2558 [2025-03-22 15:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:12:05 - End Time 2025-03-22 15:12:05 [2025-03-22 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738355', 'tblTempUsageDetail_20' ) start [2025-03-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738355', 'tblTempUsageDetail_20' ) end [2025-03-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738355', 'tblTempVendorCDR_20' ) start [2025-03-22 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738355', 'tblTempVendorCDR_20' ) end [2025-03-22 15:12:19] Production.INFO: ProcessCDR(1,14738355,1,1,2) [2025-03-22 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738355', 'tblTempUsageDetail_20' ) start [2025-03-22 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738355', 'tblTempUsageDetail_20' ) end [2025-03-22 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:12:24] Production.INFO: ==8599== Releasing lock... [2025-03-22 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:12:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:13:06 [end_date_ymd] => 2025-03-22 15:13:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:13:06' and `end` < '2025-03-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-03-22 15:13:18] Production.INFO: count ==2561 [2025-03-22 15:13:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:13:06 - End Time 2025-03-22 15:13:06 [2025-03-22 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738360', 'tblTempUsageDetail_20' ) start [2025-03-22 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738360', 'tblTempUsageDetail_20' ) end [2025-03-22 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738360', 'tblTempVendorCDR_20' ) start [2025-03-22 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738360', 'tblTempVendorCDR_20' ) end [2025-03-22 15:13:19] Production.INFO: ProcessCDR(1,14738360,1,1,2) [2025-03-22 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738360', 'tblTempUsageDetail_20' ) start [2025-03-22 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738360', 'tblTempUsageDetail_20' ) end [2025-03-22 15:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:13:24] Production.INFO: ==8672== Releasing lock... [2025-03-22 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:13:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:14:05 [end_date_ymd] => 2025-03-22 15:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:14:05' and `end` < '2025-03-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-03-22 15:14:18] Production.INFO: count ==2573 [2025-03-22 15:14:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:14:05 - End Time 2025-03-22 15:14:05 [2025-03-22 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738365', 'tblTempUsageDetail_20' ) start [2025-03-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738365', 'tblTempUsageDetail_20' ) end [2025-03-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738365', 'tblTempVendorCDR_20' ) start [2025-03-22 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738365', 'tblTempVendorCDR_20' ) end [2025-03-22 15:14:19] Production.INFO: ProcessCDR(1,14738365,1,1,2) [2025-03-22 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738365', 'tblTempUsageDetail_20' ) start [2025-03-22 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738365', 'tblTempUsageDetail_20' ) end [2025-03-22 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:14:22] Production.INFO: ==8745== Releasing lock... [2025-03-22 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:14:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:15:06 [end_date_ymd] => 2025-03-22 15:15:06 [RateCDR] => 1 ) [2025-03-22 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:15:06' and `end` < '2025-03-22 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:15:18] Production.INFO: count ==2578 [2025-03-22 15:15:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:15:06 - End Time 2025-03-22 15:15:06 [2025-03-22 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738370', 'tblTempUsageDetail_20' ) start [2025-03-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738370', 'tblTempUsageDetail_20' ) end [2025-03-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738370', 'tblTempVendorCDR_20' ) start [2025-03-22 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738370', 'tblTempVendorCDR_20' ) end [2025-03-22 15:15:19] Production.INFO: ProcessCDR(1,14738370,1,1,2) [2025-03-22 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738370', 'tblTempUsageDetail_20' ) start [2025-03-22 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738370', 'tblTempUsageDetail_20' ) end [2025-03-22 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:15:25] Production.INFO: ==8860== Releasing lock... [2025-03-22 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:15:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:16:06 [end_date_ymd] => 2025-03-22 15:16:06 [RateCDR] => 1 ) [2025-03-22 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:16:06' and `end` < '2025-03-22 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:16:18] Production.INFO: count ==2596 [2025-03-22 15:16:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:16:06 - End Time 2025-03-22 15:16:06 [2025-03-22 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738375', 'tblTempUsageDetail_20' ) start [2025-03-22 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738375', 'tblTempUsageDetail_20' ) end [2025-03-22 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738375', 'tblTempVendorCDR_20' ) start [2025-03-22 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738375', 'tblTempVendorCDR_20' ) end [2025-03-22 15:16:20] Production.INFO: ProcessCDR(1,14738375,1,1,2) [2025-03-22 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738375', 'tblTempUsageDetail_20' ) start [2025-03-22 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738375', 'tblTempUsageDetail_20' ) end [2025-03-22 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:16:25] Production.INFO: ==8975== Releasing lock... [2025-03-22 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:16:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:17:05 [end_date_ymd] => 2025-03-22 15:17:05 [RateCDR] => 1 ) [2025-03-22 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:17:05' and `end` < '2025-03-22 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:17:18] Production.INFO: count ==2625 [2025-03-22 15:17:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:17:05 - End Time 2025-03-22 15:17:05 [2025-03-22 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738380', 'tblTempUsageDetail_20' ) start [2025-03-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738380', 'tblTempUsageDetail_20' ) end [2025-03-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738380', 'tblTempVendorCDR_20' ) start [2025-03-22 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738380', 'tblTempVendorCDR_20' ) end [2025-03-22 15:17:19] Production.INFO: ProcessCDR(1,14738380,1,1,2) [2025-03-22 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738380', 'tblTempUsageDetail_20' ) start [2025-03-22 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738380', 'tblTempUsageDetail_20' ) end [2025-03-22 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:17:22] Production.INFO: ==9046== Releasing lock... [2025-03-22 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:17:22] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:18:05 [end_date_ymd] => 2025-03-22 15:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:18:05' and `end` < '2025-03-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-03-22 15:18:18] Production.INFO: count ==2633 [2025-03-22 15:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:18:05 - End Time 2025-03-22 15:18:05 [2025-03-22 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738385', 'tblTempUsageDetail_20' ) start [2025-03-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738385', 'tblTempUsageDetail_20' ) end [2025-03-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738385', 'tblTempVendorCDR_20' ) start [2025-03-22 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738385', 'tblTempVendorCDR_20' ) end [2025-03-22 15:18:19] Production.INFO: ProcessCDR(1,14738385,1,1,2) [2025-03-22 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738385', 'tblTempUsageDetail_20' ) start [2025-03-22 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738385', 'tblTempUsageDetail_20' ) end [2025-03-22 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:18:24] Production.INFO: ==9121== Releasing lock... [2025-03-22 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:18:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:19:05 [end_date_ymd] => 2025-03-22 15:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:19:05' and `end` < '2025-03-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-03-22 15:19:17] Production.INFO: count ==2633 [2025-03-22 15:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:19:05 - End Time 2025-03-22 15:19:05 [2025-03-22 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738390', 'tblTempUsageDetail_20' ) start [2025-03-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738390', 'tblTempUsageDetail_20' ) end [2025-03-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738390', 'tblTempVendorCDR_20' ) start [2025-03-22 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738390', 'tblTempVendorCDR_20' ) end [2025-03-22 15:19:18] Production.INFO: ProcessCDR(1,14738390,1,1,2) [2025-03-22 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738390', 'tblTempUsageDetail_20' ) start [2025-03-22 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738390', 'tblTempUsageDetail_20' ) end [2025-03-22 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:19:23] Production.INFO: ==9236== Releasing lock... [2025-03-22 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:19:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:20:06 [end_date_ymd] => 2025-03-22 15:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:20:06' and `end` < '2025-03-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-03-22 15:20:19] Production.INFO: count ==2640 [2025-03-22 15:20:20] Production.ERROR: pbx CDR StartTime 2025-03-22 12:20:06 - End Time 2025-03-22 15:20:06 [2025-03-22 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738396', 'tblTempUsageDetail_20' ) start [2025-03-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738396', 'tblTempUsageDetail_20' ) end [2025-03-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738396', 'tblTempVendorCDR_20' ) start [2025-03-22 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738396', 'tblTempVendorCDR_20' ) end [2025-03-22 15:20:20] Production.INFO: ProcessCDR(1,14738396,1,1,2) [2025-03-22 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738396', 'tblTempUsageDetail_20' ) start [2025-03-22 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738396', 'tblTempUsageDetail_20' ) end [2025-03-22 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:20:24] Production.INFO: ==9310== Releasing lock... [2025-03-22 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:20:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:21:05 [end_date_ymd] => 2025-03-22 15:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:21:05' and `end` < '2025-03-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-03-22 15:21:18] Production.INFO: count ==2656 [2025-03-22 15:21:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:21:05 - End Time 2025-03-22 15:21:05 [2025-03-22 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738401', 'tblTempUsageDetail_20' ) start [2025-03-22 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738401', 'tblTempUsageDetail_20' ) end [2025-03-22 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738401', 'tblTempVendorCDR_20' ) start [2025-03-22 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738401', 'tblTempVendorCDR_20' ) end [2025-03-22 15:21:19] Production.INFO: ProcessCDR(1,14738401,1,1,2) [2025-03-22 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738401', 'tblTempUsageDetail_20' ) start [2025-03-22 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738401', 'tblTempUsageDetail_20' ) end [2025-03-22 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:21:22] Production.INFO: ==9388== Releasing lock... [2025-03-22 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:21:22] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:22:05 [end_date_ymd] => 2025-03-22 15:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:22:05' and `end` < '2025-03-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-03-22 15:22:18] Production.INFO: count ==2657 [2025-03-22 15:22:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:22:05 - End Time 2025-03-22 15:22:05 [2025-03-22 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738406', 'tblTempUsageDetail_20' ) start [2025-03-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738406', 'tblTempUsageDetail_20' ) end [2025-03-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738406', 'tblTempVendorCDR_20' ) start [2025-03-22 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738406', 'tblTempVendorCDR_20' ) end [2025-03-22 15:22:19] Production.INFO: ProcessCDR(1,14738406,1,1,2) [2025-03-22 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738406', 'tblTempUsageDetail_20' ) start [2025-03-22 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738406', 'tblTempUsageDetail_20' ) end [2025-03-22 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:22:22] Production.INFO: ==9470== Releasing lock... [2025-03-22 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:22:22] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:23:05 [end_date_ymd] => 2025-03-22 15:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:23:05' and `end` < '2025-03-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-03-22 15:23:18] Production.INFO: count ==2655 [2025-03-22 15:23:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:23:05 - End Time 2025-03-22 15:23:05 [2025-03-22 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738411', 'tblTempUsageDetail_20' ) start [2025-03-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738411', 'tblTempUsageDetail_20' ) end [2025-03-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738411', 'tblTempVendorCDR_20' ) start [2025-03-22 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738411', 'tblTempVendorCDR_20' ) end [2025-03-22 15:23:19] Production.INFO: ProcessCDR(1,14738411,1,1,2) [2025-03-22 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738411', 'tblTempUsageDetail_20' ) start [2025-03-22 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738411', 'tblTempUsageDetail_20' ) end [2025-03-22 15:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:23:22] Production.INFO: ==9546== Releasing lock... [2025-03-22 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:23:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:24:05 [end_date_ymd] => 2025-03-22 15:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:24:05' and `end` < '2025-03-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-03-22 15:24:18] Production.INFO: count ==2657 [2025-03-22 15:24:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:24:05 - End Time 2025-03-22 15:24:05 [2025-03-22 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738416', 'tblTempUsageDetail_20' ) start [2025-03-22 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738416', 'tblTempUsageDetail_20' ) end [2025-03-22 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738416', 'tblTempVendorCDR_20' ) start [2025-03-22 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738416', 'tblTempVendorCDR_20' ) end [2025-03-22 15:24:19] Production.INFO: ProcessCDR(1,14738416,1,1,2) [2025-03-22 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738416', 'tblTempUsageDetail_20' ) start [2025-03-22 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738416', 'tblTempUsageDetail_20' ) end [2025-03-22 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:24:23] Production.INFO: ==9620== Releasing lock... [2025-03-22 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:24:23] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:25:06 [end_date_ymd] => 2025-03-22 15:25:06 [RateCDR] => 1 ) [2025-03-22 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:25:06' and `end` < '2025-03-22 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:25:18] Production.INFO: count ==2657 [2025-03-22 15:25:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:25:06 - End Time 2025-03-22 15:25:06 [2025-03-22 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738421', 'tblTempUsageDetail_20' ) start [2025-03-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738421', 'tblTempUsageDetail_20' ) end [2025-03-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738421', 'tblTempVendorCDR_20' ) start [2025-03-22 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738421', 'tblTempVendorCDR_20' ) end [2025-03-22 15:25:19] Production.INFO: ProcessCDR(1,14738421,1,1,2) [2025-03-22 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738421', 'tblTempUsageDetail_20' ) start [2025-03-22 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738421', 'tblTempUsageDetail_20' ) end [2025-03-22 15:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:25:23] Production.INFO: ==9696== Releasing lock... [2025-03-22 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:25:23] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:26:05 [end_date_ymd] => 2025-03-22 15:26:05 [RateCDR] => 1 ) [2025-03-22 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:26:05' and `end` < '2025-03-22 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:26:18] Production.INFO: count ==2666 [2025-03-22 15:26:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:26:05 - End Time 2025-03-22 15:26:05 [2025-03-22 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738426', 'tblTempUsageDetail_20' ) start [2025-03-22 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738426', 'tblTempUsageDetail_20' ) end [2025-03-22 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738426', 'tblTempVendorCDR_20' ) start [2025-03-22 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738426', 'tblTempVendorCDR_20' ) end [2025-03-22 15:26:19] Production.INFO: ProcessCDR(1,14738426,1,1,2) [2025-03-22 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738426', 'tblTempUsageDetail_20' ) start [2025-03-22 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738426', 'tblTempUsageDetail_20' ) end [2025-03-22 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:26:23] Production.INFO: ==9769== Releasing lock... [2025-03-22 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:26:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:27:04 [end_date_ymd] => 2025-03-22 15:27:04 [RateCDR] => 1 ) [2025-03-22 15: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-03-22 12:27:04' and `end` < '2025-03-22 15: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-03-22 15:27:17] Production.INFO: count ==2668 [2025-03-22 15:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:27:04 - End Time 2025-03-22 15:27:04 [2025-03-22 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738431', 'tblTempUsageDetail_20' ) start [2025-03-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738431', 'tblTempUsageDetail_20' ) end [2025-03-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738431', 'tblTempVendorCDR_20' ) start [2025-03-22 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738431', 'tblTempVendorCDR_20' ) end [2025-03-22 15:27:18] Production.INFO: ProcessCDR(1,14738431,1,1,2) [2025-03-22 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738431', 'tblTempUsageDetail_20' ) start [2025-03-22 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738431', 'tblTempUsageDetail_20' ) end [2025-03-22 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:27:23] Production.INFO: ==9841== Releasing lock... [2025-03-22 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:27:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:28:05 [end_date_ymd] => 2025-03-22 15:28:05 [RateCDR] => 1 ) [2025-03-22 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:28:05' and `end` < '2025-03-22 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:28:17] Production.INFO: count ==2692 [2025-03-22 15:28:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:28:05 - End Time 2025-03-22 15:28:05 [2025-03-22 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738436', 'tblTempUsageDetail_20' ) start [2025-03-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738436', 'tblTempUsageDetail_20' ) end [2025-03-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738436', 'tblTempVendorCDR_20' ) start [2025-03-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738436', 'tblTempVendorCDR_20' ) end [2025-03-22 15:28:19] Production.INFO: ProcessCDR(1,14738436,1,1,2) [2025-03-22 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738436', 'tblTempUsageDetail_20' ) start [2025-03-22 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738436', 'tblTempUsageDetail_20' ) end [2025-03-22 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:28:24] Production.INFO: ==9921== Releasing lock... [2025-03-22 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:28:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:29:05 [end_date_ymd] => 2025-03-22 15:29:05 [RateCDR] => 1 ) [2025-03-22 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:29:05' and `end` < '2025-03-22 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:29:17] Production.INFO: count ==2700 [2025-03-22 15:29:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:29:05 - End Time 2025-03-22 15:29:05 [2025-03-22 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738441', 'tblTempUsageDetail_20' ) start [2025-03-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738441', 'tblTempUsageDetail_20' ) end [2025-03-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738441', 'tblTempVendorCDR_20' ) start [2025-03-22 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738441', 'tblTempVendorCDR_20' ) end [2025-03-22 15:29:19] Production.INFO: ProcessCDR(1,14738441,1,1,2) [2025-03-22 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738441', 'tblTempUsageDetail_20' ) start [2025-03-22 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738441', 'tblTempUsageDetail_20' ) end [2025-03-22 15:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:29:24] Production.INFO: ==9995== Releasing lock... [2025-03-22 15:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:29:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:30:06 [end_date_ymd] => 2025-03-22 15:30:06 [RateCDR] => 1 ) [2025-03-22 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:30:06' and `end` < '2025-03-22 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:30:19] Production.INFO: count ==2701 [2025-03-22 15:30:20] Production.ERROR: pbx CDR StartTime 2025-03-22 12:30:06 - End Time 2025-03-22 15:30:06 [2025-03-22 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738447', 'tblTempUsageDetail_20' ) start [2025-03-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738447', 'tblTempUsageDetail_20' ) end [2025-03-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738447', 'tblTempVendorCDR_20' ) start [2025-03-22 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738447', 'tblTempVendorCDR_20' ) end [2025-03-22 15:30:20] Production.INFO: ProcessCDR(1,14738447,1,1,2) [2025-03-22 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738447', 'tblTempUsageDetail_20' ) start [2025-03-22 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738447', 'tblTempUsageDetail_20' ) end [2025-03-22 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:30:25] Production.INFO: ==10076== Releasing lock... [2025-03-22 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:30:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:31:05 [end_date_ymd] => 2025-03-22 15:31:05 [RateCDR] => 1 ) [2025-03-22 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:31:05' and `end` < '2025-03-22 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:31:17] Production.INFO: count ==2701 [2025-03-22 15:31:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:31:05 - End Time 2025-03-22 15:31:05 [2025-03-22 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738452', 'tblTempUsageDetail_20' ) start [2025-03-22 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738452', 'tblTempUsageDetail_20' ) end [2025-03-22 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738452', 'tblTempVendorCDR_20' ) start [2025-03-22 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738452', 'tblTempVendorCDR_20' ) end [2025-03-22 15:31:19] Production.INFO: ProcessCDR(1,14738452,1,1,2) [2025-03-22 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738452', 'tblTempUsageDetail_20' ) start [2025-03-22 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738452', 'tblTempUsageDetail_20' ) end [2025-03-22 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:31:24] Production.INFO: ==10157== Releasing lock... [2025-03-22 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:31:24] Production.INFO: 49 MB #Memory Used# [2025-03-22 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:32:06 [end_date_ymd] => 2025-03-22 15:32:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:32:06' and `end` < '2025-03-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-03-22 15:32:18] Production.INFO: count ==2700 [2025-03-22 15:32:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:32:06 - End Time 2025-03-22 15:32:06 [2025-03-22 15:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738457', 'tblTempUsageDetail_20' ) start [2025-03-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738457', 'tblTempUsageDetail_20' ) end [2025-03-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738457', 'tblTempVendorCDR_20' ) start [2025-03-22 15:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738457', 'tblTempVendorCDR_20' ) end [2025-03-22 15:32:19] Production.INFO: ProcessCDR(1,14738457,1,1,2) [2025-03-22 15:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738457', 'tblTempUsageDetail_20' ) start [2025-03-22 15:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738457', 'tblTempUsageDetail_20' ) end [2025-03-22 15:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:32:24] Production.INFO: ==10235== Releasing lock... [2025-03-22 15:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:32:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:33:05 [end_date_ymd] => 2025-03-22 15:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:33:05' and `end` < '2025-03-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-03-22 15:33:18] Production.INFO: count ==2700 [2025-03-22 15:33:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:33:05 - End Time 2025-03-22 15:33:05 [2025-03-22 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738462', 'tblTempUsageDetail_20' ) start [2025-03-22 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738462', 'tblTempUsageDetail_20' ) end [2025-03-22 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738462', 'tblTempVendorCDR_20' ) start [2025-03-22 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738462', 'tblTempVendorCDR_20' ) end [2025-03-22 15:33:19] Production.INFO: ProcessCDR(1,14738462,1,1,2) [2025-03-22 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738462', 'tblTempUsageDetail_20' ) start [2025-03-22 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738462', 'tblTempUsageDetail_20' ) end [2025-03-22 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:33:22] Production.INFO: ==10307== Releasing lock... [2025-03-22 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:33:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:34:05 [end_date_ymd] => 2025-03-22 15:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:34:05' and `end` < '2025-03-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-03-22 15:34:18] Production.INFO: count ==2696 [2025-03-22 15:34:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:34:05 - End Time 2025-03-22 15:34:05 [2025-03-22 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738467', 'tblTempUsageDetail_20' ) start [2025-03-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738467', 'tblTempUsageDetail_20' ) end [2025-03-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738467', 'tblTempVendorCDR_20' ) start [2025-03-22 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738467', 'tblTempVendorCDR_20' ) end [2025-03-22 15:34:19] Production.INFO: ProcessCDR(1,14738467,1,1,2) [2025-03-22 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738467', 'tblTempUsageDetail_20' ) start [2025-03-22 15:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738467', 'tblTempUsageDetail_20' ) end [2025-03-22 15:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:34:24] Production.INFO: ==10385== Releasing lock... [2025-03-22 15:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:34:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:35:05 [end_date_ymd] => 2025-03-22 15:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:35:05' and `end` < '2025-03-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-03-22 15:35:17] Production.INFO: count ==2677 [2025-03-22 15:35:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:35:05 - End Time 2025-03-22 15:35:05 [2025-03-22 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738472', 'tblTempUsageDetail_20' ) start [2025-03-22 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738472', 'tblTempUsageDetail_20' ) end [2025-03-22 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738472', 'tblTempVendorCDR_20' ) start [2025-03-22 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738472', 'tblTempVendorCDR_20' ) end [2025-03-22 15:35:19] Production.INFO: ProcessCDR(1,14738472,1,1,2) [2025-03-22 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738472', 'tblTempUsageDetail_20' ) start [2025-03-22 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738472', 'tblTempUsageDetail_20' ) end [2025-03-22 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:35:22] Production.INFO: ==10515== Releasing lock... [2025-03-22 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:35:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:36:05 [end_date_ymd] => 2025-03-22 15:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:36:05' and `end` < '2025-03-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-03-22 15:36:17] Production.INFO: count ==2664 [2025-03-22 15:36:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:36:05 - End Time 2025-03-22 15:36:05 [2025-03-22 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738477', 'tblTempUsageDetail_20' ) start [2025-03-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738477', 'tblTempUsageDetail_20' ) end [2025-03-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738477', 'tblTempVendorCDR_20' ) start [2025-03-22 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738477', 'tblTempVendorCDR_20' ) end [2025-03-22 15:36:19] Production.INFO: ProcessCDR(1,14738477,1,1,2) [2025-03-22 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738477', 'tblTempUsageDetail_20' ) start [2025-03-22 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738477', 'tblTempUsageDetail_20' ) end [2025-03-22 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:36:22] Production.INFO: ==10589== Releasing lock... [2025-03-22 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:36:22] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:37:06 [end_date_ymd] => 2025-03-22 15:37:06 [RateCDR] => 1 ) [2025-03-22 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:37:06' and `end` < '2025-03-22 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:37:18] Production.INFO: count ==2660 [2025-03-22 15:37:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:37:06 - End Time 2025-03-22 15:37:06 [2025-03-22 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738482', 'tblTempUsageDetail_20' ) start [2025-03-22 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738482', 'tblTempUsageDetail_20' ) end [2025-03-22 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738482', 'tblTempVendorCDR_20' ) start [2025-03-22 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738482', 'tblTempVendorCDR_20' ) end [2025-03-22 15:37:19] Production.INFO: ProcessCDR(1,14738482,1,1,2) [2025-03-22 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738482', 'tblTempUsageDetail_20' ) start [2025-03-22 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738482', 'tblTempUsageDetail_20' ) end [2025-03-22 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:37:23] Production.INFO: ==10669== Releasing lock... [2025-03-22 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:37:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:38:05 [end_date_ymd] => 2025-03-22 15:38:05 [RateCDR] => 1 ) [2025-03-22 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:38:05' and `end` < '2025-03-22 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:38:18] Production.INFO: count ==2658 [2025-03-22 15:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:38:05 - End Time 2025-03-22 15:38:05 [2025-03-22 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738487', 'tblTempUsageDetail_20' ) start [2025-03-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738487', 'tblTempUsageDetail_20' ) end [2025-03-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738487', 'tblTempVendorCDR_20' ) start [2025-03-22 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738487', 'tblTempVendorCDR_20' ) end [2025-03-22 15:38:19] Production.INFO: ProcessCDR(1,14738487,1,1,2) [2025-03-22 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738487', 'tblTempUsageDetail_20' ) start [2025-03-22 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738487', 'tblTempUsageDetail_20' ) end [2025-03-22 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:38:22] Production.INFO: ==10748== Releasing lock... [2025-03-22 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:38:22] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:39:05 [end_date_ymd] => 2025-03-22 15:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:39:05' and `end` < '2025-03-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-03-22 15:39:18] Production.INFO: count ==2648 [2025-03-22 15:39:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:39:05 - End Time 2025-03-22 15:39:05 [2025-03-22 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738492', 'tblTempUsageDetail_20' ) start [2025-03-22 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738492', 'tblTempUsageDetail_20' ) end [2025-03-22 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738492', 'tblTempVendorCDR_20' ) start [2025-03-22 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738492', 'tblTempVendorCDR_20' ) end [2025-03-22 15:39:19] Production.INFO: ProcessCDR(1,14738492,1,1,2) [2025-03-22 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738492', 'tblTempUsageDetail_20' ) start [2025-03-22 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738492', 'tblTempUsageDetail_20' ) end [2025-03-22 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:39:22] Production.INFO: ==10825== Releasing lock... [2025-03-22 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:39:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:40:06 [end_date_ymd] => 2025-03-22 15:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:40:06' and `end` < '2025-03-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-03-22 15:40:18] Production.INFO: count ==2644 [2025-03-22 15:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:40:06 - End Time 2025-03-22 15:40:06 [2025-03-22 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738498', 'tblTempUsageDetail_20' ) start [2025-03-22 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738498', 'tblTempUsageDetail_20' ) end [2025-03-22 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738498', 'tblTempVendorCDR_20' ) start [2025-03-22 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738498', 'tblTempVendorCDR_20' ) end [2025-03-22 15:40:19] Production.INFO: ProcessCDR(1,14738498,1,1,2) [2025-03-22 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738498', 'tblTempUsageDetail_20' ) start [2025-03-22 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738498', 'tblTempUsageDetail_20' ) end [2025-03-22 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:40:24] Production.INFO: ==10900== Releasing lock... [2025-03-22 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:40:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:41:05 [end_date_ymd] => 2025-03-22 15:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:41:05' and `end` < '2025-03-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-03-22 15:41:18] Production.INFO: count ==2639 [2025-03-22 15:41:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:41:05 - End Time 2025-03-22 15:41:05 [2025-03-22 15:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738503', 'tblTempUsageDetail_20' ) start [2025-03-22 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738503', 'tblTempUsageDetail_20' ) end [2025-03-22 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738503', 'tblTempVendorCDR_20' ) start [2025-03-22 15:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738503', 'tblTempVendorCDR_20' ) end [2025-03-22 15:41:19] Production.INFO: ProcessCDR(1,14738503,1,1,2) [2025-03-22 15:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738503', 'tblTempUsageDetail_20' ) start [2025-03-22 15:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738503', 'tblTempUsageDetail_20' ) end [2025-03-22 15:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:41:24] Production.INFO: ==10987== Releasing lock... [2025-03-22 15:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:41:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:42:05 [end_date_ymd] => 2025-03-22 15:42:05 [RateCDR] => 1 ) [2025-03-22 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:42:05' and `end` < '2025-03-22 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:42:17] Production.INFO: count ==2638 [2025-03-22 15:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:42:05 - End Time 2025-03-22 15:42:05 [2025-03-22 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738508', 'tblTempUsageDetail_20' ) start [2025-03-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738508', 'tblTempUsageDetail_20' ) end [2025-03-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738508', 'tblTempVendorCDR_20' ) start [2025-03-22 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738508', 'tblTempVendorCDR_20' ) end [2025-03-22 15:42:19] Production.INFO: ProcessCDR(1,14738508,1,1,2) [2025-03-22 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738508', 'tblTempUsageDetail_20' ) start [2025-03-22 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738508', 'tblTempUsageDetail_20' ) end [2025-03-22 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:42:22] Production.INFO: ==11067== Releasing lock... [2025-03-22 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:42:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:43:05 [end_date_ymd] => 2025-03-22 15:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:43:05' and `end` < '2025-03-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-03-22 15:43:18] Production.INFO: count ==2639 [2025-03-22 15:43:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:43:05 - End Time 2025-03-22 15:43:05 [2025-03-22 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738513', 'tblTempUsageDetail_20' ) start [2025-03-22 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738513', 'tblTempUsageDetail_20' ) end [2025-03-22 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738513', 'tblTempVendorCDR_20' ) start [2025-03-22 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738513', 'tblTempVendorCDR_20' ) end [2025-03-22 15:43:19] Production.INFO: ProcessCDR(1,14738513,1,1,2) [2025-03-22 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738513', 'tblTempUsageDetail_20' ) start [2025-03-22 15:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738513', 'tblTempUsageDetail_20' ) end [2025-03-22 15:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:43:24] Production.INFO: ==11141== Releasing lock... [2025-03-22 15:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:43:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:44:05 [end_date_ymd] => 2025-03-22 15:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:44:05' and `end` < '2025-03-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-03-22 15:44:17] Production.INFO: count ==2647 [2025-03-22 15:44:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:44:05 - End Time 2025-03-22 15:44:05 [2025-03-22 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738518', 'tblTempUsageDetail_20' ) start [2025-03-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738518', 'tblTempUsageDetail_20' ) end [2025-03-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738518', 'tblTempVendorCDR_20' ) start [2025-03-22 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738518', 'tblTempVendorCDR_20' ) end [2025-03-22 15:44:19] Production.INFO: ProcessCDR(1,14738518,1,1,2) [2025-03-22 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738518', 'tblTempUsageDetail_20' ) start [2025-03-22 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738518', 'tblTempUsageDetail_20' ) end [2025-03-22 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:44:23] Production.INFO: ==11214== Releasing lock... [2025-03-22 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:44:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:45:05 [end_date_ymd] => 2025-03-22 15:45:05 [RateCDR] => 1 ) [2025-03-22 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:45:05' and `end` < '2025-03-22 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:45:17] Production.INFO: count ==2635 [2025-03-22 15:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:45:05 - End Time 2025-03-22 15:45:05 [2025-03-22 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738523', 'tblTempUsageDetail_20' ) start [2025-03-22 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738523', 'tblTempUsageDetail_20' ) end [2025-03-22 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738523', 'tblTempVendorCDR_20' ) start [2025-03-22 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738523', 'tblTempVendorCDR_20' ) end [2025-03-22 15:45:19] Production.INFO: ProcessCDR(1,14738523,1,1,2) [2025-03-22 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738523', 'tblTempUsageDetail_20' ) start [2025-03-22 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738523', 'tblTempUsageDetail_20' ) end [2025-03-22 15:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:45:24] Production.INFO: ==11290== Releasing lock... [2025-03-22 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:45:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:46:05 [end_date_ymd] => 2025-03-22 15:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:46:05' and `end` < '2025-03-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-03-22 15:46:17] Production.INFO: count ==2635 [2025-03-22 15:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:46:05 - End Time 2025-03-22 15:46:05 [2025-03-22 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738528', 'tblTempUsageDetail_20' ) start [2025-03-22 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738528', 'tblTempUsageDetail_20' ) end [2025-03-22 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738528', 'tblTempVendorCDR_20' ) start [2025-03-22 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738528', 'tblTempVendorCDR_20' ) end [2025-03-22 15:46:18] Production.INFO: ProcessCDR(1,14738528,1,1,2) [2025-03-22 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738528', 'tblTempUsageDetail_20' ) start [2025-03-22 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738528', 'tblTempUsageDetail_20' ) end [2025-03-22 15:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:46:23] Production.INFO: ==11366== Releasing lock... [2025-03-22 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:46:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:47:05 [end_date_ymd] => 2025-03-22 15:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:47:05' and `end` < '2025-03-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-03-22 15:47:18] Production.INFO: count ==2642 [2025-03-22 15:47:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:47:05 - End Time 2025-03-22 15:47:05 [2025-03-22 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738533', 'tblTempUsageDetail_20' ) start [2025-03-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738533', 'tblTempUsageDetail_20' ) end [2025-03-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738533', 'tblTempVendorCDR_20' ) start [2025-03-22 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738533', 'tblTempVendorCDR_20' ) end [2025-03-22 15:47:19] Production.INFO: ProcessCDR(1,14738533,1,1,2) [2025-03-22 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738533', 'tblTempUsageDetail_20' ) start [2025-03-22 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738533', 'tblTempUsageDetail_20' ) end [2025-03-22 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:47:24] Production.INFO: ==11443== Releasing lock... [2025-03-22 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:47:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:48:05 [end_date_ymd] => 2025-03-22 15:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:48:05' and `end` < '2025-03-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-03-22 15:48:18] Production.INFO: count ==2637 [2025-03-22 15:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:48:05 - End Time 2025-03-22 15:48:05 [2025-03-22 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738538', 'tblTempUsageDetail_20' ) start [2025-03-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738538', 'tblTempUsageDetail_20' ) end [2025-03-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738538', 'tblTempVendorCDR_20' ) start [2025-03-22 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738538', 'tblTempVendorCDR_20' ) end [2025-03-22 15:48:19] Production.INFO: ProcessCDR(1,14738538,1,1,2) [2025-03-22 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738538', 'tblTempUsageDetail_20' ) start [2025-03-22 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738538', 'tblTempUsageDetail_20' ) end [2025-03-22 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:48:22] Production.INFO: ==11525== Releasing lock... [2025-03-22 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:48:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:49:05 [end_date_ymd] => 2025-03-22 15:49:05 [RateCDR] => 1 ) [2025-03-22 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:49:05' and `end` < '2025-03-22 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:49:18] Production.INFO: count ==2636 [2025-03-22 15:49:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:49:05 - End Time 2025-03-22 15:49:05 [2025-03-22 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738543', 'tblTempUsageDetail_20' ) start [2025-03-22 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738543', 'tblTempUsageDetail_20' ) end [2025-03-22 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738543', 'tblTempVendorCDR_20' ) start [2025-03-22 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738543', 'tblTempVendorCDR_20' ) end [2025-03-22 15:49:19] Production.INFO: ProcessCDR(1,14738543,1,1,2) [2025-03-22 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738543', 'tblTempUsageDetail_20' ) start [2025-03-22 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738543', 'tblTempUsageDetail_20' ) end [2025-03-22 15:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:49:23] Production.INFO: ==11602== Releasing lock... [2025-03-22 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:49:23] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:50:06 [end_date_ymd] => 2025-03-22 15:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 12:50:06' and `end` < '2025-03-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-03-22 15:50:18] Production.INFO: count ==2633 [2025-03-22 15:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:50:06 - End Time 2025-03-22 15:50:06 [2025-03-22 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738548', 'tblTempUsageDetail_20' ) start [2025-03-22 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738548', 'tblTempUsageDetail_20' ) end [2025-03-22 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738548', 'tblTempVendorCDR_20' ) start [2025-03-22 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738548', 'tblTempVendorCDR_20' ) end [2025-03-22 15:50:19] Production.INFO: ProcessCDR(1,14738548,1,1,2) [2025-03-22 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738548', 'tblTempUsageDetail_20' ) start [2025-03-22 15:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738548', 'tblTempUsageDetail_20' ) end [2025-03-22 15:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:50:24] Production.INFO: ==11721== Releasing lock... [2025-03-22 15:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:50:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:51:05 [end_date_ymd] => 2025-03-22 15:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:51:05' and `end` < '2025-03-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-03-22 15:51:17] Production.INFO: count ==2637 [2025-03-22 15:51:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:51:05 - End Time 2025-03-22 15:51:05 [2025-03-22 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738554', 'tblTempUsageDetail_20' ) start [2025-03-22 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738554', 'tblTempUsageDetail_20' ) end [2025-03-22 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738554', 'tblTempVendorCDR_20' ) start [2025-03-22 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738554', 'tblTempVendorCDR_20' ) end [2025-03-22 15:51:19] Production.INFO: ProcessCDR(1,14738554,1,1,2) [2025-03-22 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738554', 'tblTempUsageDetail_20' ) start [2025-03-22 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738554', 'tblTempUsageDetail_20' ) end [2025-03-22 15:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:51:24] Production.INFO: ==11803== Releasing lock... [2025-03-22 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:51:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:52:05 [end_date_ymd] => 2025-03-22 15:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:52:05' and `end` < '2025-03-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-03-22 15:52:18] Production.INFO: count ==2638 [2025-03-22 15:52:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:52:05 - End Time 2025-03-22 15:52:05 [2025-03-22 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738559', 'tblTempUsageDetail_20' ) start [2025-03-22 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738559', 'tblTempUsageDetail_20' ) end [2025-03-22 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738559', 'tblTempVendorCDR_20' ) start [2025-03-22 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738559', 'tblTempVendorCDR_20' ) end [2025-03-22 15:52:19] Production.INFO: ProcessCDR(1,14738559,1,1,2) [2025-03-22 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738559', 'tblTempUsageDetail_20' ) start [2025-03-22 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738559', 'tblTempUsageDetail_20' ) end [2025-03-22 15:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:52:24] Production.INFO: ==11878== Releasing lock... [2025-03-22 15:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:52:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:53:05 [end_date_ymd] => 2025-03-22 15:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:53:05' and `end` < '2025-03-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-03-22 15:53:17] Production.INFO: count ==2640 [2025-03-22 15:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:53:05 - End Time 2025-03-22 15:53:05 [2025-03-22 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738564', 'tblTempUsageDetail_20' ) start [2025-03-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738564', 'tblTempUsageDetail_20' ) end [2025-03-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738564', 'tblTempVendorCDR_20' ) start [2025-03-22 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738564', 'tblTempVendorCDR_20' ) end [2025-03-22 15:53:18] Production.INFO: ProcessCDR(1,14738564,1,1,2) [2025-03-22 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738564', 'tblTempUsageDetail_20' ) start [2025-03-22 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738564', 'tblTempUsageDetail_20' ) end [2025-03-22 15:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:53:23] Production.INFO: ==11952== Releasing lock... [2025-03-22 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:53:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:54:05 [end_date_ymd] => 2025-03-22 15:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:54:05' and `end` < '2025-03-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-03-22 15:54:18] Production.INFO: count ==2630 [2025-03-22 15:54:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:54:05 - End Time 2025-03-22 15:54:05 [2025-03-22 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738569', 'tblTempUsageDetail_20' ) start [2025-03-22 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738569', 'tblTempUsageDetail_20' ) end [2025-03-22 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738569', 'tblTempVendorCDR_20' ) start [2025-03-22 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738569', 'tblTempVendorCDR_20' ) end [2025-03-22 15:54:19] Production.INFO: ProcessCDR(1,14738569,1,1,2) [2025-03-22 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738569', 'tblTempUsageDetail_20' ) start [2025-03-22 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738569', 'tblTempUsageDetail_20' ) end [2025-03-22 15:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:54:22] Production.INFO: ==12031== Releasing lock... [2025-03-22 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:54:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:55:06 [end_date_ymd] => 2025-03-22 15:55:06 [RateCDR] => 1 ) [2025-03-22 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 12:55:06' and `end` < '2025-03-22 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 15:55:18] Production.INFO: count ==2638 [2025-03-22 15:55:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:55:06 - End Time 2025-03-22 15:55:06 [2025-03-22 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738574', 'tblTempUsageDetail_20' ) start [2025-03-22 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738574', 'tblTempUsageDetail_20' ) end [2025-03-22 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738574', 'tblTempVendorCDR_20' ) start [2025-03-22 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738574', 'tblTempVendorCDR_20' ) end [2025-03-22 15:55:19] Production.INFO: ProcessCDR(1,14738574,1,1,2) [2025-03-22 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738574', 'tblTempUsageDetail_20' ) start [2025-03-22 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738574', 'tblTempUsageDetail_20' ) end [2025-03-22 15:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:55:25] Production.INFO: ==12106== Releasing lock... [2025-03-22 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:55:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:56:05 [end_date_ymd] => 2025-03-22 15:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:56:05' and `end` < '2025-03-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-03-22 15:56:18] Production.INFO: count ==2638 [2025-03-22 15:56:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:56:05 - End Time 2025-03-22 15:56:05 [2025-03-22 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738579', 'tblTempUsageDetail_20' ) start [2025-03-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738579', 'tblTempUsageDetail_20' ) end [2025-03-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738579', 'tblTempVendorCDR_20' ) start [2025-03-22 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738579', 'tblTempVendorCDR_20' ) end [2025-03-22 15:56:19] Production.INFO: ProcessCDR(1,14738579,1,1,2) [2025-03-22 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738579', 'tblTempUsageDetail_20' ) start [2025-03-22 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738579', 'tblTempUsageDetail_20' ) end [2025-03-22 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:56:22] Production.INFO: ==12185== Releasing lock... [2025-03-22 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:56:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:57:05 [end_date_ymd] => 2025-03-22 15:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:57:05' and `end` < '2025-03-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-03-22 15:57:18] Production.INFO: count ==2637 [2025-03-22 15:57:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:57:05 - End Time 2025-03-22 15:57:05 [2025-03-22 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738584', 'tblTempUsageDetail_20' ) start [2025-03-22 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738584', 'tblTempUsageDetail_20' ) end [2025-03-22 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738584', 'tblTempVendorCDR_20' ) start [2025-03-22 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738584', 'tblTempVendorCDR_20' ) end [2025-03-22 15:57:19] Production.INFO: ProcessCDR(1,14738584,1,1,2) [2025-03-22 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738584', 'tblTempUsageDetail_20' ) start [2025-03-22 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738584', 'tblTempUsageDetail_20' ) end [2025-03-22 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:57:24] Production.INFO: ==12262== Releasing lock... [2025-03-22 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:57:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:58:05 [end_date_ymd] => 2025-03-22 15:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:58:05' and `end` < '2025-03-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-03-22 15:58:18] Production.INFO: count ==2628 [2025-03-22 15:58:19] Production.ERROR: pbx CDR StartTime 2025-03-22 12:58:05 - End Time 2025-03-22 15:58:05 [2025-03-22 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738589', 'tblTempUsageDetail_20' ) start [2025-03-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738589', 'tblTempUsageDetail_20' ) end [2025-03-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738589', 'tblTempVendorCDR_20' ) start [2025-03-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738589', 'tblTempVendorCDR_20' ) end [2025-03-22 15:58:19] Production.INFO: ProcessCDR(1,14738589,1,1,2) [2025-03-22 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738589', 'tblTempUsageDetail_20' ) start [2025-03-22 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738589', 'tblTempUsageDetail_20' ) end [2025-03-22 15:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:58:24] Production.INFO: ==12339== Releasing lock... [2025-03-22 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:58:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 12:59:05 [end_date_ymd] => 2025-03-22 15:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 12:59:05' and `end` < '2025-03-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-03-22 15:59:17] Production.INFO: count ==2632 [2025-03-22 15:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 12:59:05 - End Time 2025-03-22 15:59:05 [2025-03-22 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738594', 'tblTempUsageDetail_20' ) start [2025-03-22 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738594', 'tblTempUsageDetail_20' ) end [2025-03-22 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738594', 'tblTempVendorCDR_20' ) start [2025-03-22 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738594', 'tblTempVendorCDR_20' ) end [2025-03-22 15:59:19] Production.INFO: ProcessCDR(1,14738594,1,1,2) [2025-03-22 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738594', 'tblTempUsageDetail_20' ) start [2025-03-22 15:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738594', 'tblTempUsageDetail_20' ) end [2025-03-22 15:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 15:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 15:59:23] Production.INFO: ==12410== Releasing lock... [2025-03-22 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 15:59:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:00:06 [end_date_ymd] => 2025-03-22 16:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 13:00:06' and `end` < '2025-03-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-03-22 16:00:19] Production.INFO: count ==2625 [2025-03-22 16:00:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:00:06 - End Time 2025-03-22 16:00:06 [2025-03-22 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738600', 'tblTempUsageDetail_20' ) start [2025-03-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738600', 'tblTempUsageDetail_20' ) end [2025-03-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738600', 'tblTempVendorCDR_20' ) start [2025-03-22 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738600', 'tblTempVendorCDR_20' ) end [2025-03-22 16:00:20] Production.INFO: ProcessCDR(1,14738600,1,1,2) [2025-03-22 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738600', 'tblTempUsageDetail_20' ) start [2025-03-22 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738600', 'tblTempUsageDetail_20' ) end [2025-03-22 16:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:00:25] Production.INFO: ==12491== Releasing lock... [2025-03-22 16:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:00:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:01:05 [end_date_ymd] => 2025-03-22 16:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:01:05' and `end` < '2025-03-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-03-22 16:01:17] Production.INFO: count ==2659 [2025-03-22 16:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:01:05 - End Time 2025-03-22 16:01:05 [2025-03-22 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738605', 'tblTempUsageDetail_20' ) start [2025-03-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738605', 'tblTempUsageDetail_20' ) end [2025-03-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738605', 'tblTempVendorCDR_20' ) start [2025-03-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738605', 'tblTempVendorCDR_20' ) end [2025-03-22 16:01:18] Production.INFO: ProcessCDR(1,14738605,1,1,2) [2025-03-22 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738605', 'tblTempUsageDetail_20' ) start [2025-03-22 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738605', 'tblTempUsageDetail_20' ) end [2025-03-22 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:01:23] Production.INFO: ==12586== Releasing lock... [2025-03-22 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:01:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-22 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:02:05 [end_date_ymd] => 2025-03-22 16:02:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:02:05' and `end` < '2025-03-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-03-22 16:02:18] Production.INFO: count ==2658 [2025-03-22 16:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:02:05 - End Time 2025-03-22 16:02:05 [2025-03-22 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738610', 'tblTempUsageDetail_20' ) start [2025-03-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738610', 'tblTempUsageDetail_20' ) end [2025-03-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738610', 'tblTempVendorCDR_20' ) start [2025-03-22 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738610', 'tblTempVendorCDR_20' ) end [2025-03-22 16:02:19] Production.INFO: ProcessCDR(1,14738610,1,1,2) [2025-03-22 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738610', 'tblTempUsageDetail_20' ) start [2025-03-22 16:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738610', 'tblTempUsageDetail_20' ) end [2025-03-22 16:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:02:24] Production.INFO: ==12660== Releasing lock... [2025-03-22 16:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:02:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:03:05 [end_date_ymd] => 2025-03-22 16:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:03:05' and `end` < '2025-03-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-03-22 16:03:17] Production.INFO: count ==2665 [2025-03-22 16:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:03:05 - End Time 2025-03-22 16:03:05 [2025-03-22 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738615', 'tblTempUsageDetail_20' ) start [2025-03-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738615', 'tblTempUsageDetail_20' ) end [2025-03-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738615', 'tblTempVendorCDR_20' ) start [2025-03-22 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738615', 'tblTempVendorCDR_20' ) end [2025-03-22 16:03:18] Production.INFO: ProcessCDR(1,14738615,1,1,2) [2025-03-22 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738615', 'tblTempUsageDetail_20' ) start [2025-03-22 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738615', 'tblTempUsageDetail_20' ) end [2025-03-22 16:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:03:24] Production.INFO: ==12738== Releasing lock... [2025-03-22 16:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:03:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:04:05 [end_date_ymd] => 2025-03-22 16:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:04:05' and `end` < '2025-03-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-03-22 16:04:18] Production.INFO: count ==2659 [2025-03-22 16:04:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:04:05 - End Time 2025-03-22 16:04:05 [2025-03-22 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738620', 'tblTempUsageDetail_20' ) start [2025-03-22 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738620', 'tblTempUsageDetail_20' ) end [2025-03-22 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738620', 'tblTempVendorCDR_20' ) start [2025-03-22 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738620', 'tblTempVendorCDR_20' ) end [2025-03-22 16:04:19] Production.INFO: ProcessCDR(1,14738620,1,1,2) [2025-03-22 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738620', 'tblTempUsageDetail_20' ) start [2025-03-22 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738620', 'tblTempUsageDetail_20' ) end [2025-03-22 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:04:24] Production.INFO: ==12814== Releasing lock... [2025-03-22 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:04:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:05:05 [end_date_ymd] => 2025-03-22 16:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:05:05' and `end` < '2025-03-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-03-22 16:05:18] Production.INFO: count ==2653 [2025-03-22 16:05:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:05:05 - End Time 2025-03-22 16:05:05 [2025-03-22 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738625', 'tblTempUsageDetail_20' ) start [2025-03-22 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738625', 'tblTempUsageDetail_20' ) end [2025-03-22 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738625', 'tblTempVendorCDR_20' ) start [2025-03-22 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738625', 'tblTempVendorCDR_20' ) end [2025-03-22 16:05:19] Production.INFO: ProcessCDR(1,14738625,1,1,2) [2025-03-22 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738625', 'tblTempUsageDetail_20' ) start [2025-03-22 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738625', 'tblTempUsageDetail_20' ) end [2025-03-22 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:05:22] Production.INFO: ==12933== Releasing lock... [2025-03-22 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:05:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:06:06 [end_date_ymd] => 2025-03-22 16:06:06 [RateCDR] => 1 ) [2025-03-22 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:06:06' and `end` < '2025-03-22 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:06:18] Production.INFO: count ==2655 [2025-03-22 16:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:06:06 - End Time 2025-03-22 16:06:06 [2025-03-22 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738630', 'tblTempUsageDetail_20' ) start [2025-03-22 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738630', 'tblTempUsageDetail_20' ) end [2025-03-22 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738630', 'tblTempVendorCDR_20' ) start [2025-03-22 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738630', 'tblTempVendorCDR_20' ) end [2025-03-22 16:06:19] Production.INFO: ProcessCDR(1,14738630,1,1,2) [2025-03-22 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738630', 'tblTempUsageDetail_20' ) start [2025-03-22 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738630', 'tblTempUsageDetail_20' ) end [2025-03-22 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:06:25] Production.INFO: ==13007== Releasing lock... [2025-03-22 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:06:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:07:05 [end_date_ymd] => 2025-03-22 16:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:07:05' and `end` < '2025-03-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-03-22 16:07:18] Production.INFO: count ==2656 [2025-03-22 16:07:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:07:05 - End Time 2025-03-22 16:07:05 [2025-03-22 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738635', 'tblTempUsageDetail_20' ) start [2025-03-22 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738635', 'tblTempUsageDetail_20' ) end [2025-03-22 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738635', 'tblTempVendorCDR_20' ) start [2025-03-22 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738635', 'tblTempVendorCDR_20' ) end [2025-03-22 16:07:19] Production.INFO: ProcessCDR(1,14738635,1,1,2) [2025-03-22 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738635', 'tblTempUsageDetail_20' ) start [2025-03-22 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738635', 'tblTempUsageDetail_20' ) end [2025-03-22 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:07:24] Production.INFO: ==13081== Releasing lock... [2025-03-22 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:07:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:08:05 [end_date_ymd] => 2025-03-22 16:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:08:05' and `end` < '2025-03-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-03-22 16:08:18] Production.INFO: count ==2662 [2025-03-22 16:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:08:05 - End Time 2025-03-22 16:08:05 [2025-03-22 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738640', 'tblTempUsageDetail_20' ) start [2025-03-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738640', 'tblTempUsageDetail_20' ) end [2025-03-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738640', 'tblTempVendorCDR_20' ) start [2025-03-22 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738640', 'tblTempVendorCDR_20' ) end [2025-03-22 16:08:19] Production.INFO: ProcessCDR(1,14738640,1,1,2) [2025-03-22 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738640', 'tblTempUsageDetail_20' ) start [2025-03-22 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738640', 'tblTempUsageDetail_20' ) end [2025-03-22 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:08:24] Production.INFO: ==13151== Releasing lock... [2025-03-22 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:08:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:09:05 [end_date_ymd] => 2025-03-22 16:09:05 [RateCDR] => 1 ) [2025-03-22 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:09:05' and `end` < '2025-03-22 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:09:18] Production.INFO: count ==2656 [2025-03-22 16:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:09:05 - End Time 2025-03-22 16:09:05 [2025-03-22 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738645', 'tblTempUsageDetail_20' ) start [2025-03-22 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738645', 'tblTempUsageDetail_20' ) end [2025-03-22 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738645', 'tblTempVendorCDR_20' ) start [2025-03-22 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738645', 'tblTempVendorCDR_20' ) end [2025-03-22 16:09:19] Production.INFO: ProcessCDR(1,14738645,1,1,2) [2025-03-22 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738645', 'tblTempUsageDetail_20' ) start [2025-03-22 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738645', 'tblTempUsageDetail_20' ) end [2025-03-22 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:09:24] Production.INFO: ==13224== Releasing lock... [2025-03-22 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:09:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:10:06 [end_date_ymd] => 2025-03-22 16:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 13:10:06' and `end` < '2025-03-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-03-22 16:10:19] Production.INFO: count ==2664 [2025-03-22 16:10:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:10:06 - End Time 2025-03-22 16:10:06 [2025-03-22 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738651', 'tblTempUsageDetail_20' ) start [2025-03-22 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738651', 'tblTempUsageDetail_20' ) end [2025-03-22 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738651', 'tblTempVendorCDR_20' ) start [2025-03-22 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738651', 'tblTempVendorCDR_20' ) end [2025-03-22 16:10:20] Production.INFO: ProcessCDR(1,14738651,1,1,2) [2025-03-22 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738651', 'tblTempUsageDetail_20' ) start [2025-03-22 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738651', 'tblTempUsageDetail_20' ) end [2025-03-22 16:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:10:25] Production.INFO: ==13299== Releasing lock... [2025-03-22 16:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:10:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:11:05 [end_date_ymd] => 2025-03-22 16:11:05 [RateCDR] => 1 ) [2025-03-22 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:11:05' and `end` < '2025-03-22 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:11:18] Production.INFO: count ==2684 [2025-03-22 16:11:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:11:05 - End Time 2025-03-22 16:11:05 [2025-03-22 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738656', 'tblTempUsageDetail_20' ) start [2025-03-22 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738656', 'tblTempUsageDetail_20' ) end [2025-03-22 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738656', 'tblTempVendorCDR_20' ) start [2025-03-22 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738656', 'tblTempVendorCDR_20' ) end [2025-03-22 16:11:19] Production.INFO: ProcessCDR(1,14738656,1,1,2) [2025-03-22 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738656', 'tblTempUsageDetail_20' ) start [2025-03-22 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738656', 'tblTempUsageDetail_20' ) end [2025-03-22 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:11:24] Production.INFO: ==13375== Releasing lock... [2025-03-22 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:11:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:12:05 [end_date_ymd] => 2025-03-22 16:12:05 [RateCDR] => 1 ) [2025-03-22 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:12:05' and `end` < '2025-03-22 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:12:17] Production.INFO: count ==2684 [2025-03-22 16:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:12:05 - End Time 2025-03-22 16:12:05 [2025-03-22 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738661', 'tblTempUsageDetail_20' ) start [2025-03-22 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738661', 'tblTempUsageDetail_20' ) end [2025-03-22 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738661', 'tblTempVendorCDR_20' ) start [2025-03-22 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738661', 'tblTempVendorCDR_20' ) end [2025-03-22 16:12:19] Production.INFO: ProcessCDR(1,14738661,1,1,2) [2025-03-22 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738661', 'tblTempUsageDetail_20' ) start [2025-03-22 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738661', 'tblTempUsageDetail_20' ) end [2025-03-22 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:12:23] Production.INFO: ==13444== Releasing lock... [2025-03-22 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:12:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:13:05 [end_date_ymd] => 2025-03-22 16:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:13:05' and `end` < '2025-03-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-03-22 16:13:18] Production.INFO: count ==2685 [2025-03-22 16:13:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:13:05 - End Time 2025-03-22 16:13:05 [2025-03-22 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738666', 'tblTempUsageDetail_20' ) start [2025-03-22 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738666', 'tblTempUsageDetail_20' ) end [2025-03-22 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738666', 'tblTempVendorCDR_20' ) start [2025-03-22 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738666', 'tblTempVendorCDR_20' ) end [2025-03-22 16:13:19] Production.INFO: ProcessCDR(1,14738666,1,1,2) [2025-03-22 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738666', 'tblTempUsageDetail_20' ) start [2025-03-22 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738666', 'tblTempUsageDetail_20' ) end [2025-03-22 16:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:13:24] Production.INFO: ==13520== Releasing lock... [2025-03-22 16:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:13:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:14:05 [end_date_ymd] => 2025-03-22 16:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:14:05' and `end` < '2025-03-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-03-22 16:14:17] Production.INFO: count ==2686 [2025-03-22 16:14:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:14:05 - End Time 2025-03-22 16:14:05 [2025-03-22 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738671', 'tblTempUsageDetail_20' ) start [2025-03-22 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738671', 'tblTempUsageDetail_20' ) end [2025-03-22 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738671', 'tblTempVendorCDR_20' ) start [2025-03-22 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738671', 'tblTempVendorCDR_20' ) end [2025-03-22 16:14:19] Production.INFO: ProcessCDR(1,14738671,1,1,2) [2025-03-22 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738671', 'tblTempUsageDetail_20' ) start [2025-03-22 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738671', 'tblTempUsageDetail_20' ) end [2025-03-22 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:14:24] Production.INFO: ==13592== Releasing lock... [2025-03-22 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:14:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:15:05 [end_date_ymd] => 2025-03-22 16:15:05 [RateCDR] => 1 ) [2025-03-22 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:15:05' and `end` < '2025-03-22 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:15:18] Production.INFO: count ==2694 [2025-03-22 16:15:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:15:05 - End Time 2025-03-22 16:15:05 [2025-03-22 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738676', 'tblTempUsageDetail_20' ) start [2025-03-22 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738676', 'tblTempUsageDetail_20' ) end [2025-03-22 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738676', 'tblTempVendorCDR_20' ) start [2025-03-22 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738676', 'tblTempVendorCDR_20' ) end [2025-03-22 16:15:19] Production.INFO: ProcessCDR(1,14738676,1,1,2) [2025-03-22 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738676', 'tblTempUsageDetail_20' ) start [2025-03-22 16:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738676', 'tblTempUsageDetail_20' ) end [2025-03-22 16:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:15:24] Production.INFO: ==13664== Releasing lock... [2025-03-22 16:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:15:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:16:05 [end_date_ymd] => 2025-03-22 16:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:16:05' and `end` < '2025-03-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-03-22 16:16:17] Production.INFO: count ==2677 [2025-03-22 16:16:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:16:05 - End Time 2025-03-22 16:16:05 [2025-03-22 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738681', 'tblTempUsageDetail_20' ) start [2025-03-22 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738681', 'tblTempUsageDetail_20' ) end [2025-03-22 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738681', 'tblTempVendorCDR_20' ) start [2025-03-22 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738681', 'tblTempVendorCDR_20' ) end [2025-03-22 16:16:19] Production.INFO: ProcessCDR(1,14738681,1,1,2) [2025-03-22 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738681', 'tblTempUsageDetail_20' ) start [2025-03-22 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738681', 'tblTempUsageDetail_20' ) end [2025-03-22 16:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:16:24] Production.INFO: ==13737== Releasing lock... [2025-03-22 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:16:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:17:05 [end_date_ymd] => 2025-03-22 16:17:05 [RateCDR] => 1 ) [2025-03-22 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:17:05' and `end` < '2025-03-22 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:17:18] Production.INFO: count ==2671 [2025-03-22 16:17:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:17:05 - End Time 2025-03-22 16:17:05 [2025-03-22 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738686', 'tblTempUsageDetail_20' ) start [2025-03-22 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738686', 'tblTempUsageDetail_20' ) end [2025-03-22 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738686', 'tblTempVendorCDR_20' ) start [2025-03-22 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738686', 'tblTempVendorCDR_20' ) end [2025-03-22 16:17:19] Production.INFO: ProcessCDR(1,14738686,1,1,2) [2025-03-22 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738686', 'tblTempUsageDetail_20' ) start [2025-03-22 16:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738686', 'tblTempUsageDetail_20' ) end [2025-03-22 16:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:17:24] Production.INFO: ==13810== Releasing lock... [2025-03-22 16:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:17:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:18:05 [end_date_ymd] => 2025-03-22 16:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:18:05' and `end` < '2025-03-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-03-22 16:18:18] Production.INFO: count ==2680 [2025-03-22 16:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:18:05 - End Time 2025-03-22 16:18:05 [2025-03-22 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738691', 'tblTempUsageDetail_20' ) start [2025-03-22 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738691', 'tblTempUsageDetail_20' ) end [2025-03-22 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738691', 'tblTempVendorCDR_20' ) start [2025-03-22 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738691', 'tblTempVendorCDR_20' ) end [2025-03-22 16:18:19] Production.INFO: ProcessCDR(1,14738691,1,1,2) [2025-03-22 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738691', 'tblTempUsageDetail_20' ) start [2025-03-22 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738691', 'tblTempUsageDetail_20' ) end [2025-03-22 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:18:24] Production.INFO: ==13881== Releasing lock... [2025-03-22 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:18:24] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:19:05 [end_date_ymd] => 2025-03-22 16:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:19:05' and `end` < '2025-03-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-03-22 16:19:17] Production.INFO: count ==2673 [2025-03-22 16:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:19:05 - End Time 2025-03-22 16:19:05 [2025-03-22 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738696', 'tblTempUsageDetail_20' ) start [2025-03-22 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738696', 'tblTempUsageDetail_20' ) end [2025-03-22 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738696', 'tblTempVendorCDR_20' ) start [2025-03-22 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738696', 'tblTempVendorCDR_20' ) end [2025-03-22 16:19:18] Production.INFO: ProcessCDR(1,14738696,1,1,2) [2025-03-22 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738696', 'tblTempUsageDetail_20' ) start [2025-03-22 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738696', 'tblTempUsageDetail_20' ) end [2025-03-22 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:19:23] Production.INFO: ==13958== Releasing lock... [2025-03-22 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:19:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:20:07 [end_date_ymd] => 2025-03-22 16:20:07 [RateCDR] => 1 ) [2025-03-22 16:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:20:07' and `end` < '2025-03-22 16:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:20:19] Production.INFO: count ==2674 [2025-03-22 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-22 13:20:07 - End Time 2025-03-22 16:20:07 [2025-03-22 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738702', 'tblTempUsageDetail_20' ) start [2025-03-22 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738702', 'tblTempUsageDetail_20' ) end [2025-03-22 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738702', 'tblTempVendorCDR_20' ) start [2025-03-22 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738702', 'tblTempVendorCDR_20' ) end [2025-03-22 16:20:21] Production.INFO: ProcessCDR(1,14738702,1,1,2) [2025-03-22 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738702', 'tblTempUsageDetail_20' ) start [2025-03-22 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738702', 'tblTempUsageDetail_20' ) end [2025-03-22 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:20:26] Production.INFO: ==14038== Releasing lock... [2025-03-22 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:20:26] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:21:05 [end_date_ymd] => 2025-03-22 16:21:05 [RateCDR] => 1 ) [2025-03-22 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:21:05' and `end` < '2025-03-22 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:21:18] Production.INFO: count ==2754 [2025-03-22 16:21:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:21:05 - End Time 2025-03-22 16:21:05 [2025-03-22 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738707', 'tblTempUsageDetail_20' ) start [2025-03-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738707', 'tblTempUsageDetail_20' ) end [2025-03-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738707', 'tblTempVendorCDR_20' ) start [2025-03-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738707', 'tblTempVendorCDR_20' ) end [2025-03-22 16:21:19] Production.INFO: ProcessCDR(1,14738707,1,1,2) [2025-03-22 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738707', 'tblTempUsageDetail_20' ) start [2025-03-22 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738707', 'tblTempUsageDetail_20' ) end [2025-03-22 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:21:23] Production.INFO: ==14148== Releasing lock... [2025-03-22 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:21:23] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:22:06 [end_date_ymd] => 2025-03-22 16:22:06 [RateCDR] => 1 ) [2025-03-22 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:22:06' and `end` < '2025-03-22 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:22:18] Production.INFO: count ==2751 [2025-03-22 16:22:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:22:06 - End Time 2025-03-22 16:22:06 [2025-03-22 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738712', 'tblTempUsageDetail_20' ) start [2025-03-22 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738712', 'tblTempUsageDetail_20' ) end [2025-03-22 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738712', 'tblTempVendorCDR_20' ) start [2025-03-22 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738712', 'tblTempVendorCDR_20' ) end [2025-03-22 16:22:20] Production.INFO: ProcessCDR(1,14738712,1,1,2) [2025-03-22 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738712', 'tblTempUsageDetail_20' ) start [2025-03-22 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738712', 'tblTempUsageDetail_20' ) end [2025-03-22 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:22:25] Production.INFO: ==14222== Releasing lock... [2025-03-22 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:22:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:23:05 [end_date_ymd] => 2025-03-22 16:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:23:05' and `end` < '2025-03-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-03-22 16:23:17] Production.INFO: count ==2765 [2025-03-22 16:23:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:23:05 - End Time 2025-03-22 16:23:05 [2025-03-22 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738717', 'tblTempUsageDetail_20' ) start [2025-03-22 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738717', 'tblTempUsageDetail_20' ) end [2025-03-22 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738717', 'tblTempVendorCDR_20' ) start [2025-03-22 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738717', 'tblTempVendorCDR_20' ) end [2025-03-22 16:23:19] Production.INFO: ProcessCDR(1,14738717,1,1,2) [2025-03-22 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738717', 'tblTempUsageDetail_20' ) start [2025-03-22 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738717', 'tblTempUsageDetail_20' ) end [2025-03-22 16:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:23:23] Production.INFO: ==14296== Releasing lock... [2025-03-22 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:23:23] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:24:06 [end_date_ymd] => 2025-03-22 16:24:06 [RateCDR] => 1 ) [2025-03-22 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:24:06' and `end` < '2025-03-22 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:24:18] Production.INFO: count ==2772 [2025-03-22 16:24:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:24:06 - End Time 2025-03-22 16:24:06 [2025-03-22 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738722', 'tblTempUsageDetail_20' ) start [2025-03-22 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738722', 'tblTempUsageDetail_20' ) end [2025-03-22 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738722', 'tblTempVendorCDR_20' ) start [2025-03-22 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738722', 'tblTempVendorCDR_20' ) end [2025-03-22 16:24:20] Production.INFO: ProcessCDR(1,14738722,1,1,2) [2025-03-22 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738722', 'tblTempUsageDetail_20' ) start [2025-03-22 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738722', 'tblTempUsageDetail_20' ) end [2025-03-22 16:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:24:25] Production.INFO: ==14367== Releasing lock... [2025-03-22 16:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:24:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:25:05 [end_date_ymd] => 2025-03-22 16:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:25:05' and `end` < '2025-03-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-03-22 16:25:18] Production.INFO: count ==2779 [2025-03-22 16:25:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:25:05 - End Time 2025-03-22 16:25:05 [2025-03-22 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738727', 'tblTempUsageDetail_20' ) start [2025-03-22 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738727', 'tblTempUsageDetail_20' ) end [2025-03-22 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738727', 'tblTempVendorCDR_20' ) start [2025-03-22 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738727', 'tblTempVendorCDR_20' ) end [2025-03-22 16:25:19] Production.INFO: ProcessCDR(1,14738727,1,1,2) [2025-03-22 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738727', 'tblTempUsageDetail_20' ) start [2025-03-22 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738727', 'tblTempUsageDetail_20' ) end [2025-03-22 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:25:24] Production.INFO: ==14445== Releasing lock... [2025-03-22 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:25:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:26:05 [end_date_ymd] => 2025-03-22 16:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:26:05' and `end` < '2025-03-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-03-22 16:26:18] Production.INFO: count ==2778 [2025-03-22 16:26:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:26:05 - End Time 2025-03-22 16:26:05 [2025-03-22 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738732', 'tblTempUsageDetail_20' ) start [2025-03-22 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738732', 'tblTempUsageDetail_20' ) end [2025-03-22 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738732', 'tblTempVendorCDR_20' ) start [2025-03-22 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738732', 'tblTempVendorCDR_20' ) end [2025-03-22 16:26:19] Production.INFO: ProcessCDR(1,14738732,1,1,2) [2025-03-22 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738732', 'tblTempUsageDetail_20' ) start [2025-03-22 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738732', 'tblTempUsageDetail_20' ) end [2025-03-22 16:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:26:24] Production.INFO: ==14519== Releasing lock... [2025-03-22 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:26:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:27:05 [end_date_ymd] => 2025-03-22 16:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:27:05' and `end` < '2025-03-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-03-22 16:27:17] Production.INFO: count ==2761 [2025-03-22 16:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:27:05 - End Time 2025-03-22 16:27:05 [2025-03-22 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738737', 'tblTempUsageDetail_20' ) start [2025-03-22 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738737', 'tblTempUsageDetail_20' ) end [2025-03-22 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738737', 'tblTempVendorCDR_20' ) start [2025-03-22 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738737', 'tblTempVendorCDR_20' ) end [2025-03-22 16:27:19] Production.INFO: ProcessCDR(1,14738737,1,1,2) [2025-03-22 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738737', 'tblTempUsageDetail_20' ) start [2025-03-22 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738737', 'tblTempUsageDetail_20' ) end [2025-03-22 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:27:24] Production.INFO: ==14593== Releasing lock... [2025-03-22 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:27:24] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:28:05 [end_date_ymd] => 2025-03-22 16:28:05 [RateCDR] => 1 ) [2025-03-22 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:28:05' and `end` < '2025-03-22 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:28:18] Production.INFO: count ==2761 [2025-03-22 16:28:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:28:05 - End Time 2025-03-22 16:28:05 [2025-03-22 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738742', 'tblTempUsageDetail_20' ) start [2025-03-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738742', 'tblTempUsageDetail_20' ) end [2025-03-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738742', 'tblTempVendorCDR_20' ) start [2025-03-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738742', 'tblTempVendorCDR_20' ) end [2025-03-22 16:28:19] Production.INFO: ProcessCDR(1,14738742,1,1,2) [2025-03-22 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738742', 'tblTempUsageDetail_20' ) start [2025-03-22 16:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738742', 'tblTempUsageDetail_20' ) end [2025-03-22 16:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:28:24] Production.INFO: ==14668== Releasing lock... [2025-03-22 16:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:28:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:29:05 [end_date_ymd] => 2025-03-22 16:29:05 [RateCDR] => 1 ) [2025-03-22 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:29:05' and `end` < '2025-03-22 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:29:18] Production.INFO: count ==2764 [2025-03-22 16:29:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:29:05 - End Time 2025-03-22 16:29:05 [2025-03-22 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738747', 'tblTempUsageDetail_20' ) start [2025-03-22 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738747', 'tblTempUsageDetail_20' ) end [2025-03-22 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738747', 'tblTempVendorCDR_20' ) start [2025-03-22 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738747', 'tblTempVendorCDR_20' ) end [2025-03-22 16:29:19] Production.INFO: ProcessCDR(1,14738747,1,1,2) [2025-03-22 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738747', 'tblTempUsageDetail_20' ) start [2025-03-22 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738747', 'tblTempUsageDetail_20' ) end [2025-03-22 16:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:29:24] Production.INFO: ==14745== Releasing lock... [2025-03-22 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:29:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:30:07 [end_date_ymd] => 2025-03-22 16:30:07 [RateCDR] => 1 ) [2025-03-22 16:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:30:07' and `end` < '2025-03-22 16:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:30:19] Production.INFO: count ==2775 [2025-03-22 16:30:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:30:07 - End Time 2025-03-22 16:30:07 [2025-03-22 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738753', 'tblTempUsageDetail_20' ) start [2025-03-22 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738753', 'tblTempUsageDetail_20' ) end [2025-03-22 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738753', 'tblTempVendorCDR_20' ) start [2025-03-22 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738753', 'tblTempVendorCDR_20' ) end [2025-03-22 16:30:21] Production.INFO: ProcessCDR(1,14738753,1,1,2) [2025-03-22 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738753', 'tblTempUsageDetail_20' ) start [2025-03-22 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738753', 'tblTempUsageDetail_20' ) end [2025-03-22 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:30:26] Production.INFO: ==14822== Releasing lock... [2025-03-22 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:30:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:31:05 [end_date_ymd] => 2025-03-22 16:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:31:05' and `end` < '2025-03-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-03-22 16:31:17] Production.INFO: count ==2846 [2025-03-22 16:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:31:05 - End Time 2025-03-22 16:31:05 [2025-03-22 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738758', 'tblTempUsageDetail_20' ) start [2025-03-22 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738758', 'tblTempUsageDetail_20' ) end [2025-03-22 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738758', 'tblTempVendorCDR_20' ) start [2025-03-22 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738758', 'tblTempVendorCDR_20' ) end [2025-03-22 16:31:19] Production.INFO: ProcessCDR(1,14738758,1,1,2) [2025-03-22 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738758', 'tblTempUsageDetail_20' ) start [2025-03-22 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738758', 'tblTempUsageDetail_20' ) end [2025-03-22 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:31:22] Production.INFO: ==14895== Releasing lock... [2025-03-22 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:31:22] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:32:05 [end_date_ymd] => 2025-03-22 16:32:05 [RateCDR] => 1 ) [2025-03-22 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:32:05' and `end` < '2025-03-22 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:32:18] Production.INFO: count ==2852 [2025-03-22 16:32:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:32:05 - End Time 2025-03-22 16:32:05 [2025-03-22 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738763', 'tblTempUsageDetail_20' ) start [2025-03-22 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738763', 'tblTempUsageDetail_20' ) end [2025-03-22 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738763', 'tblTempVendorCDR_20' ) start [2025-03-22 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738763', 'tblTempVendorCDR_20' ) end [2025-03-22 16:32:19] Production.INFO: ProcessCDR(1,14738763,1,1,2) [2025-03-22 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738763', 'tblTempUsageDetail_20' ) start [2025-03-22 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738763', 'tblTempUsageDetail_20' ) end [2025-03-22 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:32:22] Production.INFO: ==14968== Releasing lock... [2025-03-22 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:32:22] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:33:05 [end_date_ymd] => 2025-03-22 16:33:05 [RateCDR] => 1 ) [2025-03-22 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:33:05' and `end` < '2025-03-22 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:33:18] Production.INFO: count ==2858 [2025-03-22 16:33:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:33:05 - End Time 2025-03-22 16:33:05 [2025-03-22 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738768', 'tblTempUsageDetail_20' ) start [2025-03-22 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738768', 'tblTempUsageDetail_20' ) end [2025-03-22 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738768', 'tblTempVendorCDR_20' ) start [2025-03-22 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738768', 'tblTempVendorCDR_20' ) end [2025-03-22 16:33:19] Production.INFO: ProcessCDR(1,14738768,1,1,2) [2025-03-22 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738768', 'tblTempUsageDetail_20' ) start [2025-03-22 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738768', 'tblTempUsageDetail_20' ) end [2025-03-22 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:33:24] Production.INFO: ==15046== Releasing lock... [2025-03-22 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:33:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-22 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:34:06 [end_date_ymd] => 2025-03-22 16:34:06 [RateCDR] => 1 ) [2025-03-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-03-22 13:34:06' and `end` < '2025-03-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-03-22 16:34:18] Production.INFO: count ==2864 [2025-03-22 16:34:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:34:06 - End Time 2025-03-22 16:34:06 [2025-03-22 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738773', 'tblTempUsageDetail_20' ) start [2025-03-22 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738773', 'tblTempUsageDetail_20' ) end [2025-03-22 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738773', 'tblTempVendorCDR_20' ) start [2025-03-22 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738773', 'tblTempVendorCDR_20' ) end [2025-03-22 16:34:20] Production.INFO: ProcessCDR(1,14738773,1,1,2) [2025-03-22 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738773', 'tblTempUsageDetail_20' ) start [2025-03-22 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738773', 'tblTempUsageDetail_20' ) end [2025-03-22 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:34:25] Production.INFO: ==15123== Releasing lock... [2025-03-22 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:34:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:35:05 [end_date_ymd] => 2025-03-22 16:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:35:05' and `end` < '2025-03-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-03-22 16:35:17] Production.INFO: count ==2871 [2025-03-22 16:35:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:35:05 - End Time 2025-03-22 16:35:05 [2025-03-22 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738778', 'tblTempUsageDetail_20' ) start [2025-03-22 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738778', 'tblTempUsageDetail_20' ) end [2025-03-22 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738778', 'tblTempVendorCDR_20' ) start [2025-03-22 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738778', 'tblTempVendorCDR_20' ) end [2025-03-22 16:35:19] Production.INFO: ProcessCDR(1,14738778,1,1,2) [2025-03-22 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738778', 'tblTempUsageDetail_20' ) start [2025-03-22 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738778', 'tblTempUsageDetail_20' ) end [2025-03-22 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:35:24] Production.INFO: ==15199== Releasing lock... [2025-03-22 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:35:24] Production.INFO: 50 MB #Memory Used# [2025-03-22 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:36:05 [end_date_ymd] => 2025-03-22 16:36:05 [RateCDR] => 1 ) [2025-03-22 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:36:05' and `end` < '2025-03-22 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:36:18] Production.INFO: count ==2879 [2025-03-22 16:36:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:36:05 - End Time 2025-03-22 16:36:05 [2025-03-22 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738783', 'tblTempUsageDetail_20' ) start [2025-03-22 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738783', 'tblTempUsageDetail_20' ) end [2025-03-22 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738783', 'tblTempVendorCDR_20' ) start [2025-03-22 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738783', 'tblTempVendorCDR_20' ) end [2025-03-22 16:36:19] Production.INFO: ProcessCDR(1,14738783,1,1,2) [2025-03-22 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738783', 'tblTempUsageDetail_20' ) start [2025-03-22 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738783', 'tblTempUsageDetail_20' ) end [2025-03-22 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:36:25] Production.INFO: ==15312== Releasing lock... [2025-03-22 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:36:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:37:04 [end_date_ymd] => 2025-03-22 16:37:04 [RateCDR] => 1 ) [2025-03-22 16:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:37:04' and `end` < '2025-03-22 16:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:37:17] Production.INFO: count ==2897 [2025-03-22 16:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:37:04 - End Time 2025-03-22 16:37:04 [2025-03-22 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738788', 'tblTempUsageDetail_20' ) start [2025-03-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738788', 'tblTempUsageDetail_20' ) end [2025-03-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738788', 'tblTempVendorCDR_20' ) start [2025-03-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738788', 'tblTempVendorCDR_20' ) end [2025-03-22 16:37:18] Production.INFO: ProcessCDR(1,14738788,1,1,2) [2025-03-22 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738788', 'tblTempUsageDetail_20' ) start [2025-03-22 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738788', 'tblTempUsageDetail_20' ) end [2025-03-22 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:37:23] Production.INFO: ==15386== Releasing lock... [2025-03-22 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:37:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:38:05 [end_date_ymd] => 2025-03-22 16:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:38:05' and `end` < '2025-03-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-03-22 16:38:18] Production.INFO: count ==2893 [2025-03-22 16:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:38:05 - End Time 2025-03-22 16:38:05 [2025-03-22 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738793', 'tblTempUsageDetail_20' ) start [2025-03-22 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738793', 'tblTempUsageDetail_20' ) end [2025-03-22 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738793', 'tblTempVendorCDR_20' ) start [2025-03-22 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738793', 'tblTempVendorCDR_20' ) end [2025-03-22 16:38:19] Production.INFO: ProcessCDR(1,14738793,1,1,2) [2025-03-22 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738793', 'tblTempUsageDetail_20' ) start [2025-03-22 16:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738793', 'tblTempUsageDetail_20' ) end [2025-03-22 16:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:38:24] Production.INFO: ==15460== Releasing lock... [2025-03-22 16:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:38:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:39:05 [end_date_ymd] => 2025-03-22 16:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:39:05' and `end` < '2025-03-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-03-22 16:39:18] Production.INFO: count ==2899 [2025-03-22 16:39:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:39:05 - End Time 2025-03-22 16:39:05 [2025-03-22 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738798', 'tblTempUsageDetail_20' ) start [2025-03-22 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738798', 'tblTempUsageDetail_20' ) end [2025-03-22 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738798', 'tblTempVendorCDR_20' ) start [2025-03-22 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738798', 'tblTempVendorCDR_20' ) end [2025-03-22 16:39:19] Production.INFO: ProcessCDR(1,14738798,1,1,2) [2025-03-22 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738798', 'tblTempUsageDetail_20' ) start [2025-03-22 16:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738798', 'tblTempUsageDetail_20' ) end [2025-03-22 16:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:39:24] Production.INFO: ==15538== Releasing lock... [2025-03-22 16:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:39:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-22 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:40:06 [end_date_ymd] => 2025-03-22 16:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 13:40:06' and `end` < '2025-03-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-03-22 16:40:18] Production.INFO: count ==2903 [2025-03-22 16:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:40:06 - End Time 2025-03-22 16:40:06 [2025-03-22 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738804', 'tblTempUsageDetail_20' ) start [2025-03-22 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738804', 'tblTempUsageDetail_20' ) end [2025-03-22 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738804', 'tblTempVendorCDR_20' ) start [2025-03-22 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738804', 'tblTempVendorCDR_20' ) end [2025-03-22 16:40:19] Production.INFO: ProcessCDR(1,14738804,1,1,2) [2025-03-22 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738804', 'tblTempUsageDetail_20' ) start [2025-03-22 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738804', 'tblTempUsageDetail_20' ) end [2025-03-22 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:40:25] Production.INFO: ==15610== Releasing lock... [2025-03-22 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:40:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-22 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:41:06 [end_date_ymd] => 2025-03-22 16:41:06 [RateCDR] => 1 ) [2025-03-22 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:41:06' and `end` < '2025-03-22 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:41:18] Production.INFO: count ==2906 [2025-03-22 16:41:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:41:06 - End Time 2025-03-22 16:41:06 [2025-03-22 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738809', 'tblTempUsageDetail_20' ) start [2025-03-22 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738809', 'tblTempUsageDetail_20' ) end [2025-03-22 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738809', 'tblTempVendorCDR_20' ) start [2025-03-22 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738809', 'tblTempVendorCDR_20' ) end [2025-03-22 16:41:20] Production.INFO: ProcessCDR(1,14738809,1,1,2) [2025-03-22 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738809', 'tblTempUsageDetail_20' ) start [2025-03-22 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738809', 'tblTempUsageDetail_20' ) end [2025-03-22 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:41:25] Production.INFO: ==15685== Releasing lock... [2025-03-22 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:41:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:42:05 [end_date_ymd] => 2025-03-22 16:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:42:05' and `end` < '2025-03-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-03-22 16:42:17] Production.INFO: count ==2905 [2025-03-22 16:42:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:42:05 - End Time 2025-03-22 16:42:05 [2025-03-22 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738814', 'tblTempUsageDetail_20' ) start [2025-03-22 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738814', 'tblTempUsageDetail_20' ) end [2025-03-22 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738814', 'tblTempVendorCDR_20' ) start [2025-03-22 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738814', 'tblTempVendorCDR_20' ) end [2025-03-22 16:42:19] Production.INFO: ProcessCDR(1,14738814,1,1,2) [2025-03-22 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738814', 'tblTempUsageDetail_20' ) start [2025-03-22 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738814', 'tblTempUsageDetail_20' ) end [2025-03-22 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:42:22] Production.INFO: ==15759== Releasing lock... [2025-03-22 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:42:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:43:05 [end_date_ymd] => 2025-03-22 16:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:43:05' and `end` < '2025-03-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-03-22 16:43:18] Production.INFO: count ==2905 [2025-03-22 16:43:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:43:05 - End Time 2025-03-22 16:43:05 [2025-03-22 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738819', 'tblTempUsageDetail_20' ) start [2025-03-22 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738819', 'tblTempUsageDetail_20' ) end [2025-03-22 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738819', 'tblTempVendorCDR_20' ) start [2025-03-22 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738819', 'tblTempVendorCDR_20' ) end [2025-03-22 16:43:19] Production.INFO: ProcessCDR(1,14738819,1,1,2) [2025-03-22 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738819', 'tblTempUsageDetail_20' ) start [2025-03-22 16:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738819', 'tblTempUsageDetail_20' ) end [2025-03-22 16:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:43:22] Production.INFO: ==15831== Releasing lock... [2025-03-22 16:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:43:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:44:05 [end_date_ymd] => 2025-03-22 16:44:05 [RateCDR] => 1 ) [2025-03-22 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:44:05' and `end` < '2025-03-22 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:44:18] Production.INFO: count ==2899 [2025-03-22 16:44:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:44:05 - End Time 2025-03-22 16:44:05 [2025-03-22 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738824', 'tblTempUsageDetail_20' ) start [2025-03-22 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738824', 'tblTempUsageDetail_20' ) end [2025-03-22 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738824', 'tblTempVendorCDR_20' ) start [2025-03-22 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738824', 'tblTempVendorCDR_20' ) end [2025-03-22 16:44:19] Production.INFO: ProcessCDR(1,14738824,1,1,2) [2025-03-22 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738824', 'tblTempUsageDetail_20' ) start [2025-03-22 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738824', 'tblTempUsageDetail_20' ) end [2025-03-22 16:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:44:23] Production.INFO: ==15903== Releasing lock... [2025-03-22 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:44:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-22 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:45:05 [end_date_ymd] => 2025-03-22 16:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:45:05' and `end` < '2025-03-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-03-22 16:45:18] Production.INFO: count ==2890 [2025-03-22 16:45:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:45:05 - End Time 2025-03-22 16:45:05 [2025-03-22 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738829', 'tblTempUsageDetail_20' ) start [2025-03-22 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738829', 'tblTempUsageDetail_20' ) end [2025-03-22 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738829', 'tblTempVendorCDR_20' ) start [2025-03-22 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738829', 'tblTempVendorCDR_20' ) end [2025-03-22 16:45:19] Production.INFO: ProcessCDR(1,14738829,1,1,2) [2025-03-22 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738829', 'tblTempUsageDetail_20' ) start [2025-03-22 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738829', 'tblTempUsageDetail_20' ) end [2025-03-22 16:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:45:24] Production.INFO: ==15979== Releasing lock... [2025-03-22 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:45:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:46:05 [end_date_ymd] => 2025-03-22 16:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:46:05' and `end` < '2025-03-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-03-22 16:46:17] Production.INFO: count ==2868 [2025-03-22 16:46:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:46:05 - End Time 2025-03-22 16:46:05 [2025-03-22 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738834', 'tblTempUsageDetail_20' ) start [2025-03-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738834', 'tblTempUsageDetail_20' ) end [2025-03-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738834', 'tblTempVendorCDR_20' ) start [2025-03-22 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738834', 'tblTempVendorCDR_20' ) end [2025-03-22 16:46:19] Production.INFO: ProcessCDR(1,14738834,1,1,2) [2025-03-22 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738834', 'tblTempUsageDetail_20' ) start [2025-03-22 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738834', 'tblTempUsageDetail_20' ) end [2025-03-22 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:46:24] Production.INFO: ==16053== Releasing lock... [2025-03-22 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:46:24] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:47:05 [end_date_ymd] => 2025-03-22 16:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:47:05' and `end` < '2025-03-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-03-22 16:47:18] Production.INFO: count ==2834 [2025-03-22 16:47:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:47:05 - End Time 2025-03-22 16:47:05 [2025-03-22 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738839', 'tblTempUsageDetail_20' ) start [2025-03-22 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738839', 'tblTempUsageDetail_20' ) end [2025-03-22 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738839', 'tblTempVendorCDR_20' ) start [2025-03-22 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738839', 'tblTempVendorCDR_20' ) end [2025-03-22 16:47:19] Production.INFO: ProcessCDR(1,14738839,1,1,2) [2025-03-22 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738839', 'tblTempUsageDetail_20' ) start [2025-03-22 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738839', 'tblTempUsageDetail_20' ) end [2025-03-22 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:47:24] Production.INFO: ==16126== Releasing lock... [2025-03-22 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:47:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:48:05 [end_date_ymd] => 2025-03-22 16:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:48:05' and `end` < '2025-03-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-03-22 16:48:18] Production.INFO: count ==2807 [2025-03-22 16:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:48:05 - End Time 2025-03-22 16:48:05 [2025-03-22 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738844', 'tblTempUsageDetail_20' ) start [2025-03-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738844', 'tblTempUsageDetail_20' ) end [2025-03-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738844', 'tblTempVendorCDR_20' ) start [2025-03-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738844', 'tblTempVendorCDR_20' ) end [2025-03-22 16:48:19] Production.INFO: ProcessCDR(1,14738844,1,1,2) [2025-03-22 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738844', 'tblTempUsageDetail_20' ) start [2025-03-22 16:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738844', 'tblTempUsageDetail_20' ) end [2025-03-22 16:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:48:24] Production.INFO: ==16204== Releasing lock... [2025-03-22 16:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:48:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:49:05 [end_date_ymd] => 2025-03-22 16:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:49:05' and `end` < '2025-03-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-03-22 16:49:18] Production.INFO: count ==2800 [2025-03-22 16:49:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:49:05 - End Time 2025-03-22 16:49:05 [2025-03-22 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738849', 'tblTempUsageDetail_20' ) start [2025-03-22 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738849', 'tblTempUsageDetail_20' ) end [2025-03-22 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738849', 'tblTempVendorCDR_20' ) start [2025-03-22 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738849', 'tblTempVendorCDR_20' ) end [2025-03-22 16:49:19] Production.INFO: ProcessCDR(1,14738849,1,1,2) [2025-03-22 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738849', 'tblTempUsageDetail_20' ) start [2025-03-22 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738849', 'tblTempUsageDetail_20' ) end [2025-03-22 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:49:23] Production.INFO: ==16278== Releasing lock... [2025-03-22 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:49:23] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:50:06 [end_date_ymd] => 2025-03-22 16:50:06 [RateCDR] => 1 ) [2025-03-22 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:50:06' and `end` < '2025-03-22 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:50:18] Production.INFO: count ==2806 [2025-03-22 16:50:20] Production.ERROR: pbx CDR StartTime 2025-03-22 13:50:06 - End Time 2025-03-22 16:50:06 [2025-03-22 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738855', 'tblTempUsageDetail_20' ) start [2025-03-22 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738855', 'tblTempUsageDetail_20' ) end [2025-03-22 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738855', 'tblTempVendorCDR_20' ) start [2025-03-22 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738855', 'tblTempVendorCDR_20' ) end [2025-03-22 16:50:20] Production.INFO: ProcessCDR(1,14738855,1,1,2) [2025-03-22 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738855', 'tblTempUsageDetail_20' ) start [2025-03-22 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738855', 'tblTempUsageDetail_20' ) end [2025-03-22 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:50:25] Production.INFO: ==16353== Releasing lock... [2025-03-22 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:50:25] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:51:05 [end_date_ymd] => 2025-03-22 16:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:51:05' and `end` < '2025-03-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-03-22 16:51:18] Production.INFO: count ==2810 [2025-03-22 16:51:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:51:05 - End Time 2025-03-22 16:51:05 [2025-03-22 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738860', 'tblTempUsageDetail_20' ) start [2025-03-22 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738860', 'tblTempUsageDetail_20' ) end [2025-03-22 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738860', 'tblTempVendorCDR_20' ) start [2025-03-22 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738860', 'tblTempVendorCDR_20' ) end [2025-03-22 16:51:19] Production.INFO: ProcessCDR(1,14738860,1,1,2) [2025-03-22 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738860', 'tblTempUsageDetail_20' ) start [2025-03-22 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738860', 'tblTempUsageDetail_20' ) end [2025-03-22 16:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:51:22] Production.INFO: ==16428== Releasing lock... [2025-03-22 16:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:51:22] Production.INFO: 49 MB #Memory Used# [2025-03-22 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:52:05 [end_date_ymd] => 2025-03-22 16:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:52:05' and `end` < '2025-03-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-03-22 16:52:18] Production.INFO: count ==2814 [2025-03-22 16:52:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:52:05 - End Time 2025-03-22 16:52:05 [2025-03-22 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738865', 'tblTempUsageDetail_20' ) start [2025-03-22 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738865', 'tblTempUsageDetail_20' ) end [2025-03-22 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738865', 'tblTempVendorCDR_20' ) start [2025-03-22 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738865', 'tblTempVendorCDR_20' ) end [2025-03-22 16:52:20] Production.INFO: ProcessCDR(1,14738865,1,1,2) [2025-03-22 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738865', 'tblTempUsageDetail_20' ) start [2025-03-22 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738865', 'tblTempUsageDetail_20' ) end [2025-03-22 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:52:25] Production.INFO: ==16541== Releasing lock... [2025-03-22 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:52:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:53:05 [end_date_ymd] => 2025-03-22 16:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:53:05' and `end` < '2025-03-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-03-22 16:53:18] Production.INFO: count ==2813 [2025-03-22 16:53:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:53:05 - End Time 2025-03-22 16:53:05 [2025-03-22 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738870', 'tblTempUsageDetail_20' ) start [2025-03-22 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738870', 'tblTempUsageDetail_20' ) end [2025-03-22 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738870', 'tblTempVendorCDR_20' ) start [2025-03-22 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738870', 'tblTempVendorCDR_20' ) end [2025-03-22 16:53:19] Production.INFO: ProcessCDR(1,14738870,1,1,2) [2025-03-22 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738870', 'tblTempUsageDetail_20' ) start [2025-03-22 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738870', 'tblTempUsageDetail_20' ) end [2025-03-22 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:53:24] Production.INFO: ==16613== Releasing lock... [2025-03-22 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:53:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:54:05 [end_date_ymd] => 2025-03-22 16:54:05 [RateCDR] => 1 ) [2025-03-22 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:54:05' and `end` < '2025-03-22 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:54:17] Production.INFO: count ==2807 [2025-03-22 16:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:54:05 - End Time 2025-03-22 16:54:05 [2025-03-22 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738875', 'tblTempUsageDetail_20' ) start [2025-03-22 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738875', 'tblTempUsageDetail_20' ) end [2025-03-22 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738875', 'tblTempVendorCDR_20' ) start [2025-03-22 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738875', 'tblTempVendorCDR_20' ) end [2025-03-22 16:54:19] Production.INFO: ProcessCDR(1,14738875,1,1,2) [2025-03-22 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738875', 'tblTempUsageDetail_20' ) start [2025-03-22 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738875', 'tblTempUsageDetail_20' ) end [2025-03-22 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:54:23] Production.INFO: ==16684== Releasing lock... [2025-03-22 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:54:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-22 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:55:05 [end_date_ymd] => 2025-03-22 16:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:55:05' and `end` < '2025-03-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-03-22 16:55:18] Production.INFO: count ==2808 [2025-03-22 16:55:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:55:05 - End Time 2025-03-22 16:55:05 [2025-03-22 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738880', 'tblTempUsageDetail_20' ) start [2025-03-22 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738880', 'tblTempUsageDetail_20' ) end [2025-03-22 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738880', 'tblTempVendorCDR_20' ) start [2025-03-22 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738880', 'tblTempVendorCDR_20' ) end [2025-03-22 16:55:19] Production.INFO: ProcessCDR(1,14738880,1,1,2) [2025-03-22 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738880', 'tblTempUsageDetail_20' ) start [2025-03-22 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738880', 'tblTempUsageDetail_20' ) end [2025-03-22 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:55:25] Production.INFO: ==16760== Releasing lock... [2025-03-22 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:55:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:56:05 [end_date_ymd] => 2025-03-22 16:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:56:05' and `end` < '2025-03-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-03-22 16:56:17] Production.INFO: count ==2814 [2025-03-22 16:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:56:05 - End Time 2025-03-22 16:56:05 [2025-03-22 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738885', 'tblTempUsageDetail_20' ) start [2025-03-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738885', 'tblTempUsageDetail_20' ) end [2025-03-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738885', 'tblTempVendorCDR_20' ) start [2025-03-22 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738885', 'tblTempVendorCDR_20' ) end [2025-03-22 16:56:18] Production.INFO: ProcessCDR(1,14738885,1,1,2) [2025-03-22 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738885', 'tblTempUsageDetail_20' ) start [2025-03-22 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738885', 'tblTempUsageDetail_20' ) end [2025-03-22 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:56:23] Production.INFO: ==16835== Releasing lock... [2025-03-22 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:56:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-22 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:57:05 [end_date_ymd] => 2025-03-22 16:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:57:05' and `end` < '2025-03-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-03-22 16:57:18] Production.INFO: count ==2820 [2025-03-22 16:57:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:57:05 - End Time 2025-03-22 16:57:05 [2025-03-22 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738890', 'tblTempUsageDetail_20' ) start [2025-03-22 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738890', 'tblTempUsageDetail_20' ) end [2025-03-22 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738890', 'tblTempVendorCDR_20' ) start [2025-03-22 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738890', 'tblTempVendorCDR_20' ) end [2025-03-22 16:57:19] Production.INFO: ProcessCDR(1,14738890,1,1,2) [2025-03-22 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738890', 'tblTempUsageDetail_20' ) start [2025-03-22 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738890', 'tblTempUsageDetail_20' ) end [2025-03-22 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:57:24] Production.INFO: ==16916== Releasing lock... [2025-03-22 16:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:57:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-22 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:58:05 [end_date_ymd] => 2025-03-22 16:58:05 [RateCDR] => 1 ) [2025-03-22 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 13:58:05' and `end` < '2025-03-22 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 16:58:17] Production.INFO: count ==2824 [2025-03-22 16:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 13:58:05 - End Time 2025-03-22 16:58:05 [2025-03-22 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738895', 'tblTempUsageDetail_20' ) start [2025-03-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738895', 'tblTempUsageDetail_20' ) end [2025-03-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738895', 'tblTempVendorCDR_20' ) start [2025-03-22 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738895', 'tblTempVendorCDR_20' ) end [2025-03-22 16:58:18] Production.INFO: ProcessCDR(1,14738895,1,1,2) [2025-03-22 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738895', 'tblTempUsageDetail_20' ) start [2025-03-22 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738895', 'tblTempUsageDetail_20' ) end [2025-03-22 16:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:58:23] Production.INFO: ==16990== Releasing lock... [2025-03-22 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:58:23] Production.INFO: 50 MB #Memory Used# [2025-03-22 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 13:59:05 [end_date_ymd] => 2025-03-22 16:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 13:59:05' and `end` < '2025-03-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-03-22 16:59:17] Production.INFO: count ==2788 [2025-03-22 16:59:19] Production.ERROR: pbx CDR StartTime 2025-03-22 13:59:05 - End Time 2025-03-22 16:59:05 [2025-03-22 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738900', 'tblTempUsageDetail_20' ) start [2025-03-22 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738900', 'tblTempUsageDetail_20' ) end [2025-03-22 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738900', 'tblTempVendorCDR_20' ) start [2025-03-22 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738900', 'tblTempVendorCDR_20' ) end [2025-03-22 16:59:19] Production.INFO: ProcessCDR(1,14738900,1,1,2) [2025-03-22 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738900', 'tblTempUsageDetail_20' ) start [2025-03-22 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738900', 'tblTempUsageDetail_20' ) end [2025-03-22 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 16:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 16:59:24] Production.INFO: ==17068== Releasing lock... [2025-03-22 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 16:59:24] Production.INFO: 49 MB #Memory Used# [2025-03-22 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:00:06 [end_date_ymd] => 2025-03-22 17:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:00:06' and `end` < '2025-03-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-03-22 17:00:19] Production.INFO: count ==2751 [2025-03-22 17:00:20] Production.ERROR: pbx CDR StartTime 2025-03-22 14:00:06 - End Time 2025-03-22 17:00:06 [2025-03-22 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738905', 'tblTempUsageDetail_20' ) start [2025-03-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738905', 'tblTempUsageDetail_20' ) end [2025-03-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738905', 'tblTempVendorCDR_20' ) start [2025-03-22 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738905', 'tblTempVendorCDR_20' ) end [2025-03-22 17:00:20] Production.INFO: ProcessCDR(1,14738905,1,1,2) [2025-03-22 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738905', 'tblTempUsageDetail_20' ) start [2025-03-22 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738905', 'tblTempUsageDetail_20' ) end [2025-03-22 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:00:25] Production.INFO: ==17141== Releasing lock... [2025-03-22 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:00:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:01:05 [end_date_ymd] => 2025-03-22 17:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:01:05' and `end` < '2025-03-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-03-22 17:01:18] Production.INFO: count ==2753 [2025-03-22 17:01:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:01:05 - End Time 2025-03-22 17:01:05 [2025-03-22 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738911', 'tblTempUsageDetail_20' ) start [2025-03-22 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738911', 'tblTempUsageDetail_20' ) end [2025-03-22 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738911', 'tblTempVendorCDR_20' ) start [2025-03-22 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738911', 'tblTempVendorCDR_20' ) end [2025-03-22 17:01:19] Production.INFO: ProcessCDR(1,14738911,1,1,2) [2025-03-22 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738911', 'tblTempUsageDetail_20' ) start [2025-03-22 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738911', 'tblTempUsageDetail_20' ) end [2025-03-22 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:01:24] Production.INFO: ==17232== Releasing lock... [2025-03-22 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:01:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:02:05 [end_date_ymd] => 2025-03-22 17:02:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:02:05' and `end` < '2025-03-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-03-22 17:02:18] Production.INFO: count ==2736 [2025-03-22 17:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:02:05 - End Time 2025-03-22 17:02:05 [2025-03-22 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738916', 'tblTempUsageDetail_20' ) start [2025-03-22 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738916', 'tblTempUsageDetail_20' ) end [2025-03-22 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738916', 'tblTempVendorCDR_20' ) start [2025-03-22 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738916', 'tblTempVendorCDR_20' ) end [2025-03-22 17:02:19] Production.INFO: ProcessCDR(1,14738916,1,1,2) [2025-03-22 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738916', 'tblTempUsageDetail_20' ) start [2025-03-22 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738916', 'tblTempUsageDetail_20' ) end [2025-03-22 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:02:24] Production.INFO: ==17318== Releasing lock... [2025-03-22 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:02:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-22 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:03:05 [end_date_ymd] => 2025-03-22 17:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:03:05' and `end` < '2025-03-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-03-22 17:03:17] Production.INFO: count ==2698 [2025-03-22 17:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:03:05 - End Time 2025-03-22 17:03:05 [2025-03-22 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738921', 'tblTempUsageDetail_20' ) start [2025-03-22 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738921', 'tblTempUsageDetail_20' ) end [2025-03-22 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738921', 'tblTempVendorCDR_20' ) start [2025-03-22 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738921', 'tblTempVendorCDR_20' ) end [2025-03-22 17:03:18] Production.INFO: ProcessCDR(1,14738921,1,1,2) [2025-03-22 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738921', 'tblTempUsageDetail_20' ) start [2025-03-22 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738921', 'tblTempUsageDetail_20' ) end [2025-03-22 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:03:23] Production.INFO: ==17390== Releasing lock... [2025-03-22 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:03:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-22 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:04:06 [end_date_ymd] => 2025-03-22 17:04:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:04:06' and `end` < '2025-03-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-03-22 17:04:18] Production.INFO: count ==2663 [2025-03-22 17:04:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:04:06 - End Time 2025-03-22 17:04:06 [2025-03-22 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738926', 'tblTempUsageDetail_20' ) start [2025-03-22 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738926', 'tblTempUsageDetail_20' ) end [2025-03-22 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738926', 'tblTempVendorCDR_20' ) start [2025-03-22 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738926', 'tblTempVendorCDR_20' ) end [2025-03-22 17:04:19] Production.INFO: ProcessCDR(1,14738926,1,1,2) [2025-03-22 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738926', 'tblTempUsageDetail_20' ) start [2025-03-22 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738926', 'tblTempUsageDetail_20' ) end [2025-03-22 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:04:24] Production.INFO: ==17465== Releasing lock... [2025-03-22 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:04:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:05:05 [end_date_ymd] => 2025-03-22 17:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:05:05' and `end` < '2025-03-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-03-22 17:05:17] Production.INFO: count ==2634 [2025-03-22 17:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:05:05 - End Time 2025-03-22 17:05:05 [2025-03-22 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738931', 'tblTempUsageDetail_20' ) start [2025-03-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738931', 'tblTempUsageDetail_20' ) end [2025-03-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738931', 'tblTempVendorCDR_20' ) start [2025-03-22 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738931', 'tblTempVendorCDR_20' ) end [2025-03-22 17:05:18] Production.INFO: ProcessCDR(1,14738931,1,1,2) [2025-03-22 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738931', 'tblTempUsageDetail_20' ) start [2025-03-22 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738931', 'tblTempUsageDetail_20' ) end [2025-03-22 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:05:22] Production.INFO: ==17537== Releasing lock... [2025-03-22 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:05:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:06:05 [end_date_ymd] => 2025-03-22 17:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:06:05' and `end` < '2025-03-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-03-22 17:06:18] Production.INFO: count ==2640 [2025-03-22 17:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:06:05 - End Time 2025-03-22 17:06:05 [2025-03-22 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738936', 'tblTempUsageDetail_20' ) start [2025-03-22 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738936', 'tblTempUsageDetail_20' ) end [2025-03-22 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738936', 'tblTempVendorCDR_20' ) start [2025-03-22 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738936', 'tblTempVendorCDR_20' ) end [2025-03-22 17:06:19] Production.INFO: ProcessCDR(1,14738936,1,1,2) [2025-03-22 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738936', 'tblTempUsageDetail_20' ) start [2025-03-22 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738936', 'tblTempUsageDetail_20' ) end [2025-03-22 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:06:24] Production.INFO: ==17611== Releasing lock... [2025-03-22 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:06:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:07:05 [end_date_ymd] => 2025-03-22 17:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:07:05' and `end` < '2025-03-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-03-22 17:07:17] Production.INFO: count ==2637 [2025-03-22 17:07:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:07:05 - End Time 2025-03-22 17:07:05 [2025-03-22 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738941', 'tblTempUsageDetail_20' ) start [2025-03-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738941', 'tblTempUsageDetail_20' ) end [2025-03-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738941', 'tblTempVendorCDR_20' ) start [2025-03-22 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738941', 'tblTempVendorCDR_20' ) end [2025-03-22 17:07:19] Production.INFO: ProcessCDR(1,14738941,1,1,2) [2025-03-22 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738941', 'tblTempUsageDetail_20' ) start [2025-03-22 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738941', 'tblTempUsageDetail_20' ) end [2025-03-22 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:07:23] Production.INFO: ==17730== Releasing lock... [2025-03-22 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:07:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:08:05 [end_date_ymd] => 2025-03-22 17:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:08:05' and `end` < '2025-03-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-03-22 17:08:18] Production.INFO: count ==2641 [2025-03-22 17:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:08:05 - End Time 2025-03-22 17:08:05 [2025-03-22 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738946', 'tblTempUsageDetail_20' ) start [2025-03-22 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738946', 'tblTempUsageDetail_20' ) end [2025-03-22 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738946', 'tblTempVendorCDR_20' ) start [2025-03-22 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738946', 'tblTempVendorCDR_20' ) end [2025-03-22 17:08:19] Production.INFO: ProcessCDR(1,14738946,1,1,2) [2025-03-22 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738946', 'tblTempUsageDetail_20' ) start [2025-03-22 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738946', 'tblTempUsageDetail_20' ) end [2025-03-22 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:08:24] Production.INFO: ==17806== Releasing lock... [2025-03-22 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:08:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:09:06 [end_date_ymd] => 2025-03-22 17:09:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:09:06' and `end` < '2025-03-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-03-22 17:09:18] Production.INFO: count ==2636 [2025-03-22 17:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:09:06 - End Time 2025-03-22 17:09:06 [2025-03-22 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738951', 'tblTempUsageDetail_20' ) start [2025-03-22 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738951', 'tblTempUsageDetail_20' ) end [2025-03-22 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738951', 'tblTempVendorCDR_20' ) start [2025-03-22 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738951', 'tblTempVendorCDR_20' ) end [2025-03-22 17:09:19] Production.INFO: ProcessCDR(1,14738951,1,1,2) [2025-03-22 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738951', 'tblTempUsageDetail_20' ) start [2025-03-22 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738951', 'tblTempUsageDetail_20' ) end [2025-03-22 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:09:25] Production.INFO: ==17879== Releasing lock... [2025-03-22 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:09:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:10:06 [end_date_ymd] => 2025-03-22 17:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:10:06' and `end` < '2025-03-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-03-22 17:10:18] Production.INFO: count ==2607 [2025-03-22 17:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:10:06 - End Time 2025-03-22 17:10:06 [2025-03-22 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738957', 'tblTempUsageDetail_20' ) start [2025-03-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738957', 'tblTempUsageDetail_20' ) end [2025-03-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738957', 'tblTempVendorCDR_20' ) start [2025-03-22 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738957', 'tblTempVendorCDR_20' ) end [2025-03-22 17:10:19] Production.INFO: ProcessCDR(1,14738957,1,1,2) [2025-03-22 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738957', 'tblTempUsageDetail_20' ) start [2025-03-22 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738957', 'tblTempUsageDetail_20' ) end [2025-03-22 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:10:23] Production.INFO: ==17956== Releasing lock... [2025-03-22 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:10:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:11:06 [end_date_ymd] => 2025-03-22 17:11:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:11:06' and `end` < '2025-03-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-03-22 17:11:18] Production.INFO: count ==2639 [2025-03-22 17:11:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:11:06 - End Time 2025-03-22 17:11:06 [2025-03-22 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738962', 'tblTempUsageDetail_20' ) start [2025-03-22 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738962', 'tblTempUsageDetail_20' ) end [2025-03-22 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738962', 'tblTempVendorCDR_20' ) start [2025-03-22 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738962', 'tblTempVendorCDR_20' ) end [2025-03-22 17:11:19] Production.INFO: ProcessCDR(1,14738962,1,1,2) [2025-03-22 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738962', 'tblTempUsageDetail_20' ) start [2025-03-22 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738962', 'tblTempUsageDetail_20' ) end [2025-03-22 17:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:11:24] Production.INFO: ==18036== Releasing lock... [2025-03-22 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:11:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:12:06 [end_date_ymd] => 2025-03-22 17:12:06 [RateCDR] => 1 ) [2025-03-22 17:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:12:06' and `end` < '2025-03-22 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:12:18] Production.INFO: count ==2642 [2025-03-22 17:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:12:06 - End Time 2025-03-22 17:12:06 [2025-03-22 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738967', 'tblTempUsageDetail_20' ) start [2025-03-22 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738967', 'tblTempUsageDetail_20' ) end [2025-03-22 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738967', 'tblTempVendorCDR_20' ) start [2025-03-22 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738967', 'tblTempVendorCDR_20' ) end [2025-03-22 17:12:19] Production.INFO: ProcessCDR(1,14738967,1,1,2) [2025-03-22 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738967', 'tblTempUsageDetail_20' ) start [2025-03-22 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738967', 'tblTempUsageDetail_20' ) end [2025-03-22 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:12:24] Production.INFO: ==18110== Releasing lock... [2025-03-22 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:12:24] Production.INFO: 48 MB #Memory Used# [2025-03-22 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:13:05 [end_date_ymd] => 2025-03-22 17:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:13:05' and `end` < '2025-03-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-03-22 17:13:18] Production.INFO: count ==2611 [2025-03-22 17:13:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:13:05 - End Time 2025-03-22 17:13:05 [2025-03-22 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738972', 'tblTempUsageDetail_20' ) start [2025-03-22 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738972', 'tblTempUsageDetail_20' ) end [2025-03-22 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738972', 'tblTempVendorCDR_20' ) start [2025-03-22 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738972', 'tblTempVendorCDR_20' ) end [2025-03-22 17:13:19] Production.INFO: ProcessCDR(1,14738972,1,1,2) [2025-03-22 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738972', 'tblTempUsageDetail_20' ) start [2025-03-22 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738972', 'tblTempUsageDetail_20' ) end [2025-03-22 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:13:24] Production.INFO: ==18190== Releasing lock... [2025-03-22 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:13:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-22 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:14:05 [end_date_ymd] => 2025-03-22 17:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:14:05' and `end` < '2025-03-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-03-22 17:14:18] Production.INFO: count ==2563 [2025-03-22 17:14:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:14:05 - End Time 2025-03-22 17:14:05 [2025-03-22 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738977', 'tblTempUsageDetail_20' ) start [2025-03-22 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738977', 'tblTempUsageDetail_20' ) end [2025-03-22 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738977', 'tblTempVendorCDR_20' ) start [2025-03-22 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738977', 'tblTempVendorCDR_20' ) end [2025-03-22 17:14:19] Production.INFO: ProcessCDR(1,14738977,1,1,2) [2025-03-22 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738977', 'tblTempUsageDetail_20' ) start [2025-03-22 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738977', 'tblTempUsageDetail_20' ) end [2025-03-22 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:14:24] Production.INFO: ==18267== Releasing lock... [2025-03-22 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:14:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:15:06 [end_date_ymd] => 2025-03-22 17:15:06 [RateCDR] => 1 ) [2025-03-22 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:15:06' and `end` < '2025-03-22 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:15:19] Production.INFO: count ==2546 [2025-03-22 17:15:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:15:06 - End Time 2025-03-22 17:15:06 [2025-03-22 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738982', 'tblTempUsageDetail_20' ) start [2025-03-22 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738982', 'tblTempUsageDetail_20' ) end [2025-03-22 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738982', 'tblTempVendorCDR_20' ) start [2025-03-22 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738982', 'tblTempVendorCDR_20' ) end [2025-03-22 17:15:19] Production.INFO: ProcessCDR(1,14738982,1,1,2) [2025-03-22 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738982', 'tblTempUsageDetail_20' ) start [2025-03-22 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738982', 'tblTempUsageDetail_20' ) end [2025-03-22 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:15:23] Production.INFO: ==18347== Releasing lock... [2025-03-22 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:15:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-22 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:16:05 [end_date_ymd] => 2025-03-22 17:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:16:05' and `end` < '2025-03-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-03-22 17:16:18] Production.INFO: count ==2539 [2025-03-22 17:16:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:16:05 - End Time 2025-03-22 17:16:05 [2025-03-22 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738987', 'tblTempUsageDetail_20' ) start [2025-03-22 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738987', 'tblTempUsageDetail_20' ) end [2025-03-22 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738987', 'tblTempVendorCDR_20' ) start [2025-03-22 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738987', 'tblTempVendorCDR_20' ) end [2025-03-22 17:16:19] Production.INFO: ProcessCDR(1,14738987,1,1,2) [2025-03-22 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738987', 'tblTempUsageDetail_20' ) start [2025-03-22 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738987', 'tblTempUsageDetail_20' ) end [2025-03-22 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:16:24] Production.INFO: ==18426== Releasing lock... [2025-03-22 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:16:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:17:05 [end_date_ymd] => 2025-03-22 17:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:17:05' and `end` < '2025-03-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-03-22 17:17:17] Production.INFO: count ==2534 [2025-03-22 17:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:17:05 - End Time 2025-03-22 17:17:05 [2025-03-22 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738992', 'tblTempUsageDetail_20' ) start [2025-03-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738992', 'tblTempUsageDetail_20' ) end [2025-03-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738992', 'tblTempVendorCDR_20' ) start [2025-03-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738992', 'tblTempVendorCDR_20' ) end [2025-03-22 17:17:18] Production.INFO: ProcessCDR(1,14738992,1,1,2) [2025-03-22 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738992', 'tblTempUsageDetail_20' ) start [2025-03-22 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738992', 'tblTempUsageDetail_20' ) end [2025-03-22 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:17:24] Production.INFO: ==18506== Releasing lock... [2025-03-22 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:17:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:18:05 [end_date_ymd] => 2025-03-22 17:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:18:05' and `end` < '2025-03-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-03-22 17:18:18] Production.INFO: count ==2520 [2025-03-22 17:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:18:05 - End Time 2025-03-22 17:18:05 [2025-03-22 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738997', 'tblTempUsageDetail_20' ) start [2025-03-22 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14738997', 'tblTempUsageDetail_20' ) end [2025-03-22 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738997', 'tblTempVendorCDR_20' ) start [2025-03-22 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14738997', 'tblTempVendorCDR_20' ) end [2025-03-22 17:18:18] Production.INFO: ProcessCDR(1,14738997,1,1,2) [2025-03-22 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14738997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14738997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14738997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14738997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738997', 'tblTempUsageDetail_20' ) start [2025-03-22 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14738997', 'tblTempUsageDetail_20' ) end [2025-03-22 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:18:23] Production.INFO: ==18597== Releasing lock... [2025-03-22 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:18:23] Production.INFO: 47 MB #Memory Used# [2025-03-22 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:19:05 [end_date_ymd] => 2025-03-22 17:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:19:05' and `end` < '2025-03-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-03-22 17:19:18] Production.INFO: count ==2518 [2025-03-22 17:19:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:19:05 - End Time 2025-03-22 17:19:05 [2025-03-22 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739002', 'tblTempUsageDetail_20' ) start [2025-03-22 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739002', 'tblTempUsageDetail_20' ) end [2025-03-22 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739002', 'tblTempVendorCDR_20' ) start [2025-03-22 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739002', 'tblTempVendorCDR_20' ) end [2025-03-22 17:19:19] Production.INFO: ProcessCDR(1,14739002,1,1,2) [2025-03-22 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739002', 'tblTempUsageDetail_20' ) start [2025-03-22 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739002', 'tblTempUsageDetail_20' ) end [2025-03-22 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:19:24] Production.INFO: ==18673== Releasing lock... [2025-03-22 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:19:24] Production.INFO: 47 MB #Memory Used# [2025-03-22 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:20:05 [end_date_ymd] => 2025-03-22 17:20:05 [RateCDR] => 1 ) [2025-03-22 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:20:05' and `end` < '2025-03-22 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:20:18] Production.INFO: count ==2508 [2025-03-22 17:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:20:05 - End Time 2025-03-22 17:20:05 [2025-03-22 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739008', 'tblTempUsageDetail_20' ) start [2025-03-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739008', 'tblTempUsageDetail_20' ) end [2025-03-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739008', 'tblTempVendorCDR_20' ) start [2025-03-22 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739008', 'tblTempVendorCDR_20' ) end [2025-03-22 17:20:19] Production.INFO: ProcessCDR(1,14739008,1,1,2) [2025-03-22 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739008', 'tblTempUsageDetail_20' ) start [2025-03-22 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739008', 'tblTempUsageDetail_20' ) end [2025-03-22 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:20:24] Production.INFO: ==18753== Releasing lock... [2025-03-22 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:20:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:21:05 [end_date_ymd] => 2025-03-22 17:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:21:05' and `end` < '2025-03-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-03-22 17:21:18] Production.INFO: count ==2584 [2025-03-22 17:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:21:05 - End Time 2025-03-22 17:21:05 [2025-03-22 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739013', 'tblTempUsageDetail_20' ) start [2025-03-22 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739013', 'tblTempUsageDetail_20' ) end [2025-03-22 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739013', 'tblTempVendorCDR_20' ) start [2025-03-22 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739013', 'tblTempVendorCDR_20' ) end [2025-03-22 17:21:19] Production.INFO: ProcessCDR(1,14739013,1,1,2) [2025-03-22 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739013', 'tblTempUsageDetail_20' ) start [2025-03-22 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739013', 'tblTempUsageDetail_20' ) end [2025-03-22 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:21:24] Production.INFO: ==18837== Releasing lock... [2025-03-22 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:21:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:22:06 [end_date_ymd] => 2025-03-22 17:22:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:22:06' and `end` < '2025-03-22 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:22:19] Production.INFO: count ==2590 [2025-03-22 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-22 14:22:06 - End Time 2025-03-22 17:22:06 [2025-03-22 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739018', 'tblTempUsageDetail_20' ) start [2025-03-22 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739018', 'tblTempUsageDetail_20' ) end [2025-03-22 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739018', 'tblTempVendorCDR_20' ) start [2025-03-22 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739018', 'tblTempVendorCDR_20' ) end [2025-03-22 17:22:20] Production.INFO: ProcessCDR(1,14739018,1,1,2) [2025-03-22 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739018', 'tblTempUsageDetail_20' ) start [2025-03-22 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739018', 'tblTempUsageDetail_20' ) end [2025-03-22 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:22:25] Production.INFO: ==18910== Releasing lock... [2025-03-22 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:22:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:23:05 [end_date_ymd] => 2025-03-22 17:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:23:05' and `end` < '2025-03-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-03-22 17:23:18] Production.INFO: count ==2593 [2025-03-22 17:23:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:23:05 - End Time 2025-03-22 17:23:05 [2025-03-22 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739023', 'tblTempUsageDetail_20' ) start [2025-03-22 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739023', 'tblTempUsageDetail_20' ) end [2025-03-22 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739023', 'tblTempVendorCDR_20' ) start [2025-03-22 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739023', 'tblTempVendorCDR_20' ) end [2025-03-22 17:23:19] Production.INFO: ProcessCDR(1,14739023,1,1,2) [2025-03-22 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739023', 'tblTempUsageDetail_20' ) start [2025-03-22 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739023', 'tblTempUsageDetail_20' ) end [2025-03-22 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:23:24] Production.INFO: ==19023== Releasing lock... [2025-03-22 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:23:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:24:06 [end_date_ymd] => 2025-03-22 17:24:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:24:06' and `end` < '2025-03-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-03-22 17:24:19] Production.INFO: count ==2598 [2025-03-22 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-22 14:24:06 - End Time 2025-03-22 17:24:06 [2025-03-22 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739028', 'tblTempUsageDetail_20' ) start [2025-03-22 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739028', 'tblTempUsageDetail_20' ) end [2025-03-22 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739028', 'tblTempVendorCDR_20' ) start [2025-03-22 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739028', 'tblTempVendorCDR_20' ) end [2025-03-22 17:24:20] Production.INFO: ProcessCDR(1,14739028,1,1,2) [2025-03-22 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739028', 'tblTempUsageDetail_20' ) start [2025-03-22 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739028', 'tblTempUsageDetail_20' ) end [2025-03-22 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:24:25] Production.INFO: ==19106== Releasing lock... [2025-03-22 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:24:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:25:05 [end_date_ymd] => 2025-03-22 17:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:25:05' and `end` < '2025-03-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-03-22 17:25:17] Production.INFO: count ==2602 [2025-03-22 17:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:25:05 - End Time 2025-03-22 17:25:05 [2025-03-22 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739033', 'tblTempUsageDetail_20' ) start [2025-03-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739033', 'tblTempUsageDetail_20' ) end [2025-03-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739033', 'tblTempVendorCDR_20' ) start [2025-03-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739033', 'tblTempVendorCDR_20' ) end [2025-03-22 17:25:18] Production.INFO: ProcessCDR(1,14739033,1,1,2) [2025-03-22 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739033', 'tblTempUsageDetail_20' ) start [2025-03-22 17:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739033', 'tblTempUsageDetail_20' ) end [2025-03-22 17:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:25:23] Production.INFO: ==19183== Releasing lock... [2025-03-22 17:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:25:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:26:05 [end_date_ymd] => 2025-03-22 17:26:05 [RateCDR] => 1 ) [2025-03-22 17:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:26:05' and `end` < '2025-03-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-03-22 17:26:18] Production.INFO: count ==2599 [2025-03-22 17:26:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:26:05 - End Time 2025-03-22 17:26:05 [2025-03-22 17:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739038', 'tblTempUsageDetail_20' ) start [2025-03-22 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739038', 'tblTempUsageDetail_20' ) end [2025-03-22 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739038', 'tblTempVendorCDR_20' ) start [2025-03-22 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739038', 'tblTempVendorCDR_20' ) end [2025-03-22 17:26:19] Production.INFO: ProcessCDR(1,14739038,1,1,2) [2025-03-22 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739038', 'tblTempUsageDetail_20' ) start [2025-03-22 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739038', 'tblTempUsageDetail_20' ) end [2025-03-22 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:26:24] Production.INFO: ==19260== Releasing lock... [2025-03-22 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:26:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:27:05 [end_date_ymd] => 2025-03-22 17:27:05 [RateCDR] => 1 ) [2025-03-22 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:27:05' and `end` < '2025-03-22 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:27:18] Production.INFO: count ==2579 [2025-03-22 17:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:27:05 - End Time 2025-03-22 17:27:05 [2025-03-22 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739043', 'tblTempUsageDetail_20' ) start [2025-03-22 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739043', 'tblTempUsageDetail_20' ) end [2025-03-22 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739043', 'tblTempVendorCDR_20' ) start [2025-03-22 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739043', 'tblTempVendorCDR_20' ) end [2025-03-22 17:27:19] Production.INFO: ProcessCDR(1,14739043,1,1,2) [2025-03-22 17:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739043', 'tblTempUsageDetail_20' ) start [2025-03-22 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739043', 'tblTempUsageDetail_20' ) end [2025-03-22 17:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:27:24] Production.INFO: ==19337== Releasing lock... [2025-03-22 17:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:27:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:28:05 [end_date_ymd] => 2025-03-22 17:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:28:05' and `end` < '2025-03-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-03-22 17:28:18] Production.INFO: count ==2551 [2025-03-22 17:28:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:28:05 - End Time 2025-03-22 17:28:05 [2025-03-22 17:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739048', 'tblTempUsageDetail_20' ) start [2025-03-22 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739048', 'tblTempUsageDetail_20' ) end [2025-03-22 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739048', 'tblTempVendorCDR_20' ) start [2025-03-22 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739048', 'tblTempVendorCDR_20' ) end [2025-03-22 17:28:19] Production.INFO: ProcessCDR(1,14739048,1,1,2) [2025-03-22 17:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739048', 'tblTempUsageDetail_20' ) start [2025-03-22 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739048', 'tblTempUsageDetail_20' ) end [2025-03-22 17:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:28:24] Production.INFO: ==19416== Releasing lock... [2025-03-22 17:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:28:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-22 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:29:05 [end_date_ymd] => 2025-03-22 17:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:29:05' and `end` < '2025-03-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-03-22 17:29:17] Production.INFO: count ==2515 [2025-03-22 17:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:29:05 - End Time 2025-03-22 17:29:05 [2025-03-22 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739053', 'tblTempUsageDetail_20' ) start [2025-03-22 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739053', 'tblTempUsageDetail_20' ) end [2025-03-22 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739053', 'tblTempVendorCDR_20' ) start [2025-03-22 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739053', 'tblTempVendorCDR_20' ) end [2025-03-22 17:29:18] Production.INFO: ProcessCDR(1,14739053,1,1,2) [2025-03-22 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739053', 'tblTempUsageDetail_20' ) start [2025-03-22 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739053', 'tblTempUsageDetail_20' ) end [2025-03-22 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:29:23] Production.INFO: ==19487== Releasing lock... [2025-03-22 17:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:29:23] Production.INFO: 47 MB #Memory Used# [2025-03-22 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:30:06 [end_date_ymd] => 2025-03-22 17:30:06 [RateCDR] => 1 ) [2025-03-22 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:30:06' and `end` < '2025-03-22 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:30:19] Production.INFO: count ==2462 [2025-03-22 17:30:20] Production.ERROR: pbx CDR StartTime 2025-03-22 14:30:06 - End Time 2025-03-22 17:30:06 [2025-03-22 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739059', 'tblTempUsageDetail_20' ) start [2025-03-22 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739059', 'tblTempUsageDetail_20' ) end [2025-03-22 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739059', 'tblTempVendorCDR_20' ) start [2025-03-22 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739059', 'tblTempVendorCDR_20' ) end [2025-03-22 17:30:20] Production.INFO: ProcessCDR(1,14739059,1,1,2) [2025-03-22 17:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739059', 'tblTempUsageDetail_20' ) start [2025-03-22 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739059', 'tblTempUsageDetail_20' ) end [2025-03-22 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:30:25] Production.INFO: ==19568== Releasing lock... [2025-03-22 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:30:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:31:05 [end_date_ymd] => 2025-03-22 17:31:05 [RateCDR] => 1 ) [2025-03-22 17:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:31:05' and `end` < '2025-03-22 17:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:31:17] Production.INFO: count ==2464 [2025-03-22 17:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:31:05 - End Time 2025-03-22 17:31:05 [2025-03-22 17:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739064', 'tblTempUsageDetail_20' ) start [2025-03-22 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739064', 'tblTempUsageDetail_20' ) end [2025-03-22 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739064', 'tblTempVendorCDR_20' ) start [2025-03-22 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739064', 'tblTempVendorCDR_20' ) end [2025-03-22 17:31:18] Production.INFO: ProcessCDR(1,14739064,1,1,2) [2025-03-22 17:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739064', 'tblTempUsageDetail_20' ) start [2025-03-22 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739064', 'tblTempUsageDetail_20' ) end [2025-03-22 17:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:31:23] Production.INFO: ==19648== Releasing lock... [2025-03-22 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:31:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-22 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:32:05 [end_date_ymd] => 2025-03-22 17:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:32:05' and `end` < '2025-03-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-03-22 17:32:18] Production.INFO: count ==2435 [2025-03-22 17:32:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:32:05 - End Time 2025-03-22 17:32:05 [2025-03-22 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739069', 'tblTempUsageDetail_20' ) start [2025-03-22 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739069', 'tblTempUsageDetail_20' ) end [2025-03-22 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739069', 'tblTempVendorCDR_20' ) start [2025-03-22 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739069', 'tblTempVendorCDR_20' ) end [2025-03-22 17:32:19] Production.INFO: ProcessCDR(1,14739069,1,1,2) [2025-03-22 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739069', 'tblTempUsageDetail_20' ) start [2025-03-22 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739069', 'tblTempUsageDetail_20' ) end [2025-03-22 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:32:24] Production.INFO: ==19728== Releasing lock... [2025-03-22 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:32:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-22 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:33:06 [end_date_ymd] => 2025-03-22 17:33:06 [RateCDR] => 1 ) [2025-03-22 17:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:33:06' and `end` < '2025-03-22 17:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:33:19] Production.INFO: count ==2400 [2025-03-22 17:33:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:33:06 - End Time 2025-03-22 17:33:06 [2025-03-22 17:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739074', 'tblTempUsageDetail_20' ) start [2025-03-22 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739074', 'tblTempUsageDetail_20' ) end [2025-03-22 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739074', 'tblTempVendorCDR_20' ) start [2025-03-22 17:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739074', 'tblTempVendorCDR_20' ) end [2025-03-22 17:33:19] Production.INFO: ProcessCDR(1,14739074,1,1,2) [2025-03-22 17:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739074', 'tblTempUsageDetail_20' ) start [2025-03-22 17:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739074', 'tblTempUsageDetail_20' ) end [2025-03-22 17:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:33:24] Production.INFO: ==19806== Releasing lock... [2025-03-22 17:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:33:24] Production.INFO: 46 MB #Memory Used# [2025-03-22 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:34:05 [end_date_ymd] => 2025-03-22 17:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:34:05' and `end` < '2025-03-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-03-22 17:34:18] Production.INFO: count ==2367 [2025-03-22 17:34:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:34:05 - End Time 2025-03-22 17:34:05 [2025-03-22 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739079', 'tblTempUsageDetail_20' ) start [2025-03-22 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739079', 'tblTempUsageDetail_20' ) end [2025-03-22 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739079', 'tblTempVendorCDR_20' ) start [2025-03-22 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739079', 'tblTempVendorCDR_20' ) end [2025-03-22 17:34:19] Production.INFO: ProcessCDR(1,14739079,1,1,2) [2025-03-22 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739079', 'tblTempUsageDetail_20' ) start [2025-03-22 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739079', 'tblTempUsageDetail_20' ) end [2025-03-22 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:34:24] Production.INFO: ==19883== Releasing lock... [2025-03-22 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:34:24] Production.INFO: 46 MB #Memory Used# [2025-03-22 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:35:05 [end_date_ymd] => 2025-03-22 17:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:35:05' and `end` < '2025-03-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-03-22 17:35:18] Production.INFO: count ==2334 [2025-03-22 17:35:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:35:05 - End Time 2025-03-22 17:35:05 [2025-03-22 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739084', 'tblTempUsageDetail_20' ) start [2025-03-22 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739084', 'tblTempUsageDetail_20' ) end [2025-03-22 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739084', 'tblTempVendorCDR_20' ) start [2025-03-22 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739084', 'tblTempVendorCDR_20' ) end [2025-03-22 17:35:19] Production.INFO: ProcessCDR(1,14739084,1,1,2) [2025-03-22 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739084', 'tblTempUsageDetail_20' ) start [2025-03-22 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739084', 'tblTempUsageDetail_20' ) end [2025-03-22 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:35:22] Production.INFO: ==19961== Releasing lock... [2025-03-22 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:35:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-22 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:36:05 [end_date_ymd] => 2025-03-22 17:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:36:05' and `end` < '2025-03-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-03-22 17:36:18] Production.INFO: count ==2281 [2025-03-22 17:36:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:36:05 - End Time 2025-03-22 17:36:05 [2025-03-22 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739089', 'tblTempUsageDetail_20' ) start [2025-03-22 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739089', 'tblTempUsageDetail_20' ) end [2025-03-22 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739089', 'tblTempVendorCDR_20' ) start [2025-03-22 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739089', 'tblTempVendorCDR_20' ) end [2025-03-22 17:36:19] Production.INFO: ProcessCDR(1,14739089,1,1,2) [2025-03-22 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739089', 'tblTempUsageDetail_20' ) start [2025-03-22 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739089', 'tblTempUsageDetail_20' ) end [2025-03-22 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:36:24] Production.INFO: ==20036== Releasing lock... [2025-03-22 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:36:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:37:05 [end_date_ymd] => 2025-03-22 17:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:37:05' and `end` < '2025-03-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-03-22 17:37:18] Production.INFO: count ==2233 [2025-03-22 17:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:37:05 - End Time 2025-03-22 17:37:05 [2025-03-22 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739094', 'tblTempUsageDetail_20' ) start [2025-03-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739094', 'tblTempUsageDetail_20' ) end [2025-03-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739094', 'tblTempVendorCDR_20' ) start [2025-03-22 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739094', 'tblTempVendorCDR_20' ) end [2025-03-22 17:37:18] Production.INFO: ProcessCDR(1,14739094,1,1,2) [2025-03-22 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739094', 'tblTempUsageDetail_20' ) start [2025-03-22 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739094', 'tblTempUsageDetail_20' ) end [2025-03-22 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:37:23] Production.INFO: ==20118== Releasing lock... [2025-03-22 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:37:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:38:05 [end_date_ymd] => 2025-03-22 17:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:38:05' and `end` < '2025-03-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-03-22 17:38:18] Production.INFO: count ==2163 [2025-03-22 17:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:38:05 - End Time 2025-03-22 17:38:05 [2025-03-22 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739099', 'tblTempUsageDetail_20' ) start [2025-03-22 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739099', 'tblTempUsageDetail_20' ) end [2025-03-22 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739099', 'tblTempVendorCDR_20' ) start [2025-03-22 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739099', 'tblTempVendorCDR_20' ) end [2025-03-22 17:38:19] Production.INFO: ProcessCDR(1,14739099,1,1,2) [2025-03-22 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739099', 'tblTempUsageDetail_20' ) start [2025-03-22 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739099', 'tblTempUsageDetail_20' ) end [2025-03-22 17:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:38:22] Production.INFO: ==20234== Releasing lock... [2025-03-22 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:38:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:39:06 [end_date_ymd] => 2025-03-22 17:39:06 [RateCDR] => 1 ) [2025-03-22 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:39:06' and `end` < '2025-03-22 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:39:18] Production.INFO: count ==2108 [2025-03-22 17:39:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:39:06 - End Time 2025-03-22 17:39:06 [2025-03-22 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739104', 'tblTempUsageDetail_20' ) start [2025-03-22 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739104', 'tblTempUsageDetail_20' ) end [2025-03-22 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739104', 'tblTempVendorCDR_20' ) start [2025-03-22 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739104', 'tblTempVendorCDR_20' ) end [2025-03-22 17:39:19] Production.INFO: ProcessCDR(1,14739104,1,1,2) [2025-03-22 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739104', 'tblTempUsageDetail_20' ) start [2025-03-22 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739104', 'tblTempUsageDetail_20' ) end [2025-03-22 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:39:24] Production.INFO: ==20313== Releasing lock... [2025-03-22 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:39:24] Production.INFO: 44 MB #Memory Used# [2025-03-22 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:40:06 [end_date_ymd] => 2025-03-22 17:40:06 [RateCDR] => 1 ) [2025-03-22 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:40:06' and `end` < '2025-03-22 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:40:19] Production.INFO: count ==2097 [2025-03-22 17:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:40:06 - End Time 2025-03-22 17:40:06 [2025-03-22 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739110', 'tblTempUsageDetail_20' ) start [2025-03-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739110', 'tblTempUsageDetail_20' ) end [2025-03-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739110', 'tblTempVendorCDR_20' ) start [2025-03-22 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739110', 'tblTempVendorCDR_20' ) end [2025-03-22 17:40:19] Production.INFO: ProcessCDR(1,14739110,1,1,2) [2025-03-22 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739110', 'tblTempUsageDetail_20' ) start [2025-03-22 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739110', 'tblTempUsageDetail_20' ) end [2025-03-22 17:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:40:23] Production.INFO: ==20393== Releasing lock... [2025-03-22 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:40:23] Production.INFO: 44 MB #Memory Used# [2025-03-22 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:41:05 [end_date_ymd] => 2025-03-22 17:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:41:05' and `end` < '2025-03-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-03-22 17:41:18] Production.INFO: count ==2146 [2025-03-22 17:41:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:41:05 - End Time 2025-03-22 17:41:05 [2025-03-22 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739115', 'tblTempUsageDetail_20' ) start [2025-03-22 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739115', 'tblTempUsageDetail_20' ) end [2025-03-22 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739115', 'tblTempVendorCDR_20' ) start [2025-03-22 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739115', 'tblTempVendorCDR_20' ) end [2025-03-22 17:41:19] Production.INFO: ProcessCDR(1,14739115,1,1,2) [2025-03-22 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739115', 'tblTempUsageDetail_20' ) start [2025-03-22 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739115', 'tblTempUsageDetail_20' ) end [2025-03-22 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:41:24] Production.INFO: ==20469== Releasing lock... [2025-03-22 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:41:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:42:05 [end_date_ymd] => 2025-03-22 17:42:05 [RateCDR] => 1 ) [2025-03-22 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:42:05' and `end` < '2025-03-22 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:42:17] Production.INFO: count ==2144 [2025-03-22 17:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:42:05 - End Time 2025-03-22 17:42:05 [2025-03-22 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739120', 'tblTempUsageDetail_20' ) start [2025-03-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739120', 'tblTempUsageDetail_20' ) end [2025-03-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739120', 'tblTempVendorCDR_20' ) start [2025-03-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739120', 'tblTempVendorCDR_20' ) end [2025-03-22 17:42:18] Production.INFO: ProcessCDR(1,14739120,1,1,2) [2025-03-22 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739120', 'tblTempUsageDetail_20' ) start [2025-03-22 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739120', 'tblTempUsageDetail_20' ) end [2025-03-22 17:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:42:21] Production.INFO: ==20541== Releasing lock... [2025-03-22 17:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:42:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:43:05 [end_date_ymd] => 2025-03-22 17:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:43:05' and `end` < '2025-03-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-03-22 17:43:18] Production.INFO: count ==2145 [2025-03-22 17:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:43:05 - End Time 2025-03-22 17:43:05 [2025-03-22 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739125', 'tblTempUsageDetail_20' ) start [2025-03-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739125', 'tblTempUsageDetail_20' ) end [2025-03-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739125', 'tblTempVendorCDR_20' ) start [2025-03-22 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739125', 'tblTempVendorCDR_20' ) end [2025-03-22 17:43:18] Production.INFO: ProcessCDR(1,14739125,1,1,2) [2025-03-22 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739125', 'tblTempUsageDetail_20' ) start [2025-03-22 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739125', 'tblTempUsageDetail_20' ) end [2025-03-22 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:43:23] Production.INFO: ==20613== Releasing lock... [2025-03-22 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:43:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:44:05 [end_date_ymd] => 2025-03-22 17:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:44:05' and `end` < '2025-03-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-03-22 17:44:18] Production.INFO: count ==2143 [2025-03-22 17:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:44:05 - End Time 2025-03-22 17:44:05 [2025-03-22 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739130', 'tblTempUsageDetail_20' ) start [2025-03-22 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739130', 'tblTempUsageDetail_20' ) end [2025-03-22 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739130', 'tblTempVendorCDR_20' ) start [2025-03-22 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739130', 'tblTempVendorCDR_20' ) end [2025-03-22 17:44:18] Production.INFO: ProcessCDR(1,14739130,1,1,2) [2025-03-22 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739130', 'tblTempUsageDetail_20' ) start [2025-03-22 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739130', 'tblTempUsageDetail_20' ) end [2025-03-22 17:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:44:23] Production.INFO: ==20687== Releasing lock... [2025-03-22 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:44:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:45:06 [end_date_ymd] => 2025-03-22 17:45:06 [RateCDR] => 1 ) [2025-03-22 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:45:06' and `end` < '2025-03-22 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:45:18] Production.INFO: count ==2141 [2025-03-22 17:45:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:45:06 - End Time 2025-03-22 17:45:06 [2025-03-22 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739135', 'tblTempUsageDetail_20' ) start [2025-03-22 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739135', 'tblTempUsageDetail_20' ) end [2025-03-22 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739135', 'tblTempVendorCDR_20' ) start [2025-03-22 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739135', 'tblTempVendorCDR_20' ) end [2025-03-22 17:45:19] Production.INFO: ProcessCDR(1,14739135,1,1,2) [2025-03-22 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739135', 'tblTempUsageDetail_20' ) start [2025-03-22 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739135', 'tblTempUsageDetail_20' ) end [2025-03-22 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:45:22] Production.INFO: ==20765== Releasing lock... [2025-03-22 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:45:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:46:05 [end_date_ymd] => 2025-03-22 17:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:46:05' and `end` < '2025-03-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-03-22 17:46:17] Production.INFO: count ==2141 [2025-03-22 17:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:46:05 - End Time 2025-03-22 17:46:05 [2025-03-22 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739140', 'tblTempUsageDetail_20' ) start [2025-03-22 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739140', 'tblTempUsageDetail_20' ) end [2025-03-22 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739140', 'tblTempVendorCDR_20' ) start [2025-03-22 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739140', 'tblTempVendorCDR_20' ) end [2025-03-22 17:46:18] Production.INFO: ProcessCDR(1,14739140,1,1,2) [2025-03-22 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739140', 'tblTempUsageDetail_20' ) start [2025-03-22 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739140', 'tblTempUsageDetail_20' ) end [2025-03-22 17:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:46:21] Production.INFO: ==20843== Releasing lock... [2025-03-22 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:46:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:47:05 [end_date_ymd] => 2025-03-22 17:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:47:05' and `end` < '2025-03-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-03-22 17:47:18] Production.INFO: count ==2155 [2025-03-22 17:47:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:47:05 - End Time 2025-03-22 17:47:05 [2025-03-22 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739145', 'tblTempUsageDetail_20' ) start [2025-03-22 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739145', 'tblTempUsageDetail_20' ) end [2025-03-22 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739145', 'tblTempVendorCDR_20' ) start [2025-03-22 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739145', 'tblTempVendorCDR_20' ) end [2025-03-22 17:47:19] Production.INFO: ProcessCDR(1,14739145,1,1,2) [2025-03-22 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739145', 'tblTempUsageDetail_20' ) start [2025-03-22 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739145', 'tblTempUsageDetail_20' ) end [2025-03-22 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:47:23] Production.INFO: ==20918== Releasing lock... [2025-03-22 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:47:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:48:06 [end_date_ymd] => 2025-03-22 17:48:06 [RateCDR] => 1 ) [2025-03-22 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:48:06' and `end` < '2025-03-22 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:48:18] Production.INFO: count ==2157 [2025-03-22 17:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:48:06 - End Time 2025-03-22 17:48:06 [2025-03-22 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739150', 'tblTempUsageDetail_20' ) start [2025-03-22 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739150', 'tblTempUsageDetail_20' ) end [2025-03-22 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739150', 'tblTempVendorCDR_20' ) start [2025-03-22 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739150', 'tblTempVendorCDR_20' ) end [2025-03-22 17:48:19] Production.INFO: ProcessCDR(1,14739150,1,1,2) [2025-03-22 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739150', 'tblTempUsageDetail_20' ) start [2025-03-22 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739150', 'tblTempUsageDetail_20' ) end [2025-03-22 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:48:23] Production.INFO: ==20990== Releasing lock... [2025-03-22 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:48:23] Production.INFO: 44 MB #Memory Used# [2025-03-22 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:49:05 [end_date_ymd] => 2025-03-22 17:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:49:05' and `end` < '2025-03-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-03-22 17:49:18] Production.INFO: count ==2160 [2025-03-22 17:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:49:05 - End Time 2025-03-22 17:49:05 [2025-03-22 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739155', 'tblTempUsageDetail_20' ) start [2025-03-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739155', 'tblTempUsageDetail_20' ) end [2025-03-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739155', 'tblTempVendorCDR_20' ) start [2025-03-22 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739155', 'tblTempVendorCDR_20' ) end [2025-03-22 17:49:18] Production.INFO: ProcessCDR(1,14739155,1,1,2) [2025-03-22 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739155', 'tblTempUsageDetail_20' ) start [2025-03-22 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739155', 'tblTempUsageDetail_20' ) end [2025-03-22 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:49:22] Production.INFO: ==21064== Releasing lock... [2025-03-22 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:49:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:50:06 [end_date_ymd] => 2025-03-22 17:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:50:06' and `end` < '2025-03-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-03-22 17:50:19] Production.INFO: count ==2165 [2025-03-22 17:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:50:06 - End Time 2025-03-22 17:50:06 [2025-03-22 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739161', 'tblTempUsageDetail_20' ) start [2025-03-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739161', 'tblTempUsageDetail_20' ) end [2025-03-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739161', 'tblTempVendorCDR_20' ) start [2025-03-22 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739161', 'tblTempVendorCDR_20' ) end [2025-03-22 17:50:19] Production.INFO: ProcessCDR(1,14739161,1,1,2) [2025-03-22 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739161', 'tblTempUsageDetail_20' ) start [2025-03-22 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739161', 'tblTempUsageDetail_20' ) end [2025-03-22 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:50:23] Production.INFO: ==21140== Releasing lock... [2025-03-22 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:50:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:51:05 [end_date_ymd] => 2025-03-22 17:51:05 [RateCDR] => 1 ) [2025-03-22 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:51:05' and `end` < '2025-03-22 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:51:18] Production.INFO: count ==2195 [2025-03-22 17:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:51:05 - End Time 2025-03-22 17:51:05 [2025-03-22 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739166', 'tblTempUsageDetail_20' ) start [2025-03-22 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739166', 'tblTempUsageDetail_20' ) end [2025-03-22 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739166', 'tblTempVendorCDR_20' ) start [2025-03-22 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739166', 'tblTempVendorCDR_20' ) end [2025-03-22 17:51:19] Production.INFO: ProcessCDR(1,14739166,1,1,2) [2025-03-22 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739166', 'tblTempUsageDetail_20' ) start [2025-03-22 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739166', 'tblTempUsageDetail_20' ) end [2025-03-22 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:51:22] Production.INFO: ==21215== Releasing lock... [2025-03-22 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:51:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:52:05 [end_date_ymd] => 2025-03-22 17:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:52:05' and `end` < '2025-03-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-03-22 17:52:18] Production.INFO: count ==2184 [2025-03-22 17:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:52:05 - End Time 2025-03-22 17:52:05 [2025-03-22 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739171', 'tblTempUsageDetail_20' ) start [2025-03-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739171', 'tblTempUsageDetail_20' ) end [2025-03-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739171', 'tblTempVendorCDR_20' ) start [2025-03-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739171', 'tblTempVendorCDR_20' ) end [2025-03-22 17:52:18] Production.INFO: ProcessCDR(1,14739171,1,1,2) [2025-03-22 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739171', 'tblTempUsageDetail_20' ) start [2025-03-22 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739171', 'tblTempUsageDetail_20' ) end [2025-03-22 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:52:24] Production.INFO: ==21288== Releasing lock... [2025-03-22 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:52:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:53:05 [end_date_ymd] => 2025-03-22 17:53:05 [RateCDR] => 1 ) [2025-03-22 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:53:05' and `end` < '2025-03-22 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:53:17] Production.INFO: count ==2181 [2025-03-22 17:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:53:05 - End Time 2025-03-22 17:53:05 [2025-03-22 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739176', 'tblTempUsageDetail_20' ) start [2025-03-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739176', 'tblTempUsageDetail_20' ) end [2025-03-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739176', 'tblTempVendorCDR_20' ) start [2025-03-22 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739176', 'tblTempVendorCDR_20' ) end [2025-03-22 17:53:18] Production.INFO: ProcessCDR(1,14739176,1,1,2) [2025-03-22 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739176', 'tblTempUsageDetail_20' ) start [2025-03-22 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739176', 'tblTempUsageDetail_20' ) end [2025-03-22 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:53:22] Production.INFO: ==21361== Releasing lock... [2025-03-22 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:53:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:54:06 [end_date_ymd] => 2025-03-22 17:54:06 [RateCDR] => 1 ) [2025-03-22 17:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:54:06' and `end` < '2025-03-22 17:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:54:18] Production.INFO: count ==2184 [2025-03-22 17:54:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:54:06 - End Time 2025-03-22 17:54:06 [2025-03-22 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739181', 'tblTempUsageDetail_20' ) start [2025-03-22 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739181', 'tblTempUsageDetail_20' ) end [2025-03-22 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739181', 'tblTempVendorCDR_20' ) start [2025-03-22 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739181', 'tblTempVendorCDR_20' ) end [2025-03-22 17:54:19] Production.INFO: ProcessCDR(1,14739181,1,1,2) [2025-03-22 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739181', 'tblTempUsageDetail_20' ) start [2025-03-22 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739181', 'tblTempUsageDetail_20' ) end [2025-03-22 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:54:24] Production.INFO: ==21470== Releasing lock... [2025-03-22 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:54:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:55:05 [end_date_ymd] => 2025-03-22 17:55:05 [RateCDR] => 1 ) [2025-03-22 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:55:05' and `end` < '2025-03-22 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:55:18] Production.INFO: count ==2168 [2025-03-22 17:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:55:05 - End Time 2025-03-22 17:55:05 [2025-03-22 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739186', 'tblTempUsageDetail_20' ) start [2025-03-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739186', 'tblTempUsageDetail_20' ) end [2025-03-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739186', 'tblTempVendorCDR_20' ) start [2025-03-22 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739186', 'tblTempVendorCDR_20' ) end [2025-03-22 17:55:18] Production.INFO: ProcessCDR(1,14739186,1,1,2) [2025-03-22 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739186', 'tblTempUsageDetail_20' ) start [2025-03-22 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739186', 'tblTempUsageDetail_20' ) end [2025-03-22 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:55:22] Production.INFO: ==21544== Releasing lock... [2025-03-22 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:55:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:56:06 [end_date_ymd] => 2025-03-22 17:56:06 [RateCDR] => 1 ) [2025-03-22 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:56:06' and `end` < '2025-03-22 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:56:18] Production.INFO: count ==2163 [2025-03-22 17:56:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:56:06 - End Time 2025-03-22 17:56:06 [2025-03-22 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739191', 'tblTempUsageDetail_20' ) start [2025-03-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739191', 'tblTempUsageDetail_20' ) end [2025-03-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739191', 'tblTempVendorCDR_20' ) start [2025-03-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739191', 'tblTempVendorCDR_20' ) end [2025-03-22 17:56:19] Production.INFO: ProcessCDR(1,14739191,1,1,2) [2025-03-22 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739191', 'tblTempUsageDetail_20' ) start [2025-03-22 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739191', 'tblTempUsageDetail_20' ) end [2025-03-22 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:56:24] Production.INFO: ==21617== Releasing lock... [2025-03-22 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:56:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:57:05 [end_date_ymd] => 2025-03-22 17:57:05 [RateCDR] => 1 ) [2025-03-22 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 14:57:05' and `end` < '2025-03-22 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 17:57:17] Production.INFO: count ==2171 [2025-03-22 17:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 14:57:05 - End Time 2025-03-22 17:57:05 [2025-03-22 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739196', 'tblTempUsageDetail_20' ) start [2025-03-22 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739196', 'tblTempUsageDetail_20' ) end [2025-03-22 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739196', 'tblTempVendorCDR_20' ) start [2025-03-22 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739196', 'tblTempVendorCDR_20' ) end [2025-03-22 17:57:18] Production.INFO: ProcessCDR(1,14739196,1,1,2) [2025-03-22 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739196', 'tblTempUsageDetail_20' ) start [2025-03-22 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739196', 'tblTempUsageDetail_20' ) end [2025-03-22 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:57:23] Production.INFO: ==21693== Releasing lock... [2025-03-22 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:57:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:58:05 [end_date_ymd] => 2025-03-22 17:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 14:58:05' and `end` < '2025-03-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-03-22 17:58:18] Production.INFO: count ==2161 [2025-03-22 17:58:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:58:05 - End Time 2025-03-22 17:58:05 [2025-03-22 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739201', 'tblTempUsageDetail_20' ) start [2025-03-22 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739201', 'tblTempUsageDetail_20' ) end [2025-03-22 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739201', 'tblTempVendorCDR_20' ) start [2025-03-22 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739201', 'tblTempVendorCDR_20' ) end [2025-03-22 17:58:19] Production.INFO: ProcessCDR(1,14739201,1,1,2) [2025-03-22 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739201', 'tblTempUsageDetail_20' ) start [2025-03-22 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739201', 'tblTempUsageDetail_20' ) end [2025-03-22 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:58:22] Production.INFO: ==21770== Releasing lock... [2025-03-22 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:58:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 14:59:06 [end_date_ymd] => 2025-03-22 17:59:06 [RateCDR] => 1 ) [2025-03-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-03-22 14:59:06' and `end` < '2025-03-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-03-22 17:59:18] Production.INFO: count ==2146 [2025-03-22 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-22 14:59:06 - End Time 2025-03-22 17:59:06 [2025-03-22 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739206', 'tblTempUsageDetail_20' ) start [2025-03-22 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739206', 'tblTempUsageDetail_20' ) end [2025-03-22 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739206', 'tblTempVendorCDR_20' ) start [2025-03-22 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739206', 'tblTempVendorCDR_20' ) end [2025-03-22 17:59:19] Production.INFO: ProcessCDR(1,14739206,1,1,2) [2025-03-22 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739206', 'tblTempUsageDetail_20' ) start [2025-03-22 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739206', 'tblTempUsageDetail_20' ) end [2025-03-22 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 17:59:22] Production.INFO: ==21843== Releasing lock... [2025-03-22 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 17:59:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:00:06 [end_date_ymd] => 2025-03-22 18:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 15:00:06' and `end` < '2025-03-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-03-22 18:00:19] Production.INFO: count ==2153 [2025-03-22 18:00:20] Production.ERROR: pbx CDR StartTime 2025-03-22 15:00:06 - End Time 2025-03-22 18:00:06 [2025-03-22 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739212', 'tblTempUsageDetail_20' ) start [2025-03-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739212', 'tblTempUsageDetail_20' ) end [2025-03-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739212', 'tblTempVendorCDR_20' ) start [2025-03-22 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739212', 'tblTempVendorCDR_20' ) end [2025-03-22 18:00:20] Production.INFO: ProcessCDR(1,14739212,1,1,2) [2025-03-22 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739212', 'tblTempUsageDetail_20' ) start [2025-03-22 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739212', 'tblTempUsageDetail_20' ) end [2025-03-22 18:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:00:23] Production.INFO: ==21921== Releasing lock... [2025-03-22 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:00:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:01:05 [end_date_ymd] => 2025-03-22 18:01:05 [RateCDR] => 1 ) [2025-03-22 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:01:05' and `end` < '2025-03-22 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:01:18] Production.INFO: count ==2218 [2025-03-22 18:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:01:05 - End Time 2025-03-22 18:01:05 [2025-03-22 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739217', 'tblTempUsageDetail_20' ) start [2025-03-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739217', 'tblTempUsageDetail_20' ) end [2025-03-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739217', 'tblTempVendorCDR_20' ) start [2025-03-22 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739217', 'tblTempVendorCDR_20' ) end [2025-03-22 18:01:19] Production.INFO: ProcessCDR(1,14739217,1,1,2) [2025-03-22 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739217', 'tblTempUsageDetail_20' ) start [2025-03-22 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739217', 'tblTempUsageDetail_20' ) end [2025-03-22 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:01:23] Production.INFO: ==22006== Releasing lock... [2025-03-22 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:01:23] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:02:05 [end_date_ymd] => 2025-03-22 18:02:05 [RateCDR] => 1 ) [2025-03-22 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:02:05' and `end` < '2025-03-22 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:02:18] Production.INFO: count ==2216 [2025-03-22 18:02:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:02:05 - End Time 2025-03-22 18:02:05 [2025-03-22 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739222', 'tblTempUsageDetail_20' ) start [2025-03-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739222', 'tblTempUsageDetail_20' ) end [2025-03-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739222', 'tblTempVendorCDR_20' ) start [2025-03-22 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739222', 'tblTempVendorCDR_20' ) end [2025-03-22 18:02:19] Production.INFO: ProcessCDR(1,14739222,1,1,2) [2025-03-22 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739222', 'tblTempUsageDetail_20' ) start [2025-03-22 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739222', 'tblTempUsageDetail_20' ) end [2025-03-22 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:02:22] Production.INFO: ==22080== Releasing lock... [2025-03-22 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:03:05 [end_date_ymd] => 2025-03-22 18:03:05 [RateCDR] => 1 ) [2025-03-22 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:03:05' and `end` < '2025-03-22 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:03:18] Production.INFO: count ==2219 [2025-03-22 18:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:03:05 - End Time 2025-03-22 18:03:05 [2025-03-22 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739227', 'tblTempUsageDetail_20' ) start [2025-03-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739227', 'tblTempUsageDetail_20' ) end [2025-03-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739227', 'tblTempVendorCDR_20' ) start [2025-03-22 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739227', 'tblTempVendorCDR_20' ) end [2025-03-22 18:03:18] Production.INFO: ProcessCDR(1,14739227,1,1,2) [2025-03-22 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739227', 'tblTempUsageDetail_20' ) start [2025-03-22 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739227', 'tblTempUsageDetail_20' ) end [2025-03-22 18:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:03:22] Production.INFO: ==22153== Releasing lock... [2025-03-22 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:03:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:04:05 [end_date_ymd] => 2025-03-22 18:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:04:05' and `end` < '2025-03-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-03-22 18:04:18] Production.INFO: count ==2214 [2025-03-22 18:04:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:04:05 - End Time 2025-03-22 18:04:05 [2025-03-22 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739232', 'tblTempUsageDetail_20' ) start [2025-03-22 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739232', 'tblTempUsageDetail_20' ) end [2025-03-22 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739232', 'tblTempVendorCDR_20' ) start [2025-03-22 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739232', 'tblTempVendorCDR_20' ) end [2025-03-22 18:04:19] Production.INFO: ProcessCDR(1,14739232,1,1,2) [2025-03-22 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739232', 'tblTempUsageDetail_20' ) start [2025-03-22 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739232', 'tblTempUsageDetail_20' ) end [2025-03-22 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:04:22] Production.INFO: ==22227== Releasing lock... [2025-03-22 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:04:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:05:05 [end_date_ymd] => 2025-03-22 18:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:05:05' and `end` < '2025-03-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-03-22 18:05:18] Production.INFO: count ==2214 [2025-03-22 18:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:05:05 - End Time 2025-03-22 18:05:05 [2025-03-22 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739237', 'tblTempUsageDetail_20' ) start [2025-03-22 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739237', 'tblTempUsageDetail_20' ) end [2025-03-22 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739237', 'tblTempVendorCDR_20' ) start [2025-03-22 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739237', 'tblTempVendorCDR_20' ) end [2025-03-22 18:05:18] Production.INFO: ProcessCDR(1,14739237,1,1,2) [2025-03-22 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739237', 'tblTempUsageDetail_20' ) start [2025-03-22 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739237', 'tblTempUsageDetail_20' ) end [2025-03-22 18:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:05:22] Production.INFO: ==22302== Releasing lock... [2025-03-22 18:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:05:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:06:05 [end_date_ymd] => 2025-03-22 18:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:06:05' and `end` < '2025-03-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-03-22 18:06:18] Production.INFO: count ==2207 [2025-03-22 18:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:06:05 - End Time 2025-03-22 18:06:05 [2025-03-22 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739242', 'tblTempUsageDetail_20' ) start [2025-03-22 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739242', 'tblTempUsageDetail_20' ) end [2025-03-22 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739242', 'tblTempVendorCDR_20' ) start [2025-03-22 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739242', 'tblTempVendorCDR_20' ) end [2025-03-22 18:06:19] Production.INFO: ProcessCDR(1,14739242,1,1,2) [2025-03-22 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739242', 'tblTempUsageDetail_20' ) start [2025-03-22 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739242', 'tblTempUsageDetail_20' ) end [2025-03-22 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:06:24] Production.INFO: ==22374== Releasing lock... [2025-03-22 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:06:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:07:05 [end_date_ymd] => 2025-03-22 18:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:07:05' and `end` < '2025-03-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-03-22 18:07:17] Production.INFO: count ==2204 [2025-03-22 18:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:07:05 - End Time 2025-03-22 18:07:05 [2025-03-22 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739247', 'tblTempUsageDetail_20' ) start [2025-03-22 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739247', 'tblTempUsageDetail_20' ) end [2025-03-22 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739247', 'tblTempVendorCDR_20' ) start [2025-03-22 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739247', 'tblTempVendorCDR_20' ) end [2025-03-22 18:07:18] Production.INFO: ProcessCDR(1,14739247,1,1,2) [2025-03-22 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739247', 'tblTempUsageDetail_20' ) start [2025-03-22 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739247', 'tblTempUsageDetail_20' ) end [2025-03-22 18:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:07:21] Production.INFO: ==22446== Releasing lock... [2025-03-22 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:07:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:08:05 [end_date_ymd] => 2025-03-22 18:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:08:05' and `end` < '2025-03-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-03-22 18:08:18] Production.INFO: count ==2203 [2025-03-22 18:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:08:05 - End Time 2025-03-22 18:08:05 [2025-03-22 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739252', 'tblTempUsageDetail_20' ) start [2025-03-22 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739252', 'tblTempUsageDetail_20' ) end [2025-03-22 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739252', 'tblTempVendorCDR_20' ) start [2025-03-22 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739252', 'tblTempVendorCDR_20' ) end [2025-03-22 18:08:19] Production.INFO: ProcessCDR(1,14739252,1,1,2) [2025-03-22 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739252', 'tblTempUsageDetail_20' ) start [2025-03-22 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739252', 'tblTempUsageDetail_20' ) end [2025-03-22 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:08:22] Production.INFO: ==22520== Releasing lock... [2025-03-22 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:08:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:09:06 [end_date_ymd] => 2025-03-22 18:09:06 [RateCDR] => 1 ) [2025-03-22 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:09:06' and `end` < '2025-03-22 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:09:18] Production.INFO: count ==2254 [2025-03-22 18:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:09:06 - End Time 2025-03-22 18:09:06 [2025-03-22 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739257', 'tblTempUsageDetail_20' ) start [2025-03-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739257', 'tblTempUsageDetail_20' ) end [2025-03-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739257', 'tblTempVendorCDR_20' ) start [2025-03-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739257', 'tblTempVendorCDR_20' ) end [2025-03-22 18:09:19] Production.INFO: ProcessCDR(1,14739257,1,1,2) [2025-03-22 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739257', 'tblTempUsageDetail_20' ) start [2025-03-22 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739257', 'tblTempUsageDetail_20' ) end [2025-03-22 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:09:22] Production.INFO: ==22632== Releasing lock... [2025-03-22 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:09:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:10:06 [end_date_ymd] => 2025-03-22 18:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 15:10:06' and `end` < '2025-03-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-03-22 18:10:18] Production.INFO: count ==2245 [2025-03-22 18:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:10:06 - End Time 2025-03-22 18:10:06 [2025-03-22 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739263', 'tblTempUsageDetail_20' ) start [2025-03-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739263', 'tblTempUsageDetail_20' ) end [2025-03-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739263', 'tblTempVendorCDR_20' ) start [2025-03-22 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739263', 'tblTempVendorCDR_20' ) end [2025-03-22 18:10:19] Production.INFO: ProcessCDR(1,14739263,1,1,2) [2025-03-22 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739263', 'tblTempUsageDetail_20' ) start [2025-03-22 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739263', 'tblTempUsageDetail_20' ) end [2025-03-22 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:10:24] Production.INFO: ==22706== Releasing lock... [2025-03-22 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:10:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:11:06 [end_date_ymd] => 2025-03-22 18:11:06 [RateCDR] => 1 ) [2025-03-22 18:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:11:06' and `end` < '2025-03-22 18:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:11:18] Production.INFO: count ==2283 [2025-03-22 18:11:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:11:06 - End Time 2025-03-22 18:11:06 [2025-03-22 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739268', 'tblTempUsageDetail_20' ) start [2025-03-22 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739268', 'tblTempUsageDetail_20' ) end [2025-03-22 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739268', 'tblTempVendorCDR_20' ) start [2025-03-22 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739268', 'tblTempVendorCDR_20' ) end [2025-03-22 18:11:19] Production.INFO: ProcessCDR(1,14739268,1,1,2) [2025-03-22 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739268', 'tblTempUsageDetail_20' ) start [2025-03-22 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739268', 'tblTempUsageDetail_20' ) end [2025-03-22 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:11:24] Production.INFO: ==22783== Releasing lock... [2025-03-22 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:11:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:12:05 [end_date_ymd] => 2025-03-22 18:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:12:05' and `end` < '2025-03-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-03-22 18:12:18] Production.INFO: count ==2266 [2025-03-22 18:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:12:05 - End Time 2025-03-22 18:12:05 [2025-03-22 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739273', 'tblTempUsageDetail_20' ) start [2025-03-22 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739273', 'tblTempUsageDetail_20' ) end [2025-03-22 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739273', 'tblTempVendorCDR_20' ) start [2025-03-22 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739273', 'tblTempVendorCDR_20' ) end [2025-03-22 18:12:19] Production.INFO: ProcessCDR(1,14739273,1,1,2) [2025-03-22 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739273', 'tblTempUsageDetail_20' ) start [2025-03-22 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739273', 'tblTempUsageDetail_20' ) end [2025-03-22 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:12:24] Production.INFO: ==22859== Releasing lock... [2025-03-22 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:12:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:13:06 [end_date_ymd] => 2025-03-22 18:13:06 [RateCDR] => 1 ) [2025-03-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-03-22 15:13:06' and `end` < '2025-03-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-03-22 18:13:18] Production.INFO: count ==2259 [2025-03-22 18:13:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:13:06 - End Time 2025-03-22 18:13:06 [2025-03-22 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739278', 'tblTempUsageDetail_20' ) start [2025-03-22 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739278', 'tblTempUsageDetail_20' ) end [2025-03-22 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739278', 'tblTempVendorCDR_20' ) start [2025-03-22 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739278', 'tblTempVendorCDR_20' ) end [2025-03-22 18:13:19] Production.INFO: ProcessCDR(1,14739278,1,1,2) [2025-03-22 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739278', 'tblTempUsageDetail_20' ) start [2025-03-22 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739278', 'tblTempUsageDetail_20' ) end [2025-03-22 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:13:24] Production.INFO: ==22930== Releasing lock... [2025-03-22 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:13:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:14:05 [end_date_ymd] => 2025-03-22 18:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:14:05' and `end` < '2025-03-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-03-22 18:14:18] Production.INFO: count ==2230 [2025-03-22 18:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:14:05 - End Time 2025-03-22 18:14:05 [2025-03-22 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739283', 'tblTempUsageDetail_20' ) start [2025-03-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739283', 'tblTempUsageDetail_20' ) end [2025-03-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739283', 'tblTempVendorCDR_20' ) start [2025-03-22 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739283', 'tblTempVendorCDR_20' ) end [2025-03-22 18:14:18] Production.INFO: ProcessCDR(1,14739283,1,1,2) [2025-03-22 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739283', 'tblTempUsageDetail_20' ) start [2025-03-22 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739283', 'tblTempUsageDetail_20' ) end [2025-03-22 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:14:23] Production.INFO: ==23002== Releasing lock... [2025-03-22 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:14:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:15:05 [end_date_ymd] => 2025-03-22 18:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:15:05' and `end` < '2025-03-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-03-22 18:15:18] Production.INFO: count ==2224 [2025-03-22 18:15:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:15:05 - End Time 2025-03-22 18:15:05 [2025-03-22 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739288', 'tblTempUsageDetail_20' ) start [2025-03-22 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739288', 'tblTempUsageDetail_20' ) end [2025-03-22 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739288', 'tblTempVendorCDR_20' ) start [2025-03-22 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739288', 'tblTempVendorCDR_20' ) end [2025-03-22 18:15:19] Production.INFO: ProcessCDR(1,14739288,1,1,2) [2025-03-22 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739288', 'tblTempUsageDetail_20' ) start [2025-03-22 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739288', 'tblTempUsageDetail_20' ) end [2025-03-22 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:15:24] Production.INFO: ==23077== Releasing lock... [2025-03-22 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:15:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:16:05 [end_date_ymd] => 2025-03-22 18:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:16:05' and `end` < '2025-03-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-03-22 18:16:18] Production.INFO: count ==2218 [2025-03-22 18:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:16:05 - End Time 2025-03-22 18:16:05 [2025-03-22 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739293', 'tblTempUsageDetail_20' ) start [2025-03-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739293', 'tblTempUsageDetail_20' ) end [2025-03-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739293', 'tblTempVendorCDR_20' ) start [2025-03-22 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739293', 'tblTempVendorCDR_20' ) end [2025-03-22 18:16:18] Production.INFO: ProcessCDR(1,14739293,1,1,2) [2025-03-22 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739293', 'tblTempUsageDetail_20' ) start [2025-03-22 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739293', 'tblTempUsageDetail_20' ) end [2025-03-22 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:16:24] Production.INFO: ==23165== Releasing lock... [2025-03-22 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:16:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:17:05 [end_date_ymd] => 2025-03-22 18:17:05 [RateCDR] => 1 ) [2025-03-22 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:17:05' and `end` < '2025-03-22 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:17:18] Production.INFO: count ==2196 [2025-03-22 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:17:05 - End Time 2025-03-22 18:17:05 [2025-03-22 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739298', 'tblTempUsageDetail_20' ) start [2025-03-22 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739298', 'tblTempUsageDetail_20' ) end [2025-03-22 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739298', 'tblTempVendorCDR_20' ) start [2025-03-22 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739298', 'tblTempVendorCDR_20' ) end [2025-03-22 18:17:19] Production.INFO: ProcessCDR(1,14739298,1,1,2) [2025-03-22 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739298', 'tblTempUsageDetail_20' ) start [2025-03-22 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739298', 'tblTempUsageDetail_20' ) end [2025-03-22 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:17:24] Production.INFO: ==23248== Releasing lock... [2025-03-22 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:17:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:18:05 [end_date_ymd] => 2025-03-22 18:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:18:05' and `end` < '2025-03-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-03-22 18:18:17] Production.INFO: count ==2191 [2025-03-22 18:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:18:05 - End Time 2025-03-22 18:18:05 [2025-03-22 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739303', 'tblTempUsageDetail_20' ) start [2025-03-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739303', 'tblTempUsageDetail_20' ) end [2025-03-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739303', 'tblTempVendorCDR_20' ) start [2025-03-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739303', 'tblTempVendorCDR_20' ) end [2025-03-22 18:18:18] Production.INFO: ProcessCDR(1,14739303,1,1,2) [2025-03-22 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739303', 'tblTempUsageDetail_20' ) start [2025-03-22 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739303', 'tblTempUsageDetail_20' ) end [2025-03-22 18:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:18:22] Production.INFO: ==23329== Releasing lock... [2025-03-22 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:18:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:19:05 [end_date_ymd] => 2025-03-22 18:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:19:05' and `end` < '2025-03-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-03-22 18:19:18] Production.INFO: count ==2188 [2025-03-22 18:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:19:05 - End Time 2025-03-22 18:19:05 [2025-03-22 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739304', 'tblTempUsageDetail_20' ) start [2025-03-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739304', 'tblTempUsageDetail_20' ) end [2025-03-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739304', 'tblTempVendorCDR_20' ) start [2025-03-22 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739304', 'tblTempVendorCDR_20' ) end [2025-03-22 18:19:18] Production.INFO: ProcessCDR(1,14739304,1,1,2) [2025-03-22 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739304', 'tblTempUsageDetail_20' ) start [2025-03-22 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739304', 'tblTempUsageDetail_20' ) end [2025-03-22 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:19:23] Production.INFO: ==23412== Releasing lock... [2025-03-22 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:19:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:20:05 [end_date_ymd] => 2025-03-22 18:20:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:20:05' and `end` < '2025-03-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-03-22 18:20:17] Production.INFO: count ==2182 [2025-03-22 18:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:20:05 - End Time 2025-03-22 18:20:05 [2025-03-22 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739313', 'tblTempUsageDetail_20' ) start [2025-03-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739313', 'tblTempUsageDetail_20' ) end [2025-03-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739313', 'tblTempVendorCDR_20' ) start [2025-03-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739313', 'tblTempVendorCDR_20' ) end [2025-03-22 18:20:18] Production.INFO: ProcessCDR(1,14739313,1,1,2) [2025-03-22 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739313', 'tblTempUsageDetail_20' ) start [2025-03-22 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739313', 'tblTempUsageDetail_20' ) end [2025-03-22 18:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:20:22] Production.INFO: ==23493== Releasing lock... [2025-03-22 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:20:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:21:05 [end_date_ymd] => 2025-03-22 18:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:21:05' and `end` < '2025-03-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-03-22 18:21:17] Production.INFO: count ==2203 [2025-03-22 18:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:21:05 - End Time 2025-03-22 18:21:05 [2025-03-22 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739319', 'tblTempUsageDetail_20' ) start [2025-03-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739319', 'tblTempUsageDetail_20' ) end [2025-03-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739319', 'tblTempVendorCDR_20' ) start [2025-03-22 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739319', 'tblTempVendorCDR_20' ) end [2025-03-22 18:21:18] Production.INFO: ProcessCDR(1,14739319,1,1,2) [2025-03-22 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739319', 'tblTempUsageDetail_20' ) start [2025-03-22 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739319', 'tblTempUsageDetail_20' ) end [2025-03-22 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:21:21] Production.INFO: ==23577== Releasing lock... [2025-03-22 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:21:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:22:05 [end_date_ymd] => 2025-03-22 18:22:05 [RateCDR] => 1 ) [2025-03-22 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:22:05' and `end` < '2025-03-22 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:22:18] Production.INFO: count ==2203 [2025-03-22 18:22:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:22:05 - End Time 2025-03-22 18:22:05 [2025-03-22 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739324', 'tblTempUsageDetail_20' ) start [2025-03-22 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739324', 'tblTempUsageDetail_20' ) end [2025-03-22 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739324', 'tblTempVendorCDR_20' ) start [2025-03-22 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739324', 'tblTempVendorCDR_20' ) end [2025-03-22 18:22:19] Production.INFO: ProcessCDR(1,14739324,1,1,2) [2025-03-22 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739324', 'tblTempUsageDetail_20' ) start [2025-03-22 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739324', 'tblTempUsageDetail_20' ) end [2025-03-22 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:22:24] Production.INFO: ==23669== Releasing lock... [2025-03-22 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:22:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:23:05 [end_date_ymd] => 2025-03-22 18:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:23:05' and `end` < '2025-03-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-03-22 18:23:17] Production.INFO: count ==2208 [2025-03-22 18:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:23:05 - End Time 2025-03-22 18:23:05 [2025-03-22 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739329', 'tblTempUsageDetail_20' ) start [2025-03-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739329', 'tblTempUsageDetail_20' ) end [2025-03-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739329', 'tblTempVendorCDR_20' ) start [2025-03-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739329', 'tblTempVendorCDR_20' ) end [2025-03-22 18:23:18] Production.INFO: ProcessCDR(1,14739329,1,1,2) [2025-03-22 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739329', 'tblTempUsageDetail_20' ) start [2025-03-22 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739329', 'tblTempUsageDetail_20' ) end [2025-03-22 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:23:23] Production.INFO: ==23740== Releasing lock... [2025-03-22 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:23:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:24:05 [end_date_ymd] => 2025-03-22 18:24:05 [RateCDR] => 1 ) [2025-03-22 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:24:05' and `end` < '2025-03-22 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:24:18] Production.INFO: count ==2200 [2025-03-22 18:24:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:24:05 - End Time 2025-03-22 18:24:05 [2025-03-22 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739334', 'tblTempUsageDetail_20' ) start [2025-03-22 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739334', 'tblTempUsageDetail_20' ) end [2025-03-22 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739334', 'tblTempVendorCDR_20' ) start [2025-03-22 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739334', 'tblTempVendorCDR_20' ) end [2025-03-22 18:24:19] Production.INFO: ProcessCDR(1,14739334,1,1,2) [2025-03-22 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739334', 'tblTempUsageDetail_20' ) start [2025-03-22 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739334', 'tblTempUsageDetail_20' ) end [2025-03-22 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:24:23] Production.INFO: ==23852== Releasing lock... [2025-03-22 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:24:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:25:05 [end_date_ymd] => 2025-03-22 18:25:05 [RateCDR] => 1 ) [2025-03-22 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:25:05' and `end` < '2025-03-22 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:25:17] Production.INFO: count ==2200 [2025-03-22 18:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:25:05 - End Time 2025-03-22 18:25:05 [2025-03-22 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739339', 'tblTempUsageDetail_20' ) start [2025-03-22 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739339', 'tblTempUsageDetail_20' ) end [2025-03-22 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739339', 'tblTempVendorCDR_20' ) start [2025-03-22 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739339', 'tblTempVendorCDR_20' ) end [2025-03-22 18:25:18] Production.INFO: ProcessCDR(1,14739339,1,1,2) [2025-03-22 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739339', 'tblTempUsageDetail_20' ) start [2025-03-22 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739339', 'tblTempUsageDetail_20' ) end [2025-03-22 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:25:23] Production.INFO: ==23924== Releasing lock... [2025-03-22 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:25:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:26:25] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:26:25 [end_date_ymd] => 2025-03-22 18:26:25 [RateCDR] => 1 ) [2025-03-22 18:26: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-03-22 15:26:25' and `end` < '2025-03-22 18:26: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-03-22 18:26:38] Production.INFO: count ==2186 [2025-03-22 18:26:53] Production.ERROR: pbx CDR StartTime 2025-03-22 15:26:25 - End Time 2025-03-22 18:26:25 [2025-03-22 18:26:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739344', 'tblTempUsageDetail_20' ) start [2025-03-22 18:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739344', 'tblTempUsageDetail_20' ) end [2025-03-22 18:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739344', 'tblTempVendorCDR_20' ) start [2025-03-22 18:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739344', 'tblTempVendorCDR_20' ) end [2025-03-22 18:26:53] Production.INFO: ProcessCDR(1,14739344,1,1,2) [2025-03-22 18:26:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:26:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:26:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:27:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739344', 'tblTempUsageDetail_20' ) start [2025-03-22 18:27:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739344', 'tblTempUsageDetail_20' ) end [2025-03-22 18:27:40] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:27:40] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:27:45] Production.INFO: ==23997== Releasing lock... [2025-03-22 18:27:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:27:45] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:28:19] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:28:19 [end_date_ymd] => 2025-03-22 18:28:19 [RateCDR] => 1 ) [2025-03-22 18:28:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:28:19' and `end` < '2025-03-22 18:28:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:28:31] Production.INFO: count ==2176 [2025-03-22 18:28:33] Production.ERROR: pbx CDR StartTime 2025-03-22 15:28:19 - End Time 2025-03-22 18:28:19 [2025-03-22 18:28:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739351', 'tblTempUsageDetail_20' ) start [2025-03-22 18:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739351', 'tblTempUsageDetail_20' ) end [2025-03-22 18:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739351', 'tblTempVendorCDR_20' ) start [2025-03-22 18:28:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739351', 'tblTempVendorCDR_20' ) end [2025-03-22 18:28:33] Production.INFO: ProcessCDR(1,14739351,1,1,2) [2025-03-22 18:28:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:28:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:28:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:28:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739351', 'tblTempUsageDetail_20' ) start [2025-03-22 18:28:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739351', 'tblTempUsageDetail_20' ) end [2025-03-22 18:28:47] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:28:47] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:28:47] Production.INFO: ==24134== Releasing lock... [2025-03-22 18:28:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:28:47] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:29:15] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:29:15 [end_date_ymd] => 2025-03-22 18:29:15 [RateCDR] => 1 ) [2025-03-22 18:29:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:29:15' and `end` < '2025-03-22 18:29:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:29:28] Production.INFO: count ==2174 [2025-03-22 18:29:42] Production.ERROR: pbx CDR StartTime 2025-03-22 15:29:15 - End Time 2025-03-22 18:29:15 [2025-03-22 18:29:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:29:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739356', 'tblTempUsageDetail_20' ) start [2025-03-22 18:29:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739356', 'tblTempUsageDetail_20' ) end [2025-03-22 18:29:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739356', 'tblTempVendorCDR_20' ) start [2025-03-22 18:29:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739356', 'tblTempVendorCDR_20' ) end [2025-03-22 18:29:42] Production.INFO: ProcessCDR(1,14739356,1,1,2) [2025-03-22 18:29:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:29:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:29:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:30:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:30:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739356', 'tblTempUsageDetail_20' ) start [2025-03-22 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739356', 'tblTempUsageDetail_20' ) end [2025-03-22 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:30:26] Production.INFO: ==24207== Releasing lock... [2025-03-22 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:30:26] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:31:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:31:20 [end_date_ymd] => 2025-03-22 18:31:20 [RateCDR] => 1 ) [2025-03-22 18:31:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:31:20' and `end` < '2025-03-22 18:31:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:31:33] Production.INFO: count ==2221 [2025-03-22 18:31:36] Production.ERROR: pbx CDR StartTime 2025-03-22 15:31:20 - End Time 2025-03-22 18:31:20 [2025-03-22 18:31:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739365', 'tblTempUsageDetail_20' ) start [2025-03-22 18:31:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739365', 'tblTempUsageDetail_20' ) end [2025-03-22 18:31:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739365', 'tblTempVendorCDR_20' ) start [2025-03-22 18:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739365', 'tblTempVendorCDR_20' ) end [2025-03-22 18:31:45] Production.INFO: ProcessCDR(1,14739365,1,1,2) [2025-03-22 18:31:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:32:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:32:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739365', 'tblTempUsageDetail_20' ) start [2025-03-22 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739365', 'tblTempUsageDetail_20' ) end [2025-03-22 18:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:32:26] Production.INFO: ==24349== Releasing lock... [2025-03-22 18:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:32:26] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:33:05 [end_date_ymd] => 2025-03-22 18:33:05 [RateCDR] => 1 ) [2025-03-22 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:33:05' and `end` < '2025-03-22 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:33:18] Production.INFO: count ==2225 [2025-03-22 18:33:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:33:05 - End Time 2025-03-22 18:33:05 [2025-03-22 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739373', 'tblTempUsageDetail_20' ) start [2025-03-22 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739373', 'tblTempUsageDetail_20' ) end [2025-03-22 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739373', 'tblTempVendorCDR_20' ) start [2025-03-22 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739373', 'tblTempVendorCDR_20' ) end [2025-03-22 18:33:19] Production.INFO: ProcessCDR(1,14739373,1,1,2) [2025-03-22 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739373', 'tblTempUsageDetail_20' ) start [2025-03-22 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739373', 'tblTempUsageDetail_20' ) end [2025-03-22 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:33:24] Production.INFO: ==24490== Releasing lock... [2025-03-22 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:33:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:34:06 [end_date_ymd] => 2025-03-22 18:34:06 [RateCDR] => 1 ) [2025-03-22 18:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:34:06' and `end` < '2025-03-22 18:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:34:18] Production.INFO: count ==2228 [2025-03-22 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:34:06 - End Time 2025-03-22 18:34:06 [2025-03-22 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739378', 'tblTempUsageDetail_20' ) start [2025-03-22 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739378', 'tblTempUsageDetail_20' ) end [2025-03-22 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739378', 'tblTempVendorCDR_20' ) start [2025-03-22 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739378', 'tblTempVendorCDR_20' ) end [2025-03-22 18:34:19] Production.INFO: ProcessCDR(1,14739378,1,1,2) [2025-03-22 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739378', 'tblTempUsageDetail_20' ) start [2025-03-22 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739378', 'tblTempUsageDetail_20' ) end [2025-03-22 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:34:24] Production.INFO: ==24639== Releasing lock... [2025-03-22 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:34:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:35:05 [end_date_ymd] => 2025-03-22 18:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:35:05' and `end` < '2025-03-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-03-22 18:35:17] Production.INFO: count ==2230 [2025-03-22 18:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:35:05 - End Time 2025-03-22 18:35:05 [2025-03-22 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739383', 'tblTempUsageDetail_20' ) start [2025-03-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739383', 'tblTempUsageDetail_20' ) end [2025-03-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739383', 'tblTempVendorCDR_20' ) start [2025-03-22 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739383', 'tblTempVendorCDR_20' ) end [2025-03-22 18:35:18] Production.INFO: ProcessCDR(1,14739383,1,1,2) [2025-03-22 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739383', 'tblTempUsageDetail_20' ) start [2025-03-22 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739383', 'tblTempUsageDetail_20' ) end [2025-03-22 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:35:23] Production.INFO: ==24721== Releasing lock... [2025-03-22 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:35:23] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:36:06 [end_date_ymd] => 2025-03-22 18:36:06 [RateCDR] => 1 ) [2025-03-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-03-22 15:36:06' and `end` < '2025-03-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-03-22 18:36:18] Production.INFO: count ==2234 [2025-03-22 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:36:06 - End Time 2025-03-22 18:36:06 [2025-03-22 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739388', 'tblTempUsageDetail_20' ) start [2025-03-22 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739388', 'tblTempUsageDetail_20' ) end [2025-03-22 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739388', 'tblTempVendorCDR_20' ) start [2025-03-22 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739388', 'tblTempVendorCDR_20' ) end [2025-03-22 18:36:19] Production.INFO: ProcessCDR(1,14739388,1,1,2) [2025-03-22 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739388', 'tblTempUsageDetail_20' ) start [2025-03-22 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739388', 'tblTempUsageDetail_20' ) end [2025-03-22 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:36:24] Production.INFO: ==24801== Releasing lock... [2025-03-22 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:36:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:37:05 [end_date_ymd] => 2025-03-22 18:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:37:05' and `end` < '2025-03-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-03-22 18:37:17] Production.INFO: count ==2242 [2025-03-22 18:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:37:05 - End Time 2025-03-22 18:37:05 [2025-03-22 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739393', 'tblTempUsageDetail_20' ) start [2025-03-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739393', 'tblTempUsageDetail_20' ) end [2025-03-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739393', 'tblTempVendorCDR_20' ) start [2025-03-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739393', 'tblTempVendorCDR_20' ) end [2025-03-22 18:37:18] Production.INFO: ProcessCDR(1,14739393,1,1,2) [2025-03-22 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739393', 'tblTempUsageDetail_20' ) start [2025-03-22 18:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739393', 'tblTempUsageDetail_20' ) end [2025-03-22 18:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:37:21] Production.INFO: ==24875== Releasing lock... [2025-03-22 18:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:37:21] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:38:06 [end_date_ymd] => 2025-03-22 18:38:06 [RateCDR] => 1 ) [2025-03-22 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:38:06' and `end` < '2025-03-22 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:38:18] Production.INFO: count ==2244 [2025-03-22 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:38:06 - End Time 2025-03-22 18:38:06 [2025-03-22 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739398', 'tblTempUsageDetail_20' ) start [2025-03-22 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739398', 'tblTempUsageDetail_20' ) end [2025-03-22 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739398', 'tblTempVendorCDR_20' ) start [2025-03-22 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739398', 'tblTempVendorCDR_20' ) end [2025-03-22 18:38:19] Production.INFO: ProcessCDR(1,14739398,1,1,2) [2025-03-22 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739398', 'tblTempUsageDetail_20' ) start [2025-03-22 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739398', 'tblTempUsageDetail_20' ) end [2025-03-22 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:38:24] Production.INFO: ==24953== Releasing lock... [2025-03-22 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:38:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:39:05 [end_date_ymd] => 2025-03-22 18:39:05 [RateCDR] => 1 ) [2025-03-22 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:39:05' and `end` < '2025-03-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-03-22 18:39:17] Production.INFO: count ==2244 [2025-03-22 18:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:39:05 - End Time 2025-03-22 18:39:05 [2025-03-22 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739403', 'tblTempUsageDetail_20' ) start [2025-03-22 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739403', 'tblTempUsageDetail_20' ) end [2025-03-22 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739403', 'tblTempVendorCDR_20' ) start [2025-03-22 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739403', 'tblTempVendorCDR_20' ) end [2025-03-22 18:39:18] Production.INFO: ProcessCDR(1,14739403,1,1,2) [2025-03-22 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739403', 'tblTempUsageDetail_20' ) start [2025-03-22 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739403', 'tblTempUsageDetail_20' ) end [2025-03-22 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:39:22] Production.INFO: ==25025== Releasing lock... [2025-03-22 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:39:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:40:06 [end_date_ymd] => 2025-03-22 18:40:06 [RateCDR] => 1 ) [2025-03-22 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:40:06' and `end` < '2025-03-22 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:40:19] Production.INFO: count ==2243 [2025-03-22 18:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:40:06 - End Time 2025-03-22 18:40:06 [2025-03-22 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739408', 'tblTempUsageDetail_20' ) start [2025-03-22 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739408', 'tblTempUsageDetail_20' ) end [2025-03-22 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739408', 'tblTempVendorCDR_20' ) start [2025-03-22 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739408', 'tblTempVendorCDR_20' ) end [2025-03-22 18:40:19] Production.INFO: ProcessCDR(1,14739408,1,1,2) [2025-03-22 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739408', 'tblTempUsageDetail_20' ) start [2025-03-22 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739408', 'tblTempUsageDetail_20' ) end [2025-03-22 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:40:24] Production.INFO: ==25143== Releasing lock... [2025-03-22 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:40:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:41:05 [end_date_ymd] => 2025-03-22 18:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:41:05' and `end` < '2025-03-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-03-22 18:41:17] Production.INFO: count ==2258 [2025-03-22 18:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:41:05 - End Time 2025-03-22 18:41:05 [2025-03-22 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739414', 'tblTempUsageDetail_20' ) start [2025-03-22 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739414', 'tblTempUsageDetail_20' ) end [2025-03-22 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739414', 'tblTempVendorCDR_20' ) start [2025-03-22 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739414', 'tblTempVendorCDR_20' ) end [2025-03-22 18:41:18] Production.INFO: ProcessCDR(1,14739414,1,1,2) [2025-03-22 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739414', 'tblTempUsageDetail_20' ) start [2025-03-22 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739414', 'tblTempUsageDetail_20' ) end [2025-03-22 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:41:24] Production.INFO: ==25228== Releasing lock... [2025-03-22 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:41:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:42:06 [end_date_ymd] => 2025-03-22 18:42:06 [RateCDR] => 1 ) [2025-03-22 18:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:42:06' and `end` < '2025-03-22 18:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:42:18] Production.INFO: count ==2260 [2025-03-22 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:42:06 - End Time 2025-03-22 18:42:06 [2025-03-22 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739419', 'tblTempUsageDetail_20' ) start [2025-03-22 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739419', 'tblTempUsageDetail_20' ) end [2025-03-22 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739419', 'tblTempVendorCDR_20' ) start [2025-03-22 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739419', 'tblTempVendorCDR_20' ) end [2025-03-22 18:42:19] Production.INFO: ProcessCDR(1,14739419,1,1,2) [2025-03-22 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739419', 'tblTempUsageDetail_20' ) start [2025-03-22 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739419', 'tblTempUsageDetail_20' ) end [2025-03-22 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:42:24] Production.INFO: ==25300== Releasing lock... [2025-03-22 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:42:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:43:05 [end_date_ymd] => 2025-03-22 18:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:43:05' and `end` < '2025-03-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-03-22 18:43:18] Production.INFO: count ==2253 [2025-03-22 18:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:43:05 - End Time 2025-03-22 18:43:05 [2025-03-22 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739424', 'tblTempUsageDetail_20' ) start [2025-03-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739424', 'tblTempUsageDetail_20' ) end [2025-03-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739424', 'tblTempVendorCDR_20' ) start [2025-03-22 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739424', 'tblTempVendorCDR_20' ) end [2025-03-22 18:43:18] Production.INFO: ProcessCDR(1,14739424,1,1,2) [2025-03-22 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739424', 'tblTempUsageDetail_20' ) start [2025-03-22 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739424', 'tblTempUsageDetail_20' ) end [2025-03-22 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:43:23] Production.INFO: ==25399== Releasing lock... [2025-03-22 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:43:23] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:44:05 [end_date_ymd] => 2025-03-22 18:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:44:05' and `end` < '2025-03-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-03-22 18:44:18] Production.INFO: count ==2253 [2025-03-22 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:44:05 - End Time 2025-03-22 18:44:05 [2025-03-22 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739429', 'tblTempUsageDetail_20' ) start [2025-03-22 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739429', 'tblTempUsageDetail_20' ) end [2025-03-22 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739429', 'tblTempVendorCDR_20' ) start [2025-03-22 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739429', 'tblTempVendorCDR_20' ) end [2025-03-22 18:44:19] Production.INFO: ProcessCDR(1,14739429,1,1,2) [2025-03-22 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739429', 'tblTempUsageDetail_20' ) start [2025-03-22 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739429', 'tblTempUsageDetail_20' ) end [2025-03-22 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:44:24] Production.INFO: ==25512== Releasing lock... [2025-03-22 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:44:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:45:04 [end_date_ymd] => 2025-03-22 18:45:04 [RateCDR] => 1 ) [2025-03-22 18: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-03-22 15:45:04' and `end` < '2025-03-22 18: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-03-22 18:45:17] Production.INFO: count ==2252 [2025-03-22 18:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:45:04 - End Time 2025-03-22 18:45:04 [2025-03-22 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739434', 'tblTempUsageDetail_20' ) start [2025-03-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739434', 'tblTempUsageDetail_20' ) end [2025-03-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739434', 'tblTempVendorCDR_20' ) start [2025-03-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739434', 'tblTempVendorCDR_20' ) end [2025-03-22 18:45:18] Production.INFO: ProcessCDR(1,14739434,1,1,2) [2025-03-22 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739434', 'tblTempUsageDetail_20' ) start [2025-03-22 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739434', 'tblTempUsageDetail_20' ) end [2025-03-22 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:45:22] Production.INFO: ==25612== Releasing lock... [2025-03-22 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:45:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:46:05 [end_date_ymd] => 2025-03-22 18:46:05 [RateCDR] => 1 ) [2025-03-22 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:46:05' and `end` < '2025-03-22 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:46:17] Production.INFO: count ==2242 [2025-03-22 18:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:46:05 - End Time 2025-03-22 18:46:05 [2025-03-22 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739439', 'tblTempUsageDetail_20' ) start [2025-03-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739439', 'tblTempUsageDetail_20' ) end [2025-03-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739439', 'tblTempVendorCDR_20' ) start [2025-03-22 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739439', 'tblTempVendorCDR_20' ) end [2025-03-22 18:46:18] Production.INFO: ProcessCDR(1,14739439,1,1,2) [2025-03-22 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739439', 'tblTempUsageDetail_20' ) start [2025-03-22 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739439', 'tblTempUsageDetail_20' ) end [2025-03-22 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:46:22] Production.INFO: ==25684== Releasing lock... [2025-03-22 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:46:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:47:05 [end_date_ymd] => 2025-03-22 18:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:47:05' and `end` < '2025-03-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-03-22 18:47:17] Production.INFO: count ==2243 [2025-03-22 18:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:47:05 - End Time 2025-03-22 18:47:05 [2025-03-22 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739444', 'tblTempUsageDetail_20' ) start [2025-03-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739444', 'tblTempUsageDetail_20' ) end [2025-03-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739444', 'tblTempVendorCDR_20' ) start [2025-03-22 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739444', 'tblTempVendorCDR_20' ) end [2025-03-22 18:47:18] Production.INFO: ProcessCDR(1,14739444,1,1,2) [2025-03-22 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739444', 'tblTempUsageDetail_20' ) start [2025-03-22 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739444', 'tblTempUsageDetail_20' ) end [2025-03-22 18:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:47:21] Production.INFO: ==25760== Releasing lock... [2025-03-22 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:47:21] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:48:05 [end_date_ymd] => 2025-03-22 18:48:05 [RateCDR] => 1 ) [2025-03-22 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:48:05' and `end` < '2025-03-22 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:48:18] Production.INFO: count ==2245 [2025-03-22 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:48:05 - End Time 2025-03-22 18:48:05 [2025-03-22 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739449', 'tblTempUsageDetail_20' ) start [2025-03-22 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739449', 'tblTempUsageDetail_20' ) end [2025-03-22 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739449', 'tblTempVendorCDR_20' ) start [2025-03-22 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739449', 'tblTempVendorCDR_20' ) end [2025-03-22 18:48:19] Production.INFO: ProcessCDR(1,14739449,1,1,2) [2025-03-22 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739449', 'tblTempUsageDetail_20' ) start [2025-03-22 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739449', 'tblTempUsageDetail_20' ) end [2025-03-22 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:48:24] Production.INFO: ==25837== Releasing lock... [2025-03-22 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:48:24] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:49:05 [end_date_ymd] => 2025-03-22 18:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:49:05' and `end` < '2025-03-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-03-22 18:49:17] Production.INFO: count ==2246 [2025-03-22 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:49:05 - End Time 2025-03-22 18:49:05 [2025-03-22 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739453', 'tblTempUsageDetail_20' ) start [2025-03-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739453', 'tblTempUsageDetail_20' ) end [2025-03-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739453', 'tblTempVendorCDR_20' ) start [2025-03-22 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739453', 'tblTempVendorCDR_20' ) end [2025-03-22 18:49:18] Production.INFO: ProcessCDR(1,14739453,1,1,2) [2025-03-22 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739453', 'tblTempUsageDetail_20' ) start [2025-03-22 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739453', 'tblTempUsageDetail_20' ) end [2025-03-22 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:49:23] Production.INFO: ==25911== Releasing lock... [2025-03-22 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:49:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:50:06 [end_date_ymd] => 2025-03-22 18:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 15:50:06' and `end` < '2025-03-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-03-22 18:50:18] Production.INFO: count ==2249 [2025-03-22 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:50:06 - End Time 2025-03-22 18:50:06 [2025-03-22 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739459', 'tblTempUsageDetail_20' ) start [2025-03-22 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739459', 'tblTempUsageDetail_20' ) end [2025-03-22 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739459', 'tblTempVendorCDR_20' ) start [2025-03-22 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739459', 'tblTempVendorCDR_20' ) end [2025-03-22 18:50:19] Production.INFO: ProcessCDR(1,14739459,1,1,2) [2025-03-22 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739459', 'tblTempUsageDetail_20' ) start [2025-03-22 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739459', 'tblTempUsageDetail_20' ) end [2025-03-22 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:50:23] Production.INFO: ==25986== Releasing lock... [2025-03-22 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:50:23] Production.INFO: 45 MB #Memory Used# [2025-03-22 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:51:06 [end_date_ymd] => 2025-03-22 18:51:06 [RateCDR] => 1 ) [2025-03-22 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:51:06' and `end` < '2025-03-22 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:51:19] Production.INFO: count ==2317 [2025-03-22 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:51:06 - End Time 2025-03-22 18:51:06 [2025-03-22 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739465', 'tblTempUsageDetail_20' ) start [2025-03-22 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739465', 'tblTempUsageDetail_20' ) end [2025-03-22 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739465', 'tblTempVendorCDR_20' ) start [2025-03-22 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739465', 'tblTempVendorCDR_20' ) end [2025-03-22 18:51:19] Production.INFO: ProcessCDR(1,14739465,1,1,2) [2025-03-22 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739465', 'tblTempUsageDetail_20' ) start [2025-03-22 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739465', 'tblTempUsageDetail_20' ) end [2025-03-22 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:51:24] Production.INFO: ==26062== Releasing lock... [2025-03-22 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:51:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:52:05 [end_date_ymd] => 2025-03-22 18:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:52:05' and `end` < '2025-03-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-03-22 18:52:17] Production.INFO: count ==2315 [2025-03-22 18:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:52:05 - End Time 2025-03-22 18:52:05 [2025-03-22 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739470', 'tblTempUsageDetail_20' ) start [2025-03-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739470', 'tblTempUsageDetail_20' ) end [2025-03-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739470', 'tblTempVendorCDR_20' ) start [2025-03-22 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739470', 'tblTempVendorCDR_20' ) end [2025-03-22 18:52:18] Production.INFO: ProcessCDR(1,14739470,1,1,2) [2025-03-22 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739470', 'tblTempUsageDetail_20' ) start [2025-03-22 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739470', 'tblTempUsageDetail_20' ) end [2025-03-22 18:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:52:21] Production.INFO: ==26133== Releasing lock... [2025-03-22 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:52:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:53:06 [end_date_ymd] => 2025-03-22 18:53:06 [RateCDR] => 1 ) [2025-03-22 18:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:53:06' and `end` < '2025-03-22 18:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:53:18] Production.INFO: count ==2318 [2025-03-22 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:53:06 - End Time 2025-03-22 18:53:06 [2025-03-22 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739475', 'tblTempUsageDetail_20' ) start [2025-03-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739475', 'tblTempUsageDetail_20' ) end [2025-03-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739475', 'tblTempVendorCDR_20' ) start [2025-03-22 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739475', 'tblTempVendorCDR_20' ) end [2025-03-22 18:53:19] Production.INFO: ProcessCDR(1,14739475,1,1,2) [2025-03-22 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739475', 'tblTempUsageDetail_20' ) start [2025-03-22 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739475', 'tblTempUsageDetail_20' ) end [2025-03-22 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:53:24] Production.INFO: ==26209== Releasing lock... [2025-03-22 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:53:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:54:05 [end_date_ymd] => 2025-03-22 18:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:54:05' and `end` < '2025-03-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-03-22 18:54:18] Production.INFO: count ==2317 [2025-03-22 18:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:54:05 - End Time 2025-03-22 18:54:05 [2025-03-22 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739480', 'tblTempUsageDetail_20' ) start [2025-03-22 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739480', 'tblTempUsageDetail_20' ) end [2025-03-22 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739480', 'tblTempVendorCDR_20' ) start [2025-03-22 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739480', 'tblTempVendorCDR_20' ) end [2025-03-22 18:54:19] Production.INFO: ProcessCDR(1,14739480,1,1,2) [2025-03-22 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739480', 'tblTempUsageDetail_20' ) start [2025-03-22 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739480', 'tblTempUsageDetail_20' ) end [2025-03-22 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:54:22] Production.INFO: ==26284== Releasing lock... [2025-03-22 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:54:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:55:05 [end_date_ymd] => 2025-03-22 18:55:05 [RateCDR] => 1 ) [2025-03-22 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:55:05' and `end` < '2025-03-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-03-22 18:55:18] Production.INFO: count ==2312 [2025-03-22 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:55:05 - End Time 2025-03-22 18:55:05 [2025-03-22 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739485', 'tblTempUsageDetail_20' ) start [2025-03-22 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739485', 'tblTempUsageDetail_20' ) end [2025-03-22 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739485', 'tblTempVendorCDR_20' ) start [2025-03-22 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739485', 'tblTempVendorCDR_20' ) end [2025-03-22 18:55:19] Production.INFO: ProcessCDR(1,14739485,1,1,2) [2025-03-22 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739485', 'tblTempUsageDetail_20' ) start [2025-03-22 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739485', 'tblTempUsageDetail_20' ) end [2025-03-22 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:55:22] Production.INFO: ==26403== Releasing lock... [2025-03-22 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:55:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:56:05 [end_date_ymd] => 2025-03-22 18:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:56:05' and `end` < '2025-03-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-03-22 18:56:17] Production.INFO: count ==2313 [2025-03-22 18:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 15:56:05 - End Time 2025-03-22 18:56:05 [2025-03-22 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739490', 'tblTempUsageDetail_20' ) start [2025-03-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739490', 'tblTempUsageDetail_20' ) end [2025-03-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739490', 'tblTempVendorCDR_20' ) start [2025-03-22 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739490', 'tblTempVendorCDR_20' ) end [2025-03-22 18:56:18] Production.INFO: ProcessCDR(1,14739490,1,1,2) [2025-03-22 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739490', 'tblTempUsageDetail_20' ) start [2025-03-22 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739490', 'tblTempUsageDetail_20' ) end [2025-03-22 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:56:22] Production.INFO: ==26483== Releasing lock... [2025-03-22 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:56:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:57:06 [end_date_ymd] => 2025-03-22 18:57:06 [RateCDR] => 1 ) [2025-03-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-03-22 15:57:06' and `end` < '2025-03-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-03-22 18:57:18] Production.INFO: count ==2309 [2025-03-22 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:57:06 - End Time 2025-03-22 18:57:06 [2025-03-22 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739495', 'tblTempUsageDetail_20' ) start [2025-03-22 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739495', 'tblTempUsageDetail_20' ) end [2025-03-22 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739495', 'tblTempVendorCDR_20' ) start [2025-03-22 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739495', 'tblTempVendorCDR_20' ) end [2025-03-22 18:57:19] Production.INFO: ProcessCDR(1,14739495,1,1,2) [2025-03-22 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739495', 'tblTempUsageDetail_20' ) start [2025-03-22 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739495', 'tblTempUsageDetail_20' ) end [2025-03-22 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:57:22] Production.INFO: ==26558== Releasing lock... [2025-03-22 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:57:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:58:05 [end_date_ymd] => 2025-03-22 18:58:05 [RateCDR] => 1 ) [2025-03-22 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 15:58:05' and `end` < '2025-03-22 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 18:58:18] Production.INFO: count ==2305 [2025-03-22 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:58:05 - End Time 2025-03-22 18:58:05 [2025-03-22 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739500', 'tblTempUsageDetail_20' ) start [2025-03-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739500', 'tblTempUsageDetail_20' ) end [2025-03-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739500', 'tblTempVendorCDR_20' ) start [2025-03-22 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739500', 'tblTempVendorCDR_20' ) end [2025-03-22 18:58:19] Production.INFO: ProcessCDR(1,14739500,1,1,2) [2025-03-22 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739500', 'tblTempUsageDetail_20' ) start [2025-03-22 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739500', 'tblTempUsageDetail_20' ) end [2025-03-22 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:58:22] Production.INFO: ==26629== Releasing lock... [2025-03-22 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:58:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 15:59:05 [end_date_ymd] => 2025-03-22 18:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 15:59:05' and `end` < '2025-03-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-03-22 18:59:18] Production.INFO: count ==2311 [2025-03-22 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-22 15:59:05 - End Time 2025-03-22 18:59:05 [2025-03-22 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739505', 'tblTempUsageDetail_20' ) start [2025-03-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739505', 'tblTempUsageDetail_20' ) end [2025-03-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739505', 'tblTempVendorCDR_20' ) start [2025-03-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739505', 'tblTempVendorCDR_20' ) end [2025-03-22 18:59:19] Production.INFO: ProcessCDR(1,14739505,1,1,2) [2025-03-22 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739505', 'tblTempUsageDetail_20' ) start [2025-03-22 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739505', 'tblTempUsageDetail_20' ) end [2025-03-22 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 18:59:24] Production.INFO: ==26702== Releasing lock... [2025-03-22 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 18:59:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:00:06 [end_date_ymd] => 2025-03-22 19:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:00:06' and `end` < '2025-03-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-03-22 19:00:19] Production.INFO: count ==2313 [2025-03-22 19:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:00:06 - End Time 2025-03-22 19:00:06 [2025-03-22 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739511', 'tblTempUsageDetail_20' ) start [2025-03-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739511', 'tblTempUsageDetail_20' ) end [2025-03-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739511', 'tblTempVendorCDR_20' ) start [2025-03-22 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739511', 'tblTempVendorCDR_20' ) end [2025-03-22 19:00:19] Production.INFO: ProcessCDR(1,14739511,1,1,2) [2025-03-22 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739511', 'tblTempUsageDetail_20' ) start [2025-03-22 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739511', 'tblTempUsageDetail_20' ) end [2025-03-22 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:00:23] Production.INFO: ==26781== Releasing lock... [2025-03-22 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:00:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:01:05 [end_date_ymd] => 2025-03-22 19:01:05 [RateCDR] => 1 ) [2025-03-22 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:01:05' and `end` < '2025-03-22 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:01:18] Production.INFO: count ==2317 [2025-03-22 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:01:05 - End Time 2025-03-22 19:01:05 [2025-03-22 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739516', 'tblTempUsageDetail_20' ) start [2025-03-22 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739516', 'tblTempUsageDetail_20' ) end [2025-03-22 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739516', 'tblTempVendorCDR_20' ) start [2025-03-22 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739516', 'tblTempVendorCDR_20' ) end [2025-03-22 19:01:19] Production.INFO: ProcessCDR(1,14739516,1,1,2) [2025-03-22 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739516', 'tblTempUsageDetail_20' ) start [2025-03-22 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739516', 'tblTempUsageDetail_20' ) end [2025-03-22 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:01:24] Production.INFO: ==26868== Releasing lock... [2025-03-22 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:01:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:02:04 [end_date_ymd] => 2025-03-22 19:02:04 [RateCDR] => 1 ) [2025-03-22 19:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:02:04' and `end` < '2025-03-22 19:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:02:17] Production.INFO: count ==2319 [2025-03-22 19:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:02:04 - End Time 2025-03-22 19:02:04 [2025-03-22 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739521', 'tblTempUsageDetail_20' ) start [2025-03-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739521', 'tblTempUsageDetail_20' ) end [2025-03-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739521', 'tblTempVendorCDR_20' ) start [2025-03-22 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739521', 'tblTempVendorCDR_20' ) end [2025-03-22 19:02:18] Production.INFO: ProcessCDR(1,14739521,1,1,2) [2025-03-22 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739521', 'tblTempUsageDetail_20' ) start [2025-03-22 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739521', 'tblTempUsageDetail_20' ) end [2025-03-22 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:02:23] Production.INFO: ==27018== Releasing lock... [2025-03-22 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:02:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:03:05 [end_date_ymd] => 2025-03-22 19:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:03:05' and `end` < '2025-03-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-03-22 19:03:18] Production.INFO: count ==2327 [2025-03-22 19:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:03:05 - End Time 2025-03-22 19:03:05 [2025-03-22 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739526', 'tblTempUsageDetail_20' ) start [2025-03-22 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739526', 'tblTempUsageDetail_20' ) end [2025-03-22 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739526', 'tblTempVendorCDR_20' ) start [2025-03-22 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739526', 'tblTempVendorCDR_20' ) end [2025-03-22 19:03:19] Production.INFO: ProcessCDR(1,14739526,1,1,2) [2025-03-22 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739526', 'tblTempUsageDetail_20' ) start [2025-03-22 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739526', 'tblTempUsageDetail_20' ) end [2025-03-22 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:03:23] Production.INFO: ==27093== Releasing lock... [2025-03-22 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:03:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:04:05 [end_date_ymd] => 2025-03-22 19:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:04:05' and `end` < '2025-03-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-03-22 19:04:18] Production.INFO: count ==2331 [2025-03-22 19:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:04:05 - End Time 2025-03-22 19:04:05 [2025-03-22 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739531', 'tblTempUsageDetail_20' ) start [2025-03-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739531', 'tblTempUsageDetail_20' ) end [2025-03-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739531', 'tblTempVendorCDR_20' ) start [2025-03-22 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739531', 'tblTempVendorCDR_20' ) end [2025-03-22 19:04:19] Production.INFO: ProcessCDR(1,14739531,1,1,2) [2025-03-22 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739531', 'tblTempUsageDetail_20' ) start [2025-03-22 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739531', 'tblTempUsageDetail_20' ) end [2025-03-22 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:04:23] Production.INFO: ==27165== Releasing lock... [2025-03-22 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:04:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:05:05 [end_date_ymd] => 2025-03-22 19:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:05:05' and `end` < '2025-03-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-03-22 19:05:17] Production.INFO: count ==2344 [2025-03-22 19:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:05:05 - End Time 2025-03-22 19:05:05 [2025-03-22 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739536', 'tblTempUsageDetail_20' ) start [2025-03-22 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739536', 'tblTempUsageDetail_20' ) end [2025-03-22 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739536', 'tblTempVendorCDR_20' ) start [2025-03-22 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739536', 'tblTempVendorCDR_20' ) end [2025-03-22 19:05:18] Production.INFO: ProcessCDR(1,14739536,1,1,2) [2025-03-22 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739536', 'tblTempUsageDetail_20' ) start [2025-03-22 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739536', 'tblTempUsageDetail_20' ) end [2025-03-22 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:05:23] Production.INFO: ==27315== Releasing lock... [2025-03-22 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:05:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:06:06 [end_date_ymd] => 2025-03-22 19:06:06 [RateCDR] => 1 ) [2025-03-22 19:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:06:06' and `end` < '2025-03-22 19:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:06:18] Production.INFO: count ==2344 [2025-03-22 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:06:06 - End Time 2025-03-22 19:06:06 [2025-03-22 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739541', 'tblTempUsageDetail_20' ) start [2025-03-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739541', 'tblTempUsageDetail_20' ) end [2025-03-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739541', 'tblTempVendorCDR_20' ) start [2025-03-22 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739541', 'tblTempVendorCDR_20' ) end [2025-03-22 19:06:19] Production.INFO: ProcessCDR(1,14739541,1,1,2) [2025-03-22 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739541', 'tblTempUsageDetail_20' ) start [2025-03-22 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739541', 'tblTempUsageDetail_20' ) end [2025-03-22 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:06:22] Production.INFO: ==27390== Releasing lock... [2025-03-22 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:06:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-22 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:07:05 [end_date_ymd] => 2025-03-22 19:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:07:05' and `end` < '2025-03-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-03-22 19:07:17] Production.INFO: count ==2346 [2025-03-22 19:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:07:05 - End Time 2025-03-22 19:07:05 [2025-03-22 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739546', 'tblTempUsageDetail_20' ) start [2025-03-22 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739546', 'tblTempUsageDetail_20' ) end [2025-03-22 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739546', 'tblTempVendorCDR_20' ) start [2025-03-22 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739546', 'tblTempVendorCDR_20' ) end [2025-03-22 19:07:18] Production.INFO: ProcessCDR(1,14739546,1,1,2) [2025-03-22 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739546', 'tblTempUsageDetail_20' ) start [2025-03-22 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739546', 'tblTempUsageDetail_20' ) end [2025-03-22 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:07:21] Production.INFO: ==27463== Releasing lock... [2025-03-22 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:07:21] Production.INFO: 45.75 MB #Memory Used# [2025-03-22 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:08:05 [end_date_ymd] => 2025-03-22 19:08:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:08:05' and `end` < '2025-03-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-03-22 19:08:18] Production.INFO: count ==2345 [2025-03-22 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:08:05 - End Time 2025-03-22 19:08:05 [2025-03-22 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739551', 'tblTempUsageDetail_20' ) start [2025-03-22 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739551', 'tblTempUsageDetail_20' ) end [2025-03-22 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739551', 'tblTempVendorCDR_20' ) start [2025-03-22 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739551', 'tblTempVendorCDR_20' ) end [2025-03-22 19:08:19] Production.INFO: ProcessCDR(1,14739551,1,1,2) [2025-03-22 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739551', 'tblTempUsageDetail_20' ) start [2025-03-22 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739551', 'tblTempUsageDetail_20' ) end [2025-03-22 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:08:24] Production.INFO: ==27614== Releasing lock... [2025-03-22 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:08:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-22 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:09:05 [end_date_ymd] => 2025-03-22 19:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:09:05' and `end` < '2025-03-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-03-22 19:09:18] Production.INFO: count ==2351 [2025-03-22 19:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:09:05 - End Time 2025-03-22 19:09:05 [2025-03-22 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739556', 'tblTempUsageDetail_20' ) start [2025-03-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739556', 'tblTempUsageDetail_20' ) end [2025-03-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739556', 'tblTempVendorCDR_20' ) start [2025-03-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739556', 'tblTempVendorCDR_20' ) end [2025-03-22 19:09:18] Production.INFO: ProcessCDR(1,14739556,1,1,2) [2025-03-22 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739556', 'tblTempUsageDetail_20' ) start [2025-03-22 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739556', 'tblTempUsageDetail_20' ) end [2025-03-22 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:09:23] Production.INFO: ==27687== Releasing lock... [2025-03-22 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:09:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-22 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:10:06 [end_date_ymd] => 2025-03-22 19:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:10:06' and `end` < '2025-03-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-03-22 19:10:19] Production.INFO: count ==2341 [2025-03-22 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-22 16:10:06 - End Time 2025-03-22 19:10:06 [2025-03-22 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739562', 'tblTempUsageDetail_20' ) start [2025-03-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739562', 'tblTempUsageDetail_20' ) end [2025-03-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739562', 'tblTempVendorCDR_20' ) start [2025-03-22 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739562', 'tblTempVendorCDR_20' ) end [2025-03-22 19:10:20] Production.INFO: ProcessCDR(1,14739562,1,1,2) [2025-03-22 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739562', 'tblTempUsageDetail_20' ) start [2025-03-22 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739562', 'tblTempUsageDetail_20' ) end [2025-03-22 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:10:23] Production.INFO: ==27769== Releasing lock... [2025-03-22 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:10:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:11:05 [end_date_ymd] => 2025-03-22 19:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:11:05' and `end` < '2025-03-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-03-22 19:11:18] Production.INFO: count ==2330 [2025-03-22 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:11:05 - End Time 2025-03-22 19:11:05 [2025-03-22 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739567', 'tblTempUsageDetail_20' ) start [2025-03-22 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739567', 'tblTempUsageDetail_20' ) end [2025-03-22 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739567', 'tblTempVendorCDR_20' ) start [2025-03-22 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739567', 'tblTempVendorCDR_20' ) end [2025-03-22 19:11:18] Production.INFO: ProcessCDR(1,14739567,1,1,2) [2025-03-22 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739567', 'tblTempUsageDetail_20' ) start [2025-03-22 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739567', 'tblTempUsageDetail_20' ) end [2025-03-22 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:11:24] Production.INFO: ==27880== Releasing lock... [2025-03-22 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:11:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:12:06 [end_date_ymd] => 2025-03-22 19:12:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:12:06' and `end` < '2025-03-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-03-22 19:12:19] Production.INFO: count ==2333 [2025-03-22 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:12:06 - End Time 2025-03-22 19:12:06 [2025-03-22 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739572', 'tblTempUsageDetail_20' ) start [2025-03-22 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739572', 'tblTempUsageDetail_20' ) end [2025-03-22 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739572', 'tblTempVendorCDR_20' ) start [2025-03-22 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739572', 'tblTempVendorCDR_20' ) end [2025-03-22 19:12:19] Production.INFO: ProcessCDR(1,14739572,1,1,2) [2025-03-22 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739572', 'tblTempUsageDetail_20' ) start [2025-03-22 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739572', 'tblTempUsageDetail_20' ) end [2025-03-22 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:12:24] Production.INFO: ==28033== Releasing lock... [2025-03-22 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:12:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:13:05 [end_date_ymd] => 2025-03-22 19:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:13:05' and `end` < '2025-03-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-03-22 19:13:18] Production.INFO: count ==2332 [2025-03-22 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:13:05 - End Time 2025-03-22 19:13:05 [2025-03-22 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739577', 'tblTempUsageDetail_20' ) start [2025-03-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739577', 'tblTempUsageDetail_20' ) end [2025-03-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739577', 'tblTempVendorCDR_20' ) start [2025-03-22 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739577', 'tblTempVendorCDR_20' ) end [2025-03-22 19:13:18] Production.INFO: ProcessCDR(1,14739577,1,1,2) [2025-03-22 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739577', 'tblTempUsageDetail_20' ) start [2025-03-22 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739577', 'tblTempUsageDetail_20' ) end [2025-03-22 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:13:22] Production.INFO: ==28105== Releasing lock... [2025-03-22 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:13:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:14:05 [end_date_ymd] => 2025-03-22 19:14:05 [RateCDR] => 1 ) [2025-03-22 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:14:05' and `end` < '2025-03-22 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:14:18] Production.INFO: count ==2327 [2025-03-22 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:14:05 - End Time 2025-03-22 19:14:05 [2025-03-22 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739582', 'tblTempUsageDetail_20' ) start [2025-03-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739582', 'tblTempUsageDetail_20' ) end [2025-03-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739582', 'tblTempVendorCDR_20' ) start [2025-03-22 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739582', 'tblTempVendorCDR_20' ) end [2025-03-22 19:14:19] Production.INFO: ProcessCDR(1,14739582,1,1,2) [2025-03-22 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739582', 'tblTempUsageDetail_20' ) start [2025-03-22 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739582', 'tblTempUsageDetail_20' ) end [2025-03-22 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:14:22] Production.INFO: ==28180== Releasing lock... [2025-03-22 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:14:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-22 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:15:05 [end_date_ymd] => 2025-03-22 19:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:15:05' and `end` < '2025-03-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-03-22 19:15:17] Production.INFO: count ==2312 [2025-03-22 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:15:05 - End Time 2025-03-22 19:15:05 [2025-03-22 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739587', 'tblTempUsageDetail_20' ) start [2025-03-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739587', 'tblTempUsageDetail_20' ) end [2025-03-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739587', 'tblTempVendorCDR_20' ) start [2025-03-22 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739587', 'tblTempVendorCDR_20' ) end [2025-03-22 19:15:18] Production.INFO: ProcessCDR(1,14739587,1,1,2) [2025-03-22 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739587', 'tblTempUsageDetail_20' ) start [2025-03-22 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739587', 'tblTempUsageDetail_20' ) end [2025-03-22 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:15:23] Production.INFO: ==28333== Releasing lock... [2025-03-22 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:15:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:16:06 [end_date_ymd] => 2025-03-22 19:16:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:16:06' and `end` < '2025-03-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-03-22 19:16:19] Production.INFO: count ==2306 [2025-03-22 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:16:06 - End Time 2025-03-22 19:16:06 [2025-03-22 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739592', 'tblTempUsageDetail_20' ) start [2025-03-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739592', 'tblTempUsageDetail_20' ) end [2025-03-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739592', 'tblTempVendorCDR_20' ) start [2025-03-22 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739592', 'tblTempVendorCDR_20' ) end [2025-03-22 19:16:19] Production.INFO: ProcessCDR(1,14739592,1,1,2) [2025-03-22 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739592', 'tblTempUsageDetail_20' ) start [2025-03-22 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739592', 'tblTempUsageDetail_20' ) end [2025-03-22 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:16:23] Production.INFO: ==28404== Releasing lock... [2025-03-22 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:16:23] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:17:05 [end_date_ymd] => 2025-03-22 19:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:17:05' and `end` < '2025-03-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-03-22 19:17:17] Production.INFO: count ==2303 [2025-03-22 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:17:05 - End Time 2025-03-22 19:17:05 [2025-03-22 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739597', 'tblTempUsageDetail_20' ) start [2025-03-22 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739597', 'tblTempUsageDetail_20' ) end [2025-03-22 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739597', 'tblTempVendorCDR_20' ) start [2025-03-22 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739597', 'tblTempVendorCDR_20' ) end [2025-03-22 19:17:18] Production.INFO: ProcessCDR(1,14739597,1,1,2) [2025-03-22 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739597', 'tblTempUsageDetail_20' ) start [2025-03-22 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739597', 'tblTempUsageDetail_20' ) end [2025-03-22 19:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:17:21] Production.INFO: ==28477== Releasing lock... [2025-03-22 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:17:21] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:18:05 [end_date_ymd] => 2025-03-22 19:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:18:05' and `end` < '2025-03-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-03-22 19:18:18] Production.INFO: count ==2305 [2025-03-22 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:18:05 - End Time 2025-03-22 19:18:05 [2025-03-22 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739602', 'tblTempUsageDetail_20' ) start [2025-03-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739602', 'tblTempUsageDetail_20' ) end [2025-03-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739602', 'tblTempVendorCDR_20' ) start [2025-03-22 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739602', 'tblTempVendorCDR_20' ) end [2025-03-22 19:18:18] Production.INFO: ProcessCDR(1,14739602,1,1,2) [2025-03-22 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739602', 'tblTempUsageDetail_20' ) start [2025-03-22 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739602', 'tblTempUsageDetail_20' ) end [2025-03-22 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:18:22] Production.INFO: ==28547== Releasing lock... [2025-03-22 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:18:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:19:05 [end_date_ymd] => 2025-03-22 19:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:19:05' and `end` < '2025-03-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-03-22 19:19:17] Production.INFO: count ==2302 [2025-03-22 19:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:19:05 - End Time 2025-03-22 19:19:05 [2025-03-22 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739607', 'tblTempUsageDetail_20' ) start [2025-03-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739607', 'tblTempUsageDetail_20' ) end [2025-03-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739607', 'tblTempVendorCDR_20' ) start [2025-03-22 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739607', 'tblTempVendorCDR_20' ) end [2025-03-22 19:19:18] Production.INFO: ProcessCDR(1,14739607,1,1,2) [2025-03-22 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739607', 'tblTempUsageDetail_20' ) start [2025-03-22 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739607', 'tblTempUsageDetail_20' ) end [2025-03-22 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:19:21] Production.INFO: ==28622== Releasing lock... [2025-03-22 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:19:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-22 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:20:06 [end_date_ymd] => 2025-03-22 19:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:20:06' and `end` < '2025-03-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-03-22 19:20:18] Production.INFO: count ==2285 [2025-03-22 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:20:06 - End Time 2025-03-22 19:20:06 [2025-03-22 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739613', 'tblTempUsageDetail_20' ) start [2025-03-22 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739613', 'tblTempUsageDetail_20' ) end [2025-03-22 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739613', 'tblTempVendorCDR_20' ) start [2025-03-22 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739613', 'tblTempVendorCDR_20' ) end [2025-03-22 19:20:19] Production.INFO: ProcessCDR(1,14739613,1,1,2) [2025-03-22 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739613', 'tblTempUsageDetail_20' ) start [2025-03-22 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739613', 'tblTempUsageDetail_20' ) end [2025-03-22 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:20:22] Production.INFO: ==28699== Releasing lock... [2025-03-22 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:20:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:21:04 [end_date_ymd] => 2025-03-22 19:21:04 [RateCDR] => 1 ) [2025-03-22 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:21:04' and `end` < '2025-03-22 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:21:17] Production.INFO: count ==2271 [2025-03-22 19:21:17] Production.ERROR: pbx CDR StartTime 2025-03-22 16:21:04 - End Time 2025-03-22 19:21:04 [2025-03-22 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739618', 'tblTempUsageDetail_20' ) start [2025-03-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739618', 'tblTempUsageDetail_20' ) end [2025-03-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739618', 'tblTempVendorCDR_20' ) start [2025-03-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739618', 'tblTempVendorCDR_20' ) end [2025-03-22 19:21:17] Production.INFO: ProcessCDR(1,14739618,1,1,2) [2025-03-22 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739618', 'tblTempUsageDetail_20' ) start [2025-03-22 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739618', 'tblTempUsageDetail_20' ) end [2025-03-22 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:21:22] Production.INFO: ==28771== Releasing lock... [2025-03-22 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:21:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:22:05 [end_date_ymd] => 2025-03-22 19:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:22:05' and `end` < '2025-03-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-03-22 19:22:18] Production.INFO: count ==2248 [2025-03-22 19:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:22:05 - End Time 2025-03-22 19:22:05 [2025-03-22 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739623', 'tblTempUsageDetail_20' ) start [2025-03-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739623', 'tblTempUsageDetail_20' ) end [2025-03-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739623', 'tblTempVendorCDR_20' ) start [2025-03-22 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739623', 'tblTempVendorCDR_20' ) end [2025-03-22 19:22:18] Production.INFO: ProcessCDR(1,14739623,1,1,2) [2025-03-22 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739623', 'tblTempUsageDetail_20' ) start [2025-03-22 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739623', 'tblTempUsageDetail_20' ) end [2025-03-22 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:22:23] Production.INFO: ==28846== Releasing lock... [2025-03-22 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:22:23] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:23:05 [end_date_ymd] => 2025-03-22 19:23:05 [RateCDR] => 1 ) [2025-03-22 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:23:05' and `end` < '2025-03-22 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:23:18] Production.INFO: count ==2241 [2025-03-22 19:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:23:05 - End Time 2025-03-22 19:23:05 [2025-03-22 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739628', 'tblTempUsageDetail_20' ) start [2025-03-22 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739628', 'tblTempUsageDetail_20' ) end [2025-03-22 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739628', 'tblTempVendorCDR_20' ) start [2025-03-22 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739628', 'tblTempVendorCDR_20' ) end [2025-03-22 19:23:18] Production.INFO: ProcessCDR(1,14739628,1,1,2) [2025-03-22 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739628', 'tblTempUsageDetail_20' ) start [2025-03-22 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739628', 'tblTempUsageDetail_20' ) end [2025-03-22 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:23:22] Production.INFO: ==28927== Releasing lock... [2025-03-22 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:23:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:24:05 [end_date_ymd] => 2025-03-22 19:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:24:05' and `end` < '2025-03-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-03-22 19:24:18] Production.INFO: count ==2249 [2025-03-22 19:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:24:05 - End Time 2025-03-22 19:24:05 [2025-03-22 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739633', 'tblTempUsageDetail_20' ) start [2025-03-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739633', 'tblTempUsageDetail_20' ) end [2025-03-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739633', 'tblTempVendorCDR_20' ) start [2025-03-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739633', 'tblTempVendorCDR_20' ) end [2025-03-22 19:24:18] Production.INFO: ProcessCDR(1,14739633,1,1,2) [2025-03-22 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739633', 'tblTempUsageDetail_20' ) start [2025-03-22 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739633', 'tblTempUsageDetail_20' ) end [2025-03-22 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:24:22] Production.INFO: ==29004== Releasing lock... [2025-03-22 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:24:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:25:06 [end_date_ymd] => 2025-03-22 19:25:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:25:06' and `end` < '2025-03-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-03-22 19:25:18] Production.INFO: count ==2239 [2025-03-22 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:25:06 - End Time 2025-03-22 19:25:06 [2025-03-22 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739638', 'tblTempUsageDetail_20' ) start [2025-03-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739638', 'tblTempUsageDetail_20' ) end [2025-03-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739638', 'tblTempVendorCDR_20' ) start [2025-03-22 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739638', 'tblTempVendorCDR_20' ) end [2025-03-22 19:25:19] Production.INFO: ProcessCDR(1,14739638,1,1,2) [2025-03-22 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739638', 'tblTempUsageDetail_20' ) start [2025-03-22 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739638', 'tblTempUsageDetail_20' ) end [2025-03-22 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:25:23] Production.INFO: ==29079== Releasing lock... [2025-03-22 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:25:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:26:05 [end_date_ymd] => 2025-03-22 19:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:26:05' and `end` < '2025-03-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-03-22 19:26:18] Production.INFO: count ==2241 [2025-03-22 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:26:05 - End Time 2025-03-22 19:26:05 [2025-03-22 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739643', 'tblTempUsageDetail_20' ) start [2025-03-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739643', 'tblTempUsageDetail_20' ) end [2025-03-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739643', 'tblTempVendorCDR_20' ) start [2025-03-22 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739643', 'tblTempVendorCDR_20' ) end [2025-03-22 19:26:18] Production.INFO: ProcessCDR(1,14739643,1,1,2) [2025-03-22 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739643', 'tblTempUsageDetail_20' ) start [2025-03-22 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739643', 'tblTempUsageDetail_20' ) end [2025-03-22 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:26:21] Production.INFO: ==29193== Releasing lock... [2025-03-22 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:26:21] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:27:06 [end_date_ymd] => 2025-03-22 19:27:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:27:06' and `end` < '2025-03-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-03-22 19:27:18] Production.INFO: count ==2241 [2025-03-22 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:27:06 - End Time 2025-03-22 19:27:06 [2025-03-22 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739648', 'tblTempUsageDetail_20' ) start [2025-03-22 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739648', 'tblTempUsageDetail_20' ) end [2025-03-22 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739648', 'tblTempVendorCDR_20' ) start [2025-03-22 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739648', 'tblTempVendorCDR_20' ) end [2025-03-22 19:27:19] Production.INFO: ProcessCDR(1,14739648,1,1,2) [2025-03-22 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739648', 'tblTempUsageDetail_20' ) start [2025-03-22 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739648', 'tblTempUsageDetail_20' ) end [2025-03-22 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:27:22] Production.INFO: ==29264== Releasing lock... [2025-03-22 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:27:22] Production.INFO: 45 MB #Memory Used# [2025-03-22 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:28:05 [end_date_ymd] => 2025-03-22 19:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:28:05' and `end` < '2025-03-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-03-22 19:28:18] Production.INFO: count ==2243 [2025-03-22 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:28:05 - End Time 2025-03-22 19:28:05 [2025-03-22 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739653', 'tblTempUsageDetail_20' ) start [2025-03-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739653', 'tblTempUsageDetail_20' ) end [2025-03-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739653', 'tblTempVendorCDR_20' ) start [2025-03-22 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739653', 'tblTempVendorCDR_20' ) end [2025-03-22 19:28:18] Production.INFO: ProcessCDR(1,14739653,1,1,2) [2025-03-22 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739653', 'tblTempUsageDetail_20' ) start [2025-03-22 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739653', 'tblTempUsageDetail_20' ) end [2025-03-22 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:28:24] Production.INFO: ==29337== Releasing lock... [2025-03-22 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:28:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:29:05 [end_date_ymd] => 2025-03-22 19:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:29:05' and `end` < '2025-03-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-03-22 19:29:18] Production.INFO: count ==2240 [2025-03-22 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:29:05 - End Time 2025-03-22 19:29:05 [2025-03-22 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739658', 'tblTempUsageDetail_20' ) start [2025-03-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739658', 'tblTempUsageDetail_20' ) end [2025-03-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739658', 'tblTempVendorCDR_20' ) start [2025-03-22 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739658', 'tblTempVendorCDR_20' ) end [2025-03-22 19:29:19] Production.INFO: ProcessCDR(1,14739658,1,1,2) [2025-03-22 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739658', 'tblTempUsageDetail_20' ) start [2025-03-22 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739658', 'tblTempUsageDetail_20' ) end [2025-03-22 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:29:23] Production.INFO: ==29411== Releasing lock... [2025-03-22 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:29:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:30:06 [end_date_ymd] => 2025-03-22 19:30:06 [RateCDR] => 1 ) [2025-03-22 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:30:06' and `end` < '2025-03-22 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:30:19] Production.INFO: count ==2234 [2025-03-22 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:30:06 - End Time 2025-03-22 19:30:06 [2025-03-22 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739664', 'tblTempUsageDetail_20' ) start [2025-03-22 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739664', 'tblTempUsageDetail_20' ) end [2025-03-22 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739664', 'tblTempVendorCDR_20' ) start [2025-03-22 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739664', 'tblTempVendorCDR_20' ) end [2025-03-22 19:30:19] Production.INFO: ProcessCDR(1,14739664,1,1,2) [2025-03-22 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739664', 'tblTempUsageDetail_20' ) start [2025-03-22 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739664', 'tblTempUsageDetail_20' ) end [2025-03-22 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:30:23] Production.INFO: ==29488== Releasing lock... [2025-03-22 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:30:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:31:05 [end_date_ymd] => 2025-03-22 19:31:05 [RateCDR] => 1 ) [2025-03-22 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:31:05' and `end` < '2025-03-22 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:31:18] Production.INFO: count ==2212 [2025-03-22 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:31:05 - End Time 2025-03-22 19:31:05 [2025-03-22 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739668', 'tblTempUsageDetail_20' ) start [2025-03-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739668', 'tblTempUsageDetail_20' ) end [2025-03-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739668', 'tblTempVendorCDR_20' ) start [2025-03-22 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739668', 'tblTempVendorCDR_20' ) end [2025-03-22 19:31:18] Production.INFO: ProcessCDR(1,14739668,1,1,2) [2025-03-22 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739668', 'tblTempUsageDetail_20' ) start [2025-03-22 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739668', 'tblTempUsageDetail_20' ) end [2025-03-22 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:31:21] Production.INFO: ==29572== Releasing lock... [2025-03-22 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:31:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:32:05 [end_date_ymd] => 2025-03-22 19:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:32:05' and `end` < '2025-03-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-03-22 19:32:17] Production.INFO: count ==2207 [2025-03-22 19:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:32:05 - End Time 2025-03-22 19:32:05 [2025-03-22 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739674', 'tblTempUsageDetail_20' ) start [2025-03-22 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739674', 'tblTempUsageDetail_20' ) end [2025-03-22 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739674', 'tblTempVendorCDR_20' ) start [2025-03-22 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739674', 'tblTempVendorCDR_20' ) end [2025-03-22 19:32:18] Production.INFO: ProcessCDR(1,14739674,1,1,2) [2025-03-22 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739674', 'tblTempUsageDetail_20' ) start [2025-03-22 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739674', 'tblTempUsageDetail_20' ) end [2025-03-22 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:32:23] Production.INFO: ==29655== Releasing lock... [2025-03-22 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:32:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:33:05 [end_date_ymd] => 2025-03-22 19:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:33:05' and `end` < '2025-03-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-03-22 19:33:18] Production.INFO: count ==2210 [2025-03-22 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:33:05 - End Time 2025-03-22 19:33:05 [2025-03-22 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739679', 'tblTempUsageDetail_20' ) start [2025-03-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739679', 'tblTempUsageDetail_20' ) end [2025-03-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739679', 'tblTempVendorCDR_20' ) start [2025-03-22 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739679', 'tblTempVendorCDR_20' ) end [2025-03-22 19:33:18] Production.INFO: ProcessCDR(1,14739679,1,1,2) [2025-03-22 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739679', 'tblTempUsageDetail_20' ) start [2025-03-22 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739679', 'tblTempUsageDetail_20' ) end [2025-03-22 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:33:22] Production.INFO: ==29742== Releasing lock... [2025-03-22 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:33:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:34:05 [end_date_ymd] => 2025-03-22 19:34:05 [RateCDR] => 1 ) [2025-03-22 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:34:05' and `end` < '2025-03-22 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:34:17] Production.INFO: count ==2200 [2025-03-22 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:34:05 - End Time 2025-03-22 19:34:05 [2025-03-22 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739684', 'tblTempUsageDetail_20' ) start [2025-03-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739684', 'tblTempUsageDetail_20' ) end [2025-03-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739684', 'tblTempVendorCDR_20' ) start [2025-03-22 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739684', 'tblTempVendorCDR_20' ) end [2025-03-22 19:34:18] Production.INFO: ProcessCDR(1,14739684,1,1,2) [2025-03-22 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739684', 'tblTempUsageDetail_20' ) start [2025-03-22 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739684', 'tblTempUsageDetail_20' ) end [2025-03-22 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:34:23] Production.INFO: ==29829== Releasing lock... [2025-03-22 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:34:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:35:05 [end_date_ymd] => 2025-03-22 19:35:05 [RateCDR] => 1 ) [2025-03-22 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:35:05' and `end` < '2025-03-22 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:35:18] Production.INFO: count ==2185 [2025-03-22 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:35:05 - End Time 2025-03-22 19:35:05 [2025-03-22 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739689', 'tblTempUsageDetail_20' ) start [2025-03-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739689', 'tblTempUsageDetail_20' ) end [2025-03-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739689', 'tblTempVendorCDR_20' ) start [2025-03-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739689', 'tblTempVendorCDR_20' ) end [2025-03-22 19:35:18] Production.INFO: ProcessCDR(1,14739689,1,1,2) [2025-03-22 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739689', 'tblTempUsageDetail_20' ) start [2025-03-22 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739689', 'tblTempUsageDetail_20' ) end [2025-03-22 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:35:21] Production.INFO: ==29912== Releasing lock... [2025-03-22 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:35:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-22 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:36:05 [end_date_ymd] => 2025-03-22 19:36:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:36:05' and `end` < '2025-03-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-03-22 19:36:18] Production.INFO: count ==2175 [2025-03-22 19:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:36:05 - End Time 2025-03-22 19:36:05 [2025-03-22 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739694', 'tblTempUsageDetail_20' ) start [2025-03-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739694', 'tblTempUsageDetail_20' ) end [2025-03-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739694', 'tblTempVendorCDR_20' ) start [2025-03-22 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739694', 'tblTempVendorCDR_20' ) end [2025-03-22 19:36:18] Production.INFO: ProcessCDR(1,14739694,1,1,2) [2025-03-22 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739694', 'tblTempUsageDetail_20' ) start [2025-03-22 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739694', 'tblTempUsageDetail_20' ) end [2025-03-22 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:36:21] Production.INFO: ==29995== Releasing lock... [2025-03-22 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:36:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:37:05 [end_date_ymd] => 2025-03-22 19:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:37:05' and `end` < '2025-03-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-03-22 19:37:18] Production.INFO: count ==2179 [2025-03-22 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:37:05 - End Time 2025-03-22 19:37:05 [2025-03-22 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739699', 'tblTempUsageDetail_20' ) start [2025-03-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739699', 'tblTempUsageDetail_20' ) end [2025-03-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739699', 'tblTempVendorCDR_20' ) start [2025-03-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739699', 'tblTempVendorCDR_20' ) end [2025-03-22 19:37:18] Production.INFO: ProcessCDR(1,14739699,1,1,2) [2025-03-22 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739699', 'tblTempUsageDetail_20' ) start [2025-03-22 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739699', 'tblTempUsageDetail_20' ) end [2025-03-22 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:37:22] Production.INFO: ==30069== Releasing lock... [2025-03-22 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:37:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:38:05 [end_date_ymd] => 2025-03-22 19:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:38:05' and `end` < '2025-03-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-03-22 19:38:18] Production.INFO: count ==2189 [2025-03-22 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:38:05 - End Time 2025-03-22 19:38:05 [2025-03-22 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739704', 'tblTempUsageDetail_20' ) start [2025-03-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739704', 'tblTempUsageDetail_20' ) end [2025-03-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739704', 'tblTempVendorCDR_20' ) start [2025-03-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739704', 'tblTempVendorCDR_20' ) end [2025-03-22 19:38:19] Production.INFO: ProcessCDR(1,14739704,1,1,2) [2025-03-22 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739704', 'tblTempUsageDetail_20' ) start [2025-03-22 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739704', 'tblTempUsageDetail_20' ) end [2025-03-22 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:38:23] Production.INFO: ==30150== Releasing lock... [2025-03-22 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:38:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:39:05 [end_date_ymd] => 2025-03-22 19:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:39:05' and `end` < '2025-03-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-03-22 19:39:17] Production.INFO: count ==2192 [2025-03-22 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:39:05 - End Time 2025-03-22 19:39:05 [2025-03-22 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739709', 'tblTempUsageDetail_20' ) start [2025-03-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739709', 'tblTempUsageDetail_20' ) end [2025-03-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739709', 'tblTempVendorCDR_20' ) start [2025-03-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739709', 'tblTempVendorCDR_20' ) end [2025-03-22 19:39:18] Production.INFO: ProcessCDR(1,14739709,1,1,2) [2025-03-22 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739709', 'tblTempUsageDetail_20' ) start [2025-03-22 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739709', 'tblTempUsageDetail_20' ) end [2025-03-22 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:39:22] Production.INFO: ==30224== Releasing lock... [2025-03-22 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:39:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:40:06 [end_date_ymd] => 2025-03-22 19:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:40:06' and `end` < '2025-03-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-03-22 19:40:19] Production.INFO: count ==2192 [2025-03-22 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:40:06 - End Time 2025-03-22 19:40:06 [2025-03-22 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739715', 'tblTempUsageDetail_20' ) start [2025-03-22 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739715', 'tblTempUsageDetail_20' ) end [2025-03-22 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739715', 'tblTempVendorCDR_20' ) start [2025-03-22 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739715', 'tblTempVendorCDR_20' ) end [2025-03-22 19:40:19] Production.INFO: ProcessCDR(1,14739715,1,1,2) [2025-03-22 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739715', 'tblTempUsageDetail_20' ) start [2025-03-22 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739715', 'tblTempUsageDetail_20' ) end [2025-03-22 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:40:23] Production.INFO: ==30295== Releasing lock... [2025-03-22 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:40:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:41:05 [end_date_ymd] => 2025-03-22 19:41:05 [RateCDR] => 1 ) [2025-03-22 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:41:05' and `end` < '2025-03-22 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:41:17] Production.INFO: count ==2193 [2025-03-22 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:41:05 - End Time 2025-03-22 19:41:05 [2025-03-22 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739720', 'tblTempUsageDetail_20' ) start [2025-03-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739720', 'tblTempUsageDetail_20' ) end [2025-03-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739720', 'tblTempVendorCDR_20' ) start [2025-03-22 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739720', 'tblTempVendorCDR_20' ) end [2025-03-22 19:41:18] Production.INFO: ProcessCDR(1,14739720,1,1,2) [2025-03-22 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739720', 'tblTempUsageDetail_20' ) start [2025-03-22 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739720', 'tblTempUsageDetail_20' ) end [2025-03-22 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:41:23] Production.INFO: ==30369== Releasing lock... [2025-03-22 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:41:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:42:06 [end_date_ymd] => 2025-03-22 19:42:06 [RateCDR] => 1 ) [2025-03-22 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:42:06' and `end` < '2025-03-22 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:42:18] Production.INFO: count ==2196 [2025-03-22 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:42:06 - End Time 2025-03-22 19:42:06 [2025-03-22 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739725', 'tblTempUsageDetail_20' ) start [2025-03-22 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739725', 'tblTempUsageDetail_20' ) end [2025-03-22 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739725', 'tblTempVendorCDR_20' ) start [2025-03-22 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739725', 'tblTempVendorCDR_20' ) end [2025-03-22 19:42:19] Production.INFO: ProcessCDR(1,14739725,1,1,2) [2025-03-22 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739725', 'tblTempUsageDetail_20' ) start [2025-03-22 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739725', 'tblTempUsageDetail_20' ) end [2025-03-22 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:42:24] Production.INFO: ==30484== Releasing lock... [2025-03-22 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:42:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:43:05 [end_date_ymd] => 2025-03-22 19:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:43:05' and `end` < '2025-03-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-03-22 19:43:18] Production.INFO: count ==2200 [2025-03-22 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:43:05 - End Time 2025-03-22 19:43:05 [2025-03-22 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739730', 'tblTempUsageDetail_20' ) start [2025-03-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739730', 'tblTempUsageDetail_20' ) end [2025-03-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739730', 'tblTempVendorCDR_20' ) start [2025-03-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739730', 'tblTempVendorCDR_20' ) end [2025-03-22 19:43:18] Production.INFO: ProcessCDR(1,14739730,1,1,2) [2025-03-22 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739730', 'tblTempUsageDetail_20' ) start [2025-03-22 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739730', 'tblTempUsageDetail_20' ) end [2025-03-22 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:43:21] Production.INFO: ==30555== Releasing lock... [2025-03-22 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:43:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:44:05 [end_date_ymd] => 2025-03-22 19:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:44:05' and `end` < '2025-03-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-03-22 19:44:18] Production.INFO: count ==2196 [2025-03-22 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:44:05 - End Time 2025-03-22 19:44:05 [2025-03-22 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739735', 'tblTempUsageDetail_20' ) start [2025-03-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739735', 'tblTempUsageDetail_20' ) end [2025-03-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739735', 'tblTempVendorCDR_20' ) start [2025-03-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739735', 'tblTempVendorCDR_20' ) end [2025-03-22 19:44:18] Production.INFO: ProcessCDR(1,14739735,1,1,2) [2025-03-22 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739735', 'tblTempUsageDetail_20' ) start [2025-03-22 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739735', 'tblTempUsageDetail_20' ) end [2025-03-22 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:44:22] Production.INFO: ==30635== Releasing lock... [2025-03-22 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:44:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:45:05 [end_date_ymd] => 2025-03-22 19:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:45:05' and `end` < '2025-03-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-03-22 19:45:17] Production.INFO: count ==2186 [2025-03-22 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:45:05 - End Time 2025-03-22 19:45:05 [2025-03-22 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739740', 'tblTempUsageDetail_20' ) start [2025-03-22 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739740', 'tblTempUsageDetail_20' ) end [2025-03-22 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739740', 'tblTempVendorCDR_20' ) start [2025-03-22 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739740', 'tblTempVendorCDR_20' ) end [2025-03-22 19:45:18] Production.INFO: ProcessCDR(1,14739740,1,1,2) [2025-03-22 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739740', 'tblTempUsageDetail_20' ) start [2025-03-22 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739740', 'tblTempUsageDetail_20' ) end [2025-03-22 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:45:23] Production.INFO: ==30723== Releasing lock... [2025-03-22 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:45:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:46:05 [end_date_ymd] => 2025-03-22 19:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:46:05' and `end` < '2025-03-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-03-22 19:46:18] Production.INFO: count ==2174 [2025-03-22 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:46:05 - End Time 2025-03-22 19:46:05 [2025-03-22 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739745', 'tblTempUsageDetail_20' ) start [2025-03-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739745', 'tblTempUsageDetail_20' ) end [2025-03-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739745', 'tblTempVendorCDR_20' ) start [2025-03-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739745', 'tblTempVendorCDR_20' ) end [2025-03-22 19:46:18] Production.INFO: ProcessCDR(1,14739745,1,1,2) [2025-03-22 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739745', 'tblTempUsageDetail_20' ) start [2025-03-22 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739745', 'tblTempUsageDetail_20' ) end [2025-03-22 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:46:23] Production.INFO: ==30800== Releasing lock... [2025-03-22 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:46:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:47:05 [end_date_ymd] => 2025-03-22 19:47:05 [RateCDR] => 1 ) [2025-03-22 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:47:05' and `end` < '2025-03-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-03-22 19:47:18] Production.INFO: count ==2171 [2025-03-22 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:47:05 - End Time 2025-03-22 19:47:05 [2025-03-22 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739750', 'tblTempUsageDetail_20' ) start [2025-03-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739750', 'tblTempUsageDetail_20' ) end [2025-03-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739750', 'tblTempVendorCDR_20' ) start [2025-03-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739750', 'tblTempVendorCDR_20' ) end [2025-03-22 19:47:18] Production.INFO: ProcessCDR(1,14739750,1,1,2) [2025-03-22 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739750', 'tblTempUsageDetail_20' ) start [2025-03-22 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739750', 'tblTempUsageDetail_20' ) end [2025-03-22 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:47:24] Production.INFO: ==30879== Releasing lock... [2025-03-22 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:47:24] Production.INFO: 44 MB #Memory Used# [2025-03-22 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:48:06 [end_date_ymd] => 2025-03-22 19:48:06 [RateCDR] => 1 ) [2025-03-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-03-22 16:48:06' and `end` < '2025-03-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-03-22 19:48:19] Production.INFO: count ==2166 [2025-03-22 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:48:06 - End Time 2025-03-22 19:48:06 [2025-03-22 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739755', 'tblTempUsageDetail_20' ) start [2025-03-22 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739755', 'tblTempUsageDetail_20' ) end [2025-03-22 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739755', 'tblTempVendorCDR_20' ) start [2025-03-22 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739755', 'tblTempVendorCDR_20' ) end [2025-03-22 19:48:19] Production.INFO: ProcessCDR(1,14739755,1,1,2) [2025-03-22 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739755', 'tblTempUsageDetail_20' ) start [2025-03-22 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739755', 'tblTempUsageDetail_20' ) end [2025-03-22 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:48:24] Production.INFO: ==30970== Releasing lock... [2025-03-22 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:48:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:49:05 [end_date_ymd] => 2025-03-22 19:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:49:05' and `end` < '2025-03-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-03-22 19:49:17] Production.INFO: count ==2162 [2025-03-22 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:49:05 - End Time 2025-03-22 19:49:05 [2025-03-22 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739760', 'tblTempUsageDetail_20' ) start [2025-03-22 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739760', 'tblTempUsageDetail_20' ) end [2025-03-22 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739760', 'tblTempVendorCDR_20' ) start [2025-03-22 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739760', 'tblTempVendorCDR_20' ) end [2025-03-22 19:49:18] Production.INFO: ProcessCDR(1,14739760,1,1,2) [2025-03-22 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739760', 'tblTempUsageDetail_20' ) start [2025-03-22 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739760', 'tblTempUsageDetail_20' ) end [2025-03-22 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:49:21] Production.INFO: ==31056== Releasing lock... [2025-03-22 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:49:21] Production.INFO: 44 MB #Memory Used# [2025-03-22 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:50:07 [end_date_ymd] => 2025-03-22 19:50:07 [RateCDR] => 1 ) [2025-03-22 19:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:50:07' and `end` < '2025-03-22 19:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:50:19] Production.INFO: count ==2162 [2025-03-22 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-22 16:50:07 - End Time 2025-03-22 19:50:07 [2025-03-22 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739766', 'tblTempUsageDetail_20' ) start [2025-03-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739766', 'tblTempUsageDetail_20' ) end [2025-03-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739766', 'tblTempVendorCDR_20' ) start [2025-03-22 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739766', 'tblTempVendorCDR_20' ) end [2025-03-22 19:50:20] Production.INFO: ProcessCDR(1,14739766,1,1,2) [2025-03-22 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739766', 'tblTempUsageDetail_20' ) start [2025-03-22 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739766', 'tblTempUsageDetail_20' ) end [2025-03-22 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:50:23] Production.INFO: ==31136== Releasing lock... [2025-03-22 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:50:23] Production.INFO: 44 MB #Memory Used# [2025-03-22 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:51:05 [end_date_ymd] => 2025-03-22 19:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:51:05' and `end` < '2025-03-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-03-22 19:51:17] Production.INFO: count ==2204 [2025-03-22 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:51:05 - End Time 2025-03-22 19:51:05 [2025-03-22 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739771', 'tblTempUsageDetail_20' ) start [2025-03-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739771', 'tblTempUsageDetail_20' ) end [2025-03-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739771', 'tblTempVendorCDR_20' ) start [2025-03-22 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739771', 'tblTempVendorCDR_20' ) end [2025-03-22 19:51:18] Production.INFO: ProcessCDR(1,14739771,1,1,2) [2025-03-22 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739771', 'tblTempUsageDetail_20' ) start [2025-03-22 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739771', 'tblTempUsageDetail_20' ) end [2025-03-22 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:51:22] Production.INFO: ==31217== Releasing lock... [2025-03-22 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:51:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:52:05 [end_date_ymd] => 2025-03-22 19:52:05 [RateCDR] => 1 ) [2025-03-22 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:52:05' and `end` < '2025-03-22 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:52:18] Production.INFO: count ==2202 [2025-03-22 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:52:05 - End Time 2025-03-22 19:52:05 [2025-03-22 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739776', 'tblTempUsageDetail_20' ) start [2025-03-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739776', 'tblTempUsageDetail_20' ) end [2025-03-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739776', 'tblTempVendorCDR_20' ) start [2025-03-22 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739776', 'tblTempVendorCDR_20' ) end [2025-03-22 19:52:19] Production.INFO: ProcessCDR(1,14739776,1,1,2) [2025-03-22 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739776', 'tblTempUsageDetail_20' ) start [2025-03-22 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739776', 'tblTempUsageDetail_20' ) end [2025-03-22 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:52:22] Production.INFO: ==31299== Releasing lock... [2025-03-22 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:52:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:53:05 [end_date_ymd] => 2025-03-22 19:53:05 [RateCDR] => 1 ) [2025-03-22 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:53:05' and `end` < '2025-03-22 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:53:17] Production.INFO: count ==2201 [2025-03-22 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:53:05 - End Time 2025-03-22 19:53:05 [2025-03-22 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739781', 'tblTempUsageDetail_20' ) start [2025-03-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739781', 'tblTempUsageDetail_20' ) end [2025-03-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739781', 'tblTempVendorCDR_20' ) start [2025-03-22 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739781', 'tblTempVendorCDR_20' ) end [2025-03-22 19:53:18] Production.INFO: ProcessCDR(1,14739781,1,1,2) [2025-03-22 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739781', 'tblTempUsageDetail_20' ) start [2025-03-22 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739781', 'tblTempUsageDetail_20' ) end [2025-03-22 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:53:21] Production.INFO: ==31379== Releasing lock... [2025-03-22 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:53:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:54:05 [end_date_ymd] => 2025-03-22 19:54:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:54:05' and `end` < '2025-03-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-03-22 19:54:18] Production.INFO: count ==2199 [2025-03-22 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:54:05 - End Time 2025-03-22 19:54:05 [2025-03-22 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739786', 'tblTempUsageDetail_20' ) start [2025-03-22 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739786', 'tblTempUsageDetail_20' ) end [2025-03-22 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739786', 'tblTempVendorCDR_20' ) start [2025-03-22 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739786', 'tblTempVendorCDR_20' ) end [2025-03-22 19:54:18] Production.INFO: ProcessCDR(1,14739786,1,1,2) [2025-03-22 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739786', 'tblTempUsageDetail_20' ) start [2025-03-22 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739786', 'tblTempUsageDetail_20' ) end [2025-03-22 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:54:22] Production.INFO: ==31457== Releasing lock... [2025-03-22 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:54:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:55:05 [end_date_ymd] => 2025-03-22 19:55:05 [RateCDR] => 1 ) [2025-03-22 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:55:05' and `end` < '2025-03-22 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:55:17] Production.INFO: count ==2194 [2025-03-22 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:55:05 - End Time 2025-03-22 19:55:05 [2025-03-22 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739791', 'tblTempUsageDetail_20' ) start [2025-03-22 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739791', 'tblTempUsageDetail_20' ) end [2025-03-22 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739791', 'tblTempVendorCDR_20' ) start [2025-03-22 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739791', 'tblTempVendorCDR_20' ) end [2025-03-22 19:55:18] Production.INFO: ProcessCDR(1,14739791,1,1,2) [2025-03-22 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739791', 'tblTempUsageDetail_20' ) start [2025-03-22 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739791', 'tblTempUsageDetail_20' ) end [2025-03-22 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:55:21] Production.INFO: ==31529== Releasing lock... [2025-03-22 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:55:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:56:05 [end_date_ymd] => 2025-03-22 19:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:56:05' and `end` < '2025-03-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-03-22 19:56:18] Production.INFO: count ==2188 [2025-03-22 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:56:05 - End Time 2025-03-22 19:56:05 [2025-03-22 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739796', 'tblTempUsageDetail_20' ) start [2025-03-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739796', 'tblTempUsageDetail_20' ) end [2025-03-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739796', 'tblTempVendorCDR_20' ) start [2025-03-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739796', 'tblTempVendorCDR_20' ) end [2025-03-22 19:56:18] Production.INFO: ProcessCDR(1,14739796,1,1,2) [2025-03-22 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739796', 'tblTempUsageDetail_20' ) start [2025-03-22 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739796', 'tblTempUsageDetail_20' ) end [2025-03-22 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:56:23] Production.INFO: ==31608== Releasing lock... [2025-03-22 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:56:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-22 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:57:04 [end_date_ymd] => 2025-03-22 19:57:04 [RateCDR] => 1 ) [2025-03-22 19:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 16:57:04' and `end` < '2025-03-22 19:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 19:57:17] Production.INFO: count ==2188 [2025-03-22 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:57:04 - End Time 2025-03-22 19:57:04 [2025-03-22 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739801', 'tblTempUsageDetail_20' ) start [2025-03-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739801', 'tblTempUsageDetail_20' ) end [2025-03-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739801', 'tblTempVendorCDR_20' ) start [2025-03-22 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739801', 'tblTempVendorCDR_20' ) end [2025-03-22 19:57:18] Production.INFO: ProcessCDR(1,14739801,1,1,2) [2025-03-22 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739801', 'tblTempUsageDetail_20' ) start [2025-03-22 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739801', 'tblTempUsageDetail_20' ) end [2025-03-22 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:57:21] Production.INFO: ==31723== Releasing lock... [2025-03-22 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:57:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:58:05 [end_date_ymd] => 2025-03-22 19:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:58:05' and `end` < '2025-03-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-03-22 19:58:17] Production.INFO: count ==2191 [2025-03-22 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 16:58:05 - End Time 2025-03-22 19:58:05 [2025-03-22 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739806', 'tblTempUsageDetail_20' ) start [2025-03-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739806', 'tblTempUsageDetail_20' ) end [2025-03-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739806', 'tblTempVendorCDR_20' ) start [2025-03-22 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739806', 'tblTempVendorCDR_20' ) end [2025-03-22 19:58:18] Production.INFO: ProcessCDR(1,14739806,1,1,2) [2025-03-22 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739806', 'tblTempUsageDetail_20' ) start [2025-03-22 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739806', 'tblTempUsageDetail_20' ) end [2025-03-22 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:58:22] Production.INFO: ==31800== Releasing lock... [2025-03-22 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:58:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 16:59:05 [end_date_ymd] => 2025-03-22 19:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 16:59:05' and `end` < '2025-03-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-03-22 19:59:18] Production.INFO: count ==2186 [2025-03-22 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-22 16:59:05 - End Time 2025-03-22 19:59:05 [2025-03-22 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739811', 'tblTempUsageDetail_20' ) start [2025-03-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739811', 'tblTempUsageDetail_20' ) end [2025-03-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739811', 'tblTempVendorCDR_20' ) start [2025-03-22 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739811', 'tblTempVendorCDR_20' ) end [2025-03-22 19:59:19] Production.INFO: ProcessCDR(1,14739811,1,1,2) [2025-03-22 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739811', 'tblTempUsageDetail_20' ) start [2025-03-22 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739811', 'tblTempUsageDetail_20' ) end [2025-03-22 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 19:59:24] Production.INFO: ==31876== Releasing lock... [2025-03-22 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 19:59:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:00:06 [end_date_ymd] => 2025-03-22 20:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 17:00:06' and `end` < '2025-03-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-03-22 20:00:18] Production.INFO: count ==2187 [2025-03-22 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:00:06 - End Time 2025-03-22 20:00:06 [2025-03-22 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739816', 'tblTempUsageDetail_20' ) start [2025-03-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739816', 'tblTempUsageDetail_20' ) end [2025-03-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739816', 'tblTempVendorCDR_20' ) start [2025-03-22 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739816', 'tblTempVendorCDR_20' ) end [2025-03-22 20:00:19] Production.INFO: ProcessCDR(1,14739816,1,1,2) [2025-03-22 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739816', 'tblTempUsageDetail_20' ) start [2025-03-22 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739816', 'tblTempUsageDetail_20' ) end [2025-03-22 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:00:24] Production.INFO: ==31953== Releasing lock... [2025-03-22 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:00:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:01:05 [end_date_ymd] => 2025-03-22 20:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:01:05' and `end` < '2025-03-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-03-22 20:01:18] Production.INFO: count ==2124 [2025-03-22 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:01:05 - End Time 2025-03-22 20:01:05 [2025-03-22 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739822', 'tblTempUsageDetail_20' ) start [2025-03-22 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739822', 'tblTempUsageDetail_20' ) end [2025-03-22 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739822', 'tblTempVendorCDR_20' ) start [2025-03-22 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739822', 'tblTempVendorCDR_20' ) end [2025-03-22 20:01:18] Production.INFO: ProcessCDR(1,14739822,1,1,2) [2025-03-22 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739822', 'tblTempUsageDetail_20' ) start [2025-03-22 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739822', 'tblTempUsageDetail_20' ) end [2025-03-22 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:01:23] Production.INFO: ==32079== Releasing lock... [2025-03-22 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:01:23] Production.INFO: 44 MB #Memory Used# [2025-03-22 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:02:05 [end_date_ymd] => 2025-03-22 20:02:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:02:05' and `end` < '2025-03-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-03-22 20:02:18] Production.INFO: count ==2115 [2025-03-22 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:02:05 - End Time 2025-03-22 20:02:05 [2025-03-22 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739827', 'tblTempUsageDetail_20' ) start [2025-03-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739827', 'tblTempUsageDetail_20' ) end [2025-03-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739827', 'tblTempVendorCDR_20' ) start [2025-03-22 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739827', 'tblTempVendorCDR_20' ) end [2025-03-22 20:02:18] Production.INFO: ProcessCDR(1,14739827,1,1,2) [2025-03-22 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739827', 'tblTempUsageDetail_20' ) start [2025-03-22 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739827', 'tblTempUsageDetail_20' ) end [2025-03-22 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:02:23] Production.INFO: ==32149== Releasing lock... [2025-03-22 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:02:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-22 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:03:05 [end_date_ymd] => 2025-03-22 20:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:03:05' and `end` < '2025-03-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-03-22 20:03:18] Production.INFO: count ==2115 [2025-03-22 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:03:05 - End Time 2025-03-22 20:03:05 [2025-03-22 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739832', 'tblTempUsageDetail_20' ) start [2025-03-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739832', 'tblTempUsageDetail_20' ) end [2025-03-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739832', 'tblTempVendorCDR_20' ) start [2025-03-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739832', 'tblTempVendorCDR_20' ) end [2025-03-22 20:03:18] Production.INFO: ProcessCDR(1,14739832,1,1,2) [2025-03-22 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739832', 'tblTempUsageDetail_20' ) start [2025-03-22 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739832', 'tblTempUsageDetail_20' ) end [2025-03-22 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:03:21] Production.INFO: ==32223== Releasing lock... [2025-03-22 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:03:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:04:05 [end_date_ymd] => 2025-03-22 20:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:04:05' and `end` < '2025-03-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-03-22 20:04:18] Production.INFO: count ==2110 [2025-03-22 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:04:05 - End Time 2025-03-22 20:04:05 [2025-03-22 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739837', 'tblTempUsageDetail_20' ) start [2025-03-22 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739837', 'tblTempUsageDetail_20' ) end [2025-03-22 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739837', 'tblTempVendorCDR_20' ) start [2025-03-22 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739837', 'tblTempVendorCDR_20' ) end [2025-03-22 20:04:18] Production.INFO: ProcessCDR(1,14739837,1,1,2) [2025-03-22 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739837', 'tblTempUsageDetail_20' ) start [2025-03-22 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739837', 'tblTempUsageDetail_20' ) end [2025-03-22 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:04:23] Production.INFO: ==32296== Releasing lock... [2025-03-22 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:04:23] Production.INFO: 44 MB #Memory Used# [2025-03-22 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:05:05 [end_date_ymd] => 2025-03-22 20:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:05:05' and `end` < '2025-03-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-03-22 20:05:18] Production.INFO: count ==2099 [2025-03-22 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:05:05 - End Time 2025-03-22 20:05:05 [2025-03-22 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739842', 'tblTempUsageDetail_20' ) start [2025-03-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739842', 'tblTempUsageDetail_20' ) end [2025-03-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739842', 'tblTempVendorCDR_20' ) start [2025-03-22 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739842', 'tblTempVendorCDR_20' ) end [2025-03-22 20:05:18] Production.INFO: ProcessCDR(1,14739842,1,1,2) [2025-03-22 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739842', 'tblTempUsageDetail_20' ) start [2025-03-22 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739842', 'tblTempUsageDetail_20' ) end [2025-03-22 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:05:23] Production.INFO: ==32371== Releasing lock... [2025-03-22 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:05:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:06:06 [end_date_ymd] => 2025-03-22 20:06:06 [RateCDR] => 1 ) [2025-03-22 20:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:06:06' and `end` < '2025-03-22 20:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:06:19] Production.INFO: count ==2100 [2025-03-22 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:06:06 - End Time 2025-03-22 20:06:06 [2025-03-22 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739847', 'tblTempUsageDetail_20' ) start [2025-03-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739847', 'tblTempUsageDetail_20' ) end [2025-03-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739847', 'tblTempVendorCDR_20' ) start [2025-03-22 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739847', 'tblTempVendorCDR_20' ) end [2025-03-22 20:06:19] Production.INFO: ProcessCDR(1,14739847,1,1,2) [2025-03-22 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739847', 'tblTempUsageDetail_20' ) start [2025-03-22 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739847', 'tblTempUsageDetail_20' ) end [2025-03-22 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:06:22] Production.INFO: ==32449== Releasing lock... [2025-03-22 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:06:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:07:05 [end_date_ymd] => 2025-03-22 20:07:05 [RateCDR] => 1 ) [2025-03-22 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:07:05' and `end` < '2025-03-22 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:07:17] Production.INFO: count ==2099 [2025-03-22 20:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:07:05 - End Time 2025-03-22 20:07:05 [2025-03-22 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739852', 'tblTempUsageDetail_20' ) start [2025-03-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739852', 'tblTempUsageDetail_20' ) end [2025-03-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739852', 'tblTempVendorCDR_20' ) start [2025-03-22 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739852', 'tblTempVendorCDR_20' ) end [2025-03-22 20:07:18] Production.INFO: ProcessCDR(1,14739852,1,1,2) [2025-03-22 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739852', 'tblTempUsageDetail_20' ) start [2025-03-22 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739852', 'tblTempUsageDetail_20' ) end [2025-03-22 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:07:21] Production.INFO: ==32527== Releasing lock... [2025-03-22 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:07:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:08:06 [end_date_ymd] => 2025-03-22 20:08:06 [RateCDR] => 1 ) [2025-03-22 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:08:06' and `end` < '2025-03-22 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:08:18] Production.INFO: count ==2094 [2025-03-22 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:08:06 - End Time 2025-03-22 20:08:06 [2025-03-22 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739857', 'tblTempUsageDetail_20' ) start [2025-03-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739857', 'tblTempUsageDetail_20' ) end [2025-03-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739857', 'tblTempVendorCDR_20' ) start [2025-03-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739857', 'tblTempVendorCDR_20' ) end [2025-03-22 20:08:18] Production.INFO: ProcessCDR(1,14739857,1,1,2) [2025-03-22 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739857', 'tblTempUsageDetail_20' ) start [2025-03-22 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739857', 'tblTempUsageDetail_20' ) end [2025-03-22 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:08:22] Production.INFO: ==32604== Releasing lock... [2025-03-22 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:08:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:09:05 [end_date_ymd] => 2025-03-22 20:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:09:05' and `end` < '2025-03-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-03-22 20:09:17] Production.INFO: count ==2092 [2025-03-22 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:09:05 - End Time 2025-03-22 20:09:05 [2025-03-22 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739862', 'tblTempUsageDetail_20' ) start [2025-03-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739862', 'tblTempUsageDetail_20' ) end [2025-03-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739862', 'tblTempVendorCDR_20' ) start [2025-03-22 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739862', 'tblTempVendorCDR_20' ) end [2025-03-22 20:09:18] Production.INFO: ProcessCDR(1,14739862,1,1,2) [2025-03-22 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739862', 'tblTempUsageDetail_20' ) start [2025-03-22 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739862', 'tblTempUsageDetail_20' ) end [2025-03-22 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:09:21] Production.INFO: ==32678== Releasing lock... [2025-03-22 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:09:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:10:07 [end_date_ymd] => 2025-03-22 20:10:07 [RateCDR] => 1 ) [2025-03-22 20:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:10:07' and `end` < '2025-03-22 20:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:10:19] Production.INFO: count ==2093 [2025-03-22 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-22 17:10:07 - End Time 2025-03-22 20:10:07 [2025-03-22 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739867', 'tblTempUsageDetail_20' ) start [2025-03-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739867', 'tblTempUsageDetail_20' ) end [2025-03-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739867', 'tblTempVendorCDR_20' ) start [2025-03-22 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739867', 'tblTempVendorCDR_20' ) end [2025-03-22 20:10:20] Production.INFO: ProcessCDR(1,14739867,1,1,2) [2025-03-22 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739867', 'tblTempUsageDetail_20' ) start [2025-03-22 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739867', 'tblTempUsageDetail_20' ) end [2025-03-22 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:10:24] Production.INFO: ==32762== Releasing lock... [2025-03-22 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:10:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:11:05 [end_date_ymd] => 2025-03-22 20:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:11:05' and `end` < '2025-03-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-03-22 20:11:18] Production.INFO: count ==2077 [2025-03-22 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:11:05 - End Time 2025-03-22 20:11:05 [2025-03-22 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739873', 'tblTempUsageDetail_20' ) start [2025-03-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739873', 'tblTempUsageDetail_20' ) end [2025-03-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739873', 'tblTempVendorCDR_20' ) start [2025-03-22 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739873', 'tblTempVendorCDR_20' ) end [2025-03-22 20:11:18] Production.INFO: ProcessCDR(1,14739873,1,1,2) [2025-03-22 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739873', 'tblTempUsageDetail_20' ) start [2025-03-22 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739873', 'tblTempUsageDetail_20' ) end [2025-03-22 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:11:22] Production.INFO: ==396== Releasing lock... [2025-03-22 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:11:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:12:05 [end_date_ymd] => 2025-03-22 20:12:05 [RateCDR] => 1 ) [2025-03-22 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:12:05' and `end` < '2025-03-22 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:12:18] Production.INFO: count ==2080 [2025-03-22 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:12:05 - End Time 2025-03-22 20:12:05 [2025-03-22 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739878', 'tblTempUsageDetail_20' ) start [2025-03-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739878', 'tblTempUsageDetail_20' ) end [2025-03-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739878', 'tblTempVendorCDR_20' ) start [2025-03-22 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739878', 'tblTempVendorCDR_20' ) end [2025-03-22 20:12:18] Production.INFO: ProcessCDR(1,14739878,1,1,2) [2025-03-22 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739878', 'tblTempUsageDetail_20' ) start [2025-03-22 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739878', 'tblTempUsageDetail_20' ) end [2025-03-22 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:12:21] Production.INFO: ==519== Releasing lock... [2025-03-22 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:12:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:13:05 [end_date_ymd] => 2025-03-22 20:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:13:05' and `end` < '2025-03-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-03-22 20:13:17] Production.INFO: count ==2081 [2025-03-22 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:13:05 - End Time 2025-03-22 20:13:05 [2025-03-22 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739883', 'tblTempUsageDetail_20' ) start [2025-03-22 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739883', 'tblTempUsageDetail_20' ) end [2025-03-22 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739883', 'tblTempVendorCDR_20' ) start [2025-03-22 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739883', 'tblTempVendorCDR_20' ) end [2025-03-22 20:13:18] Production.INFO: ProcessCDR(1,14739883,1,1,2) [2025-03-22 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739883', 'tblTempUsageDetail_20' ) start [2025-03-22 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739883', 'tblTempUsageDetail_20' ) end [2025-03-22 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:13:21] Production.INFO: ==603== Releasing lock... [2025-03-22 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:13:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:14:05 [end_date_ymd] => 2025-03-22 20:14:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:14:05' and `end` < '2025-03-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-03-22 20:14:18] Production.INFO: count ==2085 [2025-03-22 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:14:05 - End Time 2025-03-22 20:14:05 [2025-03-22 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739888', 'tblTempUsageDetail_20' ) start [2025-03-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739888', 'tblTempUsageDetail_20' ) end [2025-03-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739888', 'tblTempVendorCDR_20' ) start [2025-03-22 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739888', 'tblTempVendorCDR_20' ) end [2025-03-22 20:14:18] Production.INFO: ProcessCDR(1,14739888,1,1,2) [2025-03-22 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739888', 'tblTempUsageDetail_20' ) start [2025-03-22 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739888', 'tblTempUsageDetail_20' ) end [2025-03-22 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:14:22] Production.INFO: ==712== Releasing lock... [2025-03-22 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:14:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:15:05 [end_date_ymd] => 2025-03-22 20:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:15:05' and `end` < '2025-03-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-03-22 20:15:18] Production.INFO: count ==2084 [2025-03-22 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:15:05 - End Time 2025-03-22 20:15:05 [2025-03-22 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739893', 'tblTempUsageDetail_20' ) start [2025-03-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739893', 'tblTempUsageDetail_20' ) end [2025-03-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739893', 'tblTempVendorCDR_20' ) start [2025-03-22 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739893', 'tblTempVendorCDR_20' ) end [2025-03-22 20:15:18] Production.INFO: ProcessCDR(1,14739893,1,1,2) [2025-03-22 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739893', 'tblTempUsageDetail_20' ) start [2025-03-22 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739893', 'tblTempUsageDetail_20' ) end [2025-03-22 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:15:23] Production.INFO: ==795== Releasing lock... [2025-03-22 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:15:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:16:05 [end_date_ymd] => 2025-03-22 20:16:05 [RateCDR] => 1 ) [2025-03-22 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:16:05' and `end` < '2025-03-22 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:16:18] Production.INFO: count ==2084 [2025-03-22 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:16:05 - End Time 2025-03-22 20:16:05 [2025-03-22 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739898', 'tblTempUsageDetail_20' ) start [2025-03-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739898', 'tblTempUsageDetail_20' ) end [2025-03-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739898', 'tblTempVendorCDR_20' ) start [2025-03-22 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739898', 'tblTempVendorCDR_20' ) end [2025-03-22 20:16:18] Production.INFO: ProcessCDR(1,14739898,1,1,2) [2025-03-22 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739898', 'tblTempUsageDetail_20' ) start [2025-03-22 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739898', 'tblTempUsageDetail_20' ) end [2025-03-22 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:16:22] Production.INFO: ==874== Releasing lock... [2025-03-22 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:16:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:17:04 [end_date_ymd] => 2025-03-22 20:17:04 [RateCDR] => 1 ) [2025-03-22 20: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-03-22 17:17:04' and `end` < '2025-03-22 20: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-03-22 20:17:17] Production.INFO: count ==2083 [2025-03-22 20:17:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:17:04 - End Time 2025-03-22 20:17:04 [2025-03-22 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739903', 'tblTempUsageDetail_20' ) start [2025-03-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739903', 'tblTempUsageDetail_20' ) end [2025-03-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739903', 'tblTempVendorCDR_20' ) start [2025-03-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739903', 'tblTempVendorCDR_20' ) end [2025-03-22 20:17:17] Production.INFO: ProcessCDR(1,14739903,1,1,2) [2025-03-22 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739903', 'tblTempUsageDetail_20' ) start [2025-03-22 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739903', 'tblTempUsageDetail_20' ) end [2025-03-22 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:17:21] Production.INFO: ==954== Releasing lock... [2025-03-22 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:17:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:18:05 [end_date_ymd] => 2025-03-22 20:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:18:05' and `end` < '2025-03-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-03-22 20:18:18] Production.INFO: count ==2081 [2025-03-22 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:18:05 - End Time 2025-03-22 20:18:05 [2025-03-22 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739908', 'tblTempUsageDetail_20' ) start [2025-03-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739908', 'tblTempUsageDetail_20' ) end [2025-03-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739908', 'tblTempVendorCDR_20' ) start [2025-03-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739908', 'tblTempVendorCDR_20' ) end [2025-03-22 20:18:18] Production.INFO: ProcessCDR(1,14739908,1,1,2) [2025-03-22 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739908', 'tblTempUsageDetail_20' ) start [2025-03-22 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739908', 'tblTempUsageDetail_20' ) end [2025-03-22 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:18:22] Production.INFO: ==1035== Releasing lock... [2025-03-22 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:18:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:19:06 [end_date_ymd] => 2025-03-22 20:19:06 [RateCDR] => 1 ) [2025-03-22 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:19:06' and `end` < '2025-03-22 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:19:18] Production.INFO: count ==2083 [2025-03-22 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:19:06 - End Time 2025-03-22 20:19:06 [2025-03-22 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739913', 'tblTempUsageDetail_20' ) start [2025-03-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739913', 'tblTempUsageDetail_20' ) end [2025-03-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739913', 'tblTempVendorCDR_20' ) start [2025-03-22 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739913', 'tblTempVendorCDR_20' ) end [2025-03-22 20:19:18] Production.INFO: ProcessCDR(1,14739913,1,1,2) [2025-03-22 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739913', 'tblTempUsageDetail_20' ) start [2025-03-22 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739913', 'tblTempUsageDetail_20' ) end [2025-03-22 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:19:23] Production.INFO: ==1114== Releasing lock... [2025-03-22 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:19:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-22 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:20:05 [end_date_ymd] => 2025-03-22 20:20:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:20:05' and `end` < '2025-03-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-03-22 20:20:18] Production.INFO: count ==2087 [2025-03-22 20:20:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:20:05 - End Time 2025-03-22 20:20:05 [2025-03-22 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739918', 'tblTempUsageDetail_20' ) start [2025-03-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739918', 'tblTempUsageDetail_20' ) end [2025-03-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739918', 'tblTempVendorCDR_20' ) start [2025-03-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739918', 'tblTempVendorCDR_20' ) end [2025-03-22 20:20:18] Production.INFO: ProcessCDR(1,14739918,1,1,2) [2025-03-22 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739918', 'tblTempUsageDetail_20' ) start [2025-03-22 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739918', 'tblTempUsageDetail_20' ) end [2025-03-22 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:20:22] Production.INFO: ==1205== Releasing lock... [2025-03-22 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:20:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-22 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:21:06 [end_date_ymd] => 2025-03-22 20:21:06 [RateCDR] => 1 ) [2025-03-22 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:21:06' and `end` < '2025-03-22 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:21:18] Production.INFO: count ==2013 [2025-03-22 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:21:06 - End Time 2025-03-22 20:21:06 [2025-03-22 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739924', 'tblTempUsageDetail_20' ) start [2025-03-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739924', 'tblTempUsageDetail_20' ) end [2025-03-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739924', 'tblTempVendorCDR_20' ) start [2025-03-22 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739924', 'tblTempVendorCDR_20' ) end [2025-03-22 20:21:19] Production.INFO: ProcessCDR(1,14739924,1,1,2) [2025-03-22 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739924', 'tblTempUsageDetail_20' ) start [2025-03-22 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739924', 'tblTempUsageDetail_20' ) end [2025-03-22 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:21:22] Production.INFO: ==1295== Releasing lock... [2025-03-22 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:21:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:22:05 [end_date_ymd] => 2025-03-22 20:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:22:05' and `end` < '2025-03-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-03-22 20:22:18] Production.INFO: count ==2004 [2025-03-22 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:22:05 - End Time 2025-03-22 20:22:05 [2025-03-22 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739929', 'tblTempUsageDetail_20' ) start [2025-03-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739929', 'tblTempUsageDetail_20' ) end [2025-03-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739929', 'tblTempVendorCDR_20' ) start [2025-03-22 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739929', 'tblTempVendorCDR_20' ) end [2025-03-22 20:22:18] Production.INFO: ProcessCDR(1,14739929,1,1,2) [2025-03-22 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739929', 'tblTempUsageDetail_20' ) start [2025-03-22 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739929', 'tblTempUsageDetail_20' ) end [2025-03-22 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:22:22] Production.INFO: ==1372== Releasing lock... [2025-03-22 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:22:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:23:05 [end_date_ymd] => 2025-03-22 20:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:23:05' and `end` < '2025-03-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-03-22 20:23:18] Production.INFO: count ==2000 [2025-03-22 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:23:05 - End Time 2025-03-22 20:23:05 [2025-03-22 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739934', 'tblTempUsageDetail_20' ) start [2025-03-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739934', 'tblTempUsageDetail_20' ) end [2025-03-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739934', 'tblTempVendorCDR_20' ) start [2025-03-22 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739934', 'tblTempVendorCDR_20' ) end [2025-03-22 20:23:18] Production.INFO: ProcessCDR(1,14739934,1,1,2) [2025-03-22 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739934', 'tblTempUsageDetail_20' ) start [2025-03-22 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739934', 'tblTempUsageDetail_20' ) end [2025-03-22 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:23:23] Production.INFO: ==1453== Releasing lock... [2025-03-22 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:24:05 [end_date_ymd] => 2025-03-22 20:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:24:05' and `end` < '2025-03-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-03-22 20:24:18] Production.INFO: count ==1996 [2025-03-22 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:24:05 - End Time 2025-03-22 20:24:05 [2025-03-22 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739939', 'tblTempUsageDetail_20' ) start [2025-03-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739939', 'tblTempUsageDetail_20' ) end [2025-03-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739939', 'tblTempVendorCDR_20' ) start [2025-03-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739939', 'tblTempVendorCDR_20' ) end [2025-03-22 20:24:18] Production.INFO: ProcessCDR(1,14739939,1,1,2) [2025-03-22 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739939', 'tblTempUsageDetail_20' ) start [2025-03-22 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739939', 'tblTempUsageDetail_20' ) end [2025-03-22 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:24:22] Production.INFO: ==1565== Releasing lock... [2025-03-22 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:24:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:25:05 [end_date_ymd] => 2025-03-22 20:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:25:05' and `end` < '2025-03-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-03-22 20:25:18] Production.INFO: count ==1994 [2025-03-22 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:25:05 - End Time 2025-03-22 20:25:05 [2025-03-22 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739944', 'tblTempUsageDetail_20' ) start [2025-03-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739944', 'tblTempUsageDetail_20' ) end [2025-03-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739944', 'tblTempVendorCDR_20' ) start [2025-03-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739944', 'tblTempVendorCDR_20' ) end [2025-03-22 20:25:18] Production.INFO: ProcessCDR(1,14739944,1,1,2) [2025-03-22 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739944', 'tblTempUsageDetail_20' ) start [2025-03-22 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739944', 'tblTempUsageDetail_20' ) end [2025-03-22 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:25:21] Production.INFO: ==1645== Releasing lock... [2025-03-22 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:25:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:26:05 [end_date_ymd] => 2025-03-22 20:26:05 [RateCDR] => 1 ) [2025-03-22 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:26:05' and `end` < '2025-03-22 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:26:18] Production.INFO: count ==1991 [2025-03-22 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:26:05 - End Time 2025-03-22 20:26:05 [2025-03-22 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739949', 'tblTempUsageDetail_20' ) start [2025-03-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739949', 'tblTempUsageDetail_20' ) end [2025-03-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739949', 'tblTempVendorCDR_20' ) start [2025-03-22 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739949', 'tblTempVendorCDR_20' ) end [2025-03-22 20:26:18] Production.INFO: ProcessCDR(1,14739949,1,1,2) [2025-03-22 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739949', 'tblTempUsageDetail_20' ) start [2025-03-22 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739949', 'tblTempUsageDetail_20' ) end [2025-03-22 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:26:21] Production.INFO: ==1725== Releasing lock... [2025-03-22 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:26:21] Production.INFO: 43 MB #Memory Used# [2025-03-22 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:27:06 [end_date_ymd] => 2025-03-22 20:27:06 [RateCDR] => 1 ) [2025-03-22 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:27:06' and `end` < '2025-03-22 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:27:18] Production.INFO: count ==1993 [2025-03-22 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:27:06 - End Time 2025-03-22 20:27:06 [2025-03-22 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739954', 'tblTempUsageDetail_20' ) start [2025-03-22 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739954', 'tblTempUsageDetail_20' ) end [2025-03-22 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739954', 'tblTempVendorCDR_20' ) start [2025-03-22 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739954', 'tblTempVendorCDR_20' ) end [2025-03-22 20:27:19] Production.INFO: ProcessCDR(1,14739954,1,1,2) [2025-03-22 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739954', 'tblTempUsageDetail_20' ) start [2025-03-22 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739954', 'tblTempUsageDetail_20' ) end [2025-03-22 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:27:22] Production.INFO: ==1807== Releasing lock... [2025-03-22 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:27:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:28:05 [end_date_ymd] => 2025-03-22 20:28:05 [RateCDR] => 1 ) [2025-03-22 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:28:05' and `end` < '2025-03-22 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:28:18] Production.INFO: count ==1990 [2025-03-22 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:28:05 - End Time 2025-03-22 20:28:05 [2025-03-22 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739959', 'tblTempUsageDetail_20' ) start [2025-03-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739959', 'tblTempUsageDetail_20' ) end [2025-03-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739959', 'tblTempVendorCDR_20' ) start [2025-03-22 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739959', 'tblTempVendorCDR_20' ) end [2025-03-22 20:28:18] Production.INFO: ProcessCDR(1,14739959,1,1,2) [2025-03-22 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739959', 'tblTempUsageDetail_20' ) start [2025-03-22 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739959', 'tblTempUsageDetail_20' ) end [2025-03-22 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:28:22] Production.INFO: ==1929== Releasing lock... [2025-03-22 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:28:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:29:05 [end_date_ymd] => 2025-03-22 20:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:29:05' and `end` < '2025-03-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-03-22 20:29:18] Production.INFO: count ==1990 [2025-03-22 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:29:05 - End Time 2025-03-22 20:29:05 [2025-03-22 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739964', 'tblTempUsageDetail_20' ) start [2025-03-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739964', 'tblTempUsageDetail_20' ) end [2025-03-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739964', 'tblTempVendorCDR_20' ) start [2025-03-22 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739964', 'tblTempVendorCDR_20' ) end [2025-03-22 20:29:19] Production.INFO: ProcessCDR(1,14739964,1,1,2) [2025-03-22 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739964', 'tblTempUsageDetail_20' ) start [2025-03-22 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739964', 'tblTempUsageDetail_20' ) end [2025-03-22 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:29:22] Production.INFO: ==2010== Releasing lock... [2025-03-22 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:29:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:30:06 [end_date_ymd] => 2025-03-22 20:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 17:30:06' and `end` < '2025-03-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-03-22 20:30:18] Production.INFO: count ==1994 [2025-03-22 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:30:06 - End Time 2025-03-22 20:30:06 [2025-03-22 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739970', 'tblTempUsageDetail_20' ) start [2025-03-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739970', 'tblTempUsageDetail_20' ) end [2025-03-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739970', 'tblTempVendorCDR_20' ) start [2025-03-22 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739970', 'tblTempVendorCDR_20' ) end [2025-03-22 20:30:19] Production.INFO: ProcessCDR(1,14739970,1,1,2) [2025-03-22 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739970', 'tblTempUsageDetail_20' ) start [2025-03-22 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739970', 'tblTempUsageDetail_20' ) end [2025-03-22 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:30:22] Production.INFO: ==2092== Releasing lock... [2025-03-22 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:30:22] Production.INFO: 43 MB #Memory Used# [2025-03-22 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:31:05 [end_date_ymd] => 2025-03-22 20:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:31:05' and `end` < '2025-03-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-03-22 20:31:18] Production.INFO: count ==1958 [2025-03-22 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:31:05 - End Time 2025-03-22 20:31:05 [2025-03-22 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739975', 'tblTempUsageDetail_20' ) start [2025-03-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739975', 'tblTempUsageDetail_20' ) end [2025-03-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739975', 'tblTempVendorCDR_20' ) start [2025-03-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739975', 'tblTempVendorCDR_20' ) end [2025-03-22 20:31:18] Production.INFO: ProcessCDR(1,14739975,1,1,2) [2025-03-22 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739975', 'tblTempUsageDetail_20' ) start [2025-03-22 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739975', 'tblTempUsageDetail_20' ) end [2025-03-22 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:31:22] Production.INFO: ==2172== Releasing lock... [2025-03-22 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:31:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-22 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:32:05 [end_date_ymd] => 2025-03-22 20:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:32:05' and `end` < '2025-03-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-03-22 20:32:17] Production.INFO: count ==1940 [2025-03-22 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:32:05 - End Time 2025-03-22 20:32:05 [2025-03-22 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739980', 'tblTempUsageDetail_20' ) start [2025-03-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739980', 'tblTempUsageDetail_20' ) end [2025-03-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739980', 'tblTempVendorCDR_20' ) start [2025-03-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739980', 'tblTempVendorCDR_20' ) end [2025-03-22 20:32:18] Production.INFO: ProcessCDR(1,14739980,1,1,2) [2025-03-22 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739980', 'tblTempUsageDetail_20' ) start [2025-03-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739980', 'tblTempUsageDetail_20' ) end [2025-03-22 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:32:21] Production.INFO: ==2256== Releasing lock... [2025-03-22 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:32:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-22 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:33:05 [end_date_ymd] => 2025-03-22 20:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:33:05' and `end` < '2025-03-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-03-22 20:33:17] Production.INFO: count ==1947 [2025-03-22 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:33:05 - End Time 2025-03-22 20:33:05 [2025-03-22 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739985', 'tblTempUsageDetail_20' ) start [2025-03-22 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739985', 'tblTempUsageDetail_20' ) end [2025-03-22 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739985', 'tblTempVendorCDR_20' ) start [2025-03-22 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739985', 'tblTempVendorCDR_20' ) end [2025-03-22 20:33:18] Production.INFO: ProcessCDR(1,14739985,1,1,2) [2025-03-22 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739985', 'tblTempUsageDetail_20' ) start [2025-03-22 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739985', 'tblTempUsageDetail_20' ) end [2025-03-22 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:33:23] Production.INFO: ==2338== Releasing lock... [2025-03-22 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:33:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:34:05 [end_date_ymd] => 2025-03-22 20:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:34:05' and `end` < '2025-03-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-03-22 20:34:17] Production.INFO: count ==1951 [2025-03-22 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:34:05 - End Time 2025-03-22 20:34:05 [2025-03-22 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739990', 'tblTempUsageDetail_20' ) start [2025-03-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739990', 'tblTempUsageDetail_20' ) end [2025-03-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739990', 'tblTempVendorCDR_20' ) start [2025-03-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739990', 'tblTempVendorCDR_20' ) end [2025-03-22 20:34:18] Production.INFO: ProcessCDR(1,14739990,1,1,2) [2025-03-22 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739990', 'tblTempUsageDetail_20' ) start [2025-03-22 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739990', 'tblTempUsageDetail_20' ) end [2025-03-22 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:34:21] Production.INFO: ==2420== Releasing lock... [2025-03-22 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:34:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:35:05 [end_date_ymd] => 2025-03-22 20:35:05 [RateCDR] => 1 ) [2025-03-22 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:35:05' and `end` < '2025-03-22 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:35:18] Production.INFO: count ==1948 [2025-03-22 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:35:05 - End Time 2025-03-22 20:35:05 [2025-03-22 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739995', 'tblTempUsageDetail_20' ) start [2025-03-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14739995', 'tblTempUsageDetail_20' ) end [2025-03-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739995', 'tblTempVendorCDR_20' ) start [2025-03-22 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14739995', 'tblTempVendorCDR_20' ) end [2025-03-22 20:35:18] Production.INFO: ProcessCDR(1,14739995,1,1,2) [2025-03-22 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14739995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14739995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14739995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14739995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739995', 'tblTempUsageDetail_20' ) start [2025-03-22 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14739995', 'tblTempUsageDetail_20' ) end [2025-03-22 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:35:21] Production.INFO: ==2505== Releasing lock... [2025-03-22 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:35:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-22 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:36:06 [end_date_ymd] => 2025-03-22 20:36:06 [RateCDR] => 1 ) [2025-03-22 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:36:06' and `end` < '2025-03-22 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:36:18] Production.INFO: count ==1950 [2025-03-22 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:36:06 - End Time 2025-03-22 20:36:06 [2025-03-22 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740000', 'tblTempUsageDetail_20' ) start [2025-03-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740000', 'tblTempUsageDetail_20' ) end [2025-03-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740000', 'tblTempVendorCDR_20' ) start [2025-03-22 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740000', 'tblTempVendorCDR_20' ) end [2025-03-22 20:36:19] Production.INFO: ProcessCDR(1,14740000,1,1,2) [2025-03-22 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740000', 'tblTempUsageDetail_20' ) start [2025-03-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740000', 'tblTempUsageDetail_20' ) end [2025-03-22 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:36:22] Production.INFO: ==2585== Releasing lock... [2025-03-22 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:36:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:37:05 [end_date_ymd] => 2025-03-22 20:37:05 [RateCDR] => 1 ) [2025-03-22 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:37:05' and `end` < '2025-03-22 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:37:17] Production.INFO: count ==1947 [2025-03-22 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:37:05 - End Time 2025-03-22 20:37:05 [2025-03-22 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740005', 'tblTempUsageDetail_20' ) start [2025-03-22 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740005', 'tblTempUsageDetail_20' ) end [2025-03-22 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740005', 'tblTempVendorCDR_20' ) start [2025-03-22 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740005', 'tblTempVendorCDR_20' ) end [2025-03-22 20:37:18] Production.INFO: ProcessCDR(1,14740005,1,1,2) [2025-03-22 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740005', 'tblTempUsageDetail_20' ) start [2025-03-22 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740005', 'tblTempUsageDetail_20' ) end [2025-03-22 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:37:21] Production.INFO: ==2663== Releasing lock... [2025-03-22 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:37:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-22 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:38:05 [end_date_ymd] => 2025-03-22 20:38:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:38:05' and `end` < '2025-03-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-03-22 20:38:17] Production.INFO: count ==1944 [2025-03-22 20:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:38:05 - End Time 2025-03-22 20:38:05 [2025-03-22 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740010', 'tblTempUsageDetail_20' ) start [2025-03-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740010', 'tblTempUsageDetail_20' ) end [2025-03-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740010', 'tblTempVendorCDR_20' ) start [2025-03-22 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740010', 'tblTempVendorCDR_20' ) end [2025-03-22 20:38:18] Production.INFO: ProcessCDR(1,14740010,1,1,2) [2025-03-22 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740010', 'tblTempUsageDetail_20' ) start [2025-03-22 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740010', 'tblTempUsageDetail_20' ) end [2025-03-22 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:38:21] Production.INFO: ==2743== Releasing lock... [2025-03-22 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:38:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-22 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:39:05 [end_date_ymd] => 2025-03-22 20:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:39:05' and `end` < '2025-03-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-03-22 20:39:17] Production.INFO: count ==1931 [2025-03-22 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:39:05 - End Time 2025-03-22 20:39:05 [2025-03-22 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740015', 'tblTempUsageDetail_20' ) start [2025-03-22 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740015', 'tblTempUsageDetail_20' ) end [2025-03-22 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740015', 'tblTempVendorCDR_20' ) start [2025-03-22 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740015', 'tblTempVendorCDR_20' ) end [2025-03-22 20:39:18] Production.INFO: ProcessCDR(1,14740015,1,1,2) [2025-03-22 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740015', 'tblTempUsageDetail_20' ) start [2025-03-22 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740015', 'tblTempUsageDetail_20' ) end [2025-03-22 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:39:21] Production.INFO: ==2821== Releasing lock... [2025-03-22 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:39:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-22 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:40:06 [end_date_ymd] => 2025-03-22 20:40:06 [RateCDR] => 1 ) [2025-03-22 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:40:06' and `end` < '2025-03-22 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:40:18] Production.INFO: count ==1936 [2025-03-22 20:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:40:06 - End Time 2025-03-22 20:40:06 [2025-03-22 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740020', 'tblTempUsageDetail_20' ) start [2025-03-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740020', 'tblTempUsageDetail_20' ) end [2025-03-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740020', 'tblTempVendorCDR_20' ) start [2025-03-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740020', 'tblTempVendorCDR_20' ) end [2025-03-22 20:40:18] Production.INFO: ProcessCDR(1,14740020,1,1,2) [2025-03-22 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740020', 'tblTempUsageDetail_20' ) start [2025-03-22 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740020', 'tblTempUsageDetail_20' ) end [2025-03-22 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:40:24] Production.INFO: ==2903== Releasing lock... [2025-03-22 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:40:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-22 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:41:05 [end_date_ymd] => 2025-03-22 20:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:41:05' and `end` < '2025-03-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-03-22 20:41:17] Production.INFO: count ==1874 [2025-03-22 20:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:41:05 - End Time 2025-03-22 20:41:05 [2025-03-22 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740026', 'tblTempUsageDetail_20' ) start [2025-03-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740026', 'tblTempUsageDetail_20' ) end [2025-03-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740026', 'tblTempVendorCDR_20' ) start [2025-03-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740026', 'tblTempVendorCDR_20' ) end [2025-03-22 20:41:17] Production.INFO: ProcessCDR(1,14740026,1,1,2) [2025-03-22 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740026', 'tblTempUsageDetail_20' ) start [2025-03-22 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740026', 'tblTempUsageDetail_20' ) end [2025-03-22 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:41:22] Production.INFO: ==2983== Releasing lock... [2025-03-22 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:41:22] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:42:05 [end_date_ymd] => 2025-03-22 20:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:42:05' and `end` < '2025-03-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-03-22 20:42:17] Production.INFO: count ==1874 [2025-03-22 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:42:05 - End Time 2025-03-22 20:42:05 [2025-03-22 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740031', 'tblTempUsageDetail_20' ) start [2025-03-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740031', 'tblTempUsageDetail_20' ) end [2025-03-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740031', 'tblTempVendorCDR_20' ) start [2025-03-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740031', 'tblTempVendorCDR_20' ) end [2025-03-22 20:42:18] Production.INFO: ProcessCDR(1,14740031,1,1,2) [2025-03-22 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740031', 'tblTempUsageDetail_20' ) start [2025-03-22 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740031', 'tblTempUsageDetail_20' ) end [2025-03-22 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:42:21] Production.INFO: ==3059== Releasing lock... [2025-03-22 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:42:21] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:43:05 [end_date_ymd] => 2025-03-22 20:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:43:05' and `end` < '2025-03-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-03-22 20:43:17] Production.INFO: count ==1872 [2025-03-22 20:43:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:43:05 - End Time 2025-03-22 20:43:05 [2025-03-22 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740036', 'tblTempUsageDetail_20' ) start [2025-03-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740036', 'tblTempUsageDetail_20' ) end [2025-03-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740036', 'tblTempVendorCDR_20' ) start [2025-03-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740036', 'tblTempVendorCDR_20' ) end [2025-03-22 20:43:17] Production.INFO: ProcessCDR(1,14740036,1,1,2) [2025-03-22 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740036', 'tblTempUsageDetail_20' ) start [2025-03-22 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740036', 'tblTempUsageDetail_20' ) end [2025-03-22 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:43:22] Production.INFO: ==3171== Releasing lock... [2025-03-22 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:43:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:44:05 [end_date_ymd] => 2025-03-22 20:44:05 [RateCDR] => 1 ) [2025-03-22 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:44:05' and `end` < '2025-03-22 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:44:18] Production.INFO: count ==1873 [2025-03-22 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:44:05 - End Time 2025-03-22 20:44:05 [2025-03-22 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740041', 'tblTempUsageDetail_20' ) start [2025-03-22 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740041', 'tblTempUsageDetail_20' ) end [2025-03-22 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740041', 'tblTempVendorCDR_20' ) start [2025-03-22 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740041', 'tblTempVendorCDR_20' ) end [2025-03-22 20:44:18] Production.INFO: ProcessCDR(1,14740041,1,1,2) [2025-03-22 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740041', 'tblTempUsageDetail_20' ) start [2025-03-22 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740041', 'tblTempUsageDetail_20' ) end [2025-03-22 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:44:22] Production.INFO: ==3245== Releasing lock... [2025-03-22 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:44:22] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:45:05 [end_date_ymd] => 2025-03-22 20:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:45:05' and `end` < '2025-03-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-03-22 20:45:17] Production.INFO: count ==1875 [2025-03-22 20:45:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:45:05 - End Time 2025-03-22 20:45:05 [2025-03-22 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740046', 'tblTempUsageDetail_20' ) start [2025-03-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740046', 'tblTempUsageDetail_20' ) end [2025-03-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740046', 'tblTempVendorCDR_20' ) start [2025-03-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740046', 'tblTempVendorCDR_20' ) end [2025-03-22 20:45:17] Production.INFO: ProcessCDR(1,14740046,1,1,2) [2025-03-22 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740046', 'tblTempUsageDetail_20' ) start [2025-03-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740046', 'tblTempUsageDetail_20' ) end [2025-03-22 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:45:21] Production.INFO: ==3320== Releasing lock... [2025-03-22 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:45:21] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:46:05 [end_date_ymd] => 2025-03-22 20:46:05 [RateCDR] => 1 ) [2025-03-22 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:46:05' and `end` < '2025-03-22 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:46:18] Production.INFO: count ==1869 [2025-03-22 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:46:05 - End Time 2025-03-22 20:46:05 [2025-03-22 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740051', 'tblTempUsageDetail_20' ) start [2025-03-22 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740051', 'tblTempUsageDetail_20' ) end [2025-03-22 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740051', 'tblTempVendorCDR_20' ) start [2025-03-22 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740051', 'tblTempVendorCDR_20' ) end [2025-03-22 20:46:18] Production.INFO: ProcessCDR(1,14740051,1,1,2) [2025-03-22 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740051', 'tblTempUsageDetail_20' ) start [2025-03-22 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740051', 'tblTempUsageDetail_20' ) end [2025-03-22 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:46:22] Production.INFO: ==3392== Releasing lock... [2025-03-22 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:46:22] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:47:06 [end_date_ymd] => 2025-03-22 20:47:06 [RateCDR] => 1 ) [2025-03-22 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:47:06' and `end` < '2025-03-22 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:47:18] Production.INFO: count ==1857 [2025-03-22 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:47:06 - End Time 2025-03-22 20:47:06 [2025-03-22 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740056', 'tblTempUsageDetail_20' ) start [2025-03-22 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740056', 'tblTempUsageDetail_20' ) end [2025-03-22 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740056', 'tblTempVendorCDR_20' ) start [2025-03-22 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740056', 'tblTempVendorCDR_20' ) end [2025-03-22 20:47:19] Production.INFO: ProcessCDR(1,14740056,1,1,2) [2025-03-22 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740056', 'tblTempUsageDetail_20' ) start [2025-03-22 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740056', 'tblTempUsageDetail_20' ) end [2025-03-22 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:47:22] Production.INFO: ==3469== Releasing lock... [2025-03-22 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:47:22] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:48:05 [end_date_ymd] => 2025-03-22 20:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:48:05' and `end` < '2025-03-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-03-22 20:48:17] Production.INFO: count ==1858 [2025-03-22 20:48:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:48:05 - End Time 2025-03-22 20:48:05 [2025-03-22 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740061', 'tblTempUsageDetail_20' ) start [2025-03-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740061', 'tblTempUsageDetail_20' ) end [2025-03-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740061', 'tblTempVendorCDR_20' ) start [2025-03-22 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740061', 'tblTempVendorCDR_20' ) end [2025-03-22 20:48:18] Production.INFO: ProcessCDR(1,14740061,1,1,2) [2025-03-22 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740061', 'tblTempUsageDetail_20' ) start [2025-03-22 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740061', 'tblTempUsageDetail_20' ) end [2025-03-22 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:48:21] Production.INFO: ==3542== Releasing lock... [2025-03-22 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:48:21] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:49:06 [end_date_ymd] => 2025-03-22 20:49:06 [RateCDR] => 1 ) [2025-03-22 20:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:49:06' and `end` < '2025-03-22 20:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:49:18] Production.INFO: count ==1859 [2025-03-22 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:49:06 - End Time 2025-03-22 20:49:06 [2025-03-22 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740066', 'tblTempUsageDetail_20' ) start [2025-03-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740066', 'tblTempUsageDetail_20' ) end [2025-03-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740066', 'tblTempVendorCDR_20' ) start [2025-03-22 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740066', 'tblTempVendorCDR_20' ) end [2025-03-22 20:49:18] Production.INFO: ProcessCDR(1,14740066,1,1,2) [2025-03-22 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740066', 'tblTempUsageDetail_20' ) start [2025-03-22 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740066', 'tblTempUsageDetail_20' ) end [2025-03-22 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:49:23] Production.INFO: ==3620== Releasing lock... [2025-03-22 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:49:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:50:05 [end_date_ymd] => 2025-03-22 20:50:05 [RateCDR] => 1 ) [2025-03-22 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:50:05' and `end` < '2025-03-22 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:50:18] Production.INFO: count ==1856 [2025-03-22 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 17:50:05 - End Time 2025-03-22 20:50:05 [2025-03-22 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740072', 'tblTempUsageDetail_20' ) start [2025-03-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740072', 'tblTempUsageDetail_20' ) end [2025-03-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740072', 'tblTempVendorCDR_20' ) start [2025-03-22 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740072', 'tblTempVendorCDR_20' ) end [2025-03-22 20:50:19] Production.INFO: ProcessCDR(1,14740072,1,1,2) [2025-03-22 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740072', 'tblTempUsageDetail_20' ) start [2025-03-22 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740072', 'tblTempUsageDetail_20' ) end [2025-03-22 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:50:24] Production.INFO: ==3695== Releasing lock... [2025-03-22 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:50:24] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:51:06 [end_date_ymd] => 2025-03-22 20:51:06 [RateCDR] => 1 ) [2025-03-22 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:51:06' and `end` < '2025-03-22 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:51:18] Production.INFO: count ==1853 [2025-03-22 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:51:06 - End Time 2025-03-22 20:51:06 [2025-03-22 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740077', 'tblTempUsageDetail_20' ) start [2025-03-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740077', 'tblTempUsageDetail_20' ) end [2025-03-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740077', 'tblTempVendorCDR_20' ) start [2025-03-22 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740077', 'tblTempVendorCDR_20' ) end [2025-03-22 20:51:19] Production.INFO: ProcessCDR(1,14740077,1,1,2) [2025-03-22 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740077', 'tblTempUsageDetail_20' ) start [2025-03-22 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740077', 'tblTempUsageDetail_20' ) end [2025-03-22 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:51:22] Production.INFO: ==3774== Releasing lock... [2025-03-22 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:51:22] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:52:05 [end_date_ymd] => 2025-03-22 20:52:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:52:05' and `end` < '2025-03-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-03-22 20:52:17] Production.INFO: count ==1854 [2025-03-22 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:52:05 - End Time 2025-03-22 20:52:05 [2025-03-22 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740082', 'tblTempUsageDetail_20' ) start [2025-03-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740082', 'tblTempUsageDetail_20' ) end [2025-03-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740082', 'tblTempVendorCDR_20' ) start [2025-03-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740082', 'tblTempVendorCDR_20' ) end [2025-03-22 20:52:18] Production.INFO: ProcessCDR(1,14740082,1,1,2) [2025-03-22 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740082', 'tblTempUsageDetail_20' ) start [2025-03-22 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740082', 'tblTempUsageDetail_20' ) end [2025-03-22 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:52:21] Production.INFO: ==3849== Releasing lock... [2025-03-22 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:52:21] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:53:05 [end_date_ymd] => 2025-03-22 20:53:05 [RateCDR] => 1 ) [2025-03-22 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:53:05' and `end` < '2025-03-22 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:53:18] Production.INFO: count ==1855 [2025-03-22 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:53:05 - End Time 2025-03-22 20:53:05 [2025-03-22 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740087', 'tblTempUsageDetail_20' ) start [2025-03-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740087', 'tblTempUsageDetail_20' ) end [2025-03-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740087', 'tblTempVendorCDR_20' ) start [2025-03-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740087', 'tblTempVendorCDR_20' ) end [2025-03-22 20:53:18] Production.INFO: ProcessCDR(1,14740087,1,1,2) [2025-03-22 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740087', 'tblTempUsageDetail_20' ) start [2025-03-22 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740087', 'tblTempUsageDetail_20' ) end [2025-03-22 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:53:23] Production.INFO: ==3923== Releasing lock... [2025-03-22 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:53:23] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:54:04 [end_date_ymd] => 2025-03-22 20:54:04 [RateCDR] => 1 ) [2025-03-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-03-22 17:54:04' and `end` < '2025-03-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-03-22 20:54:17] Production.INFO: count ==1851 [2025-03-22 20:54:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:54:04 - End Time 2025-03-22 20:54:04 [2025-03-22 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740092', 'tblTempUsageDetail_20' ) start [2025-03-22 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740092', 'tblTempUsageDetail_20' ) end [2025-03-22 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740092', 'tblTempVendorCDR_20' ) start [2025-03-22 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740092', 'tblTempVendorCDR_20' ) end [2025-03-22 20:54:17] Production.INFO: ProcessCDR(1,14740092,1,1,2) [2025-03-22 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740092', 'tblTempUsageDetail_20' ) start [2025-03-22 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740092', 'tblTempUsageDetail_20' ) end [2025-03-22 20:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:54:20] Production.INFO: ==3994== Releasing lock... [2025-03-22 20:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:54:20] Production.INFO: 42 MB #Memory Used# [2025-03-22 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:55:05 [end_date_ymd] => 2025-03-22 20:55:05 [RateCDR] => 1 ) [2025-03-22 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:55:05' and `end` < '2025-03-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-03-22 20:55:18] Production.INFO: count ==1838 [2025-03-22 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:55:05 - End Time 2025-03-22 20:55:05 [2025-03-22 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740097', 'tblTempUsageDetail_20' ) start [2025-03-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740097', 'tblTempUsageDetail_20' ) end [2025-03-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740097', 'tblTempVendorCDR_20' ) start [2025-03-22 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740097', 'tblTempVendorCDR_20' ) end [2025-03-22 20:55:18] Production.INFO: ProcessCDR(1,14740097,1,1,2) [2025-03-22 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740097', 'tblTempUsageDetail_20' ) start [2025-03-22 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740097', 'tblTempUsageDetail_20' ) end [2025-03-22 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:55:23] Production.INFO: ==4071== Releasing lock... [2025-03-22 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:55:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:56:05 [end_date_ymd] => 2025-03-22 20:56:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:56:05' and `end` < '2025-03-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-03-22 20:56:17] Production.INFO: count ==1839 [2025-03-22 20:56:17] Production.ERROR: pbx CDR StartTime 2025-03-22 17:56:05 - End Time 2025-03-22 20:56:05 [2025-03-22 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740102', 'tblTempUsageDetail_20' ) start [2025-03-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740102', 'tblTempUsageDetail_20' ) end [2025-03-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740102', 'tblTempVendorCDR_20' ) start [2025-03-22 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740102', 'tblTempVendorCDR_20' ) end [2025-03-22 20:56:18] Production.INFO: ProcessCDR(1,14740102,1,1,2) [2025-03-22 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740102', 'tblTempUsageDetail_20' ) start [2025-03-22 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740102', 'tblTempUsageDetail_20' ) end [2025-03-22 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:56:21] Production.INFO: ==4144== Releasing lock... [2025-03-22 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:56:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-22 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:57:05 [end_date_ymd] => 2025-03-22 20:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 17:57:05' and `end` < '2025-03-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-03-22 20:57:17] Production.INFO: count ==1838 [2025-03-22 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:57:05 - End Time 2025-03-22 20:57:05 [2025-03-22 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740107', 'tblTempUsageDetail_20' ) start [2025-03-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740107', 'tblTempUsageDetail_20' ) end [2025-03-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740107', 'tblTempVendorCDR_20' ) start [2025-03-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740107', 'tblTempVendorCDR_20' ) end [2025-03-22 20:57:18] Production.INFO: ProcessCDR(1,14740107,1,1,2) [2025-03-22 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740107', 'tblTempUsageDetail_20' ) start [2025-03-22 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740107', 'tblTempUsageDetail_20' ) end [2025-03-22 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:57:21] Production.INFO: ==4224== Releasing lock... [2025-03-22 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:57:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-22 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:58:06 [end_date_ymd] => 2025-03-22 20:58:06 [RateCDR] => 1 ) [2025-03-22 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:58:06' and `end` < '2025-03-22 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:58:18] Production.INFO: count ==1834 [2025-03-22 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:58:06 - End Time 2025-03-22 20:58:06 [2025-03-22 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740112', 'tblTempUsageDetail_20' ) start [2025-03-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740112', 'tblTempUsageDetail_20' ) end [2025-03-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740112', 'tblTempVendorCDR_20' ) start [2025-03-22 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740112', 'tblTempVendorCDR_20' ) end [2025-03-22 20:58:18] Production.INFO: ProcessCDR(1,14740112,1,1,2) [2025-03-22 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740112', 'tblTempUsageDetail_20' ) start [2025-03-22 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740112', 'tblTempUsageDetail_20' ) end [2025-03-22 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:58:23] Production.INFO: ==4301== Releasing lock... [2025-03-22 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:58:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 17:59:05 [end_date_ymd] => 2025-03-22 20:59:05 [RateCDR] => 1 ) [2025-03-22 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 17:59:05' and `end` < '2025-03-22 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 20:59:17] Production.INFO: count ==1836 [2025-03-22 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 17:59:05 - End Time 2025-03-22 20:59:05 [2025-03-22 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740117', 'tblTempUsageDetail_20' ) start [2025-03-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740117', 'tblTempUsageDetail_20' ) end [2025-03-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740117', 'tblTempVendorCDR_20' ) start [2025-03-22 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740117', 'tblTempVendorCDR_20' ) end [2025-03-22 20:59:18] Production.INFO: ProcessCDR(1,14740117,1,1,2) [2025-03-22 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740117', 'tblTempUsageDetail_20' ) start [2025-03-22 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740117', 'tblTempUsageDetail_20' ) end [2025-03-22 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 20:59:21] Production.INFO: ==4415== Releasing lock... [2025-03-22 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 20:59:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:00:06 [end_date_ymd] => 2025-03-22 21:00:06 [RateCDR] => 1 ) [2025-03-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-03-22 18:00:06' and `end` < '2025-03-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-03-22 21:00:18] Production.INFO: count ==1826 [2025-03-22 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:00:06 - End Time 2025-03-22 21:00:06 [2025-03-22 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740123', 'tblTempUsageDetail_20' ) start [2025-03-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740123', 'tblTempUsageDetail_20' ) end [2025-03-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740123', 'tblTempVendorCDR_20' ) start [2025-03-22 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740123', 'tblTempVendorCDR_20' ) end [2025-03-22 21:00:19] Production.INFO: ProcessCDR(1,14740123,1,1,2) [2025-03-22 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740123', 'tblTempUsageDetail_20' ) start [2025-03-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740123', 'tblTempUsageDetail_20' ) end [2025-03-22 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:00:22] Production.INFO: ==4491== Releasing lock... [2025-03-22 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:00:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-22 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:01:05 [end_date_ymd] => 2025-03-22 21:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:01:05' and `end` < '2025-03-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-03-22 21:01:17] Production.INFO: count ==1770 [2025-03-22 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:01:05 - End Time 2025-03-22 21:01:05 [2025-03-22 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740128', 'tblTempUsageDetail_20' ) start [2025-03-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740128', 'tblTempUsageDetail_20' ) end [2025-03-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740128', 'tblTempVendorCDR_20' ) start [2025-03-22 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740128', 'tblTempVendorCDR_20' ) end [2025-03-22 21:01:18] Production.INFO: ProcessCDR(1,14740128,1,1,2) [2025-03-22 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740128', 'tblTempUsageDetail_20' ) start [2025-03-22 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740128', 'tblTempUsageDetail_20' ) end [2025-03-22 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:01:21] Production.INFO: ==4585== Releasing lock... [2025-03-22 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:01:21] Production.INFO: 41 MB #Memory Used# [2025-03-22 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:02:06 [end_date_ymd] => 2025-03-22 21:02:06 [RateCDR] => 1 ) [2025-03-22 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:02:06' and `end` < '2025-03-22 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:02:18] Production.INFO: count ==1765 [2025-03-22 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:02:06 - End Time 2025-03-22 21:02:06 [2025-03-22 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740133', 'tblTempUsageDetail_20' ) start [2025-03-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740133', 'tblTempUsageDetail_20' ) end [2025-03-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740133', 'tblTempVendorCDR_20' ) start [2025-03-22 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740133', 'tblTempVendorCDR_20' ) end [2025-03-22 21:02:19] Production.INFO: ProcessCDR(1,14740133,1,1,2) [2025-03-22 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740133', 'tblTempUsageDetail_20' ) start [2025-03-22 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740133', 'tblTempUsageDetail_20' ) end [2025-03-22 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:02:22] Production.INFO: ==4660== Releasing lock... [2025-03-22 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-22 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:03:05 [end_date_ymd] => 2025-03-22 21:03:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:03:05' and `end` < '2025-03-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-03-22 21:03:17] Production.INFO: count ==1757 [2025-03-22 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:03:05 - End Time 2025-03-22 21:03:05 [2025-03-22 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740138', 'tblTempUsageDetail_20' ) start [2025-03-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740138', 'tblTempUsageDetail_20' ) end [2025-03-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740138', 'tblTempVendorCDR_20' ) start [2025-03-22 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740138', 'tblTempVendorCDR_20' ) end [2025-03-22 21:03:18] Production.INFO: ProcessCDR(1,14740138,1,1,2) [2025-03-22 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740138', 'tblTempUsageDetail_20' ) start [2025-03-22 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740138', 'tblTempUsageDetail_20' ) end [2025-03-22 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:03:21] Production.INFO: ==4735== Releasing lock... [2025-03-22 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:03:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-22 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:04:05 [end_date_ymd] => 2025-03-22 21:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:04:05' and `end` < '2025-03-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-03-22 21:04:18] Production.INFO: count ==1746 [2025-03-22 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:04:05 - End Time 2025-03-22 21:04:05 [2025-03-22 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740143', 'tblTempUsageDetail_20' ) start [2025-03-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740143', 'tblTempUsageDetail_20' ) end [2025-03-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740143', 'tblTempVendorCDR_20' ) start [2025-03-22 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740143', 'tblTempVendorCDR_20' ) end [2025-03-22 21:04:18] Production.INFO: ProcessCDR(1,14740143,1,1,2) [2025-03-22 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740143', 'tblTempUsageDetail_20' ) start [2025-03-22 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740143', 'tblTempUsageDetail_20' ) end [2025-03-22 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:04:21] Production.INFO: ==4809== Releasing lock... [2025-03-22 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:04:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-22 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:05:05 [end_date_ymd] => 2025-03-22 21:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:05:05' and `end` < '2025-03-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-03-22 21:05:17] Production.INFO: count ==1745 [2025-03-22 21:05:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:05:05 - End Time 2025-03-22 21:05:05 [2025-03-22 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740148', 'tblTempUsageDetail_20' ) start [2025-03-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740148', 'tblTempUsageDetail_20' ) end [2025-03-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740148', 'tblTempVendorCDR_20' ) start [2025-03-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740148', 'tblTempVendorCDR_20' ) end [2025-03-22 21:05:17] Production.INFO: ProcessCDR(1,14740148,1,1,2) [2025-03-22 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740148', 'tblTempUsageDetail_20' ) start [2025-03-22 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740148', 'tblTempUsageDetail_20' ) end [2025-03-22 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:05:22] Production.INFO: ==4884== Releasing lock... [2025-03-22 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:05:22] Production.INFO: 41 MB #Memory Used# [2025-03-22 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:06:05 [end_date_ymd] => 2025-03-22 21:06:05 [RateCDR] => 1 ) [2025-03-22 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:06:05' and `end` < '2025-03-22 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:06:18] Production.INFO: count ==1748 [2025-03-22 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:06:05 - End Time 2025-03-22 21:06:05 [2025-03-22 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740153', 'tblTempUsageDetail_20' ) start [2025-03-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740153', 'tblTempUsageDetail_20' ) end [2025-03-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740153', 'tblTempVendorCDR_20' ) start [2025-03-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740153', 'tblTempVendorCDR_20' ) end [2025-03-22 21:06:18] Production.INFO: ProcessCDR(1,14740153,1,1,2) [2025-03-22 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740153', 'tblTempUsageDetail_20' ) start [2025-03-22 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740153', 'tblTempUsageDetail_20' ) end [2025-03-22 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:06:21] Production.INFO: ==4957== Releasing lock... [2025-03-22 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:06:21] Production.INFO: 41 MB #Memory Used# [2025-03-22 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:07:05 [end_date_ymd] => 2025-03-22 21:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:07:05' and `end` < '2025-03-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-03-22 21:07:17] Production.INFO: count ==1751 [2025-03-22 21:07:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:07:05 - End Time 2025-03-22 21:07:05 [2025-03-22 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740158', 'tblTempUsageDetail_20' ) start [2025-03-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740158', 'tblTempUsageDetail_20' ) end [2025-03-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740158', 'tblTempVendorCDR_20' ) start [2025-03-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740158', 'tblTempVendorCDR_20' ) end [2025-03-22 21:07:17] Production.INFO: ProcessCDR(1,14740158,1,1,2) [2025-03-22 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740158', 'tblTempUsageDetail_20' ) start [2025-03-22 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740158', 'tblTempUsageDetail_20' ) end [2025-03-22 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:07:22] Production.INFO: ==5028== Releasing lock... [2025-03-22 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:07:22] Production.INFO: 41 MB #Memory Used# [2025-03-22 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:08:05 [end_date_ymd] => 2025-03-22 21:08:05 [RateCDR] => 1 ) [2025-03-22 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:08:05' and `end` < '2025-03-22 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:08:17] Production.INFO: count ==1760 [2025-03-22 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:08:05 - End Time 2025-03-22 21:08:05 [2025-03-22 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740163', 'tblTempUsageDetail_20' ) start [2025-03-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740163', 'tblTempUsageDetail_20' ) end [2025-03-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740163', 'tblTempVendorCDR_20' ) start [2025-03-22 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740163', 'tblTempVendorCDR_20' ) end [2025-03-22 21:08:18] Production.INFO: ProcessCDR(1,14740163,1,1,2) [2025-03-22 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740163', 'tblTempUsageDetail_20' ) start [2025-03-22 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740163', 'tblTempUsageDetail_20' ) end [2025-03-22 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:08:23] Production.INFO: ==5101== Releasing lock... [2025-03-22 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:08:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-22 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:09:05 [end_date_ymd] => 2025-03-22 21:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:09:05' and `end` < '2025-03-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-03-22 21:09:18] Production.INFO: count ==1701 [2025-03-22 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:09:05 - End Time 2025-03-22 21:09:05 [2025-03-22 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740168', 'tblTempUsageDetail_20' ) start [2025-03-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740168', 'tblTempUsageDetail_20' ) end [2025-03-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740168', 'tblTempVendorCDR_20' ) start [2025-03-22 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740168', 'tblTempVendorCDR_20' ) end [2025-03-22 21:09:18] Production.INFO: ProcessCDR(1,14740168,1,1,2) [2025-03-22 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740168', 'tblTempUsageDetail_20' ) start [2025-03-22 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740168', 'tblTempUsageDetail_20' ) end [2025-03-22 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:09:22] Production.INFO: ==5176== Releasing lock... [2025-03-22 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:09:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-22 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:10:06 [end_date_ymd] => 2025-03-22 21:10:06 [RateCDR] => 1 ) [2025-03-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-03-22 18:10:06' and `end` < '2025-03-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-03-22 21:10:18] Production.INFO: count ==1700 [2025-03-22 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:10:06 - End Time 2025-03-22 21:10:06 [2025-03-22 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740174', 'tblTempUsageDetail_20' ) start [2025-03-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740174', 'tblTempUsageDetail_20' ) end [2025-03-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740174', 'tblTempVendorCDR_20' ) start [2025-03-22 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740174', 'tblTempVendorCDR_20' ) end [2025-03-22 21:10:19] Production.INFO: ProcessCDR(1,14740174,1,1,2) [2025-03-22 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740174', 'tblTempUsageDetail_20' ) start [2025-03-22 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740174', 'tblTempUsageDetail_20' ) end [2025-03-22 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:10:22] Production.INFO: ==5259== Releasing lock... [2025-03-22 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:10:22] Production.INFO: 41 MB #Memory Used# [2025-03-22 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:11:05 [end_date_ymd] => 2025-03-22 21:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:11:05' and `end` < '2025-03-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-03-22 21:11:17] Production.INFO: count ==1649 [2025-03-22 21:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:11:05 - End Time 2025-03-22 21:11:05 [2025-03-22 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740179', 'tblTempUsageDetail_20' ) start [2025-03-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740179', 'tblTempUsageDetail_20' ) end [2025-03-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740179', 'tblTempVendorCDR_20' ) start [2025-03-22 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740179', 'tblTempVendorCDR_20' ) end [2025-03-22 21:11:17] Production.INFO: ProcessCDR(1,14740179,1,1,2) [2025-03-22 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740179', 'tblTempUsageDetail_20' ) start [2025-03-22 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740179', 'tblTempUsageDetail_20' ) end [2025-03-22 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:11:21] Production.INFO: ==5336== Releasing lock... [2025-03-22 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:11:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:12:05 [end_date_ymd] => 2025-03-22 21:12:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:12:05' and `end` < '2025-03-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-03-22 21:12:18] Production.INFO: count ==1650 [2025-03-22 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:12:05 - End Time 2025-03-22 21:12:05 [2025-03-22 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740184', 'tblTempUsageDetail_20' ) start [2025-03-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740184', 'tblTempUsageDetail_20' ) end [2025-03-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740184', 'tblTempVendorCDR_20' ) start [2025-03-22 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740184', 'tblTempVendorCDR_20' ) end [2025-03-22 21:12:18] Production.INFO: ProcessCDR(1,14740184,1,1,2) [2025-03-22 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740184', 'tblTempUsageDetail_20' ) start [2025-03-22 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740184', 'tblTempUsageDetail_20' ) end [2025-03-22 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:12:21] Production.INFO: ==5414== Releasing lock... [2025-03-22 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:12:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:13:06 [end_date_ymd] => 2025-03-22 21:13:06 [RateCDR] => 1 ) [2025-03-22 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:13:06' and `end` < '2025-03-22 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:13:18] Production.INFO: count ==1649 [2025-03-22 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:13:06 - End Time 2025-03-22 21:13:06 [2025-03-22 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740189', 'tblTempUsageDetail_20' ) start [2025-03-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740189', 'tblTempUsageDetail_20' ) end [2025-03-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740189', 'tblTempVendorCDR_20' ) start [2025-03-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740189', 'tblTempVendorCDR_20' ) end [2025-03-22 21:13:18] Production.INFO: ProcessCDR(1,14740189,1,1,2) [2025-03-22 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740189', 'tblTempUsageDetail_20' ) start [2025-03-22 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740189', 'tblTempUsageDetail_20' ) end [2025-03-22 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:13:22] Production.INFO: ==5487== Releasing lock... [2025-03-22 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:13:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:14:05 [end_date_ymd] => 2025-03-22 21:14:05 [RateCDR] => 1 ) [2025-03-22 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:14:05' and `end` < '2025-03-22 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:14:17] Production.INFO: count ==1654 [2025-03-22 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:14:05 - End Time 2025-03-22 21:14:05 [2025-03-22 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740194', 'tblTempUsageDetail_20' ) start [2025-03-22 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740194', 'tblTempUsageDetail_20' ) end [2025-03-22 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740194', 'tblTempVendorCDR_20' ) start [2025-03-22 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740194', 'tblTempVendorCDR_20' ) end [2025-03-22 21:14:18] Production.INFO: ProcessCDR(1,14740194,1,1,2) [2025-03-22 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740194', 'tblTempUsageDetail_20' ) start [2025-03-22 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740194', 'tblTempUsageDetail_20' ) end [2025-03-22 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:14:23] Production.INFO: ==5600== Releasing lock... [2025-03-22 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:14:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:15:05 [end_date_ymd] => 2025-03-22 21:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:15:05' and `end` < '2025-03-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-03-22 21:15:18] Production.INFO: count ==1647 [2025-03-22 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:15:05 - End Time 2025-03-22 21:15:05 [2025-03-22 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740199', 'tblTempUsageDetail_20' ) start [2025-03-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740199', 'tblTempUsageDetail_20' ) end [2025-03-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740199', 'tblTempVendorCDR_20' ) start [2025-03-22 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740199', 'tblTempVendorCDR_20' ) end [2025-03-22 21:15:18] Production.INFO: ProcessCDR(1,14740199,1,1,2) [2025-03-22 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740199', 'tblTempUsageDetail_20' ) start [2025-03-22 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740199', 'tblTempUsageDetail_20' ) end [2025-03-22 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:15:21] Production.INFO: ==5676== Releasing lock... [2025-03-22 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:15:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:16:05 [end_date_ymd] => 2025-03-22 21:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:16:05' and `end` < '2025-03-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-03-22 21:16:18] Production.INFO: count ==1642 [2025-03-22 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:16:05 - End Time 2025-03-22 21:16:05 [2025-03-22 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740204', 'tblTempUsageDetail_20' ) start [2025-03-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740204', 'tblTempUsageDetail_20' ) end [2025-03-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740204', 'tblTempVendorCDR_20' ) start [2025-03-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740204', 'tblTempVendorCDR_20' ) end [2025-03-22 21:16:18] Production.INFO: ProcessCDR(1,14740204,1,1,2) [2025-03-22 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740204', 'tblTempUsageDetail_20' ) start [2025-03-22 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740204', 'tblTempUsageDetail_20' ) end [2025-03-22 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:16:23] Production.INFO: ==5748== Releasing lock... [2025-03-22 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:16:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:17:05 [end_date_ymd] => 2025-03-22 21:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:17:05' and `end` < '2025-03-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-03-22 21:17:18] Production.INFO: count ==1643 [2025-03-22 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:17:05 - End Time 2025-03-22 21:17:05 [2025-03-22 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740209', 'tblTempUsageDetail_20' ) start [2025-03-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740209', 'tblTempUsageDetail_20' ) end [2025-03-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740209', 'tblTempVendorCDR_20' ) start [2025-03-22 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740209', 'tblTempVendorCDR_20' ) end [2025-03-22 21:17:18] Production.INFO: ProcessCDR(1,14740209,1,1,2) [2025-03-22 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740209', 'tblTempUsageDetail_20' ) start [2025-03-22 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740209', 'tblTempUsageDetail_20' ) end [2025-03-22 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:17:21] Production.INFO: ==5829== Releasing lock... [2025-03-22 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:17:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-22 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:18:06 [end_date_ymd] => 2025-03-22 21:18:06 [RateCDR] => 1 ) [2025-03-22 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:18:06' and `end` < '2025-03-22 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:18:18] Production.INFO: count ==1644 [2025-03-22 21:18:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:18:06 - End Time 2025-03-22 21:18:06 [2025-03-22 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740214', 'tblTempUsageDetail_20' ) start [2025-03-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740214', 'tblTempUsageDetail_20' ) end [2025-03-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740214', 'tblTempVendorCDR_20' ) start [2025-03-22 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740214', 'tblTempVendorCDR_20' ) end [2025-03-22 21:18:19] Production.INFO: ProcessCDR(1,14740214,1,1,2) [2025-03-22 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740214', 'tblTempUsageDetail_20' ) start [2025-03-22 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740214', 'tblTempUsageDetail_20' ) end [2025-03-22 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:18:22] Production.INFO: ==5921== Releasing lock... [2025-03-22 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:18:22] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:19:05 [end_date_ymd] => 2025-03-22 21:19:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:19:05' and `end` < '2025-03-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-03-22 21:19:17] Production.INFO: count ==1652 [2025-03-22 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:19:05 - End Time 2025-03-22 21:19:05 [2025-03-22 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740219', 'tblTempUsageDetail_20' ) start [2025-03-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740219', 'tblTempUsageDetail_20' ) end [2025-03-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740219', 'tblTempVendorCDR_20' ) start [2025-03-22 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740219', 'tblTempVendorCDR_20' ) end [2025-03-22 21:19:18] Production.INFO: ProcessCDR(1,14740219,1,1,2) [2025-03-22 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740219', 'tblTempUsageDetail_20' ) start [2025-03-22 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740219', 'tblTempUsageDetail_20' ) end [2025-03-22 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:19:21] Production.INFO: ==5996== Releasing lock... [2025-03-22 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:19:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:20:06 [end_date_ymd] => 2025-03-22 21:20:06 [RateCDR] => 1 ) [2025-03-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-03-22 18:20:06' and `end` < '2025-03-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-03-22 21:20:19] Production.INFO: count ==1648 [2025-03-22 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:20:06 - End Time 2025-03-22 21:20:06 [2025-03-22 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740225', 'tblTempUsageDetail_20' ) start [2025-03-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740225', 'tblTempUsageDetail_20' ) end [2025-03-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740225', 'tblTempVendorCDR_20' ) start [2025-03-22 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740225', 'tblTempVendorCDR_20' ) end [2025-03-22 21:20:19] Production.INFO: ProcessCDR(1,14740225,1,1,2) [2025-03-22 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740225', 'tblTempUsageDetail_20' ) start [2025-03-22 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740225', 'tblTempUsageDetail_20' ) end [2025-03-22 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:20:22] Production.INFO: ==6074== Releasing lock... [2025-03-22 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:20:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:21:05 [end_date_ymd] => 2025-03-22 21:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:21:05' and `end` < '2025-03-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-03-22 21:21:17] Production.INFO: count ==1638 [2025-03-22 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:21:05 - End Time 2025-03-22 21:21:05 [2025-03-22 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740230', 'tblTempUsageDetail_20' ) start [2025-03-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740230', 'tblTempUsageDetail_20' ) end [2025-03-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740230', 'tblTempVendorCDR_20' ) start [2025-03-22 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740230', 'tblTempVendorCDR_20' ) end [2025-03-22 21:21:18] Production.INFO: ProcessCDR(1,14740230,1,1,2) [2025-03-22 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740230', 'tblTempUsageDetail_20' ) start [2025-03-22 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740230', 'tblTempUsageDetail_20' ) end [2025-03-22 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:21:22] Production.INFO: ==6153== Releasing lock... [2025-03-22 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:21:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-22 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:22:05 [end_date_ymd] => 2025-03-22 21:22:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:22:05' and `end` < '2025-03-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-03-22 21:22:18] Production.INFO: count ==1638 [2025-03-22 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:22:05 - End Time 2025-03-22 21:22:05 [2025-03-22 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740235', 'tblTempUsageDetail_20' ) start [2025-03-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740235', 'tblTempUsageDetail_20' ) end [2025-03-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740235', 'tblTempVendorCDR_20' ) start [2025-03-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740235', 'tblTempVendorCDR_20' ) end [2025-03-22 21:22:18] Production.INFO: ProcessCDR(1,14740235,1,1,2) [2025-03-22 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740235', 'tblTempUsageDetail_20' ) start [2025-03-22 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740235', 'tblTempUsageDetail_20' ) end [2025-03-22 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:22:22] Production.INFO: ==6227== Releasing lock... [2025-03-22 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-22 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:23:05 [end_date_ymd] => 2025-03-22 21:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:23:05' and `end` < '2025-03-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-03-22 21:23:17] Production.INFO: count ==1635 [2025-03-22 21:23:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:23:05 - End Time 2025-03-22 21:23:05 [2025-03-22 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740240', 'tblTempUsageDetail_20' ) start [2025-03-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740240', 'tblTempUsageDetail_20' ) end [2025-03-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740240', 'tblTempVendorCDR_20' ) start [2025-03-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740240', 'tblTempVendorCDR_20' ) end [2025-03-22 21:23:17] Production.INFO: ProcessCDR(1,14740240,1,1,2) [2025-03-22 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740240', 'tblTempUsageDetail_20' ) start [2025-03-22 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740240', 'tblTempUsageDetail_20' ) end [2025-03-22 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:23:21] Production.INFO: ==6304== Releasing lock... [2025-03-22 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:23:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:24:05 [end_date_ymd] => 2025-03-22 21:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:24:05' and `end` < '2025-03-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-03-22 21:24:18] Production.INFO: count ==1634 [2025-03-22 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:24:05 - End Time 2025-03-22 21:24:05 [2025-03-22 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740245', 'tblTempUsageDetail_20' ) start [2025-03-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740245', 'tblTempUsageDetail_20' ) end [2025-03-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740245', 'tblTempVendorCDR_20' ) start [2025-03-22 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740245', 'tblTempVendorCDR_20' ) end [2025-03-22 21:24:18] Production.INFO: ProcessCDR(1,14740245,1,1,2) [2025-03-22 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740245', 'tblTempUsageDetail_20' ) start [2025-03-22 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740245', 'tblTempUsageDetail_20' ) end [2025-03-22 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:24:21] Production.INFO: ==6379== Releasing lock... [2025-03-22 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:24:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:25:04 [end_date_ymd] => 2025-03-22 21:25:04 [RateCDR] => 1 ) [2025-03-22 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:25:04' and `end` < '2025-03-22 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:25:17] Production.INFO: count ==1634 [2025-03-22 21:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:25:04 - End Time 2025-03-22 21:25:04 [2025-03-22 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740250', 'tblTempUsageDetail_20' ) start [2025-03-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740250', 'tblTempUsageDetail_20' ) end [2025-03-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740250', 'tblTempVendorCDR_20' ) start [2025-03-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740250', 'tblTempVendorCDR_20' ) end [2025-03-22 21:25:17] Production.INFO: ProcessCDR(1,14740250,1,1,2) [2025-03-22 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740250', 'tblTempUsageDetail_20' ) start [2025-03-22 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740250', 'tblTempUsageDetail_20' ) end [2025-03-22 21:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:25:20] Production.INFO: ==6455== Releasing lock... [2025-03-22 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:25:20] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:26:05 [end_date_ymd] => 2025-03-22 21:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:26:05' and `end` < '2025-03-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-03-22 21:26:17] Production.INFO: count ==1639 [2025-03-22 21:26:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:26:05 - End Time 2025-03-22 21:26:05 [2025-03-22 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740255', 'tblTempUsageDetail_20' ) start [2025-03-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740255', 'tblTempUsageDetail_20' ) end [2025-03-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740255', 'tblTempVendorCDR_20' ) start [2025-03-22 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740255', 'tblTempVendorCDR_20' ) end [2025-03-22 21:26:18] Production.INFO: ProcessCDR(1,14740255,1,1,2) [2025-03-22 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740255', 'tblTempUsageDetail_20' ) start [2025-03-22 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740255', 'tblTempUsageDetail_20' ) end [2025-03-22 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:26:22] Production.INFO: ==6531== Releasing lock... [2025-03-22 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:26:22] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:27:05 [end_date_ymd] => 2025-03-22 21:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:27:05' and `end` < '2025-03-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-03-22 21:27:18] Production.INFO: count ==1644 [2025-03-22 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:27:05 - End Time 2025-03-22 21:27:05 [2025-03-22 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740260', 'tblTempUsageDetail_20' ) start [2025-03-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740260', 'tblTempUsageDetail_20' ) end [2025-03-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740260', 'tblTempVendorCDR_20' ) start [2025-03-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740260', 'tblTempVendorCDR_20' ) end [2025-03-22 21:27:18] Production.INFO: ProcessCDR(1,14740260,1,1,2) [2025-03-22 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740260', 'tblTempUsageDetail_20' ) start [2025-03-22 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740260', 'tblTempUsageDetail_20' ) end [2025-03-22 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:27:21] Production.INFO: ==6606== Releasing lock... [2025-03-22 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:27:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-22 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:28:05 [end_date_ymd] => 2025-03-22 21:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:28:05' and `end` < '2025-03-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-03-22 21:28:17] Production.INFO: count ==1643 [2025-03-22 21:28:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:28:05 - End Time 2025-03-22 21:28:05 [2025-03-22 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740265', 'tblTempUsageDetail_20' ) start [2025-03-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740265', 'tblTempUsageDetail_20' ) end [2025-03-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740265', 'tblTempVendorCDR_20' ) start [2025-03-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740265', 'tblTempVendorCDR_20' ) end [2025-03-22 21:28:17] Production.INFO: ProcessCDR(1,14740265,1,1,2) [2025-03-22 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740265', 'tblTempUsageDetail_20' ) start [2025-03-22 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740265', 'tblTempUsageDetail_20' ) end [2025-03-22 21:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:28:20] Production.INFO: ==6682== Releasing lock... [2025-03-22 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:28:20] Production.INFO: 40.25 MB #Memory Used# [2025-03-22 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:29:05 [end_date_ymd] => 2025-03-22 21:29:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:29:05' and `end` < '2025-03-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-03-22 21:29:18] Production.INFO: count ==1638 [2025-03-22 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:29:05 - End Time 2025-03-22 21:29:05 [2025-03-22 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740270', 'tblTempUsageDetail_20' ) start [2025-03-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740270', 'tblTempUsageDetail_20' ) end [2025-03-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740270', 'tblTempVendorCDR_20' ) start [2025-03-22 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740270', 'tblTempVendorCDR_20' ) end [2025-03-22 21:29:18] Production.INFO: ProcessCDR(1,14740270,1,1,2) [2025-03-22 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740270', 'tblTempUsageDetail_20' ) start [2025-03-22 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740270', 'tblTempUsageDetail_20' ) end [2025-03-22 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:29:23] Production.INFO: ==6757== Releasing lock... [2025-03-22 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:29:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-22 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:30:06 [end_date_ymd] => 2025-03-22 21:30:06 [RateCDR] => 1 ) [2025-03-22 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:30:06' and `end` < '2025-03-22 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:30:18] Production.INFO: count ==1632 [2025-03-22 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:30:06 - End Time 2025-03-22 21:30:06 [2025-03-22 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740276', 'tblTempUsageDetail_20' ) start [2025-03-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740276', 'tblTempUsageDetail_20' ) end [2025-03-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740276', 'tblTempVendorCDR_20' ) start [2025-03-22 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740276', 'tblTempVendorCDR_20' ) end [2025-03-22 21:30:19] Production.INFO: ProcessCDR(1,14740276,1,1,2) [2025-03-22 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740276', 'tblTempUsageDetail_20' ) start [2025-03-22 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740276', 'tblTempUsageDetail_20' ) end [2025-03-22 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:30:23] Production.INFO: ==6879== Releasing lock... [2025-03-22 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:30:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:31:05 [end_date_ymd] => 2025-03-22 21:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:31:05' and `end` < '2025-03-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-03-22 21:31:17] Production.INFO: count ==1606 [2025-03-22 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:31:05 - End Time 2025-03-22 21:31:05 [2025-03-22 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740281', 'tblTempUsageDetail_20' ) start [2025-03-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740281', 'tblTempUsageDetail_20' ) end [2025-03-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740281', 'tblTempVendorCDR_20' ) start [2025-03-22 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740281', 'tblTempVendorCDR_20' ) end [2025-03-22 21:31:18] Production.INFO: ProcessCDR(1,14740281,1,1,2) [2025-03-22 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740281', 'tblTempUsageDetail_20' ) start [2025-03-22 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740281', 'tblTempUsageDetail_20' ) end [2025-03-22 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:31:21] Production.INFO: ==6965== Releasing lock... [2025-03-22 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:31:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:32:05 [end_date_ymd] => 2025-03-22 21:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:32:05' and `end` < '2025-03-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-03-22 21:32:17] Production.INFO: count ==1604 [2025-03-22 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:32:05 - End Time 2025-03-22 21:32:05 [2025-03-22 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740286', 'tblTempUsageDetail_20' ) start [2025-03-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740286', 'tblTempUsageDetail_20' ) end [2025-03-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740286', 'tblTempVendorCDR_20' ) start [2025-03-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740286', 'tblTempVendorCDR_20' ) end [2025-03-22 21:32:18] Production.INFO: ProcessCDR(1,14740286,1,1,2) [2025-03-22 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740286', 'tblTempUsageDetail_20' ) start [2025-03-22 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740286', 'tblTempUsageDetail_20' ) end [2025-03-22 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:32:21] Production.INFO: ==7034== Releasing lock... [2025-03-22 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:32:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:33:05 [end_date_ymd] => 2025-03-22 21:33:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:33:05' and `end` < '2025-03-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-03-22 21:33:18] Production.INFO: count ==1595 [2025-03-22 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:33:05 - End Time 2025-03-22 21:33:05 [2025-03-22 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740291', 'tblTempUsageDetail_20' ) start [2025-03-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740291', 'tblTempUsageDetail_20' ) end [2025-03-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740291', 'tblTempVendorCDR_20' ) start [2025-03-22 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740291', 'tblTempVendorCDR_20' ) end [2025-03-22 21:33:18] Production.INFO: ProcessCDR(1,14740291,1,1,2) [2025-03-22 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740291', 'tblTempUsageDetail_20' ) start [2025-03-22 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740291', 'tblTempUsageDetail_20' ) end [2025-03-22 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:33:21] Production.INFO: ==7109== Releasing lock... [2025-03-22 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:34:05 [end_date_ymd] => 2025-03-22 21:34:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:34:05' and `end` < '2025-03-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-03-22 21:34:17] Production.INFO: count ==1597 [2025-03-22 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:34:05 - End Time 2025-03-22 21:34:05 [2025-03-22 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740296', 'tblTempUsageDetail_20' ) start [2025-03-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740296', 'tblTempUsageDetail_20' ) end [2025-03-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740296', 'tblTempVendorCDR_20' ) start [2025-03-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740296', 'tblTempVendorCDR_20' ) end [2025-03-22 21:34:18] Production.INFO: ProcessCDR(1,14740296,1,1,2) [2025-03-22 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740296', 'tblTempUsageDetail_20' ) start [2025-03-22 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740296', 'tblTempUsageDetail_20' ) end [2025-03-22 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:34:21] Production.INFO: ==7183== Releasing lock... [2025-03-22 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:34:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:35:05 [end_date_ymd] => 2025-03-22 21:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:35:05' and `end` < '2025-03-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-03-22 21:35:17] Production.INFO: count ==1591 [2025-03-22 21:35:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:35:05 - End Time 2025-03-22 21:35:05 [2025-03-22 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740297', 'tblTempUsageDetail_20' ) start [2025-03-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740297', 'tblTempUsageDetail_20' ) end [2025-03-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740297', 'tblTempVendorCDR_20' ) start [2025-03-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740297', 'tblTempVendorCDR_20' ) end [2025-03-22 21:35:17] Production.INFO: ProcessCDR(1,14740297,1,1,2) [2025-03-22 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740297', 'tblTempUsageDetail_20' ) start [2025-03-22 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740297', 'tblTempUsageDetail_20' ) end [2025-03-22 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:35:22] Production.INFO: ==7257== Releasing lock... [2025-03-22 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:35:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-22 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:36:06 [end_date_ymd] => 2025-03-22 21:36:06 [RateCDR] => 1 ) [2025-03-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-03-22 18:36:06' and `end` < '2025-03-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-03-22 21:36:18] Production.INFO: count ==1587 [2025-03-22 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:36:06 - End Time 2025-03-22 21:36:06 [2025-03-22 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740306', 'tblTempUsageDetail_20' ) start [2025-03-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740306', 'tblTempUsageDetail_20' ) end [2025-03-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740306', 'tblTempVendorCDR_20' ) start [2025-03-22 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740306', 'tblTempVendorCDR_20' ) end [2025-03-22 21:36:18] Production.INFO: ProcessCDR(1,14740306,1,1,2) [2025-03-22 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740306', 'tblTempUsageDetail_20' ) start [2025-03-22 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740306', 'tblTempUsageDetail_20' ) end [2025-03-22 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:36:23] Production.INFO: ==7332== Releasing lock... [2025-03-22 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:36:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:37:05 [end_date_ymd] => 2025-03-22 21:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:37:05' and `end` < '2025-03-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-03-22 21:37:18] Production.INFO: count ==1584 [2025-03-22 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:37:05 - End Time 2025-03-22 21:37:05 [2025-03-22 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740311', 'tblTempUsageDetail_20' ) start [2025-03-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740311', 'tblTempUsageDetail_20' ) end [2025-03-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740311', 'tblTempVendorCDR_20' ) start [2025-03-22 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740311', 'tblTempVendorCDR_20' ) end [2025-03-22 21:37:18] Production.INFO: ProcessCDR(1,14740311,1,1,2) [2025-03-22 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740311', 'tblTempUsageDetail_20' ) start [2025-03-22 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740311', 'tblTempUsageDetail_20' ) end [2025-03-22 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:37:21] Production.INFO: ==7429== Releasing lock... [2025-03-22 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:37:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:38:05 [end_date_ymd] => 2025-03-22 21:38:05 [RateCDR] => 1 ) [2025-03-22 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:38:05' and `end` < '2025-03-22 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:38:18] Production.INFO: count ==1582 [2025-03-22 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:38:05 - End Time 2025-03-22 21:38:05 [2025-03-22 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740316', 'tblTempUsageDetail_20' ) start [2025-03-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740316', 'tblTempUsageDetail_20' ) end [2025-03-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740316', 'tblTempVendorCDR_20' ) start [2025-03-22 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740316', 'tblTempVendorCDR_20' ) end [2025-03-22 21:38:18] Production.INFO: ProcessCDR(1,14740316,1,1,2) [2025-03-22 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740316', 'tblTempUsageDetail_20' ) start [2025-03-22 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740316', 'tblTempUsageDetail_20' ) end [2025-03-22 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:38:22] Production.INFO: ==7505== Releasing lock... [2025-03-22 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:39:05 [end_date_ymd] => 2025-03-22 21:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:39:05' and `end` < '2025-03-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-03-22 21:39:17] Production.INFO: count ==1585 [2025-03-22 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:39:05 - End Time 2025-03-22 21:39:05 [2025-03-22 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740321', 'tblTempUsageDetail_20' ) start [2025-03-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740321', 'tblTempUsageDetail_20' ) end [2025-03-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740321', 'tblTempVendorCDR_20' ) start [2025-03-22 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740321', 'tblTempVendorCDR_20' ) end [2025-03-22 21:39:18] Production.INFO: ProcessCDR(1,14740321,1,1,2) [2025-03-22 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740321', 'tblTempUsageDetail_20' ) start [2025-03-22 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740321', 'tblTempUsageDetail_20' ) end [2025-03-22 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:39:21] Production.INFO: ==7579== Releasing lock... [2025-03-22 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:39:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:40:06 [end_date_ymd] => 2025-03-22 21:40:06 [RateCDR] => 1 ) [2025-03-22 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:40:06' and `end` < '2025-03-22 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:40:18] Production.INFO: count ==1585 [2025-03-22 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:40:06 - End Time 2025-03-22 21:40:06 [2025-03-22 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740326', 'tblTempUsageDetail_20' ) start [2025-03-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740326', 'tblTempUsageDetail_20' ) end [2025-03-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740326', 'tblTempVendorCDR_20' ) start [2025-03-22 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740326', 'tblTempVendorCDR_20' ) end [2025-03-22 21:40:19] Production.INFO: ProcessCDR(1,14740326,1,1,2) [2025-03-22 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740326', 'tblTempUsageDetail_20' ) start [2025-03-22 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740326', 'tblTempUsageDetail_20' ) end [2025-03-22 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:40:23] Production.INFO: ==7655== Releasing lock... [2025-03-22 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:40:23] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:41:05 [end_date_ymd] => 2025-03-22 21:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:41:05' and `end` < '2025-03-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-03-22 21:41:17] Production.INFO: count ==1574 [2025-03-22 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:41:05 - End Time 2025-03-22 21:41:05 [2025-03-22 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740332', 'tblTempUsageDetail_20' ) start [2025-03-22 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740332', 'tblTempUsageDetail_20' ) end [2025-03-22 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740332', 'tblTempVendorCDR_20' ) start [2025-03-22 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740332', 'tblTempVendorCDR_20' ) end [2025-03-22 21:41:17] Production.INFO: ProcessCDR(1,14740332,1,1,2) [2025-03-22 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740332', 'tblTempUsageDetail_20' ) start [2025-03-22 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740332', 'tblTempUsageDetail_20' ) end [2025-03-22 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:41:22] Production.INFO: ==7732== Releasing lock... [2025-03-22 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:41:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:42:05 [end_date_ymd] => 2025-03-22 21:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:42:05' and `end` < '2025-03-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-03-22 21:42:18] Production.INFO: count ==1575 [2025-03-22 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:42:05 - End Time 2025-03-22 21:42:05 [2025-03-22 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740337', 'tblTempUsageDetail_20' ) start [2025-03-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740337', 'tblTempUsageDetail_20' ) end [2025-03-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740337', 'tblTempVendorCDR_20' ) start [2025-03-22 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740337', 'tblTempVendorCDR_20' ) end [2025-03-22 21:42:18] Production.INFO: ProcessCDR(1,14740337,1,1,2) [2025-03-22 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740337', 'tblTempUsageDetail_20' ) start [2025-03-22 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740337', 'tblTempUsageDetail_20' ) end [2025-03-22 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:42:21] Production.INFO: ==7803== Releasing lock... [2025-03-22 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:42:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:43:05 [end_date_ymd] => 2025-03-22 21:43:05 [RateCDR] => 1 ) [2025-03-22 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:43:05' and `end` < '2025-03-22 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:43:17] Production.INFO: count ==1581 [2025-03-22 21:43:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:43:05 - End Time 2025-03-22 21:43:05 [2025-03-22 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740342', 'tblTempUsageDetail_20' ) start [2025-03-22 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740342', 'tblTempUsageDetail_20' ) end [2025-03-22 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740342', 'tblTempVendorCDR_20' ) start [2025-03-22 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740342', 'tblTempVendorCDR_20' ) end [2025-03-22 21:43:17] Production.INFO: ProcessCDR(1,14740342,1,1,2) [2025-03-22 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740342', 'tblTempUsageDetail_20' ) start [2025-03-22 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740342', 'tblTempUsageDetail_20' ) end [2025-03-22 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:43:21] Production.INFO: ==7889== Releasing lock... [2025-03-22 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:43:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:44:05 [end_date_ymd] => 2025-03-22 21:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:44:05' and `end` < '2025-03-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-03-22 21:44:17] Production.INFO: count ==1589 [2025-03-22 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:44:05 - End Time 2025-03-22 21:44:05 [2025-03-22 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740347', 'tblTempUsageDetail_20' ) start [2025-03-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740347', 'tblTempUsageDetail_20' ) end [2025-03-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740347', 'tblTempVendorCDR_20' ) start [2025-03-22 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740347', 'tblTempVendorCDR_20' ) end [2025-03-22 21:44:18] Production.INFO: ProcessCDR(1,14740347,1,1,2) [2025-03-22 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740347', 'tblTempUsageDetail_20' ) start [2025-03-22 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740347', 'tblTempUsageDetail_20' ) end [2025-03-22 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:44:21] Production.INFO: ==8012== Releasing lock... [2025-03-22 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:44:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:45:05 [end_date_ymd] => 2025-03-22 21:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:45:05' and `end` < '2025-03-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-03-22 21:45:17] Production.INFO: count ==1585 [2025-03-22 21:45:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:45:05 - End Time 2025-03-22 21:45:05 [2025-03-22 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740352', 'tblTempUsageDetail_20' ) start [2025-03-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740352', 'tblTempUsageDetail_20' ) end [2025-03-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740352', 'tblTempVendorCDR_20' ) start [2025-03-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740352', 'tblTempVendorCDR_20' ) end [2025-03-22 21:45:17] Production.INFO: ProcessCDR(1,14740352,1,1,2) [2025-03-22 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740352', 'tblTempUsageDetail_20' ) start [2025-03-22 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740352', 'tblTempUsageDetail_20' ) end [2025-03-22 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:45:21] Production.INFO: ==8175== Releasing lock... [2025-03-22 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:45:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:46:05 [end_date_ymd] => 2025-03-22 21:46:05 [RateCDR] => 1 ) [2025-03-22 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:46:05' and `end` < '2025-03-22 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:46:18] Production.INFO: count ==1588 [2025-03-22 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:46:05 - End Time 2025-03-22 21:46:05 [2025-03-22 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740357', 'tblTempUsageDetail_20' ) start [2025-03-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740357', 'tblTempUsageDetail_20' ) end [2025-03-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740357', 'tblTempVendorCDR_20' ) start [2025-03-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740357', 'tblTempVendorCDR_20' ) end [2025-03-22 21:46:18] Production.INFO: ProcessCDR(1,14740357,1,1,2) [2025-03-22 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740357', 'tblTempUsageDetail_20' ) start [2025-03-22 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740357', 'tblTempUsageDetail_20' ) end [2025-03-22 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:46:23] Production.INFO: ==8294== Releasing lock... [2025-03-22 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:46:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:47:04 [end_date_ymd] => 2025-03-22 21:47:04 [RateCDR] => 1 ) [2025-03-22 21:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:47:04' and `end` < '2025-03-22 21:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:47:17] Production.INFO: count ==1587 [2025-03-22 21:47:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:47:04 - End Time 2025-03-22 21:47:04 [2025-03-22 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740362', 'tblTempUsageDetail_20' ) start [2025-03-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740362', 'tblTempUsageDetail_20' ) end [2025-03-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740362', 'tblTempVendorCDR_20' ) start [2025-03-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740362', 'tblTempVendorCDR_20' ) end [2025-03-22 21:47:17] Production.INFO: ProcessCDR(1,14740362,1,1,2) [2025-03-22 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740362', 'tblTempUsageDetail_20' ) start [2025-03-22 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740362', 'tblTempUsageDetail_20' ) end [2025-03-22 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:47:22] Production.INFO: ==8413== Releasing lock... [2025-03-22 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:48:05 [end_date_ymd] => 2025-03-22 21:48:05 [RateCDR] => 1 ) [2025-03-22 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:48:05' and `end` < '2025-03-22 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:48:18] Production.INFO: count ==1587 [2025-03-22 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:48:05 - End Time 2025-03-22 21:48:05 [2025-03-22 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740367', 'tblTempUsageDetail_20' ) start [2025-03-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740367', 'tblTempUsageDetail_20' ) end [2025-03-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740367', 'tblTempVendorCDR_20' ) start [2025-03-22 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740367', 'tblTempVendorCDR_20' ) end [2025-03-22 21:48:18] Production.INFO: ProcessCDR(1,14740367,1,1,2) [2025-03-22 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740367', 'tblTempUsageDetail_20' ) start [2025-03-22 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740367', 'tblTempUsageDetail_20' ) end [2025-03-22 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:48:23] Production.INFO: ==8531== Releasing lock... [2025-03-22 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-22 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:49:05 [end_date_ymd] => 2025-03-22 21:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:49:05' and `end` < '2025-03-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-03-22 21:49:17] Production.INFO: count ==1585 [2025-03-22 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:49:05 - End Time 2025-03-22 21:49:05 [2025-03-22 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740372', 'tblTempUsageDetail_20' ) start [2025-03-22 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740372', 'tblTempUsageDetail_20' ) end [2025-03-22 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740372', 'tblTempVendorCDR_20' ) start [2025-03-22 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740372', 'tblTempVendorCDR_20' ) end [2025-03-22 21:49:18] Production.INFO: ProcessCDR(1,14740372,1,1,2) [2025-03-22 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740372', 'tblTempUsageDetail_20' ) start [2025-03-22 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740372', 'tblTempUsageDetail_20' ) end [2025-03-22 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:49:21] Production.INFO: ==8654== Releasing lock... [2025-03-22 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:49:21] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:50:06 [end_date_ymd] => 2025-03-22 21:50:06 [RateCDR] => 1 ) [2025-03-22 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:50:06' and `end` < '2025-03-22 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:50:19] Production.INFO: count ==1584 [2025-03-22 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:50:06 - End Time 2025-03-22 21:50:06 [2025-03-22 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740378', 'tblTempUsageDetail_20' ) start [2025-03-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740378', 'tblTempUsageDetail_20' ) end [2025-03-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740378', 'tblTempVendorCDR_20' ) start [2025-03-22 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740378', 'tblTempVendorCDR_20' ) end [2025-03-22 21:50:19] Production.INFO: ProcessCDR(1,14740378,1,1,2) [2025-03-22 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740378', 'tblTempUsageDetail_20' ) start [2025-03-22 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740378', 'tblTempUsageDetail_20' ) end [2025-03-22 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:50:22] Production.INFO: ==8772== Releasing lock... [2025-03-22 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:50:22] Production.INFO: 40 MB #Memory Used# [2025-03-22 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:51:04 [end_date_ymd] => 2025-03-22 21:51:04 [RateCDR] => 1 ) [2025-03-22 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:51:04' and `end` < '2025-03-22 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:51:17] Production.INFO: count ==1527 [2025-03-22 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 18:51:04 - End Time 2025-03-22 21:51:04 [2025-03-22 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740383', 'tblTempUsageDetail_20' ) start [2025-03-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740383', 'tblTempUsageDetail_20' ) end [2025-03-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740383', 'tblTempVendorCDR_20' ) start [2025-03-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740383', 'tblTempVendorCDR_20' ) end [2025-03-22 21:51:17] Production.INFO: ProcessCDR(1,14740383,1,1,2) [2025-03-22 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740383', 'tblTempUsageDetail_20' ) start [2025-03-22 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740383', 'tblTempUsageDetail_20' ) end [2025-03-22 21:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:51:20] Production.INFO: ==8894== Releasing lock... [2025-03-22 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:51:20] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:52:05 [end_date_ymd] => 2025-03-22 21:52:05 [RateCDR] => 1 ) [2025-03-22 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:52:05' and `end` < '2025-03-22 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:52:18] Production.INFO: count ==1528 [2025-03-22 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:52:05 - End Time 2025-03-22 21:52:05 [2025-03-22 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740388', 'tblTempUsageDetail_20' ) start [2025-03-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740388', 'tblTempUsageDetail_20' ) end [2025-03-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740388', 'tblTempVendorCDR_20' ) start [2025-03-22 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740388', 'tblTempVendorCDR_20' ) end [2025-03-22 21:52:18] Production.INFO: ProcessCDR(1,14740388,1,1,2) [2025-03-22 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740388', 'tblTempUsageDetail_20' ) start [2025-03-22 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740388', 'tblTempUsageDetail_20' ) end [2025-03-22 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:52:22] Production.INFO: ==9016== Releasing lock... [2025-03-22 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:53:06 [end_date_ymd] => 2025-03-22 21:53:06 [RateCDR] => 1 ) [2025-03-22 21:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:53:06' and `end` < '2025-03-22 21:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:53:18] Production.INFO: count ==1528 [2025-03-22 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:53:06 - End Time 2025-03-22 21:53:06 [2025-03-22 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740393', 'tblTempUsageDetail_20' ) start [2025-03-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740393', 'tblTempUsageDetail_20' ) end [2025-03-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740393', 'tblTempVendorCDR_20' ) start [2025-03-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740393', 'tblTempVendorCDR_20' ) end [2025-03-22 21:53:18] Production.INFO: ProcessCDR(1,14740393,1,1,2) [2025-03-22 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740393', 'tblTempUsageDetail_20' ) start [2025-03-22 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740393', 'tblTempUsageDetail_20' ) end [2025-03-22 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:53:21] Production.INFO: ==9139== Releasing lock... [2025-03-22 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:53:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:54:06 [end_date_ymd] => 2025-03-22 21:54:06 [RateCDR] => 1 ) [2025-03-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-03-22 18:54:06' and `end` < '2025-03-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-03-22 21:54:18] Production.INFO: count ==1530 [2025-03-22 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:54:06 - End Time 2025-03-22 21:54:06 [2025-03-22 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740398', 'tblTempUsageDetail_20' ) start [2025-03-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740398', 'tblTempUsageDetail_20' ) end [2025-03-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740398', 'tblTempVendorCDR_20' ) start [2025-03-22 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740398', 'tblTempVendorCDR_20' ) end [2025-03-22 21:54:18] Production.INFO: ProcessCDR(1,14740398,1,1,2) [2025-03-22 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740398', 'tblTempUsageDetail_20' ) start [2025-03-22 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740398', 'tblTempUsageDetail_20' ) end [2025-03-22 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:54:22] Production.INFO: ==9260== Releasing lock... [2025-03-22 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:54:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:55:06 [end_date_ymd] => 2025-03-22 21:55:06 [RateCDR] => 1 ) [2025-03-22 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:55:06' and `end` < '2025-03-22 21:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:55:18] Production.INFO: count ==1532 [2025-03-22 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:55:06 - End Time 2025-03-22 21:55:06 [2025-03-22 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740403', 'tblTempUsageDetail_20' ) start [2025-03-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740403', 'tblTempUsageDetail_20' ) end [2025-03-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740403', 'tblTempVendorCDR_20' ) start [2025-03-22 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740403', 'tblTempVendorCDR_20' ) end [2025-03-22 21:55:19] Production.INFO: ProcessCDR(1,14740403,1,1,2) [2025-03-22 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740403', 'tblTempUsageDetail_20' ) start [2025-03-22 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740403', 'tblTempUsageDetail_20' ) end [2025-03-22 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:55:22] Production.INFO: ==9379== Releasing lock... [2025-03-22 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:55:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:56:06 [end_date_ymd] => 2025-03-22 21:56:06 [RateCDR] => 1 ) [2025-03-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-03-22 18:56:06' and `end` < '2025-03-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-03-22 21:56:18] Production.INFO: count ==1532 [2025-03-22 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:56:06 - End Time 2025-03-22 21:56:06 [2025-03-22 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740408', 'tblTempUsageDetail_20' ) start [2025-03-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740408', 'tblTempUsageDetail_20' ) end [2025-03-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740408', 'tblTempVendorCDR_20' ) start [2025-03-22 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740408', 'tblTempVendorCDR_20' ) end [2025-03-22 21:56:18] Production.INFO: ProcessCDR(1,14740408,1,1,2) [2025-03-22 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740408', 'tblTempUsageDetail_20' ) start [2025-03-22 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740408', 'tblTempUsageDetail_20' ) end [2025-03-22 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:56:22] Production.INFO: ==9497== Releasing lock... [2025-03-22 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:56:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:57:06 [end_date_ymd] => 2025-03-22 21:57:06 [RateCDR] => 1 ) [2025-03-22 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:57:06' and `end` < '2025-03-22 21:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 21:57:18] Production.INFO: count ==1530 [2025-03-22 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-22 18:57:06 - End Time 2025-03-22 21:57:06 [2025-03-22 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740413', 'tblTempUsageDetail_20' ) start [2025-03-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740413', 'tblTempUsageDetail_20' ) end [2025-03-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740413', 'tblTempVendorCDR_20' ) start [2025-03-22 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740413', 'tblTempVendorCDR_20' ) end [2025-03-22 21:57:19] Production.INFO: ProcessCDR(1,14740413,1,1,2) [2025-03-22 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740413', 'tblTempUsageDetail_20' ) start [2025-03-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740413', 'tblTempUsageDetail_20' ) end [2025-03-22 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:57:22] Production.INFO: ==9616== Releasing lock... [2025-03-22 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:57:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:58:05 [end_date_ymd] => 2025-03-22 21:58:05 [RateCDR] => 1 ) [2025-03-22 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 18:58:05' and `end` < '2025-03-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-03-22 21:58:17] Production.INFO: count ==1525 [2025-03-22 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:58:05 - End Time 2025-03-22 21:58:05 [2025-03-22 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740418', 'tblTempUsageDetail_20' ) start [2025-03-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740418', 'tblTempUsageDetail_20' ) end [2025-03-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740418', 'tblTempVendorCDR_20' ) start [2025-03-22 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740418', 'tblTempVendorCDR_20' ) end [2025-03-22 21:58:18] Production.INFO: ProcessCDR(1,14740418,1,1,2) [2025-03-22 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740418', 'tblTempUsageDetail_20' ) start [2025-03-22 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740418', 'tblTempUsageDetail_20' ) end [2025-03-22 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:58:21] Production.INFO: ==9730== Releasing lock... [2025-03-22 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:58:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 18:59:05 [end_date_ymd] => 2025-03-22 21:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 18:59:05' and `end` < '2025-03-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-03-22 21:59:18] Production.INFO: count ==1523 [2025-03-22 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-22 18:59:05 - End Time 2025-03-22 21:59:05 [2025-03-22 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740423', 'tblTempUsageDetail_20' ) start [2025-03-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740423', 'tblTempUsageDetail_20' ) end [2025-03-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740423', 'tblTempVendorCDR_20' ) start [2025-03-22 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740423', 'tblTempVendorCDR_20' ) end [2025-03-22 21:59:18] Production.INFO: ProcessCDR(1,14740423,1,1,2) [2025-03-22 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740423', 'tblTempUsageDetail_20' ) start [2025-03-22 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740423', 'tblTempUsageDetail_20' ) end [2025-03-22 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 21:59:21] Production.INFO: ==9855== Releasing lock... [2025-03-22 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 21:59:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-22 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:00:06 [end_date_ymd] => 2025-03-22 22:00:06 [RateCDR] => 1 ) [2025-03-22 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:00:06' and `end` < '2025-03-22 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:00:18] Production.INFO: count ==1516 [2025-03-22 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:00:06 - End Time 2025-03-22 22:00:06 [2025-03-22 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740428', 'tblTempUsageDetail_20' ) start [2025-03-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740428', 'tblTempUsageDetail_20' ) end [2025-03-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740428', 'tblTempVendorCDR_20' ) start [2025-03-22 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740428', 'tblTempVendorCDR_20' ) end [2025-03-22 22:00:19] Production.INFO: ProcessCDR(1,14740428,1,1,2) [2025-03-22 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740428', 'tblTempUsageDetail_20' ) start [2025-03-22 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740428', 'tblTempUsageDetail_20' ) end [2025-03-22 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:00:22] Production.INFO: ==9978== Releasing lock... [2025-03-22 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:00:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:01:05 [end_date_ymd] => 2025-03-22 22:01:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:01:05' and `end` < '2025-03-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-03-22 22:01:18] Production.INFO: count ==1465 [2025-03-22 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:01:05 - End Time 2025-03-22 22:01:05 [2025-03-22 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740434', 'tblTempUsageDetail_20' ) start [2025-03-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740434', 'tblTempUsageDetail_20' ) end [2025-03-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740434', 'tblTempVendorCDR_20' ) start [2025-03-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740434', 'tblTempVendorCDR_20' ) end [2025-03-22 22:01:18] Production.INFO: ProcessCDR(1,14740434,1,1,2) [2025-03-22 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740434', 'tblTempUsageDetail_20' ) start [2025-03-22 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740434', 'tblTempUsageDetail_20' ) end [2025-03-22 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:01:21] Production.INFO: ==10150== Releasing lock... [2025-03-22 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:01:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-22 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:02:05 [end_date_ymd] => 2025-03-22 22:02:05 [RateCDR] => 1 ) [2025-03-22 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:02:05' and `end` < '2025-03-22 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:02:17] Production.INFO: count ==1458 [2025-03-22 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:02:05 - End Time 2025-03-22 22:02:05 [2025-03-22 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740439', 'tblTempUsageDetail_20' ) start [2025-03-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740439', 'tblTempUsageDetail_20' ) end [2025-03-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740439', 'tblTempVendorCDR_20' ) start [2025-03-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740439', 'tblTempVendorCDR_20' ) end [2025-03-22 22:02:18] Production.INFO: ProcessCDR(1,14740439,1,1,2) [2025-03-22 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740439', 'tblTempUsageDetail_20' ) start [2025-03-22 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740439', 'tblTempUsageDetail_20' ) end [2025-03-22 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:02:21] Production.INFO: ==10223== Releasing lock... [2025-03-22 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:02:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:03:06 [end_date_ymd] => 2025-03-22 22:03:06 [RateCDR] => 1 ) [2025-03-22 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:03:06' and `end` < '2025-03-22 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:03:18] Production.INFO: count ==1446 [2025-03-22 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:03:06 - End Time 2025-03-22 22:03:06 [2025-03-22 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740444', 'tblTempUsageDetail_20' ) start [2025-03-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740444', 'tblTempUsageDetail_20' ) end [2025-03-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740444', 'tblTempVendorCDR_20' ) start [2025-03-22 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740444', 'tblTempVendorCDR_20' ) end [2025-03-22 22:03:18] Production.INFO: ProcessCDR(1,14740444,1,1,2) [2025-03-22 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740444', 'tblTempUsageDetail_20' ) start [2025-03-22 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740444', 'tblTempUsageDetail_20' ) end [2025-03-22 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:03:22] Production.INFO: ==10295== Releasing lock... [2025-03-22 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:03:22] Production.INFO: 39 MB #Memory Used# [2025-03-22 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:04:05 [end_date_ymd] => 2025-03-22 22:04:05 [RateCDR] => 1 ) [2025-03-22 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:04:05' and `end` < '2025-03-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-03-22 22:04:17] Production.INFO: count ==1439 [2025-03-22 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:04:05 - End Time 2025-03-22 22:04:05 [2025-03-22 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740449', 'tblTempUsageDetail_20' ) start [2025-03-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740449', 'tblTempUsageDetail_20' ) end [2025-03-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740449', 'tblTempVendorCDR_20' ) start [2025-03-22 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740449', 'tblTempVendorCDR_20' ) end [2025-03-22 22:04:18] Production.INFO: ProcessCDR(1,14740449,1,1,2) [2025-03-22 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740449', 'tblTempUsageDetail_20' ) start [2025-03-22 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740449', 'tblTempUsageDetail_20' ) end [2025-03-22 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:04:21] Production.INFO: ==10366== Releasing lock... [2025-03-22 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:04:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:05:05 [end_date_ymd] => 2025-03-22 22:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:05:05' and `end` < '2025-03-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-03-22 22:05:18] Production.INFO: count ==1431 [2025-03-22 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:05:05 - End Time 2025-03-22 22:05:05 [2025-03-22 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740454', 'tblTempUsageDetail_20' ) start [2025-03-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740454', 'tblTempUsageDetail_20' ) end [2025-03-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740454', 'tblTempVendorCDR_20' ) start [2025-03-22 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740454', 'tblTempVendorCDR_20' ) end [2025-03-22 22:05:18] Production.INFO: ProcessCDR(1,14740454,1,1,2) [2025-03-22 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740454', 'tblTempUsageDetail_20' ) start [2025-03-22 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740454', 'tblTempUsageDetail_20' ) end [2025-03-22 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:05:21] Production.INFO: ==10439== Releasing lock... [2025-03-22 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:06:05 [end_date_ymd] => 2025-03-22 22:06:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:06:05' and `end` < '2025-03-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-03-22 22:06:17] Production.INFO: count ==1427 [2025-03-22 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:06:05 - End Time 2025-03-22 22:06:05 [2025-03-22 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740459', 'tblTempUsageDetail_20' ) start [2025-03-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740459', 'tblTempUsageDetail_20' ) end [2025-03-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740459', 'tblTempVendorCDR_20' ) start [2025-03-22 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740459', 'tblTempVendorCDR_20' ) end [2025-03-22 22:06:18] Production.INFO: ProcessCDR(1,14740459,1,1,2) [2025-03-22 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740459', 'tblTempUsageDetail_20' ) start [2025-03-22 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740459', 'tblTempUsageDetail_20' ) end [2025-03-22 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:06:21] Production.INFO: ==10514== Releasing lock... [2025-03-22 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:06:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:07:05 [end_date_ymd] => 2025-03-22 22:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:07:05' and `end` < '2025-03-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-03-22 22:07:18] Production.INFO: count ==1422 [2025-03-22 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:07:05 - End Time 2025-03-22 22:07:05 [2025-03-22 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740464', 'tblTempUsageDetail_20' ) start [2025-03-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740464', 'tblTempUsageDetail_20' ) end [2025-03-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740464', 'tblTempVendorCDR_20' ) start [2025-03-22 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740464', 'tblTempVendorCDR_20' ) end [2025-03-22 22:07:18] Production.INFO: ProcessCDR(1,14740464,1,1,2) [2025-03-22 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740464', 'tblTempUsageDetail_20' ) start [2025-03-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740464', 'tblTempUsageDetail_20' ) end [2025-03-22 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:07:22] Production.INFO: ==10586== Releasing lock... [2025-03-22 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:07:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:08:04 [end_date_ymd] => 2025-03-22 22:08:04 [RateCDR] => 1 ) [2025-03-22 22:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:08:04' and `end` < '2025-03-22 22:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:08:17] Production.INFO: count ==1419 [2025-03-22 22:08:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:08:04 - End Time 2025-03-22 22:08:04 [2025-03-22 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740469', 'tblTempUsageDetail_20' ) start [2025-03-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740469', 'tblTempUsageDetail_20' ) end [2025-03-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740469', 'tblTempVendorCDR_20' ) start [2025-03-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740469', 'tblTempVendorCDR_20' ) end [2025-03-22 22:08:17] Production.INFO: ProcessCDR(1,14740469,1,1,2) [2025-03-22 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740469', 'tblTempUsageDetail_20' ) start [2025-03-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740469', 'tblTempUsageDetail_20' ) end [2025-03-22 22:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:08:20] Production.INFO: ==10662== Releasing lock... [2025-03-22 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:08:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:09:05 [end_date_ymd] => 2025-03-22 22:09:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:09:05' and `end` < '2025-03-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-03-22 22:09:18] Production.INFO: count ==1411 [2025-03-22 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:09:05 - End Time 2025-03-22 22:09:05 [2025-03-22 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740474', 'tblTempUsageDetail_20' ) start [2025-03-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740474', 'tblTempUsageDetail_20' ) end [2025-03-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740474', 'tblTempVendorCDR_20' ) start [2025-03-22 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740474', 'tblTempVendorCDR_20' ) end [2025-03-22 22:09:18] Production.INFO: ProcessCDR(1,14740474,1,1,2) [2025-03-22 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740474', 'tblTempUsageDetail_20' ) start [2025-03-22 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740474', 'tblTempUsageDetail_20' ) end [2025-03-22 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:09:21] Production.INFO: ==10756== Releasing lock... [2025-03-22 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:09:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:10:07 [end_date_ymd] => 2025-03-22 22:10:07 [RateCDR] => 1 ) [2025-03-22 22:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:10:07' and `end` < '2025-03-22 22:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:10:19] Production.INFO: count ==1408 [2025-03-22 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:10:07 - End Time 2025-03-22 22:10:07 [2025-03-22 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740480', 'tblTempUsageDetail_20' ) start [2025-03-22 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740480', 'tblTempUsageDetail_20' ) end [2025-03-22 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740480', 'tblTempVendorCDR_20' ) start [2025-03-22 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740480', 'tblTempVendorCDR_20' ) end [2025-03-22 22:10:19] Production.INFO: ProcessCDR(1,14740480,1,1,2) [2025-03-22 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740480', 'tblTempUsageDetail_20' ) start [2025-03-22 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740480', 'tblTempUsageDetail_20' ) end [2025-03-22 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:10:23] Production.INFO: ==10837== Releasing lock... [2025-03-22 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:10:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:11:05 [end_date_ymd] => 2025-03-22 22:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:11:05' and `end` < '2025-03-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-03-22 22:11:18] Production.INFO: count ==1400 [2025-03-22 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:11:05 - End Time 2025-03-22 22:11:05 [2025-03-22 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740485', 'tblTempUsageDetail_20' ) start [2025-03-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740485', 'tblTempUsageDetail_20' ) end [2025-03-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740485', 'tblTempVendorCDR_20' ) start [2025-03-22 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740485', 'tblTempVendorCDR_20' ) end [2025-03-22 22:11:18] Production.INFO: ProcessCDR(1,14740485,1,1,2) [2025-03-22 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740485', 'tblTempUsageDetail_20' ) start [2025-03-22 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740485', 'tblTempUsageDetail_20' ) end [2025-03-22 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:11:21] Production.INFO: ==10922== Releasing lock... [2025-03-22 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:12:06 [end_date_ymd] => 2025-03-22 22:12:06 [RateCDR] => 1 ) [2025-03-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-03-22 19:12:06' and `end` < '2025-03-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-03-22 22:12:18] Production.INFO: count ==1398 [2025-03-22 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:12:06 - End Time 2025-03-22 22:12:06 [2025-03-22 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740490', 'tblTempUsageDetail_20' ) start [2025-03-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740490', 'tblTempUsageDetail_20' ) end [2025-03-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740490', 'tblTempVendorCDR_20' ) start [2025-03-22 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740490', 'tblTempVendorCDR_20' ) end [2025-03-22 22:12:19] Production.INFO: ProcessCDR(1,14740490,1,1,2) [2025-03-22 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740490', 'tblTempUsageDetail_20' ) start [2025-03-22 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740490', 'tblTempUsageDetail_20' ) end [2025-03-22 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:12:22] Production.INFO: ==11010== Releasing lock... [2025-03-22 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:13:05 [end_date_ymd] => 2025-03-22 22:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:13:05' and `end` < '2025-03-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-03-22 22:13:17] Production.INFO: count ==1412 [2025-03-22 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:13:05 - End Time 2025-03-22 22:13:05 [2025-03-22 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740495', 'tblTempUsageDetail_20' ) start [2025-03-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740495', 'tblTempUsageDetail_20' ) end [2025-03-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740495', 'tblTempVendorCDR_20' ) start [2025-03-22 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740495', 'tblTempVendorCDR_20' ) end [2025-03-22 22:13:18] Production.INFO: ProcessCDR(1,14740495,1,1,2) [2025-03-22 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740495', 'tblTempUsageDetail_20' ) start [2025-03-22 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740495', 'tblTempUsageDetail_20' ) end [2025-03-22 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:13:21] Production.INFO: ==11098== Releasing lock... [2025-03-22 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:13:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:14:06 [end_date_ymd] => 2025-03-22 22:14:06 [RateCDR] => 1 ) [2025-03-22 22:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:14:06' and `end` < '2025-03-22 22:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:14:18] Production.INFO: count ==1411 [2025-03-22 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:14:06 - End Time 2025-03-22 22:14:06 [2025-03-22 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740500', 'tblTempUsageDetail_20' ) start [2025-03-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740500', 'tblTempUsageDetail_20' ) end [2025-03-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740500', 'tblTempVendorCDR_20' ) start [2025-03-22 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740500', 'tblTempVendorCDR_20' ) end [2025-03-22 22:14:19] Production.INFO: ProcessCDR(1,14740500,1,1,2) [2025-03-22 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740500', 'tblTempUsageDetail_20' ) start [2025-03-22 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740500', 'tblTempUsageDetail_20' ) end [2025-03-22 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:14:22] Production.INFO: ==11184== Releasing lock... [2025-03-22 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:14:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:15:05 [end_date_ymd] => 2025-03-22 22:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:15:05' and `end` < '2025-03-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-03-22 22:15:18] Production.INFO: count ==1411 [2025-03-22 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:15:05 - End Time 2025-03-22 22:15:05 [2025-03-22 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740505', 'tblTempUsageDetail_20' ) start [2025-03-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740505', 'tblTempUsageDetail_20' ) end [2025-03-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740505', 'tblTempVendorCDR_20' ) start [2025-03-22 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740505', 'tblTempVendorCDR_20' ) end [2025-03-22 22:15:18] Production.INFO: ProcessCDR(1,14740505,1,1,2) [2025-03-22 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740505', 'tblTempUsageDetail_20' ) start [2025-03-22 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740505', 'tblTempUsageDetail_20' ) end [2025-03-22 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:15:21] Production.INFO: ==11271== Releasing lock... [2025-03-22 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:16:05 [end_date_ymd] => 2025-03-22 22:16:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:16:05' and `end` < '2025-03-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-03-22 22:16:18] Production.INFO: count ==1413 [2025-03-22 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:16:05 - End Time 2025-03-22 22:16:05 [2025-03-22 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740510', 'tblTempUsageDetail_20' ) start [2025-03-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740510', 'tblTempUsageDetail_20' ) end [2025-03-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740510', 'tblTempVendorCDR_20' ) start [2025-03-22 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740510', 'tblTempVendorCDR_20' ) end [2025-03-22 22:16:18] Production.INFO: ProcessCDR(1,14740510,1,1,2) [2025-03-22 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740510', 'tblTempUsageDetail_20' ) start [2025-03-22 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740510', 'tblTempUsageDetail_20' ) end [2025-03-22 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:16:21] Production.INFO: ==11391== Releasing lock... [2025-03-22 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:16:21] Production.INFO: 39 MB #Memory Used# [2025-03-22 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:17:05 [end_date_ymd] => 2025-03-22 22:17:05 [RateCDR] => 1 ) [2025-03-22 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:17:05' and `end` < '2025-03-22 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:17:18] Production.INFO: count ==1422 [2025-03-22 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:17:05 - End Time 2025-03-22 22:17:05 [2025-03-22 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740515', 'tblTempUsageDetail_20' ) start [2025-03-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740515', 'tblTempUsageDetail_20' ) end [2025-03-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740515', 'tblTempVendorCDR_20' ) start [2025-03-22 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740515', 'tblTempVendorCDR_20' ) end [2025-03-22 22:17:18] Production.INFO: ProcessCDR(1,14740515,1,1,2) [2025-03-22 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740515', 'tblTempUsageDetail_20' ) start [2025-03-22 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740515', 'tblTempUsageDetail_20' ) end [2025-03-22 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:17:21] Production.INFO: ==11473== Releasing lock... [2025-03-22 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:17:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:18:06 [end_date_ymd] => 2025-03-22 22:18:06 [RateCDR] => 1 ) [2025-03-22 22:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:18:06' and `end` < '2025-03-22 22:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:18:18] Production.INFO: count ==1427 [2025-03-22 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:18:06 - End Time 2025-03-22 22:18:06 [2025-03-22 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740520', 'tblTempUsageDetail_20' ) start [2025-03-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740520', 'tblTempUsageDetail_20' ) end [2025-03-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740520', 'tblTempVendorCDR_20' ) start [2025-03-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740520', 'tblTempVendorCDR_20' ) end [2025-03-22 22:18:18] Production.INFO: ProcessCDR(1,14740520,1,1,2) [2025-03-22 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740520', 'tblTempUsageDetail_20' ) start [2025-03-22 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740520', 'tblTempUsageDetail_20' ) end [2025-03-22 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:18:22] Production.INFO: ==11558== Releasing lock... [2025-03-22 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:19:05 [end_date_ymd] => 2025-03-22 22:19:05 [RateCDR] => 1 ) [2025-03-22 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:19:05' and `end` < '2025-03-22 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:19:17] Production.INFO: count ==1430 [2025-03-22 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:19:05 - End Time 2025-03-22 22:19:05 [2025-03-22 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740525', 'tblTempUsageDetail_20' ) start [2025-03-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740525', 'tblTempUsageDetail_20' ) end [2025-03-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740525', 'tblTempVendorCDR_20' ) start [2025-03-22 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740525', 'tblTempVendorCDR_20' ) end [2025-03-22 22:19:18] Production.INFO: ProcessCDR(1,14740525,1,1,2) [2025-03-22 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740525', 'tblTempUsageDetail_20' ) start [2025-03-22 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740525', 'tblTempUsageDetail_20' ) end [2025-03-22 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:19:21] Production.INFO: ==11646== Releasing lock... [2025-03-22 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:19:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-22 22:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:20:07 [end_date_ymd] => 2025-03-22 22:20:07 [RateCDR] => 1 ) [2025-03-22 22:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:20:07' and `end` < '2025-03-22 22:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:20:19] Production.INFO: count ==1421 [2025-03-22 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:20:07 - End Time 2025-03-22 22:20:07 [2025-03-22 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740531', 'tblTempUsageDetail_20' ) start [2025-03-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740531', 'tblTempUsageDetail_20' ) end [2025-03-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740531', 'tblTempVendorCDR_20' ) start [2025-03-22 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740531', 'tblTempVendorCDR_20' ) end [2025-03-22 22:20:19] Production.INFO: ProcessCDR(1,14740531,1,1,2) [2025-03-22 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740531', 'tblTempUsageDetail_20' ) start [2025-03-22 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740531', 'tblTempUsageDetail_20' ) end [2025-03-22 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:20:23] Production.INFO: ==11729== Releasing lock... [2025-03-22 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:20:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:21:05 [end_date_ymd] => 2025-03-22 22:21:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:21:05' and `end` < '2025-03-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-03-22 22:21:17] Production.INFO: count ==1368 [2025-03-22 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:21:05 - End Time 2025-03-22 22:21:05 [2025-03-22 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740536', 'tblTempUsageDetail_20' ) start [2025-03-22 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740536', 'tblTempUsageDetail_20' ) end [2025-03-22 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740536', 'tblTempVendorCDR_20' ) start [2025-03-22 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740536', 'tblTempVendorCDR_20' ) end [2025-03-22 22:21:17] Production.INFO: ProcessCDR(1,14740536,1,1,2) [2025-03-22 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740536', 'tblTempUsageDetail_20' ) start [2025-03-22 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740536', 'tblTempUsageDetail_20' ) end [2025-03-22 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:21:21] Production.INFO: ==11816== Releasing lock... [2025-03-22 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:21:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:22:06 [end_date_ymd] => 2025-03-22 22:22:06 [RateCDR] => 1 ) [2025-03-22 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:22:06' and `end` < '2025-03-22 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:22:18] Production.INFO: count ==1377 [2025-03-22 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:22:06 - End Time 2025-03-22 22:22:06 [2025-03-22 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740541', 'tblTempUsageDetail_20' ) start [2025-03-22 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740541', 'tblTempUsageDetail_20' ) end [2025-03-22 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740541', 'tblTempVendorCDR_20' ) start [2025-03-22 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740541', 'tblTempVendorCDR_20' ) end [2025-03-22 22:22:18] Production.INFO: ProcessCDR(1,14740541,1,1,2) [2025-03-22 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740541', 'tblTempUsageDetail_20' ) start [2025-03-22 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740541', 'tblTempUsageDetail_20' ) end [2025-03-22 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:22:21] Production.INFO: ==11899== Releasing lock... [2025-03-22 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:22:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:23:05 [end_date_ymd] => 2025-03-22 22:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:23:05' and `end` < '2025-03-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-03-22 22:23:17] Production.INFO: count ==1388 [2025-03-22 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:23:05 - End Time 2025-03-22 22:23:05 [2025-03-22 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740546', 'tblTempUsageDetail_20' ) start [2025-03-22 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740546', 'tblTempUsageDetail_20' ) end [2025-03-22 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740546', 'tblTempVendorCDR_20' ) start [2025-03-22 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740546', 'tblTempVendorCDR_20' ) end [2025-03-22 22:23:17] Production.INFO: ProcessCDR(1,14740546,1,1,2) [2025-03-22 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740546', 'tblTempUsageDetail_20' ) start [2025-03-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740546', 'tblTempUsageDetail_20' ) end [2025-03-22 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:23:21] Production.INFO: ==11982== Releasing lock... [2025-03-22 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:23:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:24:05 [end_date_ymd] => 2025-03-22 22:24:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:24:05' and `end` < '2025-03-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-03-22 22:24:17] Production.INFO: count ==1388 [2025-03-22 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:24:05 - End Time 2025-03-22 22:24:05 [2025-03-22 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740551', 'tblTempUsageDetail_20' ) start [2025-03-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740551', 'tblTempUsageDetail_20' ) end [2025-03-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740551', 'tblTempVendorCDR_20' ) start [2025-03-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740551', 'tblTempVendorCDR_20' ) end [2025-03-22 22:24:18] Production.INFO: ProcessCDR(1,14740551,1,1,2) [2025-03-22 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740551', 'tblTempUsageDetail_20' ) start [2025-03-22 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740551', 'tblTempUsageDetail_20' ) end [2025-03-22 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:24:21] Production.INFO: ==12070== Releasing lock... [2025-03-22 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:24:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:25:05 [end_date_ymd] => 2025-03-22 22:25:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:25:05' and `end` < '2025-03-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-03-22 22:25:17] Production.INFO: count ==1386 [2025-03-22 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:25:05 - End Time 2025-03-22 22:25:05 [2025-03-22 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740556', 'tblTempUsageDetail_20' ) start [2025-03-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740556', 'tblTempUsageDetail_20' ) end [2025-03-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740556', 'tblTempVendorCDR_20' ) start [2025-03-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740556', 'tblTempVendorCDR_20' ) end [2025-03-22 22:25:17] Production.INFO: ProcessCDR(1,14740556,1,1,2) [2025-03-22 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740556', 'tblTempUsageDetail_20' ) start [2025-03-22 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740556', 'tblTempUsageDetail_20' ) end [2025-03-22 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:25:21] Production.INFO: ==12156== Releasing lock... [2025-03-22 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:25:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:26:05 [end_date_ymd] => 2025-03-22 22:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:26:05' and `end` < '2025-03-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-03-22 22:26:17] Production.INFO: count ==1387 [2025-03-22 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:26:05 - End Time 2025-03-22 22:26:05 [2025-03-22 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740561', 'tblTempUsageDetail_20' ) start [2025-03-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740561', 'tblTempUsageDetail_20' ) end [2025-03-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740561', 'tblTempVendorCDR_20' ) start [2025-03-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740561', 'tblTempVendorCDR_20' ) end [2025-03-22 22:26:17] Production.INFO: ProcessCDR(1,14740561,1,1,2) [2025-03-22 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740561', 'tblTempUsageDetail_20' ) start [2025-03-22 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740561', 'tblTempUsageDetail_20' ) end [2025-03-22 22:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:26:21] Production.INFO: ==12243== Releasing lock... [2025-03-22 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:26:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:27:06 [end_date_ymd] => 2025-03-22 22:27:06 [RateCDR] => 1 ) [2025-03-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-03-22 19:27:06' and `end` < '2025-03-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-03-22 22:27:18] Production.INFO: count ==1387 [2025-03-22 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:27:06 - End Time 2025-03-22 22:27:06 [2025-03-22 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740566', 'tblTempUsageDetail_20' ) start [2025-03-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740566', 'tblTempUsageDetail_20' ) end [2025-03-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740566', 'tblTempVendorCDR_20' ) start [2025-03-22 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740566', 'tblTempVendorCDR_20' ) end [2025-03-22 22:27:19] Production.INFO: ProcessCDR(1,14740566,1,1,2) [2025-03-22 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740566', 'tblTempUsageDetail_20' ) start [2025-03-22 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740566', 'tblTempUsageDetail_20' ) end [2025-03-22 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:27:22] Production.INFO: ==12335== Releasing lock... [2025-03-22 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:28:05 [end_date_ymd] => 2025-03-22 22:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:28:05' and `end` < '2025-03-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-03-22 22:28:18] Production.INFO: count ==1388 [2025-03-22 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:28:05 - End Time 2025-03-22 22:28:05 [2025-03-22 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740571', 'tblTempUsageDetail_20' ) start [2025-03-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740571', 'tblTempUsageDetail_20' ) end [2025-03-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740571', 'tblTempVendorCDR_20' ) start [2025-03-22 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740571', 'tblTempVendorCDR_20' ) end [2025-03-22 22:28:18] Production.INFO: ProcessCDR(1,14740571,1,1,2) [2025-03-22 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740571', 'tblTempUsageDetail_20' ) start [2025-03-22 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740571', 'tblTempUsageDetail_20' ) end [2025-03-22 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:28:22] Production.INFO: ==12427== Releasing lock... [2025-03-22 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:28:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:29:06 [end_date_ymd] => 2025-03-22 22:29:06 [RateCDR] => 1 ) [2025-03-22 22:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:29:06' and `end` < '2025-03-22 22:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:29:18] Production.INFO: count ==1383 [2025-03-22 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:29:06 - End Time 2025-03-22 22:29:06 [2025-03-22 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740576', 'tblTempUsageDetail_20' ) start [2025-03-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740576', 'tblTempUsageDetail_20' ) end [2025-03-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740576', 'tblTempVendorCDR_20' ) start [2025-03-22 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740576', 'tblTempVendorCDR_20' ) end [2025-03-22 22:29:19] Production.INFO: ProcessCDR(1,14740576,1,1,2) [2025-03-22 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740576', 'tblTempUsageDetail_20' ) start [2025-03-22 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740576', 'tblTempUsageDetail_20' ) end [2025-03-22 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:29:23] Production.INFO: ==12523== Releasing lock... [2025-03-22 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:29:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:30:06 [end_date_ymd] => 2025-03-22 22:30:06 [RateCDR] => 1 ) [2025-03-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-03-22 19:30:06' and `end` < '2025-03-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-03-22 22:30:18] Production.INFO: count ==1375 [2025-03-22 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:30:06 - End Time 2025-03-22 22:30:06 [2025-03-22 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740582', 'tblTempUsageDetail_20' ) start [2025-03-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740582', 'tblTempUsageDetail_20' ) end [2025-03-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740582', 'tblTempVendorCDR_20' ) start [2025-03-22 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740582', 'tblTempVendorCDR_20' ) end [2025-03-22 22:30:19] Production.INFO: ProcessCDR(1,14740582,1,1,2) [2025-03-22 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740582', 'tblTempUsageDetail_20' ) start [2025-03-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740582', 'tblTempUsageDetail_20' ) end [2025-03-22 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:30:22] Production.INFO: ==12617== Releasing lock... [2025-03-22 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:30:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-22 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:31:05 [end_date_ymd] => 2025-03-22 22:31:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:31:05' and `end` < '2025-03-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-03-22 22:31:18] Production.INFO: count ==1360 [2025-03-22 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:31:05 - End Time 2025-03-22 22:31:05 [2025-03-22 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740587', 'tblTempUsageDetail_20' ) start [2025-03-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740587', 'tblTempUsageDetail_20' ) end [2025-03-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740587', 'tblTempVendorCDR_20' ) start [2025-03-22 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740587', 'tblTempVendorCDR_20' ) end [2025-03-22 22:31:18] Production.INFO: ProcessCDR(1,14740587,1,1,2) [2025-03-22 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740587', 'tblTempUsageDetail_20' ) start [2025-03-22 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740587', 'tblTempUsageDetail_20' ) end [2025-03-22 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:31:22] Production.INFO: ==12751== Releasing lock... [2025-03-22 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:31:22] Production.INFO: 38 MB #Memory Used# [2025-03-22 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:32:05 [end_date_ymd] => 2025-03-22 22:32:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:32:05' and `end` < '2025-03-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-03-22 22:32:18] Production.INFO: count ==1353 [2025-03-22 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:32:05 - End Time 2025-03-22 22:32:05 [2025-03-22 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740592', 'tblTempUsageDetail_20' ) start [2025-03-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740592', 'tblTempUsageDetail_20' ) end [2025-03-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740592', 'tblTempVendorCDR_20' ) start [2025-03-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740592', 'tblTempVendorCDR_20' ) end [2025-03-22 22:32:18] Production.INFO: ProcessCDR(1,14740592,1,1,2) [2025-03-22 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740592', 'tblTempUsageDetail_20' ) start [2025-03-22 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740592', 'tblTempUsageDetail_20' ) end [2025-03-22 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:32:21] Production.INFO: ==12832== Releasing lock... [2025-03-22 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:32:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:33:05 [end_date_ymd] => 2025-03-22 22:33:05 [RateCDR] => 1 ) [2025-03-22 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:33:05' and `end` < '2025-03-22 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:33:18] Production.INFO: count ==1352 [2025-03-22 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:33:05 - End Time 2025-03-22 22:33:05 [2025-03-22 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740597', 'tblTempUsageDetail_20' ) start [2025-03-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740597', 'tblTempUsageDetail_20' ) end [2025-03-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740597', 'tblTempVendorCDR_20' ) start [2025-03-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740597', 'tblTempVendorCDR_20' ) end [2025-03-22 22:33:18] Production.INFO: ProcessCDR(1,14740597,1,1,2) [2025-03-22 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740597', 'tblTempUsageDetail_20' ) start [2025-03-22 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740597', 'tblTempUsageDetail_20' ) end [2025-03-22 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:33:23] Production.INFO: ==12911== Releasing lock... [2025-03-22 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:33:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:34:05 [end_date_ymd] => 2025-03-22 22:34:05 [RateCDR] => 1 ) [2025-03-22 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:34:05' and `end` < '2025-03-22 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:34:17] Production.INFO: count ==1349 [2025-03-22 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:34:05 - End Time 2025-03-22 22:34:05 [2025-03-22 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740602', 'tblTempUsageDetail_20' ) start [2025-03-22 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740602', 'tblTempUsageDetail_20' ) end [2025-03-22 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740602', 'tblTempVendorCDR_20' ) start [2025-03-22 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740602', 'tblTempVendorCDR_20' ) end [2025-03-22 22:34:18] Production.INFO: ProcessCDR(1,14740602,1,1,2) [2025-03-22 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740602', 'tblTempUsageDetail_20' ) start [2025-03-22 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740602', 'tblTempUsageDetail_20' ) end [2025-03-22 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:34:21] Production.INFO: ==12997== Releasing lock... [2025-03-22 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:34:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:35:05 [end_date_ymd] => 2025-03-22 22:35:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:35:05' and `end` < '2025-03-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-03-22 22:35:18] Production.INFO: count ==1346 [2025-03-22 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:35:05 - End Time 2025-03-22 22:35:05 [2025-03-22 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740607', 'tblTempUsageDetail_20' ) start [2025-03-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740607', 'tblTempUsageDetail_20' ) end [2025-03-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740607', 'tblTempVendorCDR_20' ) start [2025-03-22 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740607', 'tblTempVendorCDR_20' ) end [2025-03-22 22:35:18] Production.INFO: ProcessCDR(1,14740607,1,1,2) [2025-03-22 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740607', 'tblTempUsageDetail_20' ) start [2025-03-22 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740607', 'tblTempUsageDetail_20' ) end [2025-03-22 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:35:21] Production.INFO: ==13080== Releasing lock... [2025-03-22 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:35:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-22 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:36:05 [end_date_ymd] => 2025-03-22 22:36:05 [RateCDR] => 1 ) [2025-03-22 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:36:05' and `end` < '2025-03-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-03-22 22:36:18] Production.INFO: count ==1343 [2025-03-22 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:36:05 - End Time 2025-03-22 22:36:05 [2025-03-22 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740612', 'tblTempUsageDetail_20' ) start [2025-03-22 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740612', 'tblTempUsageDetail_20' ) end [2025-03-22 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740612', 'tblTempVendorCDR_20' ) start [2025-03-22 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740612', 'tblTempVendorCDR_20' ) end [2025-03-22 22:36:18] Production.INFO: ProcessCDR(1,14740612,1,1,2) [2025-03-22 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740612', 'tblTempUsageDetail_20' ) start [2025-03-22 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740612', 'tblTempUsageDetail_20' ) end [2025-03-22 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:36:21] Production.INFO: ==13164== Releasing lock... [2025-03-22 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:36:21] Production.INFO: 38 MB #Memory Used# [2025-03-22 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:37:05 [end_date_ymd] => 2025-03-22 22:37:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:37:05' and `end` < '2025-03-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-03-22 22:37:18] Production.INFO: count ==1331 [2025-03-22 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:37:05 - End Time 2025-03-22 22:37:05 [2025-03-22 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740617', 'tblTempUsageDetail_20' ) start [2025-03-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740617', 'tblTempUsageDetail_20' ) end [2025-03-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740617', 'tblTempVendorCDR_20' ) start [2025-03-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740617', 'tblTempVendorCDR_20' ) end [2025-03-22 22:37:18] Production.INFO: ProcessCDR(1,14740617,1,1,2) [2025-03-22 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740617', 'tblTempUsageDetail_20' ) start [2025-03-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740617', 'tblTempUsageDetail_20' ) end [2025-03-22 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:37:21] Production.INFO: ==13250== Releasing lock... [2025-03-22 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:37:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:38:04 [end_date_ymd] => 2025-03-22 22:38:04 [RateCDR] => 1 ) [2025-03-22 22:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:38:04' and `end` < '2025-03-22 22:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:38:17] Production.INFO: count ==1321 [2025-03-22 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:38:04 - End Time 2025-03-22 22:38:04 [2025-03-22 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740622', 'tblTempUsageDetail_20' ) start [2025-03-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740622', 'tblTempUsageDetail_20' ) end [2025-03-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740622', 'tblTempVendorCDR_20' ) start [2025-03-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740622', 'tblTempVendorCDR_20' ) end [2025-03-22 22:38:17] Production.INFO: ProcessCDR(1,14740622,1,1,2) [2025-03-22 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740622', 'tblTempUsageDetail_20' ) start [2025-03-22 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740622', 'tblTempUsageDetail_20' ) end [2025-03-22 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:38:20] Production.INFO: ==13335== Releasing lock... [2025-03-22 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:38:20] Production.INFO: 38 MB #Memory Used# [2025-03-22 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:39:05 [end_date_ymd] => 2025-03-22 22:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:39:05' and `end` < '2025-03-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-03-22 22:39:17] Production.INFO: count ==1313 [2025-03-22 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:39:05 - End Time 2025-03-22 22:39:05 [2025-03-22 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740627', 'tblTempUsageDetail_20' ) start [2025-03-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740627', 'tblTempUsageDetail_20' ) end [2025-03-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740627', 'tblTempVendorCDR_20' ) start [2025-03-22 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740627', 'tblTempVendorCDR_20' ) end [2025-03-22 22:39:18] Production.INFO: ProcessCDR(1,14740627,1,1,2) [2025-03-22 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740627', 'tblTempUsageDetail_20' ) start [2025-03-22 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740627', 'tblTempUsageDetail_20' ) end [2025-03-22 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:39:21] Production.INFO: ==13423== Releasing lock... [2025-03-22 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:39:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:40:06 [end_date_ymd] => 2025-03-22 22:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 19:40:06' and `end` < '2025-03-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-03-22 22:40:19] Production.INFO: count ==1310 [2025-03-22 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:40:06 - End Time 2025-03-22 22:40:06 [2025-03-22 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740633', 'tblTempUsageDetail_20' ) start [2025-03-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740633', 'tblTempUsageDetail_20' ) end [2025-03-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740633', 'tblTempVendorCDR_20' ) start [2025-03-22 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740633', 'tblTempVendorCDR_20' ) end [2025-03-22 22:40:19] Production.INFO: ProcessCDR(1,14740633,1,1,2) [2025-03-22 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740633', 'tblTempUsageDetail_20' ) start [2025-03-22 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740633', 'tblTempUsageDetail_20' ) end [2025-03-22 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:40:22] Production.INFO: ==13508== Releasing lock... [2025-03-22 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:40:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-22 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:41:05 [end_date_ymd] => 2025-03-22 22:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:41:05' and `end` < '2025-03-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-03-22 22:41:17] Production.INFO: count ==1269 [2025-03-22 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:41:05 - End Time 2025-03-22 22:41:05 [2025-03-22 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740638', 'tblTempUsageDetail_20' ) start [2025-03-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740638', 'tblTempUsageDetail_20' ) end [2025-03-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740638', 'tblTempVendorCDR_20' ) start [2025-03-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740638', 'tblTempVendorCDR_20' ) end [2025-03-22 22:41:17] Production.INFO: ProcessCDR(1,14740638,1,1,2) [2025-03-22 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740638', 'tblTempUsageDetail_20' ) start [2025-03-22 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740638', 'tblTempUsageDetail_20' ) end [2025-03-22 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:41:21] Production.INFO: ==13597== Releasing lock... [2025-03-22 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:41:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:42:05 [end_date_ymd] => 2025-03-22 22:42:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:42:05' and `end` < '2025-03-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-03-22 22:42:18] Production.INFO: count ==1266 [2025-03-22 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:42:05 - End Time 2025-03-22 22:42:05 [2025-03-22 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740643', 'tblTempUsageDetail_20' ) start [2025-03-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740643', 'tblTempUsageDetail_20' ) end [2025-03-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740643', 'tblTempVendorCDR_20' ) start [2025-03-22 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740643', 'tblTempVendorCDR_20' ) end [2025-03-22 22:42:18] Production.INFO: ProcessCDR(1,14740643,1,1,2) [2025-03-22 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740643', 'tblTempUsageDetail_20' ) start [2025-03-22 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740643', 'tblTempUsageDetail_20' ) end [2025-03-22 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:42:21] Production.INFO: ==13694== Releasing lock... [2025-03-22 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:42:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:43:05 [end_date_ymd] => 2025-03-22 22:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:43:05' and `end` < '2025-03-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-03-22 22:43:18] Production.INFO: count ==1266 [2025-03-22 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:43:05 - End Time 2025-03-22 22:43:05 [2025-03-22 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740648', 'tblTempUsageDetail_20' ) start [2025-03-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740648', 'tblTempUsageDetail_20' ) end [2025-03-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740648', 'tblTempVendorCDR_20' ) start [2025-03-22 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740648', 'tblTempVendorCDR_20' ) end [2025-03-22 22:43:18] Production.INFO: ProcessCDR(1,14740648,1,1,2) [2025-03-22 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740648', 'tblTempUsageDetail_20' ) start [2025-03-22 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740648', 'tblTempUsageDetail_20' ) end [2025-03-22 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:43:23] Production.INFO: ==13789== Releasing lock... [2025-03-22 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:43:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:44:05 [end_date_ymd] => 2025-03-22 22:44:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:44:05' and `end` < '2025-03-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-03-22 22:44:17] Production.INFO: count ==1268 [2025-03-22 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:44:05 - End Time 2025-03-22 22:44:05 [2025-03-22 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740653', 'tblTempUsageDetail_20' ) start [2025-03-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740653', 'tblTempUsageDetail_20' ) end [2025-03-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740653', 'tblTempVendorCDR_20' ) start [2025-03-22 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740653', 'tblTempVendorCDR_20' ) end [2025-03-22 22:44:18] Production.INFO: ProcessCDR(1,14740653,1,1,2) [2025-03-22 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740653', 'tblTempUsageDetail_20' ) start [2025-03-22 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740653', 'tblTempUsageDetail_20' ) end [2025-03-22 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:44:21] Production.INFO: ==13877== Releasing lock... [2025-03-22 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:44:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:45:05 [end_date_ymd] => 2025-03-22 22:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:45:05' and `end` < '2025-03-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-03-22 22:45:17] Production.INFO: count ==1263 [2025-03-22 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:45:05 - End Time 2025-03-22 22:45:05 [2025-03-22 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740658', 'tblTempUsageDetail_20' ) start [2025-03-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740658', 'tblTempUsageDetail_20' ) end [2025-03-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740658', 'tblTempVendorCDR_20' ) start [2025-03-22 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740658', 'tblTempVendorCDR_20' ) end [2025-03-22 22:45:18] Production.INFO: ProcessCDR(1,14740658,1,1,2) [2025-03-22 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740658', 'tblTempUsageDetail_20' ) start [2025-03-22 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740658', 'tblTempUsageDetail_20' ) end [2025-03-22 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:45:21] Production.INFO: ==13962== Releasing lock... [2025-03-22 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:46:05 [end_date_ymd] => 2025-03-22 22:46:05 [RateCDR] => 1 ) [2025-03-22 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:46:05' and `end` < '2025-03-22 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:46:18] Production.INFO: count ==1264 [2025-03-22 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:46:05 - End Time 2025-03-22 22:46:05 [2025-03-22 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740663', 'tblTempUsageDetail_20' ) start [2025-03-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740663', 'tblTempUsageDetail_20' ) end [2025-03-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740663', 'tblTempVendorCDR_20' ) start [2025-03-22 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740663', 'tblTempVendorCDR_20' ) end [2025-03-22 22:46:18] Production.INFO: ProcessCDR(1,14740663,1,1,2) [2025-03-22 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740663', 'tblTempUsageDetail_20' ) start [2025-03-22 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740663', 'tblTempUsageDetail_20' ) end [2025-03-22 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:46:21] Production.INFO: ==14043== Releasing lock... [2025-03-22 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:46:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:47:05 [end_date_ymd] => 2025-03-22 22:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:47:05' and `end` < '2025-03-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-03-22 22:47:17] Production.INFO: count ==1260 [2025-03-22 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:47:05 - End Time 2025-03-22 22:47:05 [2025-03-22 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740668', 'tblTempUsageDetail_20' ) start [2025-03-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740668', 'tblTempUsageDetail_20' ) end [2025-03-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740668', 'tblTempVendorCDR_20' ) start [2025-03-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740668', 'tblTempVendorCDR_20' ) end [2025-03-22 22:47:17] Production.INFO: ProcessCDR(1,14740668,1,1,2) [2025-03-22 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740668', 'tblTempUsageDetail_20' ) start [2025-03-22 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740668', 'tblTempUsageDetail_20' ) end [2025-03-22 22:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:47:20] Production.INFO: ==14170== Releasing lock... [2025-03-22 22:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:47:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:48:06 [end_date_ymd] => 2025-03-22 22:48:06 [RateCDR] => 1 ) [2025-03-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-03-22 19:48:06' and `end` < '2025-03-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-03-22 22:48:18] Production.INFO: count ==1264 [2025-03-22 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:48:06 - End Time 2025-03-22 22:48:06 [2025-03-22 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740673', 'tblTempUsageDetail_20' ) start [2025-03-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740673', 'tblTempUsageDetail_20' ) end [2025-03-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740673', 'tblTempVendorCDR_20' ) start [2025-03-22 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740673', 'tblTempVendorCDR_20' ) end [2025-03-22 22:48:18] Production.INFO: ProcessCDR(1,14740673,1,1,2) [2025-03-22 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740673', 'tblTempUsageDetail_20' ) start [2025-03-22 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740673', 'tblTempUsageDetail_20' ) end [2025-03-22 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:48:22] Production.INFO: ==14256== Releasing lock... [2025-03-22 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:48:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:49:05 [end_date_ymd] => 2025-03-22 22:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:49:05' and `end` < '2025-03-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-03-22 22:49:17] Production.INFO: count ==1266 [2025-03-22 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:49:05 - End Time 2025-03-22 22:49:05 [2025-03-22 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740678', 'tblTempUsageDetail_20' ) start [2025-03-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740678', 'tblTempUsageDetail_20' ) end [2025-03-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740678', 'tblTempVendorCDR_20' ) start [2025-03-22 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740678', 'tblTempVendorCDR_20' ) end [2025-03-22 22:49:17] Production.INFO: ProcessCDR(1,14740678,1,1,2) [2025-03-22 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740678', 'tblTempUsageDetail_20' ) start [2025-03-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740678', 'tblTempUsageDetail_20' ) end [2025-03-22 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:49:21] Production.INFO: ==14338== Releasing lock... [2025-03-22 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:49:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:50:06 [end_date_ymd] => 2025-03-22 22:50:06 [RateCDR] => 1 ) [2025-03-22 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:50:06' and `end` < '2025-03-22 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:50:18] Production.INFO: count ==1262 [2025-03-22 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-22 19:50:06 - End Time 2025-03-22 22:50:06 [2025-03-22 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740684', 'tblTempUsageDetail_20' ) start [2025-03-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740684', 'tblTempUsageDetail_20' ) end [2025-03-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740684', 'tblTempVendorCDR_20' ) start [2025-03-22 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740684', 'tblTempVendorCDR_20' ) end [2025-03-22 22:50:19] Production.INFO: ProcessCDR(1,14740684,1,1,2) [2025-03-22 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740684', 'tblTempUsageDetail_20' ) start [2025-03-22 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740684', 'tblTempUsageDetail_20' ) end [2025-03-22 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:50:22] Production.INFO: ==14428== Releasing lock... [2025-03-22 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:51:05 [end_date_ymd] => 2025-03-22 22:51:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:51:05' and `end` < '2025-03-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-03-22 22:51:17] Production.INFO: count ==1232 [2025-03-22 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:51:05 - End Time 2025-03-22 22:51:05 [2025-03-22 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740689', 'tblTempUsageDetail_20' ) start [2025-03-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740689', 'tblTempUsageDetail_20' ) end [2025-03-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740689', 'tblTempVendorCDR_20' ) start [2025-03-22 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740689', 'tblTempVendorCDR_20' ) end [2025-03-22 22:51:17] Production.INFO: ProcessCDR(1,14740689,1,1,2) [2025-03-22 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740689', 'tblTempUsageDetail_20' ) start [2025-03-22 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740689', 'tblTempUsageDetail_20' ) end [2025-03-22 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:51:22] Production.INFO: ==14515== Releasing lock... [2025-03-22 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:52:06 [end_date_ymd] => 2025-03-22 22:52:06 [RateCDR] => 1 ) [2025-03-22 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:52:06' and `end` < '2025-03-22 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:52:18] Production.INFO: count ==1232 [2025-03-22 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:52:06 - End Time 2025-03-22 22:52:06 [2025-03-22 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740694', 'tblTempUsageDetail_20' ) start [2025-03-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740694', 'tblTempUsageDetail_20' ) end [2025-03-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740694', 'tblTempVendorCDR_20' ) start [2025-03-22 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740694', 'tblTempVendorCDR_20' ) end [2025-03-22 22:52:18] Production.INFO: ProcessCDR(1,14740694,1,1,2) [2025-03-22 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740694', 'tblTempUsageDetail_20' ) start [2025-03-22 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740694', 'tblTempUsageDetail_20' ) end [2025-03-22 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:52:21] Production.INFO: ==14598== Releasing lock... [2025-03-22 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:53:05 [end_date_ymd] => 2025-03-22 22:53:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:53:05' and `end` < '2025-03-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-03-22 22:53:17] Production.INFO: count ==1229 [2025-03-22 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:53:05 - End Time 2025-03-22 22:53:05 [2025-03-22 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740699', 'tblTempUsageDetail_20' ) start [2025-03-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740699', 'tblTempUsageDetail_20' ) end [2025-03-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740699', 'tblTempVendorCDR_20' ) start [2025-03-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740699', 'tblTempVendorCDR_20' ) end [2025-03-22 22:53:17] Production.INFO: ProcessCDR(1,14740699,1,1,2) [2025-03-22 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740699', 'tblTempUsageDetail_20' ) start [2025-03-22 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740699', 'tblTempUsageDetail_20' ) end [2025-03-22 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:53:22] Production.INFO: ==14686== Releasing lock... [2025-03-22 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:53:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:54:05 [end_date_ymd] => 2025-03-22 22:54:05 [RateCDR] => 1 ) [2025-03-22 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:54:05' and `end` < '2025-03-22 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:54:18] Production.INFO: count ==1231 [2025-03-22 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:54:05 - End Time 2025-03-22 22:54:05 [2025-03-22 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740704', 'tblTempUsageDetail_20' ) start [2025-03-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740704', 'tblTempUsageDetail_20' ) end [2025-03-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740704', 'tblTempVendorCDR_20' ) start [2025-03-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740704', 'tblTempVendorCDR_20' ) end [2025-03-22 22:54:18] Production.INFO: ProcessCDR(1,14740704,1,1,2) [2025-03-22 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740704', 'tblTempUsageDetail_20' ) start [2025-03-22 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740704', 'tblTempUsageDetail_20' ) end [2025-03-22 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:54:23] Production.INFO: ==14774== Releasing lock... [2025-03-22 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:54:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:55:05 [end_date_ymd] => 2025-03-22 22:55:05 [RateCDR] => 1 ) [2025-03-22 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:55:05' and `end` < '2025-03-22 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:55:17] Production.INFO: count ==1237 [2025-03-22 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:55:05 - End Time 2025-03-22 22:55:05 [2025-03-22 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740709', 'tblTempUsageDetail_20' ) start [2025-03-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740709', 'tblTempUsageDetail_20' ) end [2025-03-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740709', 'tblTempVendorCDR_20' ) start [2025-03-22 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740709', 'tblTempVendorCDR_20' ) end [2025-03-22 22:55:18] Production.INFO: ProcessCDR(1,14740709,1,1,2) [2025-03-22 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740709', 'tblTempUsageDetail_20' ) start [2025-03-22 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740709', 'tblTempUsageDetail_20' ) end [2025-03-22 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:55:23] Production.INFO: ==14856== Releasing lock... [2025-03-22 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:55:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:56:06 [end_date_ymd] => 2025-03-22 22:56:06 [RateCDR] => 1 ) [2025-03-22 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:56:06' and `end` < '2025-03-22 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:56:18] Production.INFO: count ==1233 [2025-03-22 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:56:06 - End Time 2025-03-22 22:56:06 [2025-03-22 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740714', 'tblTempUsageDetail_20' ) start [2025-03-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740714', 'tblTempUsageDetail_20' ) end [2025-03-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740714', 'tblTempVendorCDR_20' ) start [2025-03-22 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740714', 'tblTempVendorCDR_20' ) end [2025-03-22 22:56:18] Production.INFO: ProcessCDR(1,14740714,1,1,2) [2025-03-22 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740714', 'tblTempUsageDetail_20' ) start [2025-03-22 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740714', 'tblTempUsageDetail_20' ) end [2025-03-22 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:56:22] Production.INFO: ==14943== Releasing lock... [2025-03-22 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:57:05 [end_date_ymd] => 2025-03-22 22:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:57:05' and `end` < '2025-03-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-03-22 22:57:17] Production.INFO: count ==1224 [2025-03-22 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:57:05 - End Time 2025-03-22 22:57:05 [2025-03-22 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740719', 'tblTempUsageDetail_20' ) start [2025-03-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740719', 'tblTempUsageDetail_20' ) end [2025-03-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740719', 'tblTempVendorCDR_20' ) start [2025-03-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740719', 'tblTempVendorCDR_20' ) end [2025-03-22 22:57:17] Production.INFO: ProcessCDR(1,14740719,1,1,2) [2025-03-22 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740719', 'tblTempUsageDetail_20' ) start [2025-03-22 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740719', 'tblTempUsageDetail_20' ) end [2025-03-22 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:57:21] Production.INFO: ==15023== Releasing lock... [2025-03-22 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:57:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:58:05 [end_date_ymd] => 2025-03-22 22:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 19:58:05' and `end` < '2025-03-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-03-22 22:58:17] Production.INFO: count ==1223 [2025-03-22 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 19:58:05 - End Time 2025-03-22 22:58:05 [2025-03-22 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740724', 'tblTempUsageDetail_20' ) start [2025-03-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740724', 'tblTempUsageDetail_20' ) end [2025-03-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740724', 'tblTempVendorCDR_20' ) start [2025-03-22 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740724', 'tblTempVendorCDR_20' ) end [2025-03-22 22:58:18] Production.INFO: ProcessCDR(1,14740724,1,1,2) [2025-03-22 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740724', 'tblTempUsageDetail_20' ) start [2025-03-22 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740724', 'tblTempUsageDetail_20' ) end [2025-03-22 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:58:21] Production.INFO: ==15104== Releasing lock... [2025-03-22 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:58:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 19:59:04 [end_date_ymd] => 2025-03-22 22:59:04 [RateCDR] => 1 ) [2025-03-22 22:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 19:59:04' and `end` < '2025-03-22 22:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 22:59:17] Production.INFO: count ==1222 [2025-03-22 22:59:17] Production.ERROR: pbx CDR StartTime 2025-03-22 19:59:04 - End Time 2025-03-22 22:59:04 [2025-03-22 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740729', 'tblTempUsageDetail_20' ) start [2025-03-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740729', 'tblTempUsageDetail_20' ) end [2025-03-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740729', 'tblTempVendorCDR_20' ) start [2025-03-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740729', 'tblTempVendorCDR_20' ) end [2025-03-22 22:59:17] Production.INFO: ProcessCDR(1,14740729,1,1,2) [2025-03-22 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740729', 'tblTempUsageDetail_20' ) start [2025-03-22 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740729', 'tblTempUsageDetail_20' ) end [2025-03-22 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 22:59:20] Production.INFO: ==15184== Releasing lock... [2025-03-22 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 22:59:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:00:05 [end_date_ymd] => 2025-03-22 23:00:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:00:05' and `end` < '2025-03-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-03-22 23:00:18] Production.INFO: count ==1222 [2025-03-22 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:00:05 - End Time 2025-03-22 23:00:05 [2025-03-22 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740734', 'tblTempUsageDetail_20' ) start [2025-03-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740734', 'tblTempUsageDetail_20' ) end [2025-03-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740734', 'tblTempVendorCDR_20' ) start [2025-03-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740734', 'tblTempVendorCDR_20' ) end [2025-03-22 23:00:18] Production.INFO: ProcessCDR(1,14740734,1,1,2) [2025-03-22 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740734', 'tblTempUsageDetail_20' ) start [2025-03-22 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740734', 'tblTempUsageDetail_20' ) end [2025-03-22 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:00:22] Production.INFO: ==15275== Releasing lock... [2025-03-22 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:00:22] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:01:06 [end_date_ymd] => 2025-03-22 23:01:06 [RateCDR] => 1 ) [2025-03-22 23:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:01:06' and `end` < '2025-03-22 23:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:01:18] Production.INFO: count ==1231 [2025-03-22 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:01:06 - End Time 2025-03-22 23:01:06 [2025-03-22 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740740', 'tblTempUsageDetail_20' ) start [2025-03-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740740', 'tblTempUsageDetail_20' ) end [2025-03-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740740', 'tblTempVendorCDR_20' ) start [2025-03-22 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740740', 'tblTempVendorCDR_20' ) end [2025-03-22 23:01:18] Production.INFO: ProcessCDR(1,14740740,1,1,2) [2025-03-22 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740740', 'tblTempUsageDetail_20' ) start [2025-03-22 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740740', 'tblTempUsageDetail_20' ) end [2025-03-22 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:01:23] Production.INFO: ==15455== Releasing lock... [2025-03-22 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:01:23] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:02:05 [end_date_ymd] => 2025-03-22 23:02:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:02:05' and `end` < '2025-03-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-03-22 23:02:18] Production.INFO: count ==1230 [2025-03-22 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:02:05 - End Time 2025-03-22 23:02:05 [2025-03-22 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740745', 'tblTempUsageDetail_20' ) start [2025-03-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740745', 'tblTempUsageDetail_20' ) end [2025-03-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740745', 'tblTempVendorCDR_20' ) start [2025-03-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740745', 'tblTempVendorCDR_20' ) end [2025-03-22 23:02:18] Production.INFO: ProcessCDR(1,14740745,1,1,2) [2025-03-22 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740745', 'tblTempUsageDetail_20' ) start [2025-03-22 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740745', 'tblTempUsageDetail_20' ) end [2025-03-22 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:02:21] Production.INFO: ==15578== Releasing lock... [2025-03-22 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:02:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:03:06 [end_date_ymd] => 2025-03-22 23:03:06 [RateCDR] => 1 ) [2025-03-22 23:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:03:06' and `end` < '2025-03-22 23:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:03:18] Production.INFO: count ==1227 [2025-03-22 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:03:06 - End Time 2025-03-22 23:03:06 [2025-03-22 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740750', 'tblTempUsageDetail_20' ) start [2025-03-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740750', 'tblTempUsageDetail_20' ) end [2025-03-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740750', 'tblTempVendorCDR_20' ) start [2025-03-22 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740750', 'tblTempVendorCDR_20' ) end [2025-03-22 23:03:18] Production.INFO: ProcessCDR(1,14740750,1,1,2) [2025-03-22 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740750', 'tblTempUsageDetail_20' ) start [2025-03-22 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740750', 'tblTempUsageDetail_20' ) end [2025-03-22 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:03:22] Production.INFO: ==15665== Releasing lock... [2025-03-22 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:04:05 [end_date_ymd] => 2025-03-22 23:04:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:04:05' and `end` < '2025-03-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-03-22 23:04:18] Production.INFO: count ==1227 [2025-03-22 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:04:05 - End Time 2025-03-22 23:04:05 [2025-03-22 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740755', 'tblTempUsageDetail_20' ) start [2025-03-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740755', 'tblTempUsageDetail_20' ) end [2025-03-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740755', 'tblTempVendorCDR_20' ) start [2025-03-22 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740755', 'tblTempVendorCDR_20' ) end [2025-03-22 23:04:18] Production.INFO: ProcessCDR(1,14740755,1,1,2) [2025-03-22 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740755', 'tblTempUsageDetail_20' ) start [2025-03-22 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740755', 'tblTempUsageDetail_20' ) end [2025-03-22 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:04:21] Production.INFO: ==15749== Releasing lock... [2025-03-22 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:04:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:05:05 [end_date_ymd] => 2025-03-22 23:05:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:05:05' and `end` < '2025-03-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-03-22 23:05:18] Production.INFO: count ==1225 [2025-03-22 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:05:05 - End Time 2025-03-22 23:05:05 [2025-03-22 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740760', 'tblTempUsageDetail_20' ) start [2025-03-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740760', 'tblTempUsageDetail_20' ) end [2025-03-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740760', 'tblTempVendorCDR_20' ) start [2025-03-22 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740760', 'tblTempVendorCDR_20' ) end [2025-03-22 23:05:18] Production.INFO: ProcessCDR(1,14740760,1,1,2) [2025-03-22 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740760', 'tblTempUsageDetail_20' ) start [2025-03-22 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740760', 'tblTempUsageDetail_20' ) end [2025-03-22 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:05:21] Production.INFO: ==15913== Releasing lock... [2025-03-22 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:05:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:06:05 [end_date_ymd] => 2025-03-22 23:06:05 [RateCDR] => 1 ) [2025-03-22 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:06:05' and `end` < '2025-03-22 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:06:17] Production.INFO: count ==1231 [2025-03-22 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:06:05 - End Time 2025-03-22 23:06:05 [2025-03-22 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740765', 'tblTempUsageDetail_20' ) start [2025-03-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740765', 'tblTempUsageDetail_20' ) end [2025-03-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740765', 'tblTempVendorCDR_20' ) start [2025-03-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740765', 'tblTempVendorCDR_20' ) end [2025-03-22 23:06:17] Production.INFO: ProcessCDR(1,14740765,1,1,2) [2025-03-22 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740765', 'tblTempUsageDetail_20' ) start [2025-03-22 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740765', 'tblTempUsageDetail_20' ) end [2025-03-22 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:06:21] Production.INFO: ==15995== Releasing lock... [2025-03-22 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:06:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-22 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:07:05 [end_date_ymd] => 2025-03-22 23:07:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:07:05' and `end` < '2025-03-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-03-22 23:07:18] Production.INFO: count ==1229 [2025-03-22 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:07:05 - End Time 2025-03-22 23:07:05 [2025-03-22 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740770', 'tblTempUsageDetail_20' ) start [2025-03-22 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740770', 'tblTempUsageDetail_20' ) end [2025-03-22 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740770', 'tblTempVendorCDR_20' ) start [2025-03-22 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740770', 'tblTempVendorCDR_20' ) end [2025-03-22 23:07:18] Production.INFO: ProcessCDR(1,14740770,1,1,2) [2025-03-22 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740770', 'tblTempUsageDetail_20' ) start [2025-03-22 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740770', 'tblTempUsageDetail_20' ) end [2025-03-22 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:07:21] Production.INFO: ==16088== Releasing lock... [2025-03-22 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:07:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:08:05 [end_date_ymd] => 2025-03-22 23:08:05 [RateCDR] => 1 ) [2025-03-22 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:08:05' and `end` < '2025-03-22 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:08:18] Production.INFO: count ==1233 [2025-03-22 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:08:05 - End Time 2025-03-22 23:08:05 [2025-03-22 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740775', 'tblTempUsageDetail_20' ) start [2025-03-22 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740775', 'tblTempUsageDetail_20' ) end [2025-03-22 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740775', 'tblTempVendorCDR_20' ) start [2025-03-22 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740775', 'tblTempVendorCDR_20' ) end [2025-03-22 23:08:18] Production.INFO: ProcessCDR(1,14740775,1,1,2) [2025-03-22 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740775', 'tblTempUsageDetail_20' ) start [2025-03-22 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740775', 'tblTempUsageDetail_20' ) end [2025-03-22 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:08:21] Production.INFO: ==16255== Releasing lock... [2025-03-22 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:08:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:09:06 [end_date_ymd] => 2025-03-22 23:09:06 [RateCDR] => 1 ) [2025-03-22 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:09:06' and `end` < '2025-03-22 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:09:18] Production.INFO: count ==1235 [2025-03-22 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-22 20:09:06 - End Time 2025-03-22 23:09:06 [2025-03-22 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740780', 'tblTempUsageDetail_20' ) start [2025-03-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740780', 'tblTempUsageDetail_20' ) end [2025-03-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740780', 'tblTempVendorCDR_20' ) start [2025-03-22 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740780', 'tblTempVendorCDR_20' ) end [2025-03-22 23:09:19] Production.INFO: ProcessCDR(1,14740780,1,1,2) [2025-03-22 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740780', 'tblTempUsageDetail_20' ) start [2025-03-22 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740780', 'tblTempUsageDetail_20' ) end [2025-03-22 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:09:22] Production.INFO: ==16342== Releasing lock... [2025-03-22 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:10:05 [end_date_ymd] => 2025-03-22 23:10:05 [RateCDR] => 1 ) [2025-03-22 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:10:05' and `end` < '2025-03-22 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:10:18] Production.INFO: count ==1235 [2025-03-22 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:10:05 - End Time 2025-03-22 23:10:05 [2025-03-22 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740785', 'tblTempUsageDetail_20' ) start [2025-03-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740785', 'tblTempUsageDetail_20' ) end [2025-03-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740785', 'tblTempVendorCDR_20' ) start [2025-03-22 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740785', 'tblTempVendorCDR_20' ) end [2025-03-22 23:10:18] Production.INFO: ProcessCDR(1,14740785,1,1,2) [2025-03-22 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740785', 'tblTempUsageDetail_20' ) start [2025-03-22 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740785', 'tblTempUsageDetail_20' ) end [2025-03-22 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:10:23] Production.INFO: ==16424== Releasing lock... [2025-03-22 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-22 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:11:05 [end_date_ymd] => 2025-03-22 23:11:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:11:05' and `end` < '2025-03-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-03-22 23:11:17] Production.INFO: count ==1197 [2025-03-22 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:11:05 - End Time 2025-03-22 23:11:05 [2025-03-22 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740791', 'tblTempUsageDetail_20' ) start [2025-03-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740791', 'tblTempUsageDetail_20' ) end [2025-03-22 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740791', 'tblTempVendorCDR_20' ) start [2025-03-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740791', 'tblTempVendorCDR_20' ) end [2025-03-22 23:11:18] Production.INFO: ProcessCDR(1,14740791,1,1,2) [2025-03-22 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740791', 'tblTempUsageDetail_20' ) start [2025-03-22 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740791', 'tblTempUsageDetail_20' ) end [2025-03-22 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:11:21] Production.INFO: ==16512== Releasing lock... [2025-03-22 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:11:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:12:05 [end_date_ymd] => 2025-03-22 23:12:05 [RateCDR] => 1 ) [2025-03-22 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:12:05' and `end` < '2025-03-22 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:12:18] Production.INFO: count ==1191 [2025-03-22 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:12:05 - End Time 2025-03-22 23:12:05 [2025-03-22 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740796', 'tblTempUsageDetail_20' ) start [2025-03-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740796', 'tblTempUsageDetail_20' ) end [2025-03-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740796', 'tblTempVendorCDR_20' ) start [2025-03-22 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740796', 'tblTempVendorCDR_20' ) end [2025-03-22 23:12:18] Production.INFO: ProcessCDR(1,14740796,1,1,2) [2025-03-22 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740796', 'tblTempUsageDetail_20' ) start [2025-03-22 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740796', 'tblTempUsageDetail_20' ) end [2025-03-22 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:12:23] Production.INFO: ==16673== Releasing lock... [2025-03-22 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:12:23] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:13:05 [end_date_ymd] => 2025-03-22 23:13:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:13:05' and `end` < '2025-03-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-03-22 23:13:18] Production.INFO: count ==1187 [2025-03-22 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:13:05 - End Time 2025-03-22 23:13:05 [2025-03-22 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740801', 'tblTempUsageDetail_20' ) start [2025-03-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740801', 'tblTempUsageDetail_20' ) end [2025-03-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740801', 'tblTempVendorCDR_20' ) start [2025-03-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740801', 'tblTempVendorCDR_20' ) end [2025-03-22 23:13:18] Production.INFO: ProcessCDR(1,14740801,1,1,2) [2025-03-22 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740801', 'tblTempUsageDetail_20' ) start [2025-03-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740801', 'tblTempUsageDetail_20' ) end [2025-03-22 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:13:22] Production.INFO: ==16755== Releasing lock... [2025-03-22 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:13:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:14:05 [end_date_ymd] => 2025-03-22 23:14:05 [RateCDR] => 1 ) [2025-03-22 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:14:05' and `end` < '2025-03-22 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:14:18] Production.INFO: count ==1179 [2025-03-22 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:14:05 - End Time 2025-03-22 23:14:05 [2025-03-22 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740806', 'tblTempUsageDetail_20' ) start [2025-03-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740806', 'tblTempUsageDetail_20' ) end [2025-03-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740806', 'tblTempVendorCDR_20' ) start [2025-03-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740806', 'tblTempVendorCDR_20' ) end [2025-03-22 23:14:18] Production.INFO: ProcessCDR(1,14740806,1,1,2) [2025-03-22 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740806', 'tblTempUsageDetail_20' ) start [2025-03-22 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740806', 'tblTempUsageDetail_20' ) end [2025-03-22 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:14:21] Production.INFO: ==16843== Releasing lock... [2025-03-22 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:14:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:15:05 [end_date_ymd] => 2025-03-22 23:15:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:15:05' and `end` < '2025-03-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-03-22 23:15:18] Production.INFO: count ==1183 [2025-03-22 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:15:05 - End Time 2025-03-22 23:15:05 [2025-03-22 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740811', 'tblTempUsageDetail_20' ) start [2025-03-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740811', 'tblTempUsageDetail_20' ) end [2025-03-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740811', 'tblTempVendorCDR_20' ) start [2025-03-22 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740811', 'tblTempVendorCDR_20' ) end [2025-03-22 23:15:18] Production.INFO: ProcessCDR(1,14740811,1,1,2) [2025-03-22 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740811', 'tblTempUsageDetail_20' ) start [2025-03-22 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740811', 'tblTempUsageDetail_20' ) end [2025-03-22 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:15:21] Production.INFO: ==17000== Releasing lock... [2025-03-22 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:15:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:16:05 [end_date_ymd] => 2025-03-22 23:16:05 [RateCDR] => 1 ) [2025-03-22 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:16:05' and `end` < '2025-03-22 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:16:17] Production.INFO: count ==1182 [2025-03-22 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:16:05 - End Time 2025-03-22 23:16:05 [2025-03-22 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740816', 'tblTempUsageDetail_20' ) start [2025-03-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740816', 'tblTempUsageDetail_20' ) end [2025-03-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740816', 'tblTempVendorCDR_20' ) start [2025-03-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740816', 'tblTempVendorCDR_20' ) end [2025-03-22 23:16:18] Production.INFO: ProcessCDR(1,14740816,1,1,2) [2025-03-22 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740816', 'tblTempUsageDetail_20' ) start [2025-03-22 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740816', 'tblTempUsageDetail_20' ) end [2025-03-22 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:16:21] Production.INFO: ==17090== Releasing lock... [2025-03-22 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:16:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:17:05 [end_date_ymd] => 2025-03-22 23:17:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:17:05' and `end` < '2025-03-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-03-22 23:17:17] Production.INFO: count ==1184 [2025-03-22 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:17:05 - End Time 2025-03-22 23:17:05 [2025-03-22 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740821', 'tblTempUsageDetail_20' ) start [2025-03-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740821', 'tblTempUsageDetail_20' ) end [2025-03-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740821', 'tblTempVendorCDR_20' ) start [2025-03-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740821', 'tblTempVendorCDR_20' ) end [2025-03-22 23:17:18] Production.INFO: ProcessCDR(1,14740821,1,1,2) [2025-03-22 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740821', 'tblTempUsageDetail_20' ) start [2025-03-22 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740821', 'tblTempUsageDetail_20' ) end [2025-03-22 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:17:21] Production.INFO: ==17180== Releasing lock... [2025-03-22 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:17:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:18:05 [end_date_ymd] => 2025-03-22 23:18:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:18:05' and `end` < '2025-03-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-03-22 23:18:18] Production.INFO: count ==1183 [2025-03-22 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:18:05 - End Time 2025-03-22 23:18:05 [2025-03-22 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740826', 'tblTempUsageDetail_20' ) start [2025-03-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740826', 'tblTempUsageDetail_20' ) end [2025-03-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740826', 'tblTempVendorCDR_20' ) start [2025-03-22 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740826', 'tblTempVendorCDR_20' ) end [2025-03-22 23:18:18] Production.INFO: ProcessCDR(1,14740826,1,1,2) [2025-03-22 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740826', 'tblTempUsageDetail_20' ) start [2025-03-22 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740826', 'tblTempUsageDetail_20' ) end [2025-03-22 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:18:23] Production.INFO: ==17304== Releasing lock... [2025-03-22 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:18:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:19:05 [end_date_ymd] => 2025-03-22 23:19:05 [RateCDR] => 1 ) [2025-03-22 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:19:05' and `end` < '2025-03-22 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:19:17] Production.INFO: count ==1186 [2025-03-22 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:19:05 - End Time 2025-03-22 23:19:05 [2025-03-22 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740831', 'tblTempUsageDetail_20' ) start [2025-03-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740831', 'tblTempUsageDetail_20' ) end [2025-03-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740831', 'tblTempVendorCDR_20' ) start [2025-03-22 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740831', 'tblTempVendorCDR_20' ) end [2025-03-22 23:19:18] Production.INFO: ProcessCDR(1,14740831,1,1,2) [2025-03-22 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740831', 'tblTempUsageDetail_20' ) start [2025-03-22 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740831', 'tblTempUsageDetail_20' ) end [2025-03-22 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:19:21] Production.INFO: ==17392== Releasing lock... [2025-03-22 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:20:07 [end_date_ymd] => 2025-03-22 23:20:07 [RateCDR] => 1 ) [2025-03-22 23:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:20:07' and `end` < '2025-03-22 23:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:20:19] Production.INFO: count ==1185 [2025-03-22 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-22 20:20:07 - End Time 2025-03-22 23:20:07 [2025-03-22 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740836', 'tblTempUsageDetail_20' ) start [2025-03-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740836', 'tblTempUsageDetail_20' ) end [2025-03-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740836', 'tblTempVendorCDR_20' ) start [2025-03-22 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740836', 'tblTempVendorCDR_20' ) end [2025-03-22 23:20:19] Production.INFO: ProcessCDR(1,14740836,1,1,2) [2025-03-22 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740836', 'tblTempUsageDetail_20' ) start [2025-03-22 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740836', 'tblTempUsageDetail_20' ) end [2025-03-22 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:20:23] Production.INFO: ==17479== Releasing lock... [2025-03-22 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:20:23] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:21:05 [end_date_ymd] => 2025-03-22 23:21:05 [RateCDR] => 1 ) [2025-03-22 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:21:05' and `end` < '2025-03-22 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:21:17] Production.INFO: count ==1181 [2025-03-22 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:21:05 - End Time 2025-03-22 23:21:05 [2025-03-22 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740842', 'tblTempUsageDetail_20' ) start [2025-03-22 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740842', 'tblTempUsageDetail_20' ) end [2025-03-22 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740842', 'tblTempVendorCDR_20' ) start [2025-03-22 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740842', 'tblTempVendorCDR_20' ) end [2025-03-22 23:21:18] Production.INFO: ProcessCDR(1,14740842,1,1,2) [2025-03-22 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740842', 'tblTempUsageDetail_20' ) start [2025-03-22 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740842', 'tblTempUsageDetail_20' ) end [2025-03-22 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:21:21] Production.INFO: ==17564== Releasing lock... [2025-03-22 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:21:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:22:06 [end_date_ymd] => 2025-03-22 23:22:06 [RateCDR] => 1 ) [2025-03-22 23:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:22:06' and `end` < '2025-03-22 23:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:22:18] Production.INFO: count ==1185 [2025-03-22 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:22:06 - End Time 2025-03-22 23:22:06 [2025-03-22 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740847', 'tblTempUsageDetail_20' ) start [2025-03-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740847', 'tblTempUsageDetail_20' ) end [2025-03-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740847', 'tblTempVendorCDR_20' ) start [2025-03-22 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740847', 'tblTempVendorCDR_20' ) end [2025-03-22 23:22:18] Production.INFO: ProcessCDR(1,14740847,1,1,2) [2025-03-22 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740847', 'tblTempUsageDetail_20' ) start [2025-03-22 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740847', 'tblTempUsageDetail_20' ) end [2025-03-22 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:22:22] Production.INFO: ==17653== Releasing lock... [2025-03-22 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:22:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:23:05 [end_date_ymd] => 2025-03-22 23:23:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:23:05' and `end` < '2025-03-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-03-22 23:23:18] Production.INFO: count ==1182 [2025-03-22 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:23:05 - End Time 2025-03-22 23:23:05 [2025-03-22 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740852', 'tblTempUsageDetail_20' ) start [2025-03-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740852', 'tblTempUsageDetail_20' ) end [2025-03-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740852', 'tblTempVendorCDR_20' ) start [2025-03-22 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740852', 'tblTempVendorCDR_20' ) end [2025-03-22 23:23:18] Production.INFO: ProcessCDR(1,14740852,1,1,2) [2025-03-22 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740852', 'tblTempUsageDetail_20' ) start [2025-03-22 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740852', 'tblTempUsageDetail_20' ) end [2025-03-22 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:23:21] Production.INFO: ==17739== Releasing lock... [2025-03-22 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:23:21] Production.INFO: 37 MB #Memory Used# [2025-03-22 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:24:06 [end_date_ymd] => 2025-03-22 23:24:06 [RateCDR] => 1 ) [2025-03-22 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:24:06' and `end` < '2025-03-22 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:24:18] Production.INFO: count ==1179 [2025-03-22 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:24:06 - End Time 2025-03-22 23:24:06 [2025-03-22 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740857', 'tblTempUsageDetail_20' ) start [2025-03-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740857', 'tblTempUsageDetail_20' ) end [2025-03-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740857', 'tblTempVendorCDR_20' ) start [2025-03-22 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740857', 'tblTempVendorCDR_20' ) end [2025-03-22 23:24:18] Production.INFO: ProcessCDR(1,14740857,1,1,2) [2025-03-22 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740857', 'tblTempUsageDetail_20' ) start [2025-03-22 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740857', 'tblTempUsageDetail_20' ) end [2025-03-22 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:24:22] Production.INFO: ==17822== Releasing lock... [2025-03-22 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:25:05 [end_date_ymd] => 2025-03-22 23:25:05 [RateCDR] => 1 ) [2025-03-22 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:25:05' and `end` < '2025-03-22 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:25:18] Production.INFO: count ==1178 [2025-03-22 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:25:05 - End Time 2025-03-22 23:25:05 [2025-03-22 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740862', 'tblTempUsageDetail_20' ) start [2025-03-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740862', 'tblTempUsageDetail_20' ) end [2025-03-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740862', 'tblTempVendorCDR_20' ) start [2025-03-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740862', 'tblTempVendorCDR_20' ) end [2025-03-22 23:25:18] Production.INFO: ProcessCDR(1,14740862,1,1,2) [2025-03-22 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740862', 'tblTempUsageDetail_20' ) start [2025-03-22 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740862', 'tblTempUsageDetail_20' ) end [2025-03-22 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:25:21] Production.INFO: ==17903== Releasing lock... [2025-03-22 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:25:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:26:05 [end_date_ymd] => 2025-03-22 23:26:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:26:05' and `end` < '2025-03-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-03-22 23:26:18] Production.INFO: count ==1173 [2025-03-22 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:26:05 - End Time 2025-03-22 23:26:05 [2025-03-22 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740867', 'tblTempUsageDetail_20' ) start [2025-03-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740867', 'tblTempUsageDetail_20' ) end [2025-03-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740867', 'tblTempVendorCDR_20' ) start [2025-03-22 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740867', 'tblTempVendorCDR_20' ) end [2025-03-22 23:26:18] Production.INFO: ProcessCDR(1,14740867,1,1,2) [2025-03-22 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740867', 'tblTempUsageDetail_20' ) start [2025-03-22 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740867', 'tblTempUsageDetail_20' ) end [2025-03-22 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:26:22] Production.INFO: ==17996== Releasing lock... [2025-03-22 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:26:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:27:05 [end_date_ymd] => 2025-03-22 23:27:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:27:05' and `end` < '2025-03-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-03-22 23:27:17] Production.INFO: count ==1171 [2025-03-22 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:27:05 - End Time 2025-03-22 23:27:05 [2025-03-22 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740872', 'tblTempUsageDetail_20' ) start [2025-03-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740872', 'tblTempUsageDetail_20' ) end [2025-03-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740872', 'tblTempVendorCDR_20' ) start [2025-03-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740872', 'tblTempVendorCDR_20' ) end [2025-03-22 23:27:17] Production.INFO: ProcessCDR(1,14740872,1,1,2) [2025-03-22 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740872', 'tblTempUsageDetail_20' ) start [2025-03-22 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740872', 'tblTempUsageDetail_20' ) end [2025-03-22 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:27:21] Production.INFO: ==18083== Releasing lock... [2025-03-22 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:27:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:28:05 [end_date_ymd] => 2025-03-22 23:28:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:28:05' and `end` < '2025-03-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-03-22 23:28:18] Production.INFO: count ==1175 [2025-03-22 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:28:05 - End Time 2025-03-22 23:28:05 [2025-03-22 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740877', 'tblTempUsageDetail_20' ) start [2025-03-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740877', 'tblTempUsageDetail_20' ) end [2025-03-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740877', 'tblTempVendorCDR_20' ) start [2025-03-22 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740877', 'tblTempVendorCDR_20' ) end [2025-03-22 23:28:18] Production.INFO: ProcessCDR(1,14740877,1,1,2) [2025-03-22 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740877', 'tblTempUsageDetail_20' ) start [2025-03-22 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740877', 'tblTempUsageDetail_20' ) end [2025-03-22 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:28:23] Production.INFO: ==18167== Releasing lock... [2025-03-22 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:28:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:29:05 [end_date_ymd] => 2025-03-22 23:29:05 [RateCDR] => 1 ) [2025-03-22 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:29:05' and `end` < '2025-03-22 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:29:17] Production.INFO: count ==1168 [2025-03-22 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:29:05 - End Time 2025-03-22 23:29:05 [2025-03-22 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740882', 'tblTempUsageDetail_20' ) start [2025-03-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740882', 'tblTempUsageDetail_20' ) end [2025-03-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740882', 'tblTempVendorCDR_20' ) start [2025-03-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740882', 'tblTempVendorCDR_20' ) end [2025-03-22 23:29:17] Production.INFO: ProcessCDR(1,14740882,1,1,2) [2025-03-22 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740882', 'tblTempUsageDetail_20' ) start [2025-03-22 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740882', 'tblTempUsageDetail_20' ) end [2025-03-22 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:29:21] Production.INFO: ==18251== Releasing lock... [2025-03-22 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:29:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:30:06 [end_date_ymd] => 2025-03-22 23:30:06 [RateCDR] => 1 ) [2025-03-22 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:30:06' and `end` < '2025-03-22 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:30:19] Production.INFO: count ==1164 [2025-03-22 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-22 20:30:06 - End Time 2025-03-22 23:30:06 [2025-03-22 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740888', 'tblTempUsageDetail_20' ) start [2025-03-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740888', 'tblTempUsageDetail_20' ) end [2025-03-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740888', 'tblTempVendorCDR_20' ) start [2025-03-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740888', 'tblTempVendorCDR_20' ) end [2025-03-22 23:30:19] Production.INFO: ProcessCDR(1,14740888,1,1,2) [2025-03-22 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740888', 'tblTempUsageDetail_20' ) start [2025-03-22 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740888', 'tblTempUsageDetail_20' ) end [2025-03-22 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:30:22] Production.INFO: ==18342== Releasing lock... [2025-03-22 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:31:05 [end_date_ymd] => 2025-03-22 23:31:05 [RateCDR] => 1 ) [2025-03-22 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:31:05' and `end` < '2025-03-22 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:31:17] Production.INFO: count ==1143 [2025-03-22 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:31:05 - End Time 2025-03-22 23:31:05 [2025-03-22 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740893', 'tblTempUsageDetail_20' ) start [2025-03-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740893', 'tblTempUsageDetail_20' ) end [2025-03-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740893', 'tblTempVendorCDR_20' ) start [2025-03-22 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740893', 'tblTempVendorCDR_20' ) end [2025-03-22 23:31:18] Production.INFO: ProcessCDR(1,14740893,1,1,2) [2025-03-22 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740893', 'tblTempUsageDetail_20' ) start [2025-03-22 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740893', 'tblTempUsageDetail_20' ) end [2025-03-22 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:31:21] Production.INFO: ==18422== Releasing lock... [2025-03-22 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:31:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:32:06 [end_date_ymd] => 2025-03-22 23:32:06 [RateCDR] => 1 ) [2025-03-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-03-22 20:32:06' and `end` < '2025-03-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-03-22 23:32:18] Production.INFO: count ==1140 [2025-03-22 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:32:06 - End Time 2025-03-22 23:32:06 [2025-03-22 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740898', 'tblTempUsageDetail_20' ) start [2025-03-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740898', 'tblTempUsageDetail_20' ) end [2025-03-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740898', 'tblTempVendorCDR_20' ) start [2025-03-22 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740898', 'tblTempVendorCDR_20' ) end [2025-03-22 23:32:18] Production.INFO: ProcessCDR(1,14740898,1,1,2) [2025-03-22 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740898', 'tblTempUsageDetail_20' ) start [2025-03-22 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740898', 'tblTempUsageDetail_20' ) end [2025-03-22 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:32:23] Production.INFO: ==18509== Releasing lock... [2025-03-22 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:32:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:33:04 [end_date_ymd] => 2025-03-22 23:33:04 [RateCDR] => 1 ) [2025-03-22 23: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-03-22 20:33:04' and `end` < '2025-03-22 23: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-03-22 23:33:17] Production.INFO: count ==1135 [2025-03-22 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:33:04 - End Time 2025-03-22 23:33:04 [2025-03-22 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740903', 'tblTempUsageDetail_20' ) start [2025-03-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740903', 'tblTempUsageDetail_20' ) end [2025-03-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740903', 'tblTempVendorCDR_20' ) start [2025-03-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740903', 'tblTempVendorCDR_20' ) end [2025-03-22 23:33:17] Production.INFO: ProcessCDR(1,14740903,1,1,2) [2025-03-22 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740903', 'tblTempUsageDetail_20' ) start [2025-03-22 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740903', 'tblTempUsageDetail_20' ) end [2025-03-22 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:33:20] Production.INFO: ==18639== Releasing lock... [2025-03-22 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:33:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:34:05 [end_date_ymd] => 2025-03-22 23:34:05 [RateCDR] => 1 ) [2025-03-22 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:34:05' and `end` < '2025-03-22 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:34:18] Production.INFO: count ==1128 [2025-03-22 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:34:05 - End Time 2025-03-22 23:34:05 [2025-03-22 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740908', 'tblTempUsageDetail_20' ) start [2025-03-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740908', 'tblTempUsageDetail_20' ) end [2025-03-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740908', 'tblTempVendorCDR_20' ) start [2025-03-22 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740908', 'tblTempVendorCDR_20' ) end [2025-03-22 23:34:18] Production.INFO: ProcessCDR(1,14740908,1,1,2) [2025-03-22 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740908', 'tblTempUsageDetail_20' ) start [2025-03-22 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740908', 'tblTempUsageDetail_20' ) end [2025-03-22 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:34:23] Production.INFO: ==18719== Releasing lock... [2025-03-22 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:34:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:35:06 [end_date_ymd] => 2025-03-22 23:35:06 [RateCDR] => 1 ) [2025-03-22 23:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:35:06' and `end` < '2025-03-22 23:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:35:18] Production.INFO: count ==1127 [2025-03-22 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:35:06 - End Time 2025-03-22 23:35:06 [2025-03-22 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740913', 'tblTempUsageDetail_20' ) start [2025-03-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740913', 'tblTempUsageDetail_20' ) end [2025-03-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740913', 'tblTempVendorCDR_20' ) start [2025-03-22 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740913', 'tblTempVendorCDR_20' ) end [2025-03-22 23:35:18] Production.INFO: ProcessCDR(1,14740913,1,1,2) [2025-03-22 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740913', 'tblTempUsageDetail_20' ) start [2025-03-22 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740913', 'tblTempUsageDetail_20' ) end [2025-03-22 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:35:22] Production.INFO: ==18807== Releasing lock... [2025-03-22 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:36:05 [end_date_ymd] => 2025-03-22 23:36:05 [RateCDR] => 1 ) [2025-03-22 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:36:05' and `end` < '2025-03-22 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:36:18] Production.INFO: count ==1127 [2025-03-22 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:36:05 - End Time 2025-03-22 23:36:05 [2025-03-22 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740918', 'tblTempUsageDetail_20' ) start [2025-03-22 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740918', 'tblTempUsageDetail_20' ) end [2025-03-22 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740918', 'tblTempVendorCDR_20' ) start [2025-03-22 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740918', 'tblTempVendorCDR_20' ) end [2025-03-22 23:36:18] Production.INFO: ProcessCDR(1,14740918,1,1,2) [2025-03-22 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740918', 'tblTempUsageDetail_20' ) start [2025-03-22 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740918', 'tblTempUsageDetail_20' ) end [2025-03-22 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:36:21] Production.INFO: ==18897== Releasing lock... [2025-03-22 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:36:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:37:06 [end_date_ymd] => 2025-03-22 23:37:06 [RateCDR] => 1 ) [2025-03-22 23:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:37:06' and `end` < '2025-03-22 23:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:37:18] Production.INFO: count ==1132 [2025-03-22 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:37:06 - End Time 2025-03-22 23:37:06 [2025-03-22 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740923', 'tblTempUsageDetail_20' ) start [2025-03-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740923', 'tblTempUsageDetail_20' ) end [2025-03-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740923', 'tblTempVendorCDR_20' ) start [2025-03-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740923', 'tblTempVendorCDR_20' ) end [2025-03-22 23:37:18] Production.INFO: ProcessCDR(1,14740923,1,1,2) [2025-03-22 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740923', 'tblTempUsageDetail_20' ) start [2025-03-22 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740923', 'tblTempUsageDetail_20' ) end [2025-03-22 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:37:23] Production.INFO: ==18979== Releasing lock... [2025-03-22 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:37:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:38:06 [end_date_ymd] => 2025-03-22 23:38:06 [RateCDR] => 1 ) [2025-03-22 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:38:06' and `end` < '2025-03-22 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:38:18] Production.INFO: count ==1133 [2025-03-22 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:38:06 - End Time 2025-03-22 23:38:06 [2025-03-22 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740928', 'tblTempUsageDetail_20' ) start [2025-03-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740928', 'tblTempUsageDetail_20' ) end [2025-03-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740928', 'tblTempVendorCDR_20' ) start [2025-03-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740928', 'tblTempVendorCDR_20' ) end [2025-03-22 23:38:18] Production.INFO: ProcessCDR(1,14740928,1,1,2) [2025-03-22 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740928', 'tblTempUsageDetail_20' ) start [2025-03-22 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740928', 'tblTempUsageDetail_20' ) end [2025-03-22 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:38:22] Production.INFO: ==19059== Releasing lock... [2025-03-22 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:38:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:39:05 [end_date_ymd] => 2025-03-22 23:39:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:39:05' and `end` < '2025-03-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-03-22 23:39:18] Production.INFO: count ==1126 [2025-03-22 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:39:05 - End Time 2025-03-22 23:39:05 [2025-03-22 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740933', 'tblTempUsageDetail_20' ) start [2025-03-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740933', 'tblTempUsageDetail_20' ) end [2025-03-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740933', 'tblTempVendorCDR_20' ) start [2025-03-22 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740933', 'tblTempVendorCDR_20' ) end [2025-03-22 23:39:18] Production.INFO: ProcessCDR(1,14740933,1,1,2) [2025-03-22 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740933', 'tblTempUsageDetail_20' ) start [2025-03-22 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740933', 'tblTempUsageDetail_20' ) end [2025-03-22 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:39:21] Production.INFO: ==19147== Releasing lock... [2025-03-22 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:39:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:40:06 [end_date_ymd] => 2025-03-22 23:40:06 [RateCDR] => 1 ) [2025-03-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-03-22 20:40:06' and `end` < '2025-03-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-03-22 23:40:18] Production.INFO: count ==1123 [2025-03-22 23:40:19] Production.ERROR: pbx CDR StartTime 2025-03-22 20:40:06 - End Time 2025-03-22 23:40:06 [2025-03-22 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740939', 'tblTempUsageDetail_20' ) start [2025-03-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740939', 'tblTempUsageDetail_20' ) end [2025-03-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740939', 'tblTempVendorCDR_20' ) start [2025-03-22 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740939', 'tblTempVendorCDR_20' ) end [2025-03-22 23:40:19] Production.INFO: ProcessCDR(1,14740939,1,1,2) [2025-03-22 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740939', 'tblTempUsageDetail_20' ) start [2025-03-22 23:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740939', 'tblTempUsageDetail_20' ) end [2025-03-22 23:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:40:24] Production.INFO: ==19222== Releasing lock... [2025-03-22 23:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:40:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:41:05 [end_date_ymd] => 2025-03-22 23:41:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:41:05' and `end` < '2025-03-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-03-22 23:41:18] Production.INFO: count ==1141 [2025-03-22 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:41:05 - End Time 2025-03-22 23:41:05 [2025-03-22 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740944', 'tblTempUsageDetail_20' ) start [2025-03-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740944', 'tblTempUsageDetail_20' ) end [2025-03-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740944', 'tblTempVendorCDR_20' ) start [2025-03-22 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740944', 'tblTempVendorCDR_20' ) end [2025-03-22 23:41:18] Production.INFO: ProcessCDR(1,14740944,1,1,2) [2025-03-22 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740944', 'tblTempUsageDetail_20' ) start [2025-03-22 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740944', 'tblTempUsageDetail_20' ) end [2025-03-22 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:41:21] Production.INFO: ==19298== Releasing lock... [2025-03-22 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:41:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:42:05 [end_date_ymd] => 2025-03-22 23:42:05 [RateCDR] => 1 ) [2025-03-22 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:42:05' and `end` < '2025-03-22 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:42:17] Production.INFO: count ==1141 [2025-03-22 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:42:05 - End Time 2025-03-22 23:42:05 [2025-03-22 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740949', 'tblTempUsageDetail_20' ) start [2025-03-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740949', 'tblTempUsageDetail_20' ) end [2025-03-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740949', 'tblTempVendorCDR_20' ) start [2025-03-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740949', 'tblTempVendorCDR_20' ) end [2025-03-22 23:42:18] Production.INFO: ProcessCDR(1,14740949,1,1,2) [2025-03-22 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740949', 'tblTempUsageDetail_20' ) start [2025-03-22 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740949', 'tblTempUsageDetail_20' ) end [2025-03-22 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:42:21] Production.INFO: ==19371== Releasing lock... [2025-03-22 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:42:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:43:05 [end_date_ymd] => 2025-03-22 23:43:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:43:05' and `end` < '2025-03-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-03-22 23:43:18] Production.INFO: count ==1145 [2025-03-22 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:43:05 - End Time 2025-03-22 23:43:05 [2025-03-22 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740954', 'tblTempUsageDetail_20' ) start [2025-03-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740954', 'tblTempUsageDetail_20' ) end [2025-03-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740954', 'tblTempVendorCDR_20' ) start [2025-03-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740954', 'tblTempVendorCDR_20' ) end [2025-03-22 23:43:18] Production.INFO: ProcessCDR(1,14740954,1,1,2) [2025-03-22 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740954', 'tblTempUsageDetail_20' ) start [2025-03-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740954', 'tblTempUsageDetail_20' ) end [2025-03-22 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:43:21] Production.INFO: ==19443== Releasing lock... [2025-03-22 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:44:06 [end_date_ymd] => 2025-03-22 23:44:06 [RateCDR] => 1 ) [2025-03-22 23:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:44:06' and `end` < '2025-03-22 23:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:44:18] Production.INFO: count ==1147 [2025-03-22 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:44:06 - End Time 2025-03-22 23:44:06 [2025-03-22 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740959', 'tblTempUsageDetail_20' ) start [2025-03-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740959', 'tblTempUsageDetail_20' ) end [2025-03-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740959', 'tblTempVendorCDR_20' ) start [2025-03-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740959', 'tblTempVendorCDR_20' ) end [2025-03-22 23:44:18] Production.INFO: ProcessCDR(1,14740959,1,1,2) [2025-03-22 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740959', 'tblTempUsageDetail_20' ) start [2025-03-22 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740959', 'tblTempUsageDetail_20' ) end [2025-03-22 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:44:23] Production.INFO: ==19514== Releasing lock... [2025-03-22 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:44:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:45:05 [end_date_ymd] => 2025-03-22 23:45:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:45:05' and `end` < '2025-03-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-03-22 23:45:18] Production.INFO: count ==1143 [2025-03-22 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:45:05 - End Time 2025-03-22 23:45:05 [2025-03-22 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740964', 'tblTempUsageDetail_20' ) start [2025-03-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740964', 'tblTempUsageDetail_20' ) end [2025-03-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740964', 'tblTempVendorCDR_20' ) start [2025-03-22 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740964', 'tblTempVendorCDR_20' ) end [2025-03-22 23:45:18] Production.INFO: ProcessCDR(1,14740964,1,1,2) [2025-03-22 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740964', 'tblTempUsageDetail_20' ) start [2025-03-22 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740964', 'tblTempUsageDetail_20' ) end [2025-03-22 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:45:21] Production.INFO: ==19595== Releasing lock... [2025-03-22 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:45:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:46:05 [end_date_ymd] => 2025-03-22 23:46:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:46:05' and `end` < '2025-03-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-03-22 23:46:17] Production.INFO: count ==1142 [2025-03-22 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:46:05 - End Time 2025-03-22 23:46:05 [2025-03-22 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740969', 'tblTempUsageDetail_20' ) start [2025-03-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740969', 'tblTempUsageDetail_20' ) end [2025-03-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740969', 'tblTempVendorCDR_20' ) start [2025-03-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740969', 'tblTempVendorCDR_20' ) end [2025-03-22 23:46:18] Production.INFO: ProcessCDR(1,14740969,1,1,2) [2025-03-22 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740969', 'tblTempUsageDetail_20' ) start [2025-03-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740969', 'tblTempUsageDetail_20' ) end [2025-03-22 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:46:21] Production.INFO: ==19668== Releasing lock... [2025-03-22 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:46:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:47:05 [end_date_ymd] => 2025-03-22 23:47:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:47:05' and `end` < '2025-03-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-03-22 23:47:18] Production.INFO: count ==1139 [2025-03-22 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:47:05 - End Time 2025-03-22 23:47:05 [2025-03-22 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740974', 'tblTempUsageDetail_20' ) start [2025-03-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740974', 'tblTempUsageDetail_20' ) end [2025-03-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740974', 'tblTempVendorCDR_20' ) start [2025-03-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740974', 'tblTempVendorCDR_20' ) end [2025-03-22 23:47:18] Production.INFO: ProcessCDR(1,14740974,1,1,2) [2025-03-22 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740974', 'tblTempUsageDetail_20' ) start [2025-03-22 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740974', 'tblTempUsageDetail_20' ) end [2025-03-22 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:47:22] Production.INFO: ==19740== Releasing lock... [2025-03-22 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:48:05 [end_date_ymd] => 2025-03-22 23:48:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:48:05' and `end` < '2025-03-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-03-22 23:48:18] Production.INFO: count ==1138 [2025-03-22 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:48:05 - End Time 2025-03-22 23:48:05 [2025-03-22 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740979', 'tblTempUsageDetail_20' ) start [2025-03-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740979', 'tblTempUsageDetail_20' ) end [2025-03-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740979', 'tblTempVendorCDR_20' ) start [2025-03-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740979', 'tblTempVendorCDR_20' ) end [2025-03-22 23:48:18] Production.INFO: ProcessCDR(1,14740979,1,1,2) [2025-03-22 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740979', 'tblTempUsageDetail_20' ) start [2025-03-22 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740979', 'tblTempUsageDetail_20' ) end [2025-03-22 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:48:21] Production.INFO: ==19813== Releasing lock... [2025-03-22 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:48:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-22 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:49:05 [end_date_ymd] => 2025-03-22 23:49:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:49:05' and `end` < '2025-03-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-03-22 23:49:18] Production.INFO: count ==1136 [2025-03-22 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:49:05 - End Time 2025-03-22 23:49:05 [2025-03-22 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740984', 'tblTempUsageDetail_20' ) start [2025-03-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740984', 'tblTempUsageDetail_20' ) end [2025-03-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740984', 'tblTempVendorCDR_20' ) start [2025-03-22 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740984', 'tblTempVendorCDR_20' ) end [2025-03-22 23:49:18] Production.INFO: ProcessCDR(1,14740984,1,1,2) [2025-03-22 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740984', 'tblTempUsageDetail_20' ) start [2025-03-22 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740984', 'tblTempUsageDetail_20' ) end [2025-03-22 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:49:21] Production.INFO: ==19926== Releasing lock... [2025-03-22 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-22 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:50:06 [end_date_ymd] => 2025-03-22 23:50:06 [RateCDR] => 1 ) [2025-03-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-03-22 20:50:06' and `end` < '2025-03-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-03-22 23:50:18] Production.INFO: count ==1132 [2025-03-22 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:50:06 - End Time 2025-03-22 23:50:06 [2025-03-22 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740989', 'tblTempUsageDetail_20' ) start [2025-03-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740989', 'tblTempUsageDetail_20' ) end [2025-03-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740989', 'tblTempVendorCDR_20' ) start [2025-03-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740989', 'tblTempVendorCDR_20' ) end [2025-03-22 23:50:18] Production.INFO: ProcessCDR(1,14740989,1,1,2) [2025-03-22 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740989', 'tblTempUsageDetail_20' ) start [2025-03-22 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740989', 'tblTempUsageDetail_20' ) end [2025-03-22 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:50:22] Production.INFO: ==20003== Releasing lock... [2025-03-22 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:51:05 [end_date_ymd] => 2025-03-22 23:51:05 [RateCDR] => 1 ) [2025-03-22 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:51:05' and `end` < '2025-03-22 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:51:18] Production.INFO: count ==1103 [2025-03-22 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:51:05 - End Time 2025-03-22 23:51:05 [2025-03-22 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740995', 'tblTempUsageDetail_20' ) start [2025-03-22 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14740995', 'tblTempUsageDetail_20' ) end [2025-03-22 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740995', 'tblTempVendorCDR_20' ) start [2025-03-22 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14740995', 'tblTempVendorCDR_20' ) end [2025-03-22 23:51:18] Production.INFO: ProcessCDR(1,14740995,1,1,2) [2025-03-22 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14740995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14740995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14740995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14740995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740995', 'tblTempUsageDetail_20' ) start [2025-03-22 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14740995', 'tblTempUsageDetail_20' ) end [2025-03-22 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:51:21] Production.INFO: ==20082== Releasing lock... [2025-03-22 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:52:04 [end_date_ymd] => 2025-03-22 23:52:04 [RateCDR] => 1 ) [2025-03-22 23:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:52:04' and `end` < '2025-03-22 23:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:52:17] Production.INFO: count ==1103 [2025-03-22 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:52:04 - End Time 2025-03-22 23:52:04 [2025-03-22 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741000', 'tblTempUsageDetail_20' ) start [2025-03-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741000', 'tblTempUsageDetail_20' ) end [2025-03-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741000', 'tblTempVendorCDR_20' ) start [2025-03-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741000', 'tblTempVendorCDR_20' ) end [2025-03-22 23:52:17] Production.INFO: ProcessCDR(1,14741000,1,1,2) [2025-03-22 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741000', 'tblTempUsageDetail_20' ) start [2025-03-22 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741000', 'tblTempUsageDetail_20' ) end [2025-03-22 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:52:22] Production.INFO: ==20155== Releasing lock... [2025-03-22 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:52:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:53:05 [end_date_ymd] => 2025-03-22 23:53:05 [RateCDR] => 1 ) [2025-03-22 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:53:05' and `end` < '2025-03-22 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:53:17] Production.INFO: count ==1102 [2025-03-22 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:53:05 - End Time 2025-03-22 23:53:05 [2025-03-22 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741005', 'tblTempUsageDetail_20' ) start [2025-03-22 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741005', 'tblTempUsageDetail_20' ) end [2025-03-22 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741005', 'tblTempVendorCDR_20' ) start [2025-03-22 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741005', 'tblTempVendorCDR_20' ) end [2025-03-22 23:53:18] Production.INFO: ProcessCDR(1,14741005,1,1,2) [2025-03-22 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741005', 'tblTempUsageDetail_20' ) start [2025-03-22 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741005', 'tblTempUsageDetail_20' ) end [2025-03-22 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:53:21] Production.INFO: ==20227== Releasing lock... [2025-03-22 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:53:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:54:06 [end_date_ymd] => 2025-03-22 23:54:06 [RateCDR] => 1 ) [2025-03-22 23:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:54:06' and `end` < '2025-03-22 23:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:54:19] Production.INFO: count ==1103 [2025-03-22 23:54:19] Production.ERROR: pbx CDR StartTime 2025-03-22 20:54:06 - End Time 2025-03-22 23:54:06 [2025-03-22 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741010', 'tblTempUsageDetail_20' ) start [2025-03-22 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741010', 'tblTempUsageDetail_20' ) end [2025-03-22 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741010', 'tblTempVendorCDR_20' ) start [2025-03-22 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741010', 'tblTempVendorCDR_20' ) end [2025-03-22 23:54:19] Production.INFO: ProcessCDR(1,14741010,1,1,2) [2025-03-22 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741010', 'tblTempUsageDetail_20' ) start [2025-03-22 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741010', 'tblTempUsageDetail_20' ) end [2025-03-22 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:54:22] Production.INFO: ==20300== Releasing lock... [2025-03-22 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:55:05 [end_date_ymd] => 2025-03-22 23:55:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:55:05' and `end` < '2025-03-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-03-22 23:55:17] Production.INFO: count ==1101 [2025-03-22 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:55:05 - End Time 2025-03-22 23:55:05 [2025-03-22 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741015', 'tblTempUsageDetail_20' ) start [2025-03-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741015', 'tblTempUsageDetail_20' ) end [2025-03-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741015', 'tblTempVendorCDR_20' ) start [2025-03-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741015', 'tblTempVendorCDR_20' ) end [2025-03-22 23:55:17] Production.INFO: ProcessCDR(1,14741015,1,1,2) [2025-03-22 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741015', 'tblTempUsageDetail_20' ) start [2025-03-22 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741015', 'tblTempUsageDetail_20' ) end [2025-03-22 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:55:21] Production.INFO: ==20371== Releasing lock... [2025-03-22 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:56:06 [end_date_ymd] => 2025-03-22 23:56:06 [RateCDR] => 1 ) [2025-03-22 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-22 20:56:06' and `end` < '2025-03-22 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-22 23:56:19] Production.INFO: count ==1098 [2025-03-22 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-22 20:56:06 - End Time 2025-03-22 23:56:06 [2025-03-22 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741020', 'tblTempUsageDetail_20' ) start [2025-03-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741020', 'tblTempUsageDetail_20' ) end [2025-03-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741020', 'tblTempVendorCDR_20' ) start [2025-03-22 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741020', 'tblTempVendorCDR_20' ) end [2025-03-22 23:56:19] Production.INFO: ProcessCDR(1,14741020,1,1,2) [2025-03-22 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741020', 'tblTempUsageDetail_20' ) start [2025-03-22 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741020', 'tblTempUsageDetail_20' ) end [2025-03-22 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:56:22] Production.INFO: ==20443== Releasing lock... [2025-03-22 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:56:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:57:05 [end_date_ymd] => 2025-03-22 23:57:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:57:05' and `end` < '2025-03-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-03-22 23:57:17] Production.INFO: count ==1097 [2025-03-22 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:57:05 - End Time 2025-03-22 23:57:05 [2025-03-22 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741025', 'tblTempUsageDetail_20' ) start [2025-03-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741025', 'tblTempUsageDetail_20' ) end [2025-03-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741025', 'tblTempVendorCDR_20' ) start [2025-03-22 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741025', 'tblTempVendorCDR_20' ) end [2025-03-22 23:57:18] Production.INFO: ProcessCDR(1,14741025,1,1,2) [2025-03-22 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741025', 'tblTempUsageDetail_20' ) start [2025-03-22 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741025', 'tblTempUsageDetail_20' ) end [2025-03-22 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:57:21] Production.INFO: ==20514== Releasing lock... [2025-03-22 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:57:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-22 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:58:05 [end_date_ymd] => 2025-03-22 23:58:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:58:05' and `end` < '2025-03-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-03-22 23:58:18] Production.INFO: count ==1092 [2025-03-22 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-22 20:58:05 - End Time 2025-03-22 23:58:05 [2025-03-22 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741030', 'tblTempUsageDetail_20' ) start [2025-03-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741030', 'tblTempUsageDetail_20' ) end [2025-03-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741030', 'tblTempVendorCDR_20' ) start [2025-03-22 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741030', 'tblTempVendorCDR_20' ) end [2025-03-22 23:58:18] Production.INFO: ProcessCDR(1,14741030,1,1,2) [2025-03-22 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741030', 'tblTempUsageDetail_20' ) start [2025-03-22 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741030', 'tblTempUsageDetail_20' ) end [2025-03-22 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:58:21] Production.INFO: ==20589== Releasing lock... [2025-03-22 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:58:21] Production.INFO: 36 MB #Memory Used# [2025-03-22 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-22 20:59:05 [end_date_ymd] => 2025-03-22 23:59:05 [RateCDR] => 1 ) [2025-03-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-03-22 20:59:05' and `end` < '2025-03-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-03-22 23:59:17] Production.INFO: count ==1092 [2025-03-22 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-22 20:59:05 - End Time 2025-03-22 23:59:05 [2025-03-22 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-22 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741035', 'tblTempUsageDetail_20' ) start [2025-03-22 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14741035', 'tblTempUsageDetail_20' ) end [2025-03-22 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741035', 'tblTempVendorCDR_20' ) start [2025-03-22 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14741035', 'tblTempVendorCDR_20' ) end [2025-03-22 23:59:17] Production.INFO: ProcessCDR(1,14741035,1,1,2) [2025-03-22 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14741035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14741035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-22 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14741035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14741035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-22 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741035', 'tblTempUsageDetail_20' ) start [2025-03-22 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14741035', 'tblTempUsageDetail_20' ) end [2025-03-22 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-22 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-22 23:59:21] Production.INFO: ==20661== Releasing lock... [2025-03-22 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-22 23:59:21] Production.INFO: 36 MB #Memory Used#