[2025-03-09 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:00:06 [end_date_ymd] => 2025-03-09 00:00:06 [RateCDR] => 1 ) [2025-03-09 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-08 21:00:06' and `end` < '2025-03-09 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-09 00:00:19] Production.INFO: count ==1234 [2025-03-09 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-08 21:00:06 - End Time 2025-03-09 00:00:06 [2025-03-09 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638674', 'tblTempUsageDetail_20' ) start [2025-03-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638674', 'tblTempUsageDetail_20' ) end [2025-03-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638674', 'tblTempVendorCDR_20' ) start [2025-03-09 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638674', 'tblTempVendorCDR_20' ) end [2025-03-09 00:00:20] Production.INFO: ProcessCDR(1,14638674,1,1,2) [2025-03-09 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638674', 'tblTempUsageDetail_20' ) start [2025-03-09 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638674', 'tblTempUsageDetail_20' ) end [2025-03-09 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:00:25] Production.INFO: ==25327== Releasing lock... [2025-03-09 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:00:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:01:05 [end_date_ymd] => 2025-03-09 00:01:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:01:05' and `end` < '2025-03-09 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-09 00:01:20] Production.INFO: count ==1234 [2025-03-09 00:01:20] Production.ERROR: pbx CDR StartTime 2025-03-08 21:01:05 - End Time 2025-03-09 00:01:05 [2025-03-09 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638679', 'tblTempUsageDetail_20' ) start [2025-03-09 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638679', 'tblTempUsageDetail_20' ) end [2025-03-09 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638679', 'tblTempVendorCDR_20' ) start [2025-03-09 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638679', 'tblTempVendorCDR_20' ) end [2025-03-09 00:01:20] Production.INFO: ProcessCDR(1,14638679,1,1,2) [2025-03-09 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638679', 'tblTempUsageDetail_20' ) start [2025-03-09 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638679', 'tblTempUsageDetail_20' ) end [2025-03-09 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:01:25] Production.INFO: ==25415== Releasing lock... [2025-03-09 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:01:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:02:05 [end_date_ymd] => 2025-03-09 00:02:05 [RateCDR] => 1 ) [2025-03-09 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:02:05' and `end` < '2025-03-09 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:02:19] Production.INFO: count ==743 [2025-03-09 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-08 21:02:05 - End Time 2025-03-09 00:02:05 [2025-03-09 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638684', 'tblTempUsageDetail_20' ) start [2025-03-09 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638684', 'tblTempUsageDetail_20' ) end [2025-03-09 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638684', 'tblTempVendorCDR_20' ) start [2025-03-09 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638684', 'tblTempVendorCDR_20' ) end [2025-03-09 00:02:19] Production.INFO: ProcessCDR(1,14638684,1,1,2) [2025-03-09 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638684', 'tblTempUsageDetail_20' ) start [2025-03-09 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638684', 'tblTempUsageDetail_20' ) end [2025-03-09 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:02:22] Production.INFO: ==25494== Releasing lock... [2025-03-09 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:02:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:03:05 [end_date_ymd] => 2025-03-09 00:03:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:03:05' and `end` < '2025-03-09 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-09 00:03:19] Production.INFO: count ==741 [2025-03-09 00:03:19] Production.ERROR: pbx CDR StartTime 2025-03-08 21:03:05 - End Time 2025-03-09 00:03:05 [2025-03-09 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638689', 'tblTempUsageDetail_20' ) start [2025-03-09 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638689', 'tblTempUsageDetail_20' ) end [2025-03-09 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638689', 'tblTempVendorCDR_20' ) start [2025-03-09 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638689', 'tblTempVendorCDR_20' ) end [2025-03-09 00:03:19] Production.INFO: ProcessCDR(1,14638689,1,1,2) [2025-03-09 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638689', 'tblTempUsageDetail_20' ) start [2025-03-09 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638689', 'tblTempUsageDetail_20' ) end [2025-03-09 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:03:23] Production.INFO: ==25570== Releasing lock... [2025-03-09 00:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:03:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:04:06 [end_date_ymd] => 2025-03-09 00:04:06 [RateCDR] => 1 ) [2025-03-09 00: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-08 21:04:06' and `end` < '2025-03-09 00: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-09 00:04:18] Production.INFO: count ==738 [2025-03-09 00:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:04:06 - End Time 2025-03-09 00:04:06 [2025-03-09 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638694', 'tblTempUsageDetail_20' ) start [2025-03-09 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638694', 'tblTempUsageDetail_20' ) end [2025-03-09 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638694', 'tblTempVendorCDR_20' ) start [2025-03-09 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638694', 'tblTempVendorCDR_20' ) end [2025-03-09 00:04:18] Production.INFO: ProcessCDR(1,14638694,1,1,2) [2025-03-09 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638694', 'tblTempUsageDetail_20' ) start [2025-03-09 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638694', 'tblTempUsageDetail_20' ) end [2025-03-09 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:04:22] Production.INFO: ==25647== Releasing lock... [2025-03-09 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:05:05 [end_date_ymd] => 2025-03-09 00:05:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:05:05' and `end` < '2025-03-09 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-09 00:05:18] Production.INFO: count ==737 [2025-03-09 00:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:05:05 - End Time 2025-03-09 00:05:05 [2025-03-09 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638699', 'tblTempUsageDetail_20' ) start [2025-03-09 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638699', 'tblTempUsageDetail_20' ) end [2025-03-09 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638699', 'tblTempVendorCDR_20' ) start [2025-03-09 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638699', 'tblTempVendorCDR_20' ) end [2025-03-09 00:05:18] Production.INFO: ProcessCDR(1,14638699,1,1,2) [2025-03-09 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638699', 'tblTempUsageDetail_20' ) start [2025-03-09 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638699', 'tblTempUsageDetail_20' ) end [2025-03-09 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:05:21] Production.INFO: ==25719== Releasing lock... [2025-03-09 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:06:05 [end_date_ymd] => 2025-03-09 00:06:05 [RateCDR] => 1 ) [2025-03-09 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:06:05' and `end` < '2025-03-09 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:06:17] Production.INFO: count ==737 [2025-03-09 00:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:06:05 - End Time 2025-03-09 00:06:05 [2025-03-09 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638704', 'tblTempUsageDetail_20' ) start [2025-03-09 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638704', 'tblTempUsageDetail_20' ) end [2025-03-09 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638704', 'tblTempVendorCDR_20' ) start [2025-03-09 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638704', 'tblTempVendorCDR_20' ) end [2025-03-09 00:06:17] Production.INFO: ProcessCDR(1,14638704,1,1,2) [2025-03-09 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638704', 'tblTempUsageDetail_20' ) start [2025-03-09 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638704', 'tblTempUsageDetail_20' ) end [2025-03-09 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:06:20] Production.INFO: ==25789== Releasing lock... [2025-03-09 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:06:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:07:05 [end_date_ymd] => 2025-03-09 00:07:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:07:05' and `end` < '2025-03-09 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-09 00:07:17] Production.INFO: count ==734 [2025-03-09 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:07:05 - End Time 2025-03-09 00:07:05 [2025-03-09 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638709', 'tblTempUsageDetail_20' ) start [2025-03-09 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638709', 'tblTempUsageDetail_20' ) end [2025-03-09 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638709', 'tblTempVendorCDR_20' ) start [2025-03-09 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638709', 'tblTempVendorCDR_20' ) end [2025-03-09 00:07:17] Production.INFO: ProcessCDR(1,14638709,1,1,2) [2025-03-09 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638709', 'tblTempUsageDetail_20' ) start [2025-03-09 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638709', 'tblTempUsageDetail_20' ) end [2025-03-09 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:07:21] Production.INFO: ==25858== Releasing lock... [2025-03-09 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:07:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:08:05 [end_date_ymd] => 2025-03-09 00:08:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:08:05' and `end` < '2025-03-09 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-09 00:08:17] Production.INFO: count ==731 [2025-03-09 00:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:08:05 - End Time 2025-03-09 00:08:05 [2025-03-09 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638714', 'tblTempUsageDetail_20' ) start [2025-03-09 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638714', 'tblTempUsageDetail_20' ) end [2025-03-09 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638714', 'tblTempVendorCDR_20' ) start [2025-03-09 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638714', 'tblTempVendorCDR_20' ) end [2025-03-09 00:08:17] Production.INFO: ProcessCDR(1,14638714,1,1,2) [2025-03-09 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638714', 'tblTempUsageDetail_20' ) start [2025-03-09 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638714', 'tblTempUsageDetail_20' ) end [2025-03-09 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:08:21] Production.INFO: ==25929== Releasing lock... [2025-03-09 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:08:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:09:05 [end_date_ymd] => 2025-03-09 00:09:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:09:05' and `end` < '2025-03-09 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-09 00:09:17] Production.INFO: count ==732 [2025-03-09 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:09:05 - End Time 2025-03-09 00:09:05 [2025-03-09 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638719', 'tblTempUsageDetail_20' ) start [2025-03-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638719', 'tblTempUsageDetail_20' ) end [2025-03-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638719', 'tblTempVendorCDR_20' ) start [2025-03-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638719', 'tblTempVendorCDR_20' ) end [2025-03-09 00:09:18] Production.INFO: ProcessCDR(1,14638719,1,1,2) [2025-03-09 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638719', 'tblTempUsageDetail_20' ) start [2025-03-09 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638719', 'tblTempUsageDetail_20' ) end [2025-03-09 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:09:22] Production.INFO: ==26001== Releasing lock... [2025-03-09 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:10:06 [end_date_ymd] => 2025-03-09 00:10:06 [RateCDR] => 1 ) [2025-03-09 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-08 21:10:06' and `end` < '2025-03-09 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-09 00:10:18] Production.INFO: count ==733 [2025-03-09 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:10:06 - End Time 2025-03-09 00:10:06 [2025-03-09 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638725', 'tblTempUsageDetail_20' ) start [2025-03-09 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638725', 'tblTempUsageDetail_20' ) end [2025-03-09 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638725', 'tblTempVendorCDR_20' ) start [2025-03-09 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638725', 'tblTempVendorCDR_20' ) end [2025-03-09 00:10:18] Production.INFO: ProcessCDR(1,14638725,1,1,2) [2025-03-09 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638725', 'tblTempUsageDetail_20' ) start [2025-03-09 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638725', 'tblTempUsageDetail_20' ) end [2025-03-09 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:10:21] Production.INFO: ==26076== Releasing lock... [2025-03-09 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:10:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:11:05 [end_date_ymd] => 2025-03-09 00:11:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:11:05' and `end` < '2025-03-09 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-09 00:11:17] Production.INFO: count ==724 [2025-03-09 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:11:05 - End Time 2025-03-09 00:11:05 [2025-03-09 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638730', 'tblTempUsageDetail_20' ) start [2025-03-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638730', 'tblTempUsageDetail_20' ) end [2025-03-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638730', 'tblTempVendorCDR_20' ) start [2025-03-09 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638730', 'tblTempVendorCDR_20' ) end [2025-03-09 00:11:18] Production.INFO: ProcessCDR(1,14638730,1,1,2) [2025-03-09 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638730', 'tblTempUsageDetail_20' ) start [2025-03-09 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638730', 'tblTempUsageDetail_20' ) end [2025-03-09 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:11:21] Production.INFO: ==26196== Releasing lock... [2025-03-09 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:12:06 [end_date_ymd] => 2025-03-09 00:12:06 [RateCDR] => 1 ) [2025-03-09 00: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-08 21:12:06' and `end` < '2025-03-09 00: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-09 00:12:29] Production.INFO: count ==724 [2025-03-09 00:12:29] Production.ERROR: pbx CDR StartTime 2025-03-08 21:12:06 - End Time 2025-03-09 00:12:06 [2025-03-09 00:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638735', 'tblTempUsageDetail_20' ) start [2025-03-09 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638735', 'tblTempUsageDetail_20' ) end [2025-03-09 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638735', 'tblTempVendorCDR_20' ) start [2025-03-09 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638735', 'tblTempVendorCDR_20' ) end [2025-03-09 00:12:30] Production.INFO: ProcessCDR(1,14638735,1,1,2) [2025-03-09 00:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638735', 'tblTempUsageDetail_20' ) start [2025-03-09 00:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638735', 'tblTempUsageDetail_20' ) end [2025-03-09 00:12:34] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:12:34] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:12:34] Production.INFO: ==26269== Releasing lock... [2025-03-09 00:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:12:34] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:13:04 [end_date_ymd] => 2025-03-09 00:13:04 [RateCDR] => 1 ) [2025-03-09 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:13:04' and `end` < '2025-03-09 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:13:17] Production.INFO: count ==719 [2025-03-09 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:13:04 - End Time 2025-03-09 00:13:04 [2025-03-09 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638740', 'tblTempUsageDetail_20' ) start [2025-03-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638740', 'tblTempUsageDetail_20' ) end [2025-03-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638740', 'tblTempVendorCDR_20' ) start [2025-03-09 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638740', 'tblTempVendorCDR_20' ) end [2025-03-09 00:13:17] Production.INFO: ProcessCDR(1,14638740,1,1,2) [2025-03-09 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638740', 'tblTempUsageDetail_20' ) start [2025-03-09 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638740', 'tblTempUsageDetail_20' ) end [2025-03-09 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:13:20] Production.INFO: ==26341== Releasing lock... [2025-03-09 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:13:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:14:05 [end_date_ymd] => 2025-03-09 00:14:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:14:05' and `end` < '2025-03-09 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-09 00:14:17] Production.INFO: count ==714 [2025-03-09 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:14:05 - End Time 2025-03-09 00:14:05 [2025-03-09 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638745', 'tblTempUsageDetail_20' ) start [2025-03-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638745', 'tblTempUsageDetail_20' ) end [2025-03-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638745', 'tblTempVendorCDR_20' ) start [2025-03-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638745', 'tblTempVendorCDR_20' ) end [2025-03-09 00:14:18] Production.INFO: ProcessCDR(1,14638745,1,1,2) [2025-03-09 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638745', 'tblTempUsageDetail_20' ) start [2025-03-09 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638745', 'tblTempUsageDetail_20' ) end [2025-03-09 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:14:22] Production.INFO: ==26414== Releasing lock... [2025-03-09 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:14:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:15:05 [end_date_ymd] => 2025-03-09 00:15:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:15:05' and `end` < '2025-03-09 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-09 00:15:17] Production.INFO: count ==713 [2025-03-09 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:15:05 - End Time 2025-03-09 00:15:05 [2025-03-09 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638750', 'tblTempUsageDetail_20' ) start [2025-03-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638750', 'tblTempUsageDetail_20' ) end [2025-03-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638750', 'tblTempVendorCDR_20' ) start [2025-03-09 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638750', 'tblTempVendorCDR_20' ) end [2025-03-09 00:15:17] Production.INFO: ProcessCDR(1,14638750,1,1,2) [2025-03-09 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638750', 'tblTempUsageDetail_20' ) start [2025-03-09 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638750', 'tblTempUsageDetail_20' ) end [2025-03-09 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:15:20] Production.INFO: ==26486== Releasing lock... [2025-03-09 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:15:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:16:05 [end_date_ymd] => 2025-03-09 00:16:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:16:05' and `end` < '2025-03-09 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-09 00:16:17] Production.INFO: count ==712 [2025-03-09 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:16:05 - End Time 2025-03-09 00:16:05 [2025-03-09 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638755', 'tblTempUsageDetail_20' ) start [2025-03-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638755', 'tblTempUsageDetail_20' ) end [2025-03-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638755', 'tblTempVendorCDR_20' ) start [2025-03-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638755', 'tblTempVendorCDR_20' ) end [2025-03-09 00:16:18] Production.INFO: ProcessCDR(1,14638755,1,1,2) [2025-03-09 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638755', 'tblTempUsageDetail_20' ) start [2025-03-09 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638755', 'tblTempUsageDetail_20' ) end [2025-03-09 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:16:21] Production.INFO: ==26558== Releasing lock... [2025-03-09 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:16:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:17:04 [end_date_ymd] => 2025-03-09 00:17:04 [RateCDR] => 1 ) [2025-03-09 00: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-08 21:17:04' and `end` < '2025-03-09 00: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-09 00:17:16] Production.INFO: count ==710 [2025-03-09 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:17:04 - End Time 2025-03-09 00:17:04 [2025-03-09 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638760', 'tblTempUsageDetail_20' ) start [2025-03-09 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638760', 'tblTempUsageDetail_20' ) end [2025-03-09 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638760', 'tblTempVendorCDR_20' ) start [2025-03-09 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638760', 'tblTempVendorCDR_20' ) end [2025-03-09 00:17:17] Production.INFO: ProcessCDR(1,14638760,1,1,2) [2025-03-09 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638760', 'tblTempUsageDetail_20' ) start [2025-03-09 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638760', 'tblTempUsageDetail_20' ) end [2025-03-09 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:17:20] Production.INFO: ==26629== Releasing lock... [2025-03-09 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:17:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:18:05 [end_date_ymd] => 2025-03-09 00:18:05 [RateCDR] => 1 ) [2025-03-09 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:18:05' and `end` < '2025-03-09 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:18:17] Production.INFO: count ==710 [2025-03-09 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:18:05 - End Time 2025-03-09 00:18:05 [2025-03-09 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638765', 'tblTempUsageDetail_20' ) start [2025-03-09 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638765', 'tblTempUsageDetail_20' ) end [2025-03-09 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638765', 'tblTempVendorCDR_20' ) start [2025-03-09 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638765', 'tblTempVendorCDR_20' ) end [2025-03-09 00:18:17] Production.INFO: ProcessCDR(1,14638765,1,1,2) [2025-03-09 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638765', 'tblTempUsageDetail_20' ) start [2025-03-09 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638765', 'tblTempUsageDetail_20' ) end [2025-03-09 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:18:20] Production.INFO: ==26718== Releasing lock... [2025-03-09 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:18:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:19:05 [end_date_ymd] => 2025-03-09 00:19:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:19:05' and `end` < '2025-03-09 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-09 00:19:17] Production.INFO: count ==709 [2025-03-09 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:19:05 - End Time 2025-03-09 00:19:05 [2025-03-09 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638770', 'tblTempUsageDetail_20' ) start [2025-03-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638770', 'tblTempUsageDetail_20' ) end [2025-03-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638770', 'tblTempVendorCDR_20' ) start [2025-03-09 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638770', 'tblTempVendorCDR_20' ) end [2025-03-09 00:19:18] Production.INFO: ProcessCDR(1,14638770,1,1,2) [2025-03-09 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638770', 'tblTempUsageDetail_20' ) start [2025-03-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638770', 'tblTempUsageDetail_20' ) end [2025-03-09 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:19:21] Production.INFO: ==26791== Releasing lock... [2025-03-09 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:19:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:20:05 [end_date_ymd] => 2025-03-09 00:20:05 [RateCDR] => 1 ) [2025-03-09 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:20:05' and `end` < '2025-03-09 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:20:18] Production.INFO: count ==715 [2025-03-09 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:20:05 - End Time 2025-03-09 00:20:05 [2025-03-09 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638776', 'tblTempUsageDetail_20' ) start [2025-03-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638776', 'tblTempUsageDetail_20' ) end [2025-03-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638776', 'tblTempVendorCDR_20' ) start [2025-03-09 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638776', 'tblTempVendorCDR_20' ) end [2025-03-09 00:20:18] Production.INFO: ProcessCDR(1,14638776,1,1,2) [2025-03-09 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638776', 'tblTempUsageDetail_20' ) start [2025-03-09 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638776', 'tblTempUsageDetail_20' ) end [2025-03-09 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:20:21] Production.INFO: ==26880== Releasing lock... [2025-03-09 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:20:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:21:06 [end_date_ymd] => 2025-03-09 00:21:06 [RateCDR] => 1 ) [2025-03-09 00: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-08 21:21:06' and `end` < '2025-03-09 00: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-09 00:21:18] Production.INFO: count ==723 [2025-03-09 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:21:06 - End Time 2025-03-09 00:21:06 [2025-03-09 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638781', 'tblTempUsageDetail_20' ) start [2025-03-09 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638781', 'tblTempUsageDetail_20' ) end [2025-03-09 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638781', 'tblTempVendorCDR_20' ) start [2025-03-09 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638781', 'tblTempVendorCDR_20' ) end [2025-03-09 00:21:18] Production.INFO: ProcessCDR(1,14638781,1,1,2) [2025-03-09 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638781', 'tblTempUsageDetail_20' ) start [2025-03-09 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638781', 'tblTempUsageDetail_20' ) end [2025-03-09 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:21:21] Production.INFO: ==26953== Releasing lock... [2025-03-09 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:22:05 [end_date_ymd] => 2025-03-09 00:22:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:22:05' and `end` < '2025-03-09 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-09 00:22:17] Production.INFO: count ==728 [2025-03-09 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:22:05 - End Time 2025-03-09 00:22:05 [2025-03-09 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638786', 'tblTempUsageDetail_20' ) start [2025-03-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638786', 'tblTempUsageDetail_20' ) end [2025-03-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638786', 'tblTempVendorCDR_20' ) start [2025-03-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638786', 'tblTempVendorCDR_20' ) end [2025-03-09 00:22:18] Production.INFO: ProcessCDR(1,14638786,1,1,2) [2025-03-09 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638786', 'tblTempUsageDetail_20' ) start [2025-03-09 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638786', 'tblTempUsageDetail_20' ) end [2025-03-09 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:22:21] Production.INFO: ==27033== Releasing lock... [2025-03-09 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:23:05 [end_date_ymd] => 2025-03-09 00:23:05 [RateCDR] => 1 ) [2025-03-09 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:23:05' and `end` < '2025-03-09 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:23:17] Production.INFO: count ==727 [2025-03-09 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:23:05 - End Time 2025-03-09 00:23:05 [2025-03-09 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638791', 'tblTempUsageDetail_20' ) start [2025-03-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638791', 'tblTempUsageDetail_20' ) end [2025-03-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638791', 'tblTempVendorCDR_20' ) start [2025-03-09 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638791', 'tblTempVendorCDR_20' ) end [2025-03-09 00:23:18] Production.INFO: ProcessCDR(1,14638791,1,1,2) [2025-03-09 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638791', 'tblTempUsageDetail_20' ) start [2025-03-09 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638791', 'tblTempUsageDetail_20' ) end [2025-03-09 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:23:21] Production.INFO: ==27106== Releasing lock... [2025-03-09 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:23:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:24:05 [end_date_ymd] => 2025-03-09 00:24:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:24:05' and `end` < '2025-03-09 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-09 00:24:17] Production.INFO: count ==731 [2025-03-09 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:24:05 - End Time 2025-03-09 00:24:05 [2025-03-09 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638796', 'tblTempUsageDetail_20' ) start [2025-03-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638796', 'tblTempUsageDetail_20' ) end [2025-03-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638796', 'tblTempVendorCDR_20' ) start [2025-03-09 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638796', 'tblTempVendorCDR_20' ) end [2025-03-09 00:24:17] Production.INFO: ProcessCDR(1,14638796,1,1,2) [2025-03-09 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638796', 'tblTempUsageDetail_20' ) start [2025-03-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638796', 'tblTempUsageDetail_20' ) end [2025-03-09 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:24:21] Production.INFO: ==27175== Releasing lock... [2025-03-09 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:24:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:25:05 [end_date_ymd] => 2025-03-09 00:25:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:25:05' and `end` < '2025-03-09 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-09 00:25:17] Production.INFO: count ==735 [2025-03-09 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:25:05 - End Time 2025-03-09 00:25:05 [2025-03-09 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638801', 'tblTempUsageDetail_20' ) start [2025-03-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638801', 'tblTempUsageDetail_20' ) end [2025-03-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638801', 'tblTempVendorCDR_20' ) start [2025-03-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638801', 'tblTempVendorCDR_20' ) end [2025-03-09 00:25:17] Production.INFO: ProcessCDR(1,14638801,1,1,2) [2025-03-09 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638801', 'tblTempUsageDetail_20' ) start [2025-03-09 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638801', 'tblTempUsageDetail_20' ) end [2025-03-09 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:25:21] Production.INFO: ==27251== Releasing lock... [2025-03-09 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:25:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:26:05 [end_date_ymd] => 2025-03-09 00:26:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:26:05' and `end` < '2025-03-09 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-09 00:26:17] Production.INFO: count ==736 [2025-03-09 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:26:05 - End Time 2025-03-09 00:26:05 [2025-03-09 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638806', 'tblTempUsageDetail_20' ) start [2025-03-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638806', 'tblTempUsageDetail_20' ) end [2025-03-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638806', 'tblTempVendorCDR_20' ) start [2025-03-09 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638806', 'tblTempVendorCDR_20' ) end [2025-03-09 00:26:17] Production.INFO: ProcessCDR(1,14638806,1,1,2) [2025-03-09 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638806', 'tblTempUsageDetail_20' ) start [2025-03-09 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638806', 'tblTempUsageDetail_20' ) end [2025-03-09 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:26:20] Production.INFO: ==27361== Releasing lock... [2025-03-09 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:26:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:27:05 [end_date_ymd] => 2025-03-09 00:27:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:27:05' and `end` < '2025-03-09 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-09 00:27:17] Production.INFO: count ==732 [2025-03-09 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:27:05 - End Time 2025-03-09 00:27:05 [2025-03-09 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638811', 'tblTempUsageDetail_20' ) start [2025-03-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638811', 'tblTempUsageDetail_20' ) end [2025-03-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638811', 'tblTempVendorCDR_20' ) start [2025-03-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638811', 'tblTempVendorCDR_20' ) end [2025-03-09 00:27:18] Production.INFO: ProcessCDR(1,14638811,1,1,2) [2025-03-09 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638811', 'tblTempUsageDetail_20' ) start [2025-03-09 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638811', 'tblTempUsageDetail_20' ) end [2025-03-09 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:27:21] Production.INFO: ==27434== Releasing lock... [2025-03-09 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:28:04 [end_date_ymd] => 2025-03-09 00:28:04 [RateCDR] => 1 ) [2025-03-09 00:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:28:04' and `end` < '2025-03-09 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:28:16] Production.INFO: count ==731 [2025-03-09 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:28:04 - End Time 2025-03-09 00:28:04 [2025-03-09 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638816', 'tblTempUsageDetail_20' ) start [2025-03-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638816', 'tblTempUsageDetail_20' ) end [2025-03-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638816', 'tblTempVendorCDR_20' ) start [2025-03-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638816', 'tblTempVendorCDR_20' ) end [2025-03-09 00:28:17] Production.INFO: ProcessCDR(1,14638816,1,1,2) [2025-03-09 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638816', 'tblTempUsageDetail_20' ) start [2025-03-09 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638816', 'tblTempUsageDetail_20' ) end [2025-03-09 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:28:20] Production.INFO: ==27506== Releasing lock... [2025-03-09 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:28:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:29:05 [end_date_ymd] => 2025-03-09 00:29:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:29:05' and `end` < '2025-03-09 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-09 00:29:18] Production.INFO: count ==728 [2025-03-09 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:29:05 - End Time 2025-03-09 00:29:05 [2025-03-09 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638821', 'tblTempUsageDetail_20' ) start [2025-03-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638821', 'tblTempUsageDetail_20' ) end [2025-03-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638821', 'tblTempVendorCDR_20' ) start [2025-03-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638821', 'tblTempVendorCDR_20' ) end [2025-03-09 00:29:18] Production.INFO: ProcessCDR(1,14638821,1,1,2) [2025-03-09 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638821', 'tblTempUsageDetail_20' ) start [2025-03-09 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638821', 'tblTempUsageDetail_20' ) end [2025-03-09 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:29:21] Production.INFO: ==27576== Releasing lock... [2025-03-09 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:29:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:30:06 [end_date_ymd] => 2025-03-09 00:30:06 [RateCDR] => 1 ) [2025-03-09 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-08 21:30:06' and `end` < '2025-03-09 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-09 00:30:18] Production.INFO: count ==739 [2025-03-09 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:30:06 - End Time 2025-03-09 00:30:06 [2025-03-09 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638827', 'tblTempUsageDetail_20' ) start [2025-03-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638827', 'tblTempUsageDetail_20' ) end [2025-03-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638827', 'tblTempVendorCDR_20' ) start [2025-03-09 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638827', 'tblTempVendorCDR_20' ) end [2025-03-09 00:30:18] Production.INFO: ProcessCDR(1,14638827,1,1,2) [2025-03-09 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638827', 'tblTempUsageDetail_20' ) start [2025-03-09 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638827', 'tblTempUsageDetail_20' ) end [2025-03-09 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:30:21] Production.INFO: ==27651== Releasing lock... [2025-03-09 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:30:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:31:06 [end_date_ymd] => 2025-03-09 00:31:06 [RateCDR] => 1 ) [2025-03-09 00: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-08 21:31:06' and `end` < '2025-03-09 00: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-09 00:31:18] Production.INFO: count ==754 [2025-03-09 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:31:06 - End Time 2025-03-09 00:31:06 [2025-03-09 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638832', 'tblTempUsageDetail_20' ) start [2025-03-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638832', 'tblTempUsageDetail_20' ) end [2025-03-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638832', 'tblTempVendorCDR_20' ) start [2025-03-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638832', 'tblTempVendorCDR_20' ) end [2025-03-09 00:31:18] Production.INFO: ProcessCDR(1,14638832,1,1,2) [2025-03-09 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638832', 'tblTempUsageDetail_20' ) start [2025-03-09 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638832', 'tblTempUsageDetail_20' ) end [2025-03-09 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:31:23] Production.INFO: ==27724== Releasing lock... [2025-03-09 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:32:05 [end_date_ymd] => 2025-03-09 00:32:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:32:05' and `end` < '2025-03-09 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-09 00:32:17] Production.INFO: count ==753 [2025-03-09 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:32:05 - End Time 2025-03-09 00:32:05 [2025-03-09 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638837', 'tblTempUsageDetail_20' ) start [2025-03-09 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638837', 'tblTempUsageDetail_20' ) end [2025-03-09 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638837', 'tblTempVendorCDR_20' ) start [2025-03-09 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638837', 'tblTempVendorCDR_20' ) end [2025-03-09 00:32:17] Production.INFO: ProcessCDR(1,14638837,1,1,2) [2025-03-09 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638837', 'tblTempUsageDetail_20' ) start [2025-03-09 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638837', 'tblTempUsageDetail_20' ) end [2025-03-09 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:32:20] Production.INFO: ==27794== Releasing lock... [2025-03-09 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:32:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:33:05 [end_date_ymd] => 2025-03-09 00:33:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:33:05' and `end` < '2025-03-09 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-09 00:33:18] Production.INFO: count ==749 [2025-03-09 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:33:05 - End Time 2025-03-09 00:33:05 [2025-03-09 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638842', 'tblTempUsageDetail_20' ) start [2025-03-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638842', 'tblTempUsageDetail_20' ) end [2025-03-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638842', 'tblTempVendorCDR_20' ) start [2025-03-09 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638842', 'tblTempVendorCDR_20' ) end [2025-03-09 00:33:18] Production.INFO: ProcessCDR(1,14638842,1,1,2) [2025-03-09 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638842', 'tblTempUsageDetail_20' ) start [2025-03-09 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638842', 'tblTempUsageDetail_20' ) end [2025-03-09 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:33:21] Production.INFO: ==27867== Releasing lock... [2025-03-09 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:33:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:34:04 [end_date_ymd] => 2025-03-09 00:34:04 [RateCDR] => 1 ) [2025-03-09 00:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:34:04' and `end` < '2025-03-09 00:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:34:17] Production.INFO: count ==747 [2025-03-09 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:34:04 - End Time 2025-03-09 00:34:04 [2025-03-09 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638847', 'tblTempUsageDetail_20' ) start [2025-03-09 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638847', 'tblTempUsageDetail_20' ) end [2025-03-09 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638847', 'tblTempVendorCDR_20' ) start [2025-03-09 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638847', 'tblTempVendorCDR_20' ) end [2025-03-09 00:34:17] Production.INFO: ProcessCDR(1,14638847,1,1,2) [2025-03-09 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638847', 'tblTempUsageDetail_20' ) start [2025-03-09 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638847', 'tblTempUsageDetail_20' ) end [2025-03-09 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:34:20] Production.INFO: ==27939== Releasing lock... [2025-03-09 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:34:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:35:05 [end_date_ymd] => 2025-03-09 00:35:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:35:05' and `end` < '2025-03-09 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-09 00:35:18] Production.INFO: count ==750 [2025-03-09 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:35:05 - End Time 2025-03-09 00:35:05 [2025-03-09 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638852', 'tblTempUsageDetail_20' ) start [2025-03-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638852', 'tblTempUsageDetail_20' ) end [2025-03-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638852', 'tblTempVendorCDR_20' ) start [2025-03-09 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638852', 'tblTempVendorCDR_20' ) end [2025-03-09 00:35:18] Production.INFO: ProcessCDR(1,14638852,1,1,2) [2025-03-09 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638852', 'tblTempUsageDetail_20' ) start [2025-03-09 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638852', 'tblTempUsageDetail_20' ) end [2025-03-09 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:35:22] Production.INFO: ==28014== Releasing lock... [2025-03-09 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:36:05 [end_date_ymd] => 2025-03-09 00:36:05 [RateCDR] => 1 ) [2025-03-09 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:36:05' and `end` < '2025-03-09 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:36:17] Production.INFO: count ==751 [2025-03-09 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:36:05 - End Time 2025-03-09 00:36:05 [2025-03-09 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638857', 'tblTempUsageDetail_20' ) start [2025-03-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638857', 'tblTempUsageDetail_20' ) end [2025-03-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638857', 'tblTempVendorCDR_20' ) start [2025-03-09 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638857', 'tblTempVendorCDR_20' ) end [2025-03-09 00:36:17] Production.INFO: ProcessCDR(1,14638857,1,1,2) [2025-03-09 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638857', 'tblTempUsageDetail_20' ) start [2025-03-09 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638857', 'tblTempUsageDetail_20' ) end [2025-03-09 00:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:36:20] Production.INFO: ==28088== Releasing lock... [2025-03-09 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:36:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:37:05 [end_date_ymd] => 2025-03-09 00:37:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:37:05' and `end` < '2025-03-09 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-09 00:37:17] Production.INFO: count ==753 [2025-03-09 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:37:05 - End Time 2025-03-09 00:37:05 [2025-03-09 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638862', 'tblTempUsageDetail_20' ) start [2025-03-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638862', 'tblTempUsageDetail_20' ) end [2025-03-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638862', 'tblTempVendorCDR_20' ) start [2025-03-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638862', 'tblTempVendorCDR_20' ) end [2025-03-09 00:37:18] Production.INFO: ProcessCDR(1,14638862,1,1,2) [2025-03-09 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638862', 'tblTempUsageDetail_20' ) start [2025-03-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638862', 'tblTempUsageDetail_20' ) end [2025-03-09 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:37:21] Production.INFO: ==28161== Releasing lock... [2025-03-09 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:37:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:38:05 [end_date_ymd] => 2025-03-09 00:38:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:38:05' and `end` < '2025-03-09 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-09 00:38:17] Production.INFO: count ==751 [2025-03-09 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:38:05 - End Time 2025-03-09 00:38:05 [2025-03-09 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638867', 'tblTempUsageDetail_20' ) start [2025-03-09 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638867', 'tblTempUsageDetail_20' ) end [2025-03-09 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638867', 'tblTempVendorCDR_20' ) start [2025-03-09 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638867', 'tblTempVendorCDR_20' ) end [2025-03-09 00:38:17] Production.INFO: ProcessCDR(1,14638867,1,1,2) [2025-03-09 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638867', 'tblTempUsageDetail_20' ) start [2025-03-09 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638867', 'tblTempUsageDetail_20' ) end [2025-03-09 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:38:21] Production.INFO: ==28235== Releasing lock... [2025-03-09 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:38:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:39:05 [end_date_ymd] => 2025-03-09 00:39:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:39:05' and `end` < '2025-03-09 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-09 00:39:17] Production.INFO: count ==758 [2025-03-09 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:39:05 - End Time 2025-03-09 00:39:05 [2025-03-09 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638872', 'tblTempUsageDetail_20' ) start [2025-03-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638872', 'tblTempUsageDetail_20' ) end [2025-03-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638872', 'tblTempVendorCDR_20' ) start [2025-03-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638872', 'tblTempVendorCDR_20' ) end [2025-03-09 00:39:18] Production.INFO: ProcessCDR(1,14638872,1,1,2) [2025-03-09 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638872', 'tblTempUsageDetail_20' ) start [2025-03-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638872', 'tblTempUsageDetail_20' ) end [2025-03-09 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:39:21] Production.INFO: ==28317== Releasing lock... [2025-03-09 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:39:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:40:05 [end_date_ymd] => 2025-03-09 00:40:05 [RateCDR] => 1 ) [2025-03-09 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:40:05' and `end` < '2025-03-09 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:40:17] Production.INFO: count ==770 [2025-03-09 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:40:05 - End Time 2025-03-09 00:40:05 [2025-03-09 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638878', 'tblTempUsageDetail_20' ) start [2025-03-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638878', 'tblTempUsageDetail_20' ) end [2025-03-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638878', 'tblTempVendorCDR_20' ) start [2025-03-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638878', 'tblTempVendorCDR_20' ) end [2025-03-09 00:40:18] Production.INFO: ProcessCDR(1,14638878,1,1,2) [2025-03-09 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638878', 'tblTempUsageDetail_20' ) start [2025-03-09 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638878', 'tblTempUsageDetail_20' ) end [2025-03-09 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:40:21] Production.INFO: ==28390== Releasing lock... [2025-03-09 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:40:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:41:05 [end_date_ymd] => 2025-03-09 00:41:05 [RateCDR] => 1 ) [2025-03-09 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:41:05' and `end` < '2025-03-09 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:41:17] Production.INFO: count ==792 [2025-03-09 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:41:05 - End Time 2025-03-09 00:41:05 [2025-03-09 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638883', 'tblTempUsageDetail_20' ) start [2025-03-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638883', 'tblTempUsageDetail_20' ) end [2025-03-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638883', 'tblTempVendorCDR_20' ) start [2025-03-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638883', 'tblTempVendorCDR_20' ) end [2025-03-09 00:41:18] Production.INFO: ProcessCDR(1,14638883,1,1,2) [2025-03-09 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638883', 'tblTempUsageDetail_20' ) start [2025-03-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638883', 'tblTempUsageDetail_20' ) end [2025-03-09 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:41:21] Production.INFO: ==28469== Releasing lock... [2025-03-09 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:41:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:42:05 [end_date_ymd] => 2025-03-09 00:42:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:42:05' and `end` < '2025-03-09 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-09 00:42:18] Production.INFO: count ==799 [2025-03-09 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:42:05 - End Time 2025-03-09 00:42:05 [2025-03-09 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638888', 'tblTempUsageDetail_20' ) start [2025-03-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638888', 'tblTempUsageDetail_20' ) end [2025-03-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638888', 'tblTempVendorCDR_20' ) start [2025-03-09 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638888', 'tblTempVendorCDR_20' ) end [2025-03-09 00:42:18] Production.INFO: ProcessCDR(1,14638888,1,1,2) [2025-03-09 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638888', 'tblTempUsageDetail_20' ) start [2025-03-09 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638888', 'tblTempUsageDetail_20' ) end [2025-03-09 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:42:21] Production.INFO: ==28583== Releasing lock... [2025-03-09 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:43:05 [end_date_ymd] => 2025-03-09 00:43:05 [RateCDR] => 1 ) [2025-03-09 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:43:05' and `end` < '2025-03-09 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:43:17] Production.INFO: count ==810 [2025-03-09 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:43:05 - End Time 2025-03-09 00:43:05 [2025-03-09 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638893', 'tblTempUsageDetail_20' ) start [2025-03-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638893', 'tblTempUsageDetail_20' ) end [2025-03-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638893', 'tblTempVendorCDR_20' ) start [2025-03-09 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638893', 'tblTempVendorCDR_20' ) end [2025-03-09 00:43:17] Production.INFO: ProcessCDR(1,14638893,1,1,2) [2025-03-09 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638893', 'tblTempUsageDetail_20' ) start [2025-03-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638893', 'tblTempUsageDetail_20' ) end [2025-03-09 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:43:21] Production.INFO: ==28657== Releasing lock... [2025-03-09 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:43:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:44:05 [end_date_ymd] => 2025-03-09 00:44:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:44:05' and `end` < '2025-03-09 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-09 00:44:17] Production.INFO: count ==810 [2025-03-09 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:44:05 - End Time 2025-03-09 00:44:05 [2025-03-09 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638898', 'tblTempUsageDetail_20' ) start [2025-03-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638898', 'tblTempUsageDetail_20' ) end [2025-03-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638898', 'tblTempVendorCDR_20' ) start [2025-03-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638898', 'tblTempVendorCDR_20' ) end [2025-03-09 00:44:18] Production.INFO: ProcessCDR(1,14638898,1,1,2) [2025-03-09 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638898', 'tblTempUsageDetail_20' ) start [2025-03-09 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638898', 'tblTempUsageDetail_20' ) end [2025-03-09 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:44:22] Production.INFO: ==28731== Releasing lock... [2025-03-09 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:45:05 [end_date_ymd] => 2025-03-09 00:45:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:45:05' and `end` < '2025-03-09 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-09 00:45:17] Production.INFO: count ==815 [2025-03-09 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:45:05 - End Time 2025-03-09 00:45:05 [2025-03-09 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638903', 'tblTempUsageDetail_20' ) start [2025-03-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638903', 'tblTempUsageDetail_20' ) end [2025-03-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638903', 'tblTempVendorCDR_20' ) start [2025-03-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638903', 'tblTempVendorCDR_20' ) end [2025-03-09 00:45:17] Production.INFO: ProcessCDR(1,14638903,1,1,2) [2025-03-09 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638903', 'tblTempUsageDetail_20' ) start [2025-03-09 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638903', 'tblTempUsageDetail_20' ) end [2025-03-09 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:45:21] Production.INFO: ==28806== Releasing lock... [2025-03-09 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:46:05 [end_date_ymd] => 2025-03-09 00:46:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:46:05' and `end` < '2025-03-09 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-09 00:46:18] Production.INFO: count ==813 [2025-03-09 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:46:05 - End Time 2025-03-09 00:46:05 [2025-03-09 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638908', 'tblTempUsageDetail_20' ) start [2025-03-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638908', 'tblTempUsageDetail_20' ) end [2025-03-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638908', 'tblTempVendorCDR_20' ) start [2025-03-09 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638908', 'tblTempVendorCDR_20' ) end [2025-03-09 00:46:18] Production.INFO: ProcessCDR(1,14638908,1,1,2) [2025-03-09 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638908', 'tblTempUsageDetail_20' ) start [2025-03-09 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638908', 'tblTempUsageDetail_20' ) end [2025-03-09 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:46:21] Production.INFO: ==28879== Releasing lock... [2025-03-09 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:47:05 [end_date_ymd] => 2025-03-09 00:47:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:47:05' and `end` < '2025-03-09 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-09 00:47:17] Production.INFO: count ==814 [2025-03-09 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:47:05 - End Time 2025-03-09 00:47:05 [2025-03-09 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638913', 'tblTempUsageDetail_20' ) start [2025-03-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638913', 'tblTempUsageDetail_20' ) end [2025-03-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638913', 'tblTempVendorCDR_20' ) start [2025-03-09 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638913', 'tblTempVendorCDR_20' ) end [2025-03-09 00:47:17] Production.INFO: ProcessCDR(1,14638913,1,1,2) [2025-03-09 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638913', 'tblTempUsageDetail_20' ) start [2025-03-09 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638913', 'tblTempUsageDetail_20' ) end [2025-03-09 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:47:20] Production.INFO: ==28952== Releasing lock... [2025-03-09 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:47:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:48:05 [end_date_ymd] => 2025-03-09 00:48:05 [RateCDR] => 1 ) [2025-03-09 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:48:05' and `end` < '2025-03-09 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:48:17] Production.INFO: count ==821 [2025-03-09 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:48:05 - End Time 2025-03-09 00:48:05 [2025-03-09 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638918', 'tblTempUsageDetail_20' ) start [2025-03-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638918', 'tblTempUsageDetail_20' ) end [2025-03-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638918', 'tblTempVendorCDR_20' ) start [2025-03-09 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638918', 'tblTempVendorCDR_20' ) end [2025-03-09 00:48:18] Production.INFO: ProcessCDR(1,14638918,1,1,2) [2025-03-09 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638918', 'tblTempUsageDetail_20' ) start [2025-03-09 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638918', 'tblTempUsageDetail_20' ) end [2025-03-09 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:48:22] Production.INFO: ==29026== Releasing lock... [2025-03-09 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:48:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:49:04 [end_date_ymd] => 2025-03-09 00:49:04 [RateCDR] => 1 ) [2025-03-09 00: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-08 21:49:04' and `end` < '2025-03-09 00: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-09 00:49:17] Production.INFO: count ==822 [2025-03-09 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:49:04 - End Time 2025-03-09 00:49:04 [2025-03-09 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638923', 'tblTempUsageDetail_20' ) start [2025-03-09 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638923', 'tblTempUsageDetail_20' ) end [2025-03-09 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638923', 'tblTempVendorCDR_20' ) start [2025-03-09 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638923', 'tblTempVendorCDR_20' ) end [2025-03-09 00:49:17] Production.INFO: ProcessCDR(1,14638923,1,1,2) [2025-03-09 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638923', 'tblTempUsageDetail_20' ) start [2025-03-09 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638923', 'tblTempUsageDetail_20' ) end [2025-03-09 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:49:20] Production.INFO: ==29100== Releasing lock... [2025-03-09 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:49:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:50:06 [end_date_ymd] => 2025-03-09 00:50:06 [RateCDR] => 1 ) [2025-03-09 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:50:06' and `end` < '2025-03-09 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:50:18] Production.INFO: count ==821 [2025-03-09 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:50:06 - End Time 2025-03-09 00:50:06 [2025-03-09 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638929', 'tblTempUsageDetail_20' ) start [2025-03-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638929', 'tblTempUsageDetail_20' ) end [2025-03-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638929', 'tblTempVendorCDR_20' ) start [2025-03-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638929', 'tblTempVendorCDR_20' ) end [2025-03-09 00:50:18] Production.INFO: ProcessCDR(1,14638929,1,1,2) [2025-03-09 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638929', 'tblTempUsageDetail_20' ) start [2025-03-09 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638929', 'tblTempUsageDetail_20' ) end [2025-03-09 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:50:21] Production.INFO: ==29176== Releasing lock... [2025-03-09 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:50:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:51:06 [end_date_ymd] => 2025-03-09 00:51:06 [RateCDR] => 1 ) [2025-03-09 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:51:06' and `end` < '2025-03-09 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:51:18] Production.INFO: count ==821 [2025-03-09 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:51:06 - End Time 2025-03-09 00:51:06 [2025-03-09 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638934', 'tblTempUsageDetail_20' ) start [2025-03-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638934', 'tblTempUsageDetail_20' ) end [2025-03-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638934', 'tblTempVendorCDR_20' ) start [2025-03-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638934', 'tblTempVendorCDR_20' ) end [2025-03-09 00:51:18] Production.INFO: ProcessCDR(1,14638934,1,1,2) [2025-03-09 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638934', 'tblTempUsageDetail_20' ) start [2025-03-09 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638934', 'tblTempUsageDetail_20' ) end [2025-03-09 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:51:21] Production.INFO: ==29254== Releasing lock... [2025-03-09 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:51:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:52:05 [end_date_ymd] => 2025-03-09 00:52:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:52:05' and `end` < '2025-03-09 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-09 00:52:17] Production.INFO: count ==819 [2025-03-09 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:52:05 - End Time 2025-03-09 00:52:05 [2025-03-09 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638939', 'tblTempUsageDetail_20' ) start [2025-03-09 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638939', 'tblTempUsageDetail_20' ) end [2025-03-09 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638939', 'tblTempVendorCDR_20' ) start [2025-03-09 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638939', 'tblTempVendorCDR_20' ) end [2025-03-09 00:52:18] Production.INFO: ProcessCDR(1,14638939,1,1,2) [2025-03-09 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638939', 'tblTempUsageDetail_20' ) start [2025-03-09 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638939', 'tblTempUsageDetail_20' ) end [2025-03-09 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:52:21] Production.INFO: ==29330== Releasing lock... [2025-03-09 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:53:05 [end_date_ymd] => 2025-03-09 00:53:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:53:05' and `end` < '2025-03-09 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-09 00:53:18] Production.INFO: count ==824 [2025-03-09 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:53:05 - End Time 2025-03-09 00:53:05 [2025-03-09 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638944', 'tblTempUsageDetail_20' ) start [2025-03-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638944', 'tblTempUsageDetail_20' ) end [2025-03-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638944', 'tblTempVendorCDR_20' ) start [2025-03-09 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638944', 'tblTempVendorCDR_20' ) end [2025-03-09 00:53:18] Production.INFO: ProcessCDR(1,14638944,1,1,2) [2025-03-09 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638944', 'tblTempUsageDetail_20' ) start [2025-03-09 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638944', 'tblTempUsageDetail_20' ) end [2025-03-09 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:53:21] Production.INFO: ==29414== Releasing lock... [2025-03-09 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:53:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:54:05 [end_date_ymd] => 2025-03-09 00:54:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:54:05' and `end` < '2025-03-09 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-09 00:54:17] Production.INFO: count ==823 [2025-03-09 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:54:05 - End Time 2025-03-09 00:54:05 [2025-03-09 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638949', 'tblTempUsageDetail_20' ) start [2025-03-09 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638949', 'tblTempUsageDetail_20' ) end [2025-03-09 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638949', 'tblTempVendorCDR_20' ) start [2025-03-09 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638949', 'tblTempVendorCDR_20' ) end [2025-03-09 00:54:17] Production.INFO: ProcessCDR(1,14638949,1,1,2) [2025-03-09 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638949', 'tblTempUsageDetail_20' ) start [2025-03-09 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638949', 'tblTempUsageDetail_20' ) end [2025-03-09 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:54:22] Production.INFO: ==29490== Releasing lock... [2025-03-09 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:54:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:55:05 [end_date_ymd] => 2025-03-09 00:55:05 [RateCDR] => 1 ) [2025-03-09 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:55:05' and `end` < '2025-03-09 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:55:17] Production.INFO: count ==825 [2025-03-09 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:55:05 - End Time 2025-03-09 00:55:05 [2025-03-09 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638954', 'tblTempUsageDetail_20' ) start [2025-03-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638954', 'tblTempUsageDetail_20' ) end [2025-03-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638954', 'tblTempVendorCDR_20' ) start [2025-03-09 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638954', 'tblTempVendorCDR_20' ) end [2025-03-09 00:55:18] Production.INFO: ProcessCDR(1,14638954,1,1,2) [2025-03-09 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638954', 'tblTempUsageDetail_20' ) start [2025-03-09 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638954', 'tblTempUsageDetail_20' ) end [2025-03-09 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:55:21] Production.INFO: ==29572== Releasing lock... [2025-03-09 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:55:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:56:05 [end_date_ymd] => 2025-03-09 00:56:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:56:05' and `end` < '2025-03-09 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-09 00:56:17] Production.INFO: count ==827 [2025-03-09 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:56:05 - End Time 2025-03-09 00:56:05 [2025-03-09 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638959', 'tblTempUsageDetail_20' ) start [2025-03-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638959', 'tblTempUsageDetail_20' ) end [2025-03-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638959', 'tblTempVendorCDR_20' ) start [2025-03-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638959', 'tblTempVendorCDR_20' ) end [2025-03-09 00:56:18] Production.INFO: ProcessCDR(1,14638959,1,1,2) [2025-03-09 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638959', 'tblTempUsageDetail_20' ) start [2025-03-09 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638959', 'tblTempUsageDetail_20' ) end [2025-03-09 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:56:21] Production.INFO: ==29660== Releasing lock... [2025-03-09 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:56:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:57:05 [end_date_ymd] => 2025-03-09 00:57:05 [RateCDR] => 1 ) [2025-03-09 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 21:57:05' and `end` < '2025-03-09 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 00:57:17] Production.INFO: count ==829 [2025-03-09 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:57:05 - End Time 2025-03-09 00:57:05 [2025-03-09 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638964', 'tblTempUsageDetail_20' ) start [2025-03-09 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638964', 'tblTempUsageDetail_20' ) end [2025-03-09 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638964', 'tblTempVendorCDR_20' ) start [2025-03-09 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638964', 'tblTempVendorCDR_20' ) end [2025-03-09 00:57:17] Production.INFO: ProcessCDR(1,14638964,1,1,2) [2025-03-09 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638964', 'tblTempUsageDetail_20' ) start [2025-03-09 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638964', 'tblTempUsageDetail_20' ) end [2025-03-09 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:57:20] Production.INFO: ==29787== Releasing lock... [2025-03-09 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:57:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:58:05 [end_date_ymd] => 2025-03-09 00:58:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:58:05' and `end` < '2025-03-09 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-09 00:58:18] Production.INFO: count ==829 [2025-03-09 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 21:58:05 - End Time 2025-03-09 00:58:05 [2025-03-09 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638969', 'tblTempUsageDetail_20' ) start [2025-03-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638969', 'tblTempUsageDetail_20' ) end [2025-03-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638969', 'tblTempVendorCDR_20' ) start [2025-03-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638969', 'tblTempVendorCDR_20' ) end [2025-03-09 00:58:18] Production.INFO: ProcessCDR(1,14638969,1,1,2) [2025-03-09 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638969', 'tblTempUsageDetail_20' ) start [2025-03-09 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638969', 'tblTempUsageDetail_20' ) end [2025-03-09 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:58:21] Production.INFO: ==29867== Releasing lock... [2025-03-09 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:58:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 21:59:05 [end_date_ymd] => 2025-03-09 00:59:05 [RateCDR] => 1 ) [2025-03-09 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-08 21:59:05' and `end` < '2025-03-09 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-09 00:59:17] Production.INFO: count ==830 [2025-03-09 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 21:59:05 - End Time 2025-03-09 00:59:05 [2025-03-09 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638974', 'tblTempUsageDetail_20' ) start [2025-03-09 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638974', 'tblTempUsageDetail_20' ) end [2025-03-09 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638974', 'tblTempVendorCDR_20' ) start [2025-03-09 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638974', 'tblTempVendorCDR_20' ) end [2025-03-09 00:59:17] Production.INFO: ProcessCDR(1,14638974,1,1,2) [2025-03-09 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638974', 'tblTempUsageDetail_20' ) start [2025-03-09 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638974', 'tblTempUsageDetail_20' ) end [2025-03-09 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 00:59:21] Production.INFO: ==29947== Releasing lock... [2025-03-09 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 00:59:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:00:06 [end_date_ymd] => 2025-03-09 01:00:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:00:06' and `end` < '2025-03-09 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-09 01:00:18] Production.INFO: count ==838 [2025-03-09 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 22:00:06 - End Time 2025-03-09 01:00:06 [2025-03-09 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638980', 'tblTempUsageDetail_20' ) start [2025-03-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638980', 'tblTempUsageDetail_20' ) end [2025-03-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638980', 'tblTempVendorCDR_20' ) start [2025-03-09 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638980', 'tblTempVendorCDR_20' ) end [2025-03-09 01:00:19] Production.INFO: ProcessCDR(1,14638980,1,1,2) [2025-03-09 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638980', 'tblTempUsageDetail_20' ) start [2025-03-09 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638980', 'tblTempUsageDetail_20' ) end [2025-03-09 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:00:22] Production.INFO: ==30042== Releasing lock... [2025-03-09 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:00:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:01:05 [end_date_ymd] => 2025-03-09 01:01:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:01:05' and `end` < '2025-03-09 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-09 01:01:17] Production.INFO: count ==840 [2025-03-09 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:01:05 - End Time 2025-03-09 01:01:05 [2025-03-09 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638985', 'tblTempUsageDetail_20' ) start [2025-03-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638985', 'tblTempUsageDetail_20' ) end [2025-03-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638985', 'tblTempVendorCDR_20' ) start [2025-03-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638985', 'tblTempVendorCDR_20' ) end [2025-03-09 01:01:17] Production.INFO: ProcessCDR(1,14638985,1,1,2) [2025-03-09 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638985', 'tblTempUsageDetail_20' ) start [2025-03-09 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638985', 'tblTempUsageDetail_20' ) end [2025-03-09 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:01:21] Production.INFO: ==30138== Releasing lock... [2025-03-09 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:02:05 [end_date_ymd] => 2025-03-09 01:02:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:02:05' and `end` < '2025-03-09 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-09 01:02:17] Production.INFO: count ==838 [2025-03-09 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:02:05 - End Time 2025-03-09 01:02:05 [2025-03-09 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638990', 'tblTempUsageDetail_20' ) start [2025-03-09 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638990', 'tblTempUsageDetail_20' ) end [2025-03-09 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638990', 'tblTempVendorCDR_20' ) start [2025-03-09 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638990', 'tblTempVendorCDR_20' ) end [2025-03-09 01:02:17] Production.INFO: ProcessCDR(1,14638990,1,1,2) [2025-03-09 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638990', 'tblTempUsageDetail_20' ) start [2025-03-09 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638990', 'tblTempUsageDetail_20' ) end [2025-03-09 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:02:20] Production.INFO: ==30215== Releasing lock... [2025-03-09 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:02:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:03:05 [end_date_ymd] => 2025-03-09 01:03:05 [RateCDR] => 1 ) [2025-03-09 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:03:05' and `end` < '2025-03-09 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:03:17] Production.INFO: count ==837 [2025-03-09 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:03:05 - End Time 2025-03-09 01:03:05 [2025-03-09 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638995', 'tblTempUsageDetail_20' ) start [2025-03-09 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638995', 'tblTempUsageDetail_20' ) end [2025-03-09 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638995', 'tblTempVendorCDR_20' ) start [2025-03-09 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638995', 'tblTempVendorCDR_20' ) end [2025-03-09 01:03:17] Production.INFO: ProcessCDR(1,14638995,1,1,2) [2025-03-09 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638995', 'tblTempUsageDetail_20' ) start [2025-03-09 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638995', 'tblTempUsageDetail_20' ) end [2025-03-09 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:03:21] Production.INFO: ==30297== Releasing lock... [2025-03-09 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:04:05 [end_date_ymd] => 2025-03-09 01:04:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:04:05' and `end` < '2025-03-09 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-09 01:04:17] Production.INFO: count ==837 [2025-03-09 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:04:05 - End Time 2025-03-09 01:04:05 [2025-03-09 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639000', 'tblTempUsageDetail_20' ) start [2025-03-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639000', 'tblTempUsageDetail_20' ) end [2025-03-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639000', 'tblTempVendorCDR_20' ) start [2025-03-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639000', 'tblTempVendorCDR_20' ) end [2025-03-09 01:04:18] Production.INFO: ProcessCDR(1,14639000,1,1,2) [2025-03-09 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639000', 'tblTempUsageDetail_20' ) start [2025-03-09 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639000', 'tblTempUsageDetail_20' ) end [2025-03-09 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:04:21] Production.INFO: ==30376== Releasing lock... [2025-03-09 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:05:05 [end_date_ymd] => 2025-03-09 01:05:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:05:05' and `end` < '2025-03-09 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-09 01:05:18] Production.INFO: count ==840 [2025-03-09 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:05:05 - End Time 2025-03-09 01:05:05 [2025-03-09 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639005', 'tblTempUsageDetail_20' ) start [2025-03-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639005', 'tblTempUsageDetail_20' ) end [2025-03-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639005', 'tblTempVendorCDR_20' ) start [2025-03-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639005', 'tblTempVendorCDR_20' ) end [2025-03-09 01:05:18] Production.INFO: ProcessCDR(1,14639005,1,1,2) [2025-03-09 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639005', 'tblTempUsageDetail_20' ) start [2025-03-09 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639005', 'tblTempUsageDetail_20' ) end [2025-03-09 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:05:21] Production.INFO: ==30449== Releasing lock... [2025-03-09 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:05:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:06:05 [end_date_ymd] => 2025-03-09 01:06:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:06:05' and `end` < '2025-03-09 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-09 01:06:17] Production.INFO: count ==839 [2025-03-09 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:06:05 - End Time 2025-03-09 01:06:05 [2025-03-09 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639010', 'tblTempUsageDetail_20' ) start [2025-03-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639010', 'tblTempUsageDetail_20' ) end [2025-03-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639010', 'tblTempVendorCDR_20' ) start [2025-03-09 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639010', 'tblTempVendorCDR_20' ) end [2025-03-09 01:06:18] Production.INFO: ProcessCDR(1,14639010,1,1,2) [2025-03-09 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639010', 'tblTempUsageDetail_20' ) start [2025-03-09 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639010', 'tblTempUsageDetail_20' ) end [2025-03-09 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:06:21] Production.INFO: ==30526== Releasing lock... [2025-03-09 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:07:05 [end_date_ymd] => 2025-03-09 01:07:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:07:05' and `end` < '2025-03-09 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-09 01:07:17] Production.INFO: count ==839 [2025-03-09 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:07:05 - End Time 2025-03-09 01:07:05 [2025-03-09 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639015', 'tblTempUsageDetail_20' ) start [2025-03-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639015', 'tblTempUsageDetail_20' ) end [2025-03-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639015', 'tblTempVendorCDR_20' ) start [2025-03-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639015', 'tblTempVendorCDR_20' ) end [2025-03-09 01:07:17] Production.INFO: ProcessCDR(1,14639015,1,1,2) [2025-03-09 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639015', 'tblTempUsageDetail_20' ) start [2025-03-09 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639015', 'tblTempUsageDetail_20' ) end [2025-03-09 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:07:20] Production.INFO: ==30603== Releasing lock... [2025-03-09 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:07:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:08:05 [end_date_ymd] => 2025-03-09 01:08:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:08:05' and `end` < '2025-03-09 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-09 01:08:17] Production.INFO: count ==832 [2025-03-09 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:08:05 - End Time 2025-03-09 01:08:05 [2025-03-09 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639020', 'tblTempUsageDetail_20' ) start [2025-03-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639020', 'tblTempUsageDetail_20' ) end [2025-03-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639020', 'tblTempVendorCDR_20' ) start [2025-03-09 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639020', 'tblTempVendorCDR_20' ) end [2025-03-09 01:08:18] Production.INFO: ProcessCDR(1,14639020,1,1,2) [2025-03-09 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639020', 'tblTempUsageDetail_20' ) start [2025-03-09 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639020', 'tblTempUsageDetail_20' ) end [2025-03-09 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:08:21] Production.INFO: ==30678== Releasing lock... [2025-03-09 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:08:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:09:05 [end_date_ymd] => 2025-03-09 01:09:05 [RateCDR] => 1 ) [2025-03-09 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:09:05' and `end` < '2025-03-09 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:09:17] Production.INFO: count ==830 [2025-03-09 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:09:05 - End Time 2025-03-09 01:09:05 [2025-03-09 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639025', 'tblTempUsageDetail_20' ) start [2025-03-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639025', 'tblTempUsageDetail_20' ) end [2025-03-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639025', 'tblTempVendorCDR_20' ) start [2025-03-09 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639025', 'tblTempVendorCDR_20' ) end [2025-03-09 01:09:17] Production.INFO: ProcessCDR(1,14639025,1,1,2) [2025-03-09 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639025', 'tblTempUsageDetail_20' ) start [2025-03-09 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639025', 'tblTempUsageDetail_20' ) end [2025-03-09 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:09:22] Production.INFO: ==30756== Releasing lock... [2025-03-09 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:09:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:10:06 [end_date_ymd] => 2025-03-09 01:10:06 [RateCDR] => 1 ) [2025-03-09 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:10:06' and `end` < '2025-03-09 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:10:18] Production.INFO: count ==827 [2025-03-09 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:10:06 - End Time 2025-03-09 01:10:06 [2025-03-09 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639031', 'tblTempUsageDetail_20' ) start [2025-03-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639031', 'tblTempUsageDetail_20' ) end [2025-03-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639031', 'tblTempVendorCDR_20' ) start [2025-03-09 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639031', 'tblTempVendorCDR_20' ) end [2025-03-09 01:10:18] Production.INFO: ProcessCDR(1,14639031,1,1,2) [2025-03-09 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639031', 'tblTempUsageDetail_20' ) start [2025-03-09 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639031', 'tblTempUsageDetail_20' ) end [2025-03-09 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:10:22] Production.INFO: ==30837== Releasing lock... [2025-03-09 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:10:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:11:05 [end_date_ymd] => 2025-03-09 01:11:05 [RateCDR] => 1 ) [2025-03-09 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:11:05' and `end` < '2025-03-09 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:11:17] Production.INFO: count ==823 [2025-03-09 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:11:05 - End Time 2025-03-09 01:11:05 [2025-03-09 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639036', 'tblTempUsageDetail_20' ) start [2025-03-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639036', 'tblTempUsageDetail_20' ) end [2025-03-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639036', 'tblTempVendorCDR_20' ) start [2025-03-09 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639036', 'tblTempVendorCDR_20' ) end [2025-03-09 01:11:18] Production.INFO: ProcessCDR(1,14639036,1,1,2) [2025-03-09 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639036', 'tblTempUsageDetail_20' ) start [2025-03-09 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639036', 'tblTempUsageDetail_20' ) end [2025-03-09 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:11:21] Production.INFO: ==30913== Releasing lock... [2025-03-09 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:11:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:12:05 [end_date_ymd] => 2025-03-09 01:12:05 [RateCDR] => 1 ) [2025-03-09 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:12:05' and `end` < '2025-03-09 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:12:17] Production.INFO: count ==821 [2025-03-09 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:12:05 - End Time 2025-03-09 01:12:05 [2025-03-09 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639041', 'tblTempUsageDetail_20' ) start [2025-03-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639041', 'tblTempUsageDetail_20' ) end [2025-03-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639041', 'tblTempVendorCDR_20' ) start [2025-03-09 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639041', 'tblTempVendorCDR_20' ) end [2025-03-09 01:12:18] Production.INFO: ProcessCDR(1,14639041,1,1,2) [2025-03-09 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639041', 'tblTempUsageDetail_20' ) start [2025-03-09 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639041', 'tblTempUsageDetail_20' ) end [2025-03-09 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:12:21] Production.INFO: ==30988== Releasing lock... [2025-03-09 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:12:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:13:06 [end_date_ymd] => 2025-03-09 01:13:06 [RateCDR] => 1 ) [2025-03-09 01: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-08 22:13:06' and `end` < '2025-03-09 01: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-09 01:13:18] Production.INFO: count ==817 [2025-03-09 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:13:06 - End Time 2025-03-09 01:13:06 [2025-03-09 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639046', 'tblTempUsageDetail_20' ) start [2025-03-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639046', 'tblTempUsageDetail_20' ) end [2025-03-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639046', 'tblTempVendorCDR_20' ) start [2025-03-09 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639046', 'tblTempVendorCDR_20' ) end [2025-03-09 01:13:18] Production.INFO: ProcessCDR(1,14639046,1,1,2) [2025-03-09 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639046', 'tblTempUsageDetail_20' ) start [2025-03-09 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639046', 'tblTempUsageDetail_20' ) end [2025-03-09 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:13:21] Production.INFO: ==31105== Releasing lock... [2025-03-09 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:14:05 [end_date_ymd] => 2025-03-09 01:14:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:14:05' and `end` < '2025-03-09 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-09 01:14:17] Production.INFO: count ==821 [2025-03-09 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:14:05 - End Time 2025-03-09 01:14:05 [2025-03-09 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639051', 'tblTempUsageDetail_20' ) start [2025-03-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639051', 'tblTempUsageDetail_20' ) end [2025-03-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639051', 'tblTempVendorCDR_20' ) start [2025-03-09 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639051', 'tblTempVendorCDR_20' ) end [2025-03-09 01:14:18] Production.INFO: ProcessCDR(1,14639051,1,1,2) [2025-03-09 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639051', 'tblTempUsageDetail_20' ) start [2025-03-09 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639051', 'tblTempUsageDetail_20' ) end [2025-03-09 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:14:21] Production.INFO: ==31181== Releasing lock... [2025-03-09 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:14:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:15:06 [end_date_ymd] => 2025-03-09 01:15:06 [RateCDR] => 1 ) [2025-03-09 01: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-08 22:15:06' and `end` < '2025-03-09 01: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-09 01:15:18] Production.INFO: count ==810 [2025-03-09 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:15:06 - End Time 2025-03-09 01:15:06 [2025-03-09 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639056', 'tblTempUsageDetail_20' ) start [2025-03-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639056', 'tblTempUsageDetail_20' ) end [2025-03-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639056', 'tblTempVendorCDR_20' ) start [2025-03-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639056', 'tblTempVendorCDR_20' ) end [2025-03-09 01:15:18] Production.INFO: ProcessCDR(1,14639056,1,1,2) [2025-03-09 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639056', 'tblTempUsageDetail_20' ) start [2025-03-09 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639056', 'tblTempUsageDetail_20' ) end [2025-03-09 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:15:22] Production.INFO: ==31262== Releasing lock... [2025-03-09 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:16:05 [end_date_ymd] => 2025-03-09 01:16:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:16:05' and `end` < '2025-03-09 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-09 01:16:17] Production.INFO: count ==740 [2025-03-09 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:16:05 - End Time 2025-03-09 01:16:05 [2025-03-09 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639061', 'tblTempUsageDetail_20' ) start [2025-03-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639061', 'tblTempUsageDetail_20' ) end [2025-03-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639061', 'tblTempVendorCDR_20' ) start [2025-03-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639061', 'tblTempVendorCDR_20' ) end [2025-03-09 01:16:18] Production.INFO: ProcessCDR(1,14639061,1,1,2) [2025-03-09 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639061', 'tblTempUsageDetail_20' ) start [2025-03-09 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639061', 'tblTempUsageDetail_20' ) end [2025-03-09 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:16:21] Production.INFO: ==31337== Releasing lock... [2025-03-09 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:16:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:17:05 [end_date_ymd] => 2025-03-09 01:17:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:17:05' and `end` < '2025-03-09 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-09 01:17:17] Production.INFO: count ==667 [2025-03-09 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:17:05 - End Time 2025-03-09 01:17:05 [2025-03-09 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639066', 'tblTempUsageDetail_20' ) start [2025-03-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639066', 'tblTempUsageDetail_20' ) end [2025-03-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639066', 'tblTempVendorCDR_20' ) start [2025-03-09 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639066', 'tblTempVendorCDR_20' ) end [2025-03-09 01:17:18] Production.INFO: ProcessCDR(1,14639066,1,1,2) [2025-03-09 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639066', 'tblTempUsageDetail_20' ) start [2025-03-09 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639066', 'tblTempUsageDetail_20' ) end [2025-03-09 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:17:21] Production.INFO: ==31425== Releasing lock... [2025-03-09 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:17:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:18:05 [end_date_ymd] => 2025-03-09 01:18:05 [RateCDR] => 1 ) [2025-03-09 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:18:05' and `end` < '2025-03-09 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:18:17] Production.INFO: count ==602 [2025-03-09 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:18:05 - End Time 2025-03-09 01:18:05 [2025-03-09 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639071', 'tblTempUsageDetail_20' ) start [2025-03-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639071', 'tblTempUsageDetail_20' ) end [2025-03-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639071', 'tblTempVendorCDR_20' ) start [2025-03-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639071', 'tblTempVendorCDR_20' ) end [2025-03-09 01:18:18] Production.INFO: ProcessCDR(1,14639071,1,1,2) [2025-03-09 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639071', 'tblTempUsageDetail_20' ) start [2025-03-09 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639071', 'tblTempUsageDetail_20' ) end [2025-03-09 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:18:23] Production.INFO: ==31507== Releasing lock... [2025-03-09 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:18:23] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:19:05 [end_date_ymd] => 2025-03-09 01:19:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:19:05' and `end` < '2025-03-09 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-09 01:19:17] Production.INFO: count ==569 [2025-03-09 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:19:05 - End Time 2025-03-09 01:19:05 [2025-03-09 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639076', 'tblTempUsageDetail_20' ) start [2025-03-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639076', 'tblTempUsageDetail_20' ) end [2025-03-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639076', 'tblTempVendorCDR_20' ) start [2025-03-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639076', 'tblTempVendorCDR_20' ) end [2025-03-09 01:19:17] Production.INFO: ProcessCDR(1,14639076,1,1,2) [2025-03-09 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639076', 'tblTempUsageDetail_20' ) start [2025-03-09 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639076', 'tblTempUsageDetail_20' ) end [2025-03-09 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:19:22] Production.INFO: ==31608== Releasing lock... [2025-03-09 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:19:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:20:06 [end_date_ymd] => 2025-03-09 01:20:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:20:06' and `end` < '2025-03-09 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-09 01:20:18] Production.INFO: count ==576 [2025-03-09 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:20:06 - End Time 2025-03-09 01:20:06 [2025-03-09 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639081', 'tblTempUsageDetail_20' ) start [2025-03-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639081', 'tblTempUsageDetail_20' ) end [2025-03-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639081', 'tblTempVendorCDR_20' ) start [2025-03-09 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639081', 'tblTempVendorCDR_20' ) end [2025-03-09 01:20:18] Production.INFO: ProcessCDR(1,14639081,1,1,2) [2025-03-09 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639081', 'tblTempUsageDetail_20' ) start [2025-03-09 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639081', 'tblTempUsageDetail_20' ) end [2025-03-09 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:20:22] Production.INFO: ==31709== Releasing lock... [2025-03-09 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:21:05 [end_date_ymd] => 2025-03-09 01:21:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:21:05' and `end` < '2025-03-09 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-09 01:21:17] Production.INFO: count ==586 [2025-03-09 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:21:05 - End Time 2025-03-09 01:21:05 [2025-03-09 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639087', 'tblTempUsageDetail_20' ) start [2025-03-09 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639087', 'tblTempUsageDetail_20' ) end [2025-03-09 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639087', 'tblTempVendorCDR_20' ) start [2025-03-09 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639087', 'tblTempVendorCDR_20' ) end [2025-03-09 01:21:17] Production.INFO: ProcessCDR(1,14639087,1,1,2) [2025-03-09 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639087', 'tblTempUsageDetail_20' ) start [2025-03-09 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639087', 'tblTempUsageDetail_20' ) end [2025-03-09 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:21:20] Production.INFO: ==31790== Releasing lock... [2025-03-09 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:21:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:22:06 [end_date_ymd] => 2025-03-09 01:22:06 [RateCDR] => 1 ) [2025-03-09 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:22:06' and `end` < '2025-03-09 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:22:18] Production.INFO: count ==584 [2025-03-09 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:22:06 - End Time 2025-03-09 01:22:06 [2025-03-09 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639092', 'tblTempUsageDetail_20' ) start [2025-03-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639092', 'tblTempUsageDetail_20' ) end [2025-03-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639092', 'tblTempVendorCDR_20' ) start [2025-03-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639092', 'tblTempVendorCDR_20' ) end [2025-03-09 01:22:18] Production.INFO: ProcessCDR(1,14639092,1,1,2) [2025-03-09 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639092', 'tblTempUsageDetail_20' ) start [2025-03-09 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639092', 'tblTempUsageDetail_20' ) end [2025-03-09 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:22:23] Production.INFO: ==31869== Releasing lock... [2025-03-09 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:22:23] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:23:04 [end_date_ymd] => 2025-03-09 01:23:04 [RateCDR] => 1 ) [2025-03-09 01:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:23:04' and `end` < '2025-03-09 01:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:23:16] Production.INFO: count ==585 [2025-03-09 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:23:04 - End Time 2025-03-09 01:23:04 [2025-03-09 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639097', 'tblTempUsageDetail_20' ) start [2025-03-09 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639097', 'tblTempUsageDetail_20' ) end [2025-03-09 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639097', 'tblTempVendorCDR_20' ) start [2025-03-09 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639097', 'tblTempVendorCDR_20' ) end [2025-03-09 01:23:17] Production.INFO: ProcessCDR(1,14639097,1,1,2) [2025-03-09 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639097', 'tblTempUsageDetail_20' ) start [2025-03-09 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639097', 'tblTempUsageDetail_20' ) end [2025-03-09 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:23:21] Production.INFO: ==31969== Releasing lock... [2025-03-09 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:24:05 [end_date_ymd] => 2025-03-09 01:24:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:24:05' and `end` < '2025-03-09 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-09 01:24:17] Production.INFO: count ==580 [2025-03-09 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:24:05 - End Time 2025-03-09 01:24:05 [2025-03-09 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639102', 'tblTempUsageDetail_20' ) start [2025-03-09 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639102', 'tblTempUsageDetail_20' ) end [2025-03-09 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639102', 'tblTempVendorCDR_20' ) start [2025-03-09 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639102', 'tblTempVendorCDR_20' ) end [2025-03-09 01:24:17] Production.INFO: ProcessCDR(1,14639102,1,1,2) [2025-03-09 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639102', 'tblTempUsageDetail_20' ) start [2025-03-09 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639102', 'tblTempUsageDetail_20' ) end [2025-03-09 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:24:21] Production.INFO: ==32056== Releasing lock... [2025-03-09 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:24:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:25:06 [end_date_ymd] => 2025-03-09 01:25:06 [RateCDR] => 1 ) [2025-03-09 01: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-08 22:25:06' and `end` < '2025-03-09 01: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-09 01:25:18] Production.INFO: count ==581 [2025-03-09 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:25:06 - End Time 2025-03-09 01:25:06 [2025-03-09 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639107', 'tblTempUsageDetail_20' ) start [2025-03-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639107', 'tblTempUsageDetail_20' ) end [2025-03-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639107', 'tblTempVendorCDR_20' ) start [2025-03-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639107', 'tblTempVendorCDR_20' ) end [2025-03-09 01:25:18] Production.INFO: ProcessCDR(1,14639107,1,1,2) [2025-03-09 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639107', 'tblTempUsageDetail_20' ) start [2025-03-09 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639107', 'tblTempUsageDetail_20' ) end [2025-03-09 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:25:21] Production.INFO: ==32130== Releasing lock... [2025-03-09 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:26:05 [end_date_ymd] => 2025-03-09 01:26:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:26:05' and `end` < '2025-03-09 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-09 01:26:17] Production.INFO: count ==581 [2025-03-09 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:26:05 - End Time 2025-03-09 01:26:05 [2025-03-09 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639112', 'tblTempUsageDetail_20' ) start [2025-03-09 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639112', 'tblTempUsageDetail_20' ) end [2025-03-09 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639112', 'tblTempVendorCDR_20' ) start [2025-03-09 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639112', 'tblTempVendorCDR_20' ) end [2025-03-09 01:26:17] Production.INFO: ProcessCDR(1,14639112,1,1,2) [2025-03-09 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639112', 'tblTempUsageDetail_20' ) start [2025-03-09 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639112', 'tblTempUsageDetail_20' ) end [2025-03-09 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:26:20] Production.INFO: ==32202== Releasing lock... [2025-03-09 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:26:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:27:05 [end_date_ymd] => 2025-03-09 01:27:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:27:05' and `end` < '2025-03-09 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-09 01:27:17] Production.INFO: count ==575 [2025-03-09 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:27:05 - End Time 2025-03-09 01:27:05 [2025-03-09 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639117', 'tblTempUsageDetail_20' ) start [2025-03-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639117', 'tblTempUsageDetail_20' ) end [2025-03-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639117', 'tblTempVendorCDR_20' ) start [2025-03-09 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639117', 'tblTempVendorCDR_20' ) end [2025-03-09 01:27:17] Production.INFO: ProcessCDR(1,14639117,1,1,2) [2025-03-09 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639117', 'tblTempUsageDetail_20' ) start [2025-03-09 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639117', 'tblTempUsageDetail_20' ) end [2025-03-09 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:27:21] Production.INFO: ==32282== Releasing lock... [2025-03-09 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:27:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:28:05 [end_date_ymd] => 2025-03-09 01:28:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:28:05' and `end` < '2025-03-09 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-09 01:28:17] Production.INFO: count ==576 [2025-03-09 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:28:05 - End Time 2025-03-09 01:28:05 [2025-03-09 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639122', 'tblTempUsageDetail_20' ) start [2025-03-09 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639122', 'tblTempUsageDetail_20' ) end [2025-03-09 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639122', 'tblTempVendorCDR_20' ) start [2025-03-09 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639122', 'tblTempVendorCDR_20' ) end [2025-03-09 01:28:17] Production.INFO: ProcessCDR(1,14639122,1,1,2) [2025-03-09 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639122', 'tblTempUsageDetail_20' ) start [2025-03-09 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639122', 'tblTempUsageDetail_20' ) end [2025-03-09 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:28:20] Production.INFO: ==32411== Releasing lock... [2025-03-09 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:28:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:29:05 [end_date_ymd] => 2025-03-09 01:29:05 [RateCDR] => 1 ) [2025-03-09 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:29:05' and `end` < '2025-03-09 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:29:17] Production.INFO: count ==575 [2025-03-09 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:29:05 - End Time 2025-03-09 01:29:05 [2025-03-09 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639127', 'tblTempUsageDetail_20' ) start [2025-03-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639127', 'tblTempUsageDetail_20' ) end [2025-03-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639127', 'tblTempVendorCDR_20' ) start [2025-03-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639127', 'tblTempVendorCDR_20' ) end [2025-03-09 01:29:18] Production.INFO: ProcessCDR(1,14639127,1,1,2) [2025-03-09 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639127', 'tblTempUsageDetail_20' ) start [2025-03-09 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639127', 'tblTempUsageDetail_20' ) end [2025-03-09 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:29:21] Production.INFO: ==32495== Releasing lock... [2025-03-09 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:29:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:30:05 [end_date_ymd] => 2025-03-09 01:30:05 [RateCDR] => 1 ) [2025-03-09 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:30:05' and `end` < '2025-03-09 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:30:18] Production.INFO: count ==580 [2025-03-09 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:30:05 - End Time 2025-03-09 01:30:05 [2025-03-09 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639132', 'tblTempUsageDetail_20' ) start [2025-03-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639132', 'tblTempUsageDetail_20' ) end [2025-03-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639132', 'tblTempVendorCDR_20' ) start [2025-03-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639132', 'tblTempVendorCDR_20' ) end [2025-03-09 01:30:18] Production.INFO: ProcessCDR(1,14639132,1,1,2) [2025-03-09 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639132', 'tblTempUsageDetail_20' ) start [2025-03-09 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639132', 'tblTempUsageDetail_20' ) end [2025-03-09 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:30:21] Production.INFO: ==32575== Releasing lock... [2025-03-09 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:30:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:31:05 [end_date_ymd] => 2025-03-09 01:31:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:31:05' and `end` < '2025-03-09 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-09 01:31:17] Production.INFO: count ==594 [2025-03-09 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:31:05 - End Time 2025-03-09 01:31:05 [2025-03-09 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639138', 'tblTempUsageDetail_20' ) start [2025-03-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639138', 'tblTempUsageDetail_20' ) end [2025-03-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639138', 'tblTempVendorCDR_20' ) start [2025-03-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639138', 'tblTempVendorCDR_20' ) end [2025-03-09 01:31:18] Production.INFO: ProcessCDR(1,14639138,1,1,2) [2025-03-09 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639138', 'tblTempUsageDetail_20' ) start [2025-03-09 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639138', 'tblTempUsageDetail_20' ) end [2025-03-09 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:31:21] Production.INFO: ==32655== Releasing lock... [2025-03-09 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:32:05 [end_date_ymd] => 2025-03-09 01:32:05 [RateCDR] => 1 ) [2025-03-09 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:32:05' and `end` < '2025-03-09 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:32:17] Production.INFO: count ==593 [2025-03-09 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:32:05 - End Time 2025-03-09 01:32:05 [2025-03-09 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639143', 'tblTempUsageDetail_20' ) start [2025-03-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639143', 'tblTempUsageDetail_20' ) end [2025-03-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639143', 'tblTempVendorCDR_20' ) start [2025-03-09 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639143', 'tblTempVendorCDR_20' ) end [2025-03-09 01:32:17] Production.INFO: ProcessCDR(1,14639143,1,1,2) [2025-03-09 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639143', 'tblTempUsageDetail_20' ) start [2025-03-09 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639143', 'tblTempUsageDetail_20' ) end [2025-03-09 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:32:20] Production.INFO: ==32736== Releasing lock... [2025-03-09 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:32:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:33:05 [end_date_ymd] => 2025-03-09 01:33:05 [RateCDR] => 1 ) [2025-03-09 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:33:05' and `end` < '2025-03-09 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:33:17] Production.INFO: count ==593 [2025-03-09 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:33:05 - End Time 2025-03-09 01:33:05 [2025-03-09 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639148', 'tblTempUsageDetail_20' ) start [2025-03-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639148', 'tblTempUsageDetail_20' ) end [2025-03-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639148', 'tblTempVendorCDR_20' ) start [2025-03-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639148', 'tblTempVendorCDR_20' ) end [2025-03-09 01:33:18] Production.INFO: ProcessCDR(1,14639148,1,1,2) [2025-03-09 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639148', 'tblTempUsageDetail_20' ) start [2025-03-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639148', 'tblTempUsageDetail_20' ) end [2025-03-09 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:33:21] Production.INFO: ==377== Releasing lock... [2025-03-09 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:34:05 [end_date_ymd] => 2025-03-09 01:34:05 [RateCDR] => 1 ) [2025-03-09 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:34:05' and `end` < '2025-03-09 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:34:17] Production.INFO: count ==593 [2025-03-09 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:34:05 - End Time 2025-03-09 01:34:05 [2025-03-09 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639153', 'tblTempUsageDetail_20' ) start [2025-03-09 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639153', 'tblTempUsageDetail_20' ) end [2025-03-09 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639153', 'tblTempVendorCDR_20' ) start [2025-03-09 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639153', 'tblTempVendorCDR_20' ) end [2025-03-09 01:34:17] Production.INFO: ProcessCDR(1,14639153,1,1,2) [2025-03-09 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639153', 'tblTempUsageDetail_20' ) start [2025-03-09 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639153', 'tblTempUsageDetail_20' ) end [2025-03-09 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:34:21] Production.INFO: ==466== Releasing lock... [2025-03-09 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:35:05 [end_date_ymd] => 2025-03-09 01:35:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:35:05' and `end` < '2025-03-09 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-09 01:35:17] Production.INFO: count ==595 [2025-03-09 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:35:05 - End Time 2025-03-09 01:35:05 [2025-03-09 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639158', 'tblTempUsageDetail_20' ) start [2025-03-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639158', 'tblTempUsageDetail_20' ) end [2025-03-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639158', 'tblTempVendorCDR_20' ) start [2025-03-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639158', 'tblTempVendorCDR_20' ) end [2025-03-09 01:35:18] Production.INFO: ProcessCDR(1,14639158,1,1,2) [2025-03-09 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639158', 'tblTempUsageDetail_20' ) start [2025-03-09 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639158', 'tblTempUsageDetail_20' ) end [2025-03-09 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:35:21] Production.INFO: ==557== Releasing lock... [2025-03-09 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:36:05 [end_date_ymd] => 2025-03-09 01:36:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:36:05' and `end` < '2025-03-09 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-09 01:36:17] Production.INFO: count ==596 [2025-03-09 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:36:05 - End Time 2025-03-09 01:36:05 [2025-03-09 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639163', 'tblTempUsageDetail_20' ) start [2025-03-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639163', 'tblTempUsageDetail_20' ) end [2025-03-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639163', 'tblTempVendorCDR_20' ) start [2025-03-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639163', 'tblTempVendorCDR_20' ) end [2025-03-09 01:36:18] Production.INFO: ProcessCDR(1,14639163,1,1,2) [2025-03-09 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639163', 'tblTempUsageDetail_20' ) start [2025-03-09 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639163', 'tblTempUsageDetail_20' ) end [2025-03-09 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:36:23] Production.INFO: ==662== Releasing lock... [2025-03-09 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:36:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:37:06 [end_date_ymd] => 2025-03-09 01:37:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:37:06' and `end` < '2025-03-09 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-09 01:37:18] Production.INFO: count ==599 [2025-03-09 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:37:06 - End Time 2025-03-09 01:37:06 [2025-03-09 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639168', 'tblTempUsageDetail_20' ) start [2025-03-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639168', 'tblTempUsageDetail_20' ) end [2025-03-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639168', 'tblTempVendorCDR_20' ) start [2025-03-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639168', 'tblTempVendorCDR_20' ) end [2025-03-09 01:37:18] Production.INFO: ProcessCDR(1,14639168,1,1,2) [2025-03-09 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639168', 'tblTempUsageDetail_20' ) start [2025-03-09 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639168', 'tblTempUsageDetail_20' ) end [2025-03-09 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:37:22] Production.INFO: ==761== Releasing lock... [2025-03-09 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:37:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:38:06 [end_date_ymd] => 2025-03-09 01:38:06 [RateCDR] => 1 ) [2025-03-09 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:38:06' and `end` < '2025-03-09 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:38:18] Production.INFO: count ==594 [2025-03-09 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:38:06 - End Time 2025-03-09 01:38:06 [2025-03-09 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639173', 'tblTempUsageDetail_20' ) start [2025-03-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639173', 'tblTempUsageDetail_20' ) end [2025-03-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639173', 'tblTempVendorCDR_20' ) start [2025-03-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639173', 'tblTempVendorCDR_20' ) end [2025-03-09 01:38:18] Production.INFO: ProcessCDR(1,14639173,1,1,2) [2025-03-09 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639173', 'tblTempUsageDetail_20' ) start [2025-03-09 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639173', 'tblTempUsageDetail_20' ) end [2025-03-09 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:38:22] Production.INFO: ==835== Releasing lock... [2025-03-09 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:39:06 [end_date_ymd] => 2025-03-09 01:39:06 [RateCDR] => 1 ) [2025-03-09 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:39:06' and `end` < '2025-03-09 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:39:18] Production.INFO: count ==596 [2025-03-09 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:39:06 - End Time 2025-03-09 01:39:06 [2025-03-09 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639178', 'tblTempUsageDetail_20' ) start [2025-03-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639178', 'tblTempUsageDetail_20' ) end [2025-03-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639178', 'tblTempVendorCDR_20' ) start [2025-03-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639178', 'tblTempVendorCDR_20' ) end [2025-03-09 01:39:18] Production.INFO: ProcessCDR(1,14639178,1,1,2) [2025-03-09 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639178', 'tblTempUsageDetail_20' ) start [2025-03-09 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639178', 'tblTempUsageDetail_20' ) end [2025-03-09 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:39:22] Production.INFO: ==923== Releasing lock... [2025-03-09 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:40:06 [end_date_ymd] => 2025-03-09 01:40:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:40:06' and `end` < '2025-03-09 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-09 01:40:18] Production.INFO: count ==599 [2025-03-09 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:40:06 - End Time 2025-03-09 01:40:06 [2025-03-09 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639183', 'tblTempUsageDetail_20' ) start [2025-03-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639183', 'tblTempUsageDetail_20' ) end [2025-03-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639183', 'tblTempVendorCDR_20' ) start [2025-03-09 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639183', 'tblTempVendorCDR_20' ) end [2025-03-09 01:40:18] Production.INFO: ProcessCDR(1,14639183,1,1,2) [2025-03-09 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639183', 'tblTempUsageDetail_20' ) start [2025-03-09 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639183', 'tblTempUsageDetail_20' ) end [2025-03-09 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:40:22] Production.INFO: ==1012== Releasing lock... [2025-03-09 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:41:06 [end_date_ymd] => 2025-03-09 01:41:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:41:06' and `end` < '2025-03-09 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-09 01:41:18] Production.INFO: count ==610 [2025-03-09 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:41:06 - End Time 2025-03-09 01:41:06 [2025-03-09 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639189', 'tblTempUsageDetail_20' ) start [2025-03-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639189', 'tblTempUsageDetail_20' ) end [2025-03-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639189', 'tblTempVendorCDR_20' ) start [2025-03-09 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639189', 'tblTempVendorCDR_20' ) end [2025-03-09 01:41:18] Production.INFO: ProcessCDR(1,14639189,1,1,2) [2025-03-09 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639189', 'tblTempUsageDetail_20' ) start [2025-03-09 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639189', 'tblTempUsageDetail_20' ) end [2025-03-09 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:41:22] Production.INFO: ==1103== Releasing lock... [2025-03-09 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:41:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:42:05 [end_date_ymd] => 2025-03-09 01:42:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:42:05' and `end` < '2025-03-09 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-09 01:42:17] Production.INFO: count ==606 [2025-03-09 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:42:05 - End Time 2025-03-09 01:42:05 [2025-03-09 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639194', 'tblTempUsageDetail_20' ) start [2025-03-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639194', 'tblTempUsageDetail_20' ) end [2025-03-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639194', 'tblTempVendorCDR_20' ) start [2025-03-09 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639194', 'tblTempVendorCDR_20' ) end [2025-03-09 01:42:18] Production.INFO: ProcessCDR(1,14639194,1,1,2) [2025-03-09 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639194', 'tblTempUsageDetail_20' ) start [2025-03-09 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639194', 'tblTempUsageDetail_20' ) end [2025-03-09 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:42:21] Production.INFO: ==1197== Releasing lock... [2025-03-09 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:43:06 [end_date_ymd] => 2025-03-09 01:43:06 [RateCDR] => 1 ) [2025-03-09 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:43:06' and `end` < '2025-03-09 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:43:18] Production.INFO: count ==612 [2025-03-09 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:43:06 - End Time 2025-03-09 01:43:06 [2025-03-09 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639199', 'tblTempUsageDetail_20' ) start [2025-03-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639199', 'tblTempUsageDetail_20' ) end [2025-03-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639199', 'tblTempVendorCDR_20' ) start [2025-03-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639199', 'tblTempVendorCDR_20' ) end [2025-03-09 01:43:18] Production.INFO: ProcessCDR(1,14639199,1,1,2) [2025-03-09 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639199', 'tblTempUsageDetail_20' ) start [2025-03-09 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639199', 'tblTempUsageDetail_20' ) end [2025-03-09 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:43:22] Production.INFO: ==1339== Releasing lock... [2025-03-09 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:44:06 [end_date_ymd] => 2025-03-09 01:44:06 [RateCDR] => 1 ) [2025-03-09 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:44:06' and `end` < '2025-03-09 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:44:18] Production.INFO: count ==611 [2025-03-09 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:44:06 - End Time 2025-03-09 01:44:06 [2025-03-09 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639204', 'tblTempUsageDetail_20' ) start [2025-03-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639204', 'tblTempUsageDetail_20' ) end [2025-03-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639204', 'tblTempVendorCDR_20' ) start [2025-03-09 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639204', 'tblTempVendorCDR_20' ) end [2025-03-09 01:44:18] Production.INFO: ProcessCDR(1,14639204,1,1,2) [2025-03-09 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639204', 'tblTempUsageDetail_20' ) start [2025-03-09 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639204', 'tblTempUsageDetail_20' ) end [2025-03-09 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:44:22] Production.INFO: ==1438== Releasing lock... [2025-03-09 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:44:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:45:06 [end_date_ymd] => 2025-03-09 01:45:06 [RateCDR] => 1 ) [2025-03-09 01: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-08 22:45:06' and `end` < '2025-03-09 01: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-09 01:45:18] Production.INFO: count ==605 [2025-03-09 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:45:06 - End Time 2025-03-09 01:45:06 [2025-03-09 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639209', 'tblTempUsageDetail_20' ) start [2025-03-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639209', 'tblTempUsageDetail_20' ) end [2025-03-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639209', 'tblTempVendorCDR_20' ) start [2025-03-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639209', 'tblTempVendorCDR_20' ) end [2025-03-09 01:45:18] Production.INFO: ProcessCDR(1,14639209,1,1,2) [2025-03-09 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639209', 'tblTempUsageDetail_20' ) start [2025-03-09 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639209', 'tblTempUsageDetail_20' ) end [2025-03-09 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:45:22] Production.INFO: ==1603== Releasing lock... [2025-03-09 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:46:05 [end_date_ymd] => 2025-03-09 01:46:05 [RateCDR] => 1 ) [2025-03-09 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:46:05' and `end` < '2025-03-09 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:46:18] Production.INFO: count ==604 [2025-03-09 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:46:05 - End Time 2025-03-09 01:46:05 [2025-03-09 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639214', 'tblTempUsageDetail_20' ) start [2025-03-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639214', 'tblTempUsageDetail_20' ) end [2025-03-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639214', 'tblTempVendorCDR_20' ) start [2025-03-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639214', 'tblTempVendorCDR_20' ) end [2025-03-09 01:46:18] Production.INFO: ProcessCDR(1,14639214,1,1,2) [2025-03-09 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639214', 'tblTempUsageDetail_20' ) start [2025-03-09 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639214', 'tblTempUsageDetail_20' ) end [2025-03-09 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:46:21] Production.INFO: ==1722== Releasing lock... [2025-03-09 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:47:06 [end_date_ymd] => 2025-03-09 01:47:06 [RateCDR] => 1 ) [2025-03-09 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:47:06' and `end` < '2025-03-09 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:47:18] Production.INFO: count ==605 [2025-03-09 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:47:06 - End Time 2025-03-09 01:47:06 [2025-03-09 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639219', 'tblTempUsageDetail_20' ) start [2025-03-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639219', 'tblTempUsageDetail_20' ) end [2025-03-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639219', 'tblTempVendorCDR_20' ) start [2025-03-09 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639219', 'tblTempVendorCDR_20' ) end [2025-03-09 01:47:18] Production.INFO: ProcessCDR(1,14639219,1,1,2) [2025-03-09 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639219', 'tblTempUsageDetail_20' ) start [2025-03-09 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639219', 'tblTempUsageDetail_20' ) end [2025-03-09 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:47:22] Production.INFO: ==1810== Releasing lock... [2025-03-09 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:48:05 [end_date_ymd] => 2025-03-09 01:48:05 [RateCDR] => 1 ) [2025-03-09 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:48:05' and `end` < '2025-03-09 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:48:17] Production.INFO: count ==606 [2025-03-09 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:48:05 - End Time 2025-03-09 01:48:05 [2025-03-09 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639223', 'tblTempUsageDetail_20' ) start [2025-03-09 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639223', 'tblTempUsageDetail_20' ) end [2025-03-09 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639223', 'tblTempVendorCDR_20' ) start [2025-03-09 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639223', 'tblTempVendorCDR_20' ) end [2025-03-09 01:48:17] Production.INFO: ProcessCDR(1,14639223,1,1,2) [2025-03-09 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639223', 'tblTempUsageDetail_20' ) start [2025-03-09 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639223', 'tblTempUsageDetail_20' ) end [2025-03-09 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:48:21] Production.INFO: ==1901== Releasing lock... [2025-03-09 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:48:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:49:06 [end_date_ymd] => 2025-03-09 01:49:06 [RateCDR] => 1 ) [2025-03-09 01: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-08 22:49:06' and `end` < '2025-03-09 01: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-09 01:49:18] Production.INFO: count ==606 [2025-03-09 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:49:06 - End Time 2025-03-09 01:49:06 [2025-03-09 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639229', 'tblTempUsageDetail_20' ) start [2025-03-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639229', 'tblTempUsageDetail_20' ) end [2025-03-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639229', 'tblTempVendorCDR_20' ) start [2025-03-09 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639229', 'tblTempVendorCDR_20' ) end [2025-03-09 01:49:18] Production.INFO: ProcessCDR(1,14639229,1,1,2) [2025-03-09 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639229', 'tblTempUsageDetail_20' ) start [2025-03-09 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639229', 'tblTempUsageDetail_20' ) end [2025-03-09 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:49:22] Production.INFO: ==1992== Releasing lock... [2025-03-09 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:50:06 [end_date_ymd] => 2025-03-09 01:50:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:50:06' and `end` < '2025-03-09 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-09 01:50:18] Production.INFO: count ==614 [2025-03-09 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:50:06 - End Time 2025-03-09 01:50:06 [2025-03-09 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639234', 'tblTempUsageDetail_20' ) start [2025-03-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639234', 'tblTempUsageDetail_20' ) end [2025-03-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639234', 'tblTempVendorCDR_20' ) start [2025-03-09 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639234', 'tblTempVendorCDR_20' ) end [2025-03-09 01:50:18] Production.INFO: ProcessCDR(1,14639234,1,1,2) [2025-03-09 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639234', 'tblTempUsageDetail_20' ) start [2025-03-09 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639234', 'tblTempUsageDetail_20' ) end [2025-03-09 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:50:22] Production.INFO: ==2078== Releasing lock... [2025-03-09 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:50:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:51:06 [end_date_ymd] => 2025-03-09 01:51:06 [RateCDR] => 1 ) [2025-03-09 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:51:06' and `end` < '2025-03-09 01: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-09 01:51:18] Production.INFO: count ==608 [2025-03-09 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:51:06 - End Time 2025-03-09 01:51:06 [2025-03-09 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639240', 'tblTempUsageDetail_20' ) start [2025-03-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639240', 'tblTempUsageDetail_20' ) end [2025-03-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639240', 'tblTempVendorCDR_20' ) start [2025-03-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639240', 'tblTempVendorCDR_20' ) end [2025-03-09 01:51:18] Production.INFO: ProcessCDR(1,14639240,1,1,2) [2025-03-09 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639240', 'tblTempUsageDetail_20' ) start [2025-03-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639240', 'tblTempUsageDetail_20' ) end [2025-03-09 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:51:22] Production.INFO: ==2160== Releasing lock... [2025-03-09 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:52:06 [end_date_ymd] => 2025-03-09 01:52:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:52:06' and `end` < '2025-03-09 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-09 01:52:18] Production.INFO: count ==602 [2025-03-09 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:52:06 - End Time 2025-03-09 01:52:06 [2025-03-09 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639245', 'tblTempUsageDetail_20' ) start [2025-03-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639245', 'tblTempUsageDetail_20' ) end [2025-03-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639245', 'tblTempVendorCDR_20' ) start [2025-03-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639245', 'tblTempVendorCDR_20' ) end [2025-03-09 01:52:18] Production.INFO: ProcessCDR(1,14639245,1,1,2) [2025-03-09 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639245', 'tblTempUsageDetail_20' ) start [2025-03-09 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639245', 'tblTempUsageDetail_20' ) end [2025-03-09 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:52:22] Production.INFO: ==2245== Releasing lock... [2025-03-09 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:53:05 [end_date_ymd] => 2025-03-09 01:53:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:53:05' and `end` < '2025-03-09 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-09 01:53:17] Production.INFO: count ==601 [2025-03-09 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:53:05 - End Time 2025-03-09 01:53:05 [2025-03-09 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639250', 'tblTempUsageDetail_20' ) start [2025-03-09 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639250', 'tblTempUsageDetail_20' ) end [2025-03-09 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639250', 'tblTempVendorCDR_20' ) start [2025-03-09 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639250', 'tblTempVendorCDR_20' ) end [2025-03-09 01:53:17] Production.INFO: ProcessCDR(1,14639250,1,1,2) [2025-03-09 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639250', 'tblTempUsageDetail_20' ) start [2025-03-09 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639250', 'tblTempUsageDetail_20' ) end [2025-03-09 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:53:21] Production.INFO: ==2342== Releasing lock... [2025-03-09 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:54:06 [end_date_ymd] => 2025-03-09 01:54:06 [RateCDR] => 1 ) [2025-03-09 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-08 22:54:06' and `end` < '2025-03-09 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-09 01:54:18] Production.INFO: count ==598 [2025-03-09 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:54:06 - End Time 2025-03-09 01:54:06 [2025-03-09 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639255', 'tblTempUsageDetail_20' ) start [2025-03-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639255', 'tblTempUsageDetail_20' ) end [2025-03-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639255', 'tblTempVendorCDR_20' ) start [2025-03-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639255', 'tblTempVendorCDR_20' ) end [2025-03-09 01:54:18] Production.INFO: ProcessCDR(1,14639255,1,1,2) [2025-03-09 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639255', 'tblTempUsageDetail_20' ) start [2025-03-09 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639255', 'tblTempUsageDetail_20' ) end [2025-03-09 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:54:22] Production.INFO: ==2424== Releasing lock... [2025-03-09 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:55:05 [end_date_ymd] => 2025-03-09 01:55:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:55:05' and `end` < '2025-03-09 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-09 01:55:17] Production.INFO: count ==603 [2025-03-09 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:55:05 - End Time 2025-03-09 01:55:05 [2025-03-09 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639260', 'tblTempUsageDetail_20' ) start [2025-03-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639260', 'tblTempUsageDetail_20' ) end [2025-03-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639260', 'tblTempVendorCDR_20' ) start [2025-03-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639260', 'tblTempVendorCDR_20' ) end [2025-03-09 01:55:17] Production.INFO: ProcessCDR(1,14639260,1,1,2) [2025-03-09 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639260', 'tblTempUsageDetail_20' ) start [2025-03-09 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639260', 'tblTempUsageDetail_20' ) end [2025-03-09 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:55:21] Production.INFO: ==2497== Releasing lock... [2025-03-09 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:55:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:56:05 [end_date_ymd] => 2025-03-09 01:56:05 [RateCDR] => 1 ) [2025-03-09 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 22:56:05' and `end` < '2025-03-09 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 01:56:17] Production.INFO: count ==608 [2025-03-09 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:56:05 - End Time 2025-03-09 01:56:05 [2025-03-09 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639265', 'tblTempUsageDetail_20' ) start [2025-03-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639265', 'tblTempUsageDetail_20' ) end [2025-03-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639265', 'tblTempVendorCDR_20' ) start [2025-03-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639265', 'tblTempVendorCDR_20' ) end [2025-03-09 01:56:18] Production.INFO: ProcessCDR(1,14639265,1,1,2) [2025-03-09 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639265', 'tblTempUsageDetail_20' ) start [2025-03-09 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639265', 'tblTempUsageDetail_20' ) end [2025-03-09 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:56:21] Production.INFO: ==2587== Releasing lock... [2025-03-09 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:57:05 [end_date_ymd] => 2025-03-09 01:57:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:57:05' and `end` < '2025-03-09 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-09 01:57:17] Production.INFO: count ==621 [2025-03-09 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 22:57:05 - End Time 2025-03-09 01:57:05 [2025-03-09 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639270', 'tblTempUsageDetail_20' ) start [2025-03-09 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639270', 'tblTempUsageDetail_20' ) end [2025-03-09 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639270', 'tblTempVendorCDR_20' ) start [2025-03-09 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639270', 'tblTempVendorCDR_20' ) end [2025-03-09 01:57:17] Production.INFO: ProcessCDR(1,14639270,1,1,2) [2025-03-09 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639270', 'tblTempUsageDetail_20' ) start [2025-03-09 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639270', 'tblTempUsageDetail_20' ) end [2025-03-09 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:57:21] Production.INFO: ==2679== Releasing lock... [2025-03-09 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:58:06 [end_date_ymd] => 2025-03-09 01:58:06 [RateCDR] => 1 ) [2025-03-09 01: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-08 22:58:06' and `end` < '2025-03-09 01: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-09 01:58:18] Production.INFO: count ==619 [2025-03-09 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:58:06 - End Time 2025-03-09 01:58:06 [2025-03-09 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639275', 'tblTempUsageDetail_20' ) start [2025-03-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639275', 'tblTempUsageDetail_20' ) end [2025-03-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639275', 'tblTempVendorCDR_20' ) start [2025-03-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639275', 'tblTempVendorCDR_20' ) end [2025-03-09 01:58:18] Production.INFO: ProcessCDR(1,14639275,1,1,2) [2025-03-09 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639275', 'tblTempUsageDetail_20' ) start [2025-03-09 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639275', 'tblTempUsageDetail_20' ) end [2025-03-09 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:58:22] Production.INFO: ==2764== Releasing lock... [2025-03-09 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 22:59:05 [end_date_ymd] => 2025-03-09 01:59:05 [RateCDR] => 1 ) [2025-03-09 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-08 22:59:05' and `end` < '2025-03-09 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-09 01:59:17] Production.INFO: count ==614 [2025-03-09 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 22:59:05 - End Time 2025-03-09 01:59:05 [2025-03-09 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639280', 'tblTempUsageDetail_20' ) start [2025-03-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639280', 'tblTempUsageDetail_20' ) end [2025-03-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639280', 'tblTempVendorCDR_20' ) start [2025-03-09 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639280', 'tblTempVendorCDR_20' ) end [2025-03-09 01:59:18] Production.INFO: ProcessCDR(1,14639280,1,1,2) [2025-03-09 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639280', 'tblTempUsageDetail_20' ) start [2025-03-09 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639280', 'tblTempUsageDetail_20' ) end [2025-03-09 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 01:59:21] Production.INFO: ==2879== Releasing lock... [2025-03-09 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 01:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:00:06 [end_date_ymd] => 2025-03-09 04:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:00:06' and `end` < '2025-03-09 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-09 03:00:18] Production.INFO: count ==388 [2025-03-09 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:00:06 - End Time 2025-03-09 04:00:06 [2025-03-09 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639286', 'tblTempUsageDetail_20' ) start [2025-03-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639286', 'tblTempUsageDetail_20' ) end [2025-03-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639286', 'tblTempVendorCDR_20' ) start [2025-03-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639286', 'tblTempVendorCDR_20' ) end [2025-03-09 03:00:19] Production.INFO: ProcessCDR(1,14639286,1,1,2) [2025-03-09 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639286', 'tblTempUsageDetail_20' ) start [2025-03-09 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639286', 'tblTempUsageDetail_20' ) end [2025-03-09 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:00:23] Production.INFO: ==2968== Releasing lock... [2025-03-09 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:00:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:01:04 [end_date_ymd] => 2025-03-09 04:01:04 [RateCDR] => 1 ) [2025-03-09 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:01:04' and `end` < '2025-03-09 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:01:16] Production.INFO: count ==390 [2025-03-09 03:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:01:04 - End Time 2025-03-09 04:01:04 [2025-03-09 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639291', 'tblTempUsageDetail_20' ) start [2025-03-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639291', 'tblTempUsageDetail_20' ) end [2025-03-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639291', 'tblTempVendorCDR_20' ) start [2025-03-09 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639291', 'tblTempVendorCDR_20' ) end [2025-03-09 03:01:17] Production.INFO: ProcessCDR(1,14639291,1,1,2) [2025-03-09 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639291', 'tblTempUsageDetail_20' ) start [2025-03-09 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639291', 'tblTempUsageDetail_20' ) end [2025-03-09 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:01:20] Production.INFO: ==3142== Releasing lock... [2025-03-09 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:01:20] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:02:05 [end_date_ymd] => 2025-03-09 04:02:05 [RateCDR] => 1 ) [2025-03-09 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:02:05' and `end` < '2025-03-09 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:02:17] Production.INFO: count ==390 [2025-03-09 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:02:05 - End Time 2025-03-09 04:02:05 [2025-03-09 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639296', 'tblTempUsageDetail_20' ) start [2025-03-09 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639296', 'tblTempUsageDetail_20' ) end [2025-03-09 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639296', 'tblTempVendorCDR_20' ) start [2025-03-09 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639296', 'tblTempVendorCDR_20' ) end [2025-03-09 03:02:17] Production.INFO: ProcessCDR(1,14639296,1,1,2) [2025-03-09 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639296', 'tblTempUsageDetail_20' ) start [2025-03-09 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639296', 'tblTempUsageDetail_20' ) end [2025-03-09 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:02:21] Production.INFO: ==3212== Releasing lock... [2025-03-09 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:03:05 [end_date_ymd] => 2025-03-09 04:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:03:05' and `end` < '2025-03-09 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:03:17] Production.INFO: count ==391 [2025-03-09 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:03:05 - End Time 2025-03-09 04:03:05 [2025-03-09 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639301', 'tblTempUsageDetail_20' ) start [2025-03-09 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639301', 'tblTempUsageDetail_20' ) end [2025-03-09 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639301', 'tblTempVendorCDR_20' ) start [2025-03-09 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639301', 'tblTempVendorCDR_20' ) end [2025-03-09 03:03:17] Production.INFO: ProcessCDR(1,14639301,1,1,2) [2025-03-09 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639301', 'tblTempUsageDetail_20' ) start [2025-03-09 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639301', 'tblTempUsageDetail_20' ) end [2025-03-09 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:03:22] Production.INFO: ==3286== Releasing lock... [2025-03-09 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:04:06 [end_date_ymd] => 2025-03-09 04:04:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:04:06' and `end` < '2025-03-09 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-09 03:04:18] Production.INFO: count ==392 [2025-03-09 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:04:06 - End Time 2025-03-09 04:04:06 [2025-03-09 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639306', 'tblTempUsageDetail_20' ) start [2025-03-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639306', 'tblTempUsageDetail_20' ) end [2025-03-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639306', 'tblTempVendorCDR_20' ) start [2025-03-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639306', 'tblTempVendorCDR_20' ) end [2025-03-09 03:04:18] Production.INFO: ProcessCDR(1,14639306,1,1,2) [2025-03-09 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639306', 'tblTempUsageDetail_20' ) start [2025-03-09 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639306', 'tblTempUsageDetail_20' ) end [2025-03-09 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:04:23] Production.INFO: ==3358== Releasing lock... [2025-03-09 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:04:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:05:05 [end_date_ymd] => 2025-03-09 04:05:05 [RateCDR] => 1 ) [2025-03-09 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:05:05' and `end` < '2025-03-09 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-09 03:05:17] Production.INFO: count ==392 [2025-03-09 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:05:05 - End Time 2025-03-09 04:05:05 [2025-03-09 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639311', 'tblTempUsageDetail_20' ) start [2025-03-09 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639311', 'tblTempUsageDetail_20' ) end [2025-03-09 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639311', 'tblTempVendorCDR_20' ) start [2025-03-09 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639311', 'tblTempVendorCDR_20' ) end [2025-03-09 03:05:17] Production.INFO: ProcessCDR(1,14639311,1,1,2) [2025-03-09 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639311', 'tblTempUsageDetail_20' ) start [2025-03-09 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639311', 'tblTempUsageDetail_20' ) end [2025-03-09 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:05:20] Production.INFO: ==3426== Releasing lock... [2025-03-09 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:05:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:06:06 [end_date_ymd] => 2025-03-09 04:06:06 [RateCDR] => 1 ) [2025-03-09 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:06:06' and `end` < '2025-03-09 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-09 03:06:18] Production.INFO: count ==392 [2025-03-09 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:06:06 - End Time 2025-03-09 04:06:06 [2025-03-09 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639316', 'tblTempUsageDetail_20' ) start [2025-03-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639316', 'tblTempUsageDetail_20' ) end [2025-03-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639316', 'tblTempVendorCDR_20' ) start [2025-03-09 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639316', 'tblTempVendorCDR_20' ) end [2025-03-09 03:06:18] Production.INFO: ProcessCDR(1,14639316,1,1,2) [2025-03-09 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639316', 'tblTempUsageDetail_20' ) start [2025-03-09 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639316', 'tblTempUsageDetail_20' ) end [2025-03-09 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:06:21] Production.INFO: ==3501== Releasing lock... [2025-03-09 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:07:05 [end_date_ymd] => 2025-03-09 04:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:07:05' and `end` < '2025-03-09 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-09 03:07:17] Production.INFO: count ==392 [2025-03-09 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:07:05 - End Time 2025-03-09 04:07:05 [2025-03-09 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639321', 'tblTempUsageDetail_20' ) start [2025-03-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639321', 'tblTempUsageDetail_20' ) end [2025-03-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639321', 'tblTempVendorCDR_20' ) start [2025-03-09 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639321', 'tblTempVendorCDR_20' ) end [2025-03-09 03:07:17] Production.INFO: ProcessCDR(1,14639321,1,1,2) [2025-03-09 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639321', 'tblTempUsageDetail_20' ) start [2025-03-09 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639321', 'tblTempUsageDetail_20' ) end [2025-03-09 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:07:20] Production.INFO: ==3568== Releasing lock... [2025-03-09 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:07:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:08:06 [end_date_ymd] => 2025-03-09 04:08:06 [RateCDR] => 1 ) [2025-03-09 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:08:06' and `end` < '2025-03-09 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:08:17] Production.INFO: count ==396 [2025-03-09 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:08:06 - End Time 2025-03-09 04:08:06 [2025-03-09 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639326', 'tblTempUsageDetail_20' ) start [2025-03-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639326', 'tblTempUsageDetail_20' ) end [2025-03-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639326', 'tblTempVendorCDR_20' ) start [2025-03-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639326', 'tblTempVendorCDR_20' ) end [2025-03-09 03:08:18] Production.INFO: ProcessCDR(1,14639326,1,1,2) [2025-03-09 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639326', 'tblTempUsageDetail_20' ) start [2025-03-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639326', 'tblTempUsageDetail_20' ) end [2025-03-09 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:08:21] Production.INFO: ==3638== Releasing lock... [2025-03-09 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:09:05 [end_date_ymd] => 2025-03-09 04:09:05 [RateCDR] => 1 ) [2025-03-09 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:09:05' and `end` < '2025-03-09 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-09 03:09:17] Production.INFO: count ==392 [2025-03-09 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:09:05 - End Time 2025-03-09 04:09:05 [2025-03-09 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639331', 'tblTempUsageDetail_20' ) start [2025-03-09 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639331', 'tblTempUsageDetail_20' ) end [2025-03-09 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639331', 'tblTempVendorCDR_20' ) start [2025-03-09 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639331', 'tblTempVendorCDR_20' ) end [2025-03-09 03:09:17] Production.INFO: ProcessCDR(1,14639331,1,1,2) [2025-03-09 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639331', 'tblTempUsageDetail_20' ) start [2025-03-09 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639331', 'tblTempUsageDetail_20' ) end [2025-03-09 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:09:20] Production.INFO: ==3708== Releasing lock... [2025-03-09 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:09:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:10:05 [end_date_ymd] => 2025-03-09 04:10:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:10:05' and `end` < '2025-03-09 04: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-09 03:10:18] Production.INFO: count ==386 [2025-03-09 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:10:05 - End Time 2025-03-09 04:10:05 [2025-03-09 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639337', 'tblTempUsageDetail_20' ) start [2025-03-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639337', 'tblTempUsageDetail_20' ) end [2025-03-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639337', 'tblTempVendorCDR_20' ) start [2025-03-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639337', 'tblTempVendorCDR_20' ) end [2025-03-09 03:10:18] Production.INFO: ProcessCDR(1,14639337,1,1,2) [2025-03-09 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639337', 'tblTempUsageDetail_20' ) start [2025-03-09 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639337', 'tblTempUsageDetail_20' ) end [2025-03-09 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:10:21] Production.INFO: ==3779== Releasing lock... [2025-03-09 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:10:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:11:05 [end_date_ymd] => 2025-03-09 04:11:05 [RateCDR] => 1 ) [2025-03-09 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:11:05' and `end` < '2025-03-09 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-09 03:11:17] Production.INFO: count ==384 [2025-03-09 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:11:05 - End Time 2025-03-09 04:11:05 [2025-03-09 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639342', 'tblTempUsageDetail_20' ) start [2025-03-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639342', 'tblTempUsageDetail_20' ) end [2025-03-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639342', 'tblTempVendorCDR_20' ) start [2025-03-09 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639342', 'tblTempVendorCDR_20' ) end [2025-03-09 03:11:17] Production.INFO: ProcessCDR(1,14639342,1,1,2) [2025-03-09 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639342', 'tblTempUsageDetail_20' ) start [2025-03-09 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639342', 'tblTempUsageDetail_20' ) end [2025-03-09 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:11:20] Production.INFO: ==3850== Releasing lock... [2025-03-09 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:11:20] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:12:05 [end_date_ymd] => 2025-03-09 04:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:12:05' and `end` < '2025-03-09 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-09 03:12:17] Production.INFO: count ==384 [2025-03-09 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:12:05 - End Time 2025-03-09 04:12:05 [2025-03-09 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639347', 'tblTempUsageDetail_20' ) start [2025-03-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639347', 'tblTempUsageDetail_20' ) end [2025-03-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639347', 'tblTempVendorCDR_20' ) start [2025-03-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639347', 'tblTempVendorCDR_20' ) end [2025-03-09 03:12:17] Production.INFO: ProcessCDR(1,14639347,1,1,2) [2025-03-09 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639347', 'tblTempUsageDetail_20' ) start [2025-03-09 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639347', 'tblTempUsageDetail_20' ) end [2025-03-09 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:12:22] Production.INFO: ==3921== Releasing lock... [2025-03-09 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:12:22] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:13:05 [end_date_ymd] => 2025-03-09 04:13:05 [RateCDR] => 1 ) [2025-03-09 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:13:05' and `end` < '2025-03-09 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-09 03:13:17] Production.INFO: count ==385 [2025-03-09 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:13:05 - End Time 2025-03-09 04:13:05 [2025-03-09 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639352', 'tblTempUsageDetail_20' ) start [2025-03-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639352', 'tblTempUsageDetail_20' ) end [2025-03-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639352', 'tblTempVendorCDR_20' ) start [2025-03-09 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639352', 'tblTempVendorCDR_20' ) end [2025-03-09 03:13:17] Production.INFO: ProcessCDR(1,14639352,1,1,2) [2025-03-09 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639352', 'tblTempUsageDetail_20' ) start [2025-03-09 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639352', 'tblTempUsageDetail_20' ) end [2025-03-09 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:13:22] Production.INFO: ==3995== Releasing lock... [2025-03-09 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:13:22] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:14:05 [end_date_ymd] => 2025-03-09 04:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:14:05' and `end` < '2025-03-09 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-09 03:14:17] Production.INFO: count ==384 [2025-03-09 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:14:05 - End Time 2025-03-09 04:14:05 [2025-03-09 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639357', 'tblTempUsageDetail_20' ) start [2025-03-09 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639357', 'tblTempUsageDetail_20' ) end [2025-03-09 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639357', 'tblTempVendorCDR_20' ) start [2025-03-09 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639357', 'tblTempVendorCDR_20' ) end [2025-03-09 03:14:17] Production.INFO: ProcessCDR(1,14639357,1,1,2) [2025-03-09 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639357', 'tblTempUsageDetail_20' ) start [2025-03-09 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639357', 'tblTempUsageDetail_20' ) end [2025-03-09 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:14:21] Production.INFO: ==4107== Releasing lock... [2025-03-09 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:15:05 [end_date_ymd] => 2025-03-09 04:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:15:05' and `end` < '2025-03-09 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-09 03:15:17] Production.INFO: count ==381 [2025-03-09 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:15:05 - End Time 2025-03-09 04:15:05 [2025-03-09 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639362', 'tblTempUsageDetail_20' ) start [2025-03-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639362', 'tblTempUsageDetail_20' ) end [2025-03-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639362', 'tblTempVendorCDR_20' ) start [2025-03-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639362', 'tblTempVendorCDR_20' ) end [2025-03-09 03:15:18] Production.INFO: ProcessCDR(1,14639362,1,1,2) [2025-03-09 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639362', 'tblTempUsageDetail_20' ) start [2025-03-09 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639362', 'tblTempUsageDetail_20' ) end [2025-03-09 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:15:21] Production.INFO: ==4176== Releasing lock... [2025-03-09 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:16:05 [end_date_ymd] => 2025-03-09 04:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:16:05' and `end` < '2025-03-09 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:16:17] Production.INFO: count ==381 [2025-03-09 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:16:05 - End Time 2025-03-09 04:16:05 [2025-03-09 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639367', 'tblTempUsageDetail_20' ) start [2025-03-09 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639367', 'tblTempUsageDetail_20' ) end [2025-03-09 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639367', 'tblTempVendorCDR_20' ) start [2025-03-09 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639367', 'tblTempVendorCDR_20' ) end [2025-03-09 03:16:17] Production.INFO: ProcessCDR(1,14639367,1,1,2) [2025-03-09 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639367', 'tblTempUsageDetail_20' ) start [2025-03-09 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639367', 'tblTempUsageDetail_20' ) end [2025-03-09 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:16:20] Production.INFO: ==4250== Releasing lock... [2025-03-09 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:17:05 [end_date_ymd] => 2025-03-09 04:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:17:05' and `end` < '2025-03-09 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-09 03:17:17] Production.INFO: count ==380 [2025-03-09 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:17:05 - End Time 2025-03-09 04:17:05 [2025-03-09 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639372', 'tblTempUsageDetail_20' ) start [2025-03-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639372', 'tblTempUsageDetail_20' ) end [2025-03-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639372', 'tblTempVendorCDR_20' ) start [2025-03-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639372', 'tblTempVendorCDR_20' ) end [2025-03-09 03:17:17] Production.INFO: ProcessCDR(1,14639372,1,1,2) [2025-03-09 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639372', 'tblTempUsageDetail_20' ) start [2025-03-09 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639372', 'tblTempUsageDetail_20' ) end [2025-03-09 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:17:20] Production.INFO: ==4337== Releasing lock... [2025-03-09 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:17:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:18:04 [end_date_ymd] => 2025-03-09 04:18:04 [RateCDR] => 1 ) [2025-03-09 03: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-09 00:18:04' and `end` < '2025-03-09 04:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:18:16] Production.INFO: count ==380 [2025-03-09 03:18:16] Production.ERROR: pbx CDR StartTime 2025-03-09 00:18:04 - End Time 2025-03-09 04:18:04 [2025-03-09 03:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639377', 'tblTempUsageDetail_20' ) start [2025-03-09 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639377', 'tblTempUsageDetail_20' ) end [2025-03-09 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639377', 'tblTempVendorCDR_20' ) start [2025-03-09 03:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639377', 'tblTempVendorCDR_20' ) end [2025-03-09 03:18:16] Production.INFO: ProcessCDR(1,14639377,1,1,2) [2025-03-09 03:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639377', 'tblTempUsageDetail_20' ) start [2025-03-09 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639377', 'tblTempUsageDetail_20' ) end [2025-03-09 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:18:20] Production.INFO: ==4414== Releasing lock... [2025-03-09 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:18:20] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:19:05 [end_date_ymd] => 2025-03-09 04:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:19:05' and `end` < '2025-03-09 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-09 03:19:17] Production.INFO: count ==380 [2025-03-09 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:19:05 - End Time 2025-03-09 04:19:05 [2025-03-09 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639382', 'tblTempUsageDetail_20' ) start [2025-03-09 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639382', 'tblTempUsageDetail_20' ) end [2025-03-09 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639382', 'tblTempVendorCDR_20' ) start [2025-03-09 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639382', 'tblTempVendorCDR_20' ) end [2025-03-09 03:19:17] Production.INFO: ProcessCDR(1,14639382,1,1,2) [2025-03-09 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639382', 'tblTempUsageDetail_20' ) start [2025-03-09 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639382', 'tblTempUsageDetail_20' ) end [2025-03-09 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:19:20] Production.INFO: ==4491== Releasing lock... [2025-03-09 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:19:20] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:20:06 [end_date_ymd] => 2025-03-09 04:20:06 [RateCDR] => 1 ) [2025-03-09 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:20:06' and `end` < '2025-03-09 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:20:18] Production.INFO: count ==377 [2025-03-09 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:20:06 - End Time 2025-03-09 04:20:06 [2025-03-09 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639388', 'tblTempUsageDetail_20' ) start [2025-03-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639388', 'tblTempUsageDetail_20' ) end [2025-03-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639388', 'tblTempVendorCDR_20' ) start [2025-03-09 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639388', 'tblTempVendorCDR_20' ) end [2025-03-09 03:20:18] Production.INFO: ProcessCDR(1,14639388,1,1,2) [2025-03-09 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639388', 'tblTempUsageDetail_20' ) start [2025-03-09 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639388', 'tblTempUsageDetail_20' ) end [2025-03-09 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:20:22] Production.INFO: ==4582== Releasing lock... [2025-03-09 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:21:05 [end_date_ymd] => 2025-03-09 04:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:21:05' and `end` < '2025-03-09 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-09 03:21:17] Production.INFO: count ==368 [2025-03-09 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:21:05 - End Time 2025-03-09 04:21:05 [2025-03-09 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639393', 'tblTempUsageDetail_20' ) start [2025-03-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639393', 'tblTempUsageDetail_20' ) end [2025-03-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639393', 'tblTempVendorCDR_20' ) start [2025-03-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639393', 'tblTempVendorCDR_20' ) end [2025-03-09 03:21:17] Production.INFO: ProcessCDR(1,14639393,1,1,2) [2025-03-09 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639393', 'tblTempUsageDetail_20' ) start [2025-03-09 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639393', 'tblTempUsageDetail_20' ) end [2025-03-09 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:21:20] Production.INFO: ==4657== Releasing lock... [2025-03-09 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:21:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:22:05 [end_date_ymd] => 2025-03-09 04:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:22:05' and `end` < '2025-03-09 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:22:17] Production.INFO: count ==364 [2025-03-09 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:22:05 - End Time 2025-03-09 04:22:05 [2025-03-09 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639398', 'tblTempUsageDetail_20' ) start [2025-03-09 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639398', 'tblTempUsageDetail_20' ) end [2025-03-09 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639398', 'tblTempVendorCDR_20' ) start [2025-03-09 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639398', 'tblTempVendorCDR_20' ) end [2025-03-09 03:22:17] Production.INFO: ProcessCDR(1,14639398,1,1,2) [2025-03-09 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639398', 'tblTempUsageDetail_20' ) start [2025-03-09 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639398', 'tblTempUsageDetail_20' ) end [2025-03-09 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:22:21] Production.INFO: ==4735== Releasing lock... [2025-03-09 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:23:05 [end_date_ymd] => 2025-03-09 04:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:23:05' and `end` < '2025-03-09 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-09 03:23:17] Production.INFO: count ==364 [2025-03-09 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:23:05 - End Time 2025-03-09 04:23:05 [2025-03-09 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639403', 'tblTempUsageDetail_20' ) start [2025-03-09 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639403', 'tblTempUsageDetail_20' ) end [2025-03-09 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639403', 'tblTempVendorCDR_20' ) start [2025-03-09 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639403', 'tblTempVendorCDR_20' ) end [2025-03-09 03:23:17] Production.INFO: ProcessCDR(1,14639403,1,1,2) [2025-03-09 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639403', 'tblTempUsageDetail_20' ) start [2025-03-09 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639403', 'tblTempUsageDetail_20' ) end [2025-03-09 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:23:20] Production.INFO: ==4815== Releasing lock... [2025-03-09 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:23:20] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:24:05 [end_date_ymd] => 2025-03-09 04:24:05 [RateCDR] => 1 ) [2025-03-09 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:24:05' and `end` < '2025-03-09 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:24:17] Production.INFO: count ==360 [2025-03-09 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:24:05 - End Time 2025-03-09 04:24:05 [2025-03-09 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639408', 'tblTempUsageDetail_20' ) start [2025-03-09 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639408', 'tblTempUsageDetail_20' ) end [2025-03-09 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639408', 'tblTempVendorCDR_20' ) start [2025-03-09 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639408', 'tblTempVendorCDR_20' ) end [2025-03-09 03:24:17] Production.INFO: ProcessCDR(1,14639408,1,1,2) [2025-03-09 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639408', 'tblTempUsageDetail_20' ) start [2025-03-09 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639408', 'tblTempUsageDetail_20' ) end [2025-03-09 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:24:21] Production.INFO: ==4889== Releasing lock... [2025-03-09 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:24:21] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:25:05 [end_date_ymd] => 2025-03-09 04:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:25:05' and `end` < '2025-03-09 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-09 03:25:17] Production.INFO: count ==359 [2025-03-09 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:25:05 - End Time 2025-03-09 04:25:05 [2025-03-09 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639413', 'tblTempUsageDetail_20' ) start [2025-03-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639413', 'tblTempUsageDetail_20' ) end [2025-03-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639413', 'tblTempVendorCDR_20' ) start [2025-03-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639413', 'tblTempVendorCDR_20' ) end [2025-03-09 03:25:17] Production.INFO: ProcessCDR(1,14639413,1,1,2) [2025-03-09 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639413', 'tblTempUsageDetail_20' ) start [2025-03-09 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639413', 'tblTempUsageDetail_20' ) end [2025-03-09 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:25:20] Production.INFO: ==4964== Releasing lock... [2025-03-09 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:25:20] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:26:05 [end_date_ymd] => 2025-03-09 04:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:26:05' and `end` < '2025-03-09 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:26:17] Production.INFO: count ==355 [2025-03-09 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:26:05 - End Time 2025-03-09 04:26:05 [2025-03-09 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639418', 'tblTempUsageDetail_20' ) start [2025-03-09 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639418', 'tblTempUsageDetail_20' ) end [2025-03-09 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639418', 'tblTempVendorCDR_20' ) start [2025-03-09 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639418', 'tblTempVendorCDR_20' ) end [2025-03-09 03:26:17] Production.INFO: ProcessCDR(1,14639418,1,1,2) [2025-03-09 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639418', 'tblTempUsageDetail_20' ) start [2025-03-09 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639418', 'tblTempUsageDetail_20' ) end [2025-03-09 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:26:20] Production.INFO: ==5042== Releasing lock... [2025-03-09 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:26:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:27:05 [end_date_ymd] => 2025-03-09 04:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:27:05' and `end` < '2025-03-09 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-09 03:27:17] Production.INFO: count ==355 [2025-03-09 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:27:05 - End Time 2025-03-09 04:27:05 [2025-03-09 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639423', 'tblTempUsageDetail_20' ) start [2025-03-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639423', 'tblTempUsageDetail_20' ) end [2025-03-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639423', 'tblTempVendorCDR_20' ) start [2025-03-09 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639423', 'tblTempVendorCDR_20' ) end [2025-03-09 03:27:17] Production.INFO: ProcessCDR(1,14639423,1,1,2) [2025-03-09 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639423', 'tblTempUsageDetail_20' ) start [2025-03-09 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639423', 'tblTempUsageDetail_20' ) end [2025-03-09 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:27:20] Production.INFO: ==5116== Releasing lock... [2025-03-09 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:27:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:28:05 [end_date_ymd] => 2025-03-09 04:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:28:05' and `end` < '2025-03-09 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:28:17] Production.INFO: count ==355 [2025-03-09 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:28:05 - End Time 2025-03-09 04:28:05 [2025-03-09 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639428', 'tblTempUsageDetail_20' ) start [2025-03-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639428', 'tblTempUsageDetail_20' ) end [2025-03-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639428', 'tblTempVendorCDR_20' ) start [2025-03-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639428', 'tblTempVendorCDR_20' ) end [2025-03-09 03:28:17] Production.INFO: ProcessCDR(1,14639428,1,1,2) [2025-03-09 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639428', 'tblTempUsageDetail_20' ) start [2025-03-09 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639428', 'tblTempUsageDetail_20' ) end [2025-03-09 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:28:21] Production.INFO: ==5195== Releasing lock... [2025-03-09 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:29:04 [end_date_ymd] => 2025-03-09 04:29:04 [RateCDR] => 1 ) [2025-03-09 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:29:04' and `end` < '2025-03-09 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:29:16] Production.INFO: count ==353 [2025-03-09 03:29:16] Production.ERROR: pbx CDR StartTime 2025-03-09 00:29:04 - End Time 2025-03-09 04:29:04 [2025-03-09 03:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639433', 'tblTempUsageDetail_20' ) start [2025-03-09 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639433', 'tblTempUsageDetail_20' ) end [2025-03-09 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639433', 'tblTempVendorCDR_20' ) start [2025-03-09 03:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639433', 'tblTempVendorCDR_20' ) end [2025-03-09 03:29:16] Production.INFO: ProcessCDR(1,14639433,1,1,2) [2025-03-09 03:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639433', 'tblTempUsageDetail_20' ) start [2025-03-09 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639433', 'tblTempUsageDetail_20' ) end [2025-03-09 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:29:20] Production.INFO: ==5272== Releasing lock... [2025-03-09 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:30:06 [end_date_ymd] => 2025-03-09 04:30:06 [RateCDR] => 1 ) [2025-03-09 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:30:06' and `end` < '2025-03-09 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-09 03:30:18] Production.INFO: count ==344 [2025-03-09 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:30:06 - End Time 2025-03-09 04:30:06 [2025-03-09 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639439', 'tblTempUsageDetail_20' ) start [2025-03-09 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639439', 'tblTempUsageDetail_20' ) end [2025-03-09 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639439', 'tblTempVendorCDR_20' ) start [2025-03-09 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639439', 'tblTempVendorCDR_20' ) end [2025-03-09 03:30:18] Production.INFO: ProcessCDR(1,14639439,1,1,2) [2025-03-09 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639439', 'tblTempUsageDetail_20' ) start [2025-03-09 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639439', 'tblTempUsageDetail_20' ) end [2025-03-09 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:30:22] Production.INFO: ==5346== Releasing lock... [2025-03-09 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:30:22] Production.INFO: 31 MB #Memory Used# [2025-03-09 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:31:06 [end_date_ymd] => 2025-03-09 04:31:06 [RateCDR] => 1 ) [2025-03-09 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:31:06' and `end` < '2025-03-09 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:31:18] Production.INFO: count ==317 [2025-03-09 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:31:06 - End Time 2025-03-09 04:31:06 [2025-03-09 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639444', 'tblTempUsageDetail_20' ) start [2025-03-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639444', 'tblTempUsageDetail_20' ) end [2025-03-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639444', 'tblTempVendorCDR_20' ) start [2025-03-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639444', 'tblTempVendorCDR_20' ) end [2025-03-09 03:31:18] Production.INFO: ProcessCDR(1,14639444,1,1,2) [2025-03-09 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639444', 'tblTempUsageDetail_20' ) start [2025-03-09 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639444', 'tblTempUsageDetail_20' ) end [2025-03-09 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:31:22] Production.INFO: ==5470== Releasing lock... [2025-03-09 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:32:06 [end_date_ymd] => 2025-03-09 04:32:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:32:06' and `end` < '2025-03-09 04:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:32:18] Production.INFO: count ==317 [2025-03-09 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:32:06 - End Time 2025-03-09 04:32:06 [2025-03-09 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639449', 'tblTempUsageDetail_20' ) start [2025-03-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639449', 'tblTempUsageDetail_20' ) end [2025-03-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639449', 'tblTempVendorCDR_20' ) start [2025-03-09 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639449', 'tblTempVendorCDR_20' ) end [2025-03-09 03:32:18] Production.INFO: ProcessCDR(1,14639449,1,1,2) [2025-03-09 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639449', 'tblTempUsageDetail_20' ) start [2025-03-09 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639449', 'tblTempUsageDetail_20' ) end [2025-03-09 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:32:22] Production.INFO: ==5546== Releasing lock... [2025-03-09 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:33:05 [end_date_ymd] => 2025-03-09 04:33:05 [RateCDR] => 1 ) [2025-03-09 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:33:05' and `end` < '2025-03-09 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-09 03:33:17] Production.INFO: count ==317 [2025-03-09 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:33:05 - End Time 2025-03-09 04:33:05 [2025-03-09 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639454', 'tblTempUsageDetail_20' ) start [2025-03-09 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639454', 'tblTempUsageDetail_20' ) end [2025-03-09 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639454', 'tblTempVendorCDR_20' ) start [2025-03-09 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639454', 'tblTempVendorCDR_20' ) end [2025-03-09 03:33:17] Production.INFO: ProcessCDR(1,14639454,1,1,2) [2025-03-09 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639454', 'tblTempUsageDetail_20' ) start [2025-03-09 03:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639454', 'tblTempUsageDetail_20' ) end [2025-03-09 03:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:33:20] Production.INFO: ==5625== Releasing lock... [2025-03-09 03:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:34:06 [end_date_ymd] => 2025-03-09 04:34:06 [RateCDR] => 1 ) [2025-03-09 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:34:06' and `end` < '2025-03-09 04:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:34:18] Production.INFO: count ==314 [2025-03-09 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:34:06 - End Time 2025-03-09 04:34:06 [2025-03-09 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639459', 'tblTempUsageDetail_20' ) start [2025-03-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639459', 'tblTempUsageDetail_20' ) end [2025-03-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639459', 'tblTempVendorCDR_20' ) start [2025-03-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639459', 'tblTempVendorCDR_20' ) end [2025-03-09 03:34:18] Production.INFO: ProcessCDR(1,14639459,1,1,2) [2025-03-09 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639459', 'tblTempUsageDetail_20' ) start [2025-03-09 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639459', 'tblTempUsageDetail_20' ) end [2025-03-09 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:34:22] Production.INFO: ==5701== Releasing lock... [2025-03-09 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:35:06 [end_date_ymd] => 2025-03-09 04:35:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:35:06' and `end` < '2025-03-09 04: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-09 03:35:18] Production.INFO: count ==314 [2025-03-09 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:35:06 - End Time 2025-03-09 04:35:06 [2025-03-09 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639464', 'tblTempUsageDetail_20' ) start [2025-03-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639464', 'tblTempUsageDetail_20' ) end [2025-03-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639464', 'tblTempVendorCDR_20' ) start [2025-03-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639464', 'tblTempVendorCDR_20' ) end [2025-03-09 03:35:18] Production.INFO: ProcessCDR(1,14639464,1,1,2) [2025-03-09 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639464', 'tblTempUsageDetail_20' ) start [2025-03-09 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639464', 'tblTempUsageDetail_20' ) end [2025-03-09 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:35:22] Production.INFO: ==5776== Releasing lock... [2025-03-09 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:36:06 [end_date_ymd] => 2025-03-09 04:36:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:36:06' and `end` < '2025-03-09 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:36:18] Production.INFO: count ==313 [2025-03-09 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:36:06 - End Time 2025-03-09 04:36:06 [2025-03-09 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639469', 'tblTempUsageDetail_20' ) start [2025-03-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639469', 'tblTempUsageDetail_20' ) end [2025-03-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639469', 'tblTempVendorCDR_20' ) start [2025-03-09 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639469', 'tblTempVendorCDR_20' ) end [2025-03-09 03:36:18] Production.INFO: ProcessCDR(1,14639469,1,1,2) [2025-03-09 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639469', 'tblTempUsageDetail_20' ) start [2025-03-09 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639469', 'tblTempUsageDetail_20' ) end [2025-03-09 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:36:23] Production.INFO: ==5852== Releasing lock... [2025-03-09 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:36:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:37:05 [end_date_ymd] => 2025-03-09 04:37:05 [RateCDR] => 1 ) [2025-03-09 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:37:05' and `end` < '2025-03-09 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-09 03:37:17] Production.INFO: count ==310 [2025-03-09 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:37:05 - End Time 2025-03-09 04:37:05 [2025-03-09 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639474', 'tblTempUsageDetail_20' ) start [2025-03-09 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639474', 'tblTempUsageDetail_20' ) end [2025-03-09 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639474', 'tblTempVendorCDR_20' ) start [2025-03-09 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639474', 'tblTempVendorCDR_20' ) end [2025-03-09 03:37:17] Production.INFO: ProcessCDR(1,14639474,1,1,2) [2025-03-09 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639474', 'tblTempUsageDetail_20' ) start [2025-03-09 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639474', 'tblTempUsageDetail_20' ) end [2025-03-09 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:37:22] Production.INFO: ==5936== Releasing lock... [2025-03-09 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:38:06 [end_date_ymd] => 2025-03-09 04:38:06 [RateCDR] => 1 ) [2025-03-09 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:38:06' and `end` < '2025-03-09 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-09 03:38:18] Production.INFO: count ==311 [2025-03-09 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:38:06 - End Time 2025-03-09 04:38:06 [2025-03-09 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639479', 'tblTempUsageDetail_20' ) start [2025-03-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639479', 'tblTempUsageDetail_20' ) end [2025-03-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639479', 'tblTempVendorCDR_20' ) start [2025-03-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639479', 'tblTempVendorCDR_20' ) end [2025-03-09 03:38:18] Production.INFO: ProcessCDR(1,14639479,1,1,2) [2025-03-09 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639479', 'tblTempUsageDetail_20' ) start [2025-03-09 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639479', 'tblTempUsageDetail_20' ) end [2025-03-09 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:38:23] Production.INFO: ==6011== Releasing lock... [2025-03-09 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:39:05 [end_date_ymd] => 2025-03-09 04:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:39:05' and `end` < '2025-03-09 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-09 03:39:17] Production.INFO: count ==310 [2025-03-09 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:39:05 - End Time 2025-03-09 04:39:05 [2025-03-09 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639484', 'tblTempUsageDetail_20' ) start [2025-03-09 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639484', 'tblTempUsageDetail_20' ) end [2025-03-09 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639484', 'tblTempVendorCDR_20' ) start [2025-03-09 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639484', 'tblTempVendorCDR_20' ) end [2025-03-09 03:39:17] Production.INFO: ProcessCDR(1,14639484,1,1,2) [2025-03-09 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639484', 'tblTempUsageDetail_20' ) start [2025-03-09 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639484', 'tblTempUsageDetail_20' ) end [2025-03-09 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:39:22] Production.INFO: ==6089== Releasing lock... [2025-03-09 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:39:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:40:06 [end_date_ymd] => 2025-03-09 04:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:40:06' and `end` < '2025-03-09 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:40:18] Production.INFO: count ==298 [2025-03-09 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:40:06 - End Time 2025-03-09 04:40:06 [2025-03-09 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639490', 'tblTempUsageDetail_20' ) start [2025-03-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639490', 'tblTempUsageDetail_20' ) end [2025-03-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639490', 'tblTempVendorCDR_20' ) start [2025-03-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639490', 'tblTempVendorCDR_20' ) end [2025-03-09 03:40:18] Production.INFO: ProcessCDR(1,14639490,1,1,2) [2025-03-09 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639490', 'tblTempUsageDetail_20' ) start [2025-03-09 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639490', 'tblTempUsageDetail_20' ) end [2025-03-09 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:40:24] Production.INFO: ==6166== Releasing lock... [2025-03-09 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:40:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:41:05 [end_date_ymd] => 2025-03-09 04:41:05 [RateCDR] => 1 ) [2025-03-09 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:41:05' and `end` < '2025-03-09 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-09 03:41:17] Production.INFO: count ==273 [2025-03-09 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:41:05 - End Time 2025-03-09 04:41:05 [2025-03-09 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639495', 'tblTempUsageDetail_20' ) start [2025-03-09 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639495', 'tblTempUsageDetail_20' ) end [2025-03-09 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639495', 'tblTempVendorCDR_20' ) start [2025-03-09 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639495', 'tblTempVendorCDR_20' ) end [2025-03-09 03:41:17] Production.INFO: ProcessCDR(1,14639495,1,1,2) [2025-03-09 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639495', 'tblTempUsageDetail_20' ) start [2025-03-09 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639495', 'tblTempUsageDetail_20' ) end [2025-03-09 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:41:21] Production.INFO: ==6246== Releasing lock... [2025-03-09 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:42:06 [end_date_ymd] => 2025-03-09 04:42:06 [RateCDR] => 1 ) [2025-03-09 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:42:06' and `end` < '2025-03-09 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-09 03:42:18] Production.INFO: count ==262 [2025-03-09 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:42:06 - End Time 2025-03-09 04:42:06 [2025-03-09 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639500', 'tblTempUsageDetail_20' ) start [2025-03-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639500', 'tblTempUsageDetail_20' ) end [2025-03-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639500', 'tblTempVendorCDR_20' ) start [2025-03-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639500', 'tblTempVendorCDR_20' ) end [2025-03-09 03:42:18] Production.INFO: ProcessCDR(1,14639500,1,1,2) [2025-03-09 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639500', 'tblTempUsageDetail_20' ) start [2025-03-09 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639500', 'tblTempUsageDetail_20' ) end [2025-03-09 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:42:22] Production.INFO: ==6316== Releasing lock... [2025-03-09 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:43:05 [end_date_ymd] => 2025-03-09 04:43:05 [RateCDR] => 1 ) [2025-03-09 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:43:05' and `end` < '2025-03-09 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-09 03:43:17] Production.INFO: count ==258 [2025-03-09 03:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:43:05 - End Time 2025-03-09 04:43:05 [2025-03-09 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639505', 'tblTempUsageDetail_20' ) start [2025-03-09 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639505', 'tblTempUsageDetail_20' ) end [2025-03-09 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639505', 'tblTempVendorCDR_20' ) start [2025-03-09 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639505', 'tblTempVendorCDR_20' ) end [2025-03-09 03:43:17] Production.INFO: ProcessCDR(1,14639505,1,1,2) [2025-03-09 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639505', 'tblTempUsageDetail_20' ) start [2025-03-09 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639505', 'tblTempUsageDetail_20' ) end [2025-03-09 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:43:21] Production.INFO: ==6398== Releasing lock... [2025-03-09 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:44:06 [end_date_ymd] => 2025-03-09 04:44:06 [RateCDR] => 1 ) [2025-03-09 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:44:06' and `end` < '2025-03-09 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-09 03:44:18] Production.INFO: count ==252 [2025-03-09 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:44:06 - End Time 2025-03-09 04:44:06 [2025-03-09 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639510', 'tblTempUsageDetail_20' ) start [2025-03-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639510', 'tblTempUsageDetail_20' ) end [2025-03-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639510', 'tblTempVendorCDR_20' ) start [2025-03-09 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639510', 'tblTempVendorCDR_20' ) end [2025-03-09 03:44:18] Production.INFO: ProcessCDR(1,14639510,1,1,2) [2025-03-09 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639510', 'tblTempUsageDetail_20' ) start [2025-03-09 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639510', 'tblTempUsageDetail_20' ) end [2025-03-09 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:44:21] Production.INFO: ==6503== Releasing lock... [2025-03-09 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:45:05 [end_date_ymd] => 2025-03-09 04:45:05 [RateCDR] => 1 ) [2025-03-09 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:45:05' and `end` < '2025-03-09 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-09 03:45:17] Production.INFO: count ==251 [2025-03-09 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:45:05 - End Time 2025-03-09 04:45:05 [2025-03-09 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639515', 'tblTempUsageDetail_20' ) start [2025-03-09 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639515', 'tblTempUsageDetail_20' ) end [2025-03-09 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639515', 'tblTempVendorCDR_20' ) start [2025-03-09 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639515', 'tblTempVendorCDR_20' ) end [2025-03-09 03:45:17] Production.INFO: ProcessCDR(1,14639515,1,1,2) [2025-03-09 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639515', 'tblTempUsageDetail_20' ) start [2025-03-09 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639515', 'tblTempUsageDetail_20' ) end [2025-03-09 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:45:22] Production.INFO: ==6608== Releasing lock... [2025-03-09 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:46:05 [end_date_ymd] => 2025-03-09 04:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:46:05' and `end` < '2025-03-09 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:46:17] Production.INFO: count ==251 [2025-03-09 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:46:05 - End Time 2025-03-09 04:46:05 [2025-03-09 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639520', 'tblTempUsageDetail_20' ) start [2025-03-09 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639520', 'tblTempUsageDetail_20' ) end [2025-03-09 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639520', 'tblTempVendorCDR_20' ) start [2025-03-09 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639520', 'tblTempVendorCDR_20' ) end [2025-03-09 03:46:17] Production.INFO: ProcessCDR(1,14639520,1,1,2) [2025-03-09 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639520', 'tblTempUsageDetail_20' ) start [2025-03-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639520', 'tblTempUsageDetail_20' ) end [2025-03-09 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:46:21] Production.INFO: ==6681== Releasing lock... [2025-03-09 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:47:06 [end_date_ymd] => 2025-03-09 04:47:06 [RateCDR] => 1 ) [2025-03-09 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:47:06' and `end` < '2025-03-09 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:47:18] Production.INFO: count ==242 [2025-03-09 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:47:06 - End Time 2025-03-09 04:47:06 [2025-03-09 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639525', 'tblTempUsageDetail_20' ) start [2025-03-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639525', 'tblTempUsageDetail_20' ) end [2025-03-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639525', 'tblTempVendorCDR_20' ) start [2025-03-09 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639525', 'tblTempVendorCDR_20' ) end [2025-03-09 03:47:18] Production.INFO: ProcessCDR(1,14639525,1,1,2) [2025-03-09 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639525', 'tblTempUsageDetail_20' ) start [2025-03-09 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639525', 'tblTempUsageDetail_20' ) end [2025-03-09 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:47:22] Production.INFO: ==6801== Releasing lock... [2025-03-09 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:48:06 [end_date_ymd] => 2025-03-09 04:48:06 [RateCDR] => 1 ) [2025-03-09 03: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-09 00:48:06' and `end` < '2025-03-09 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-09 03:48:18] Production.INFO: count ==237 [2025-03-09 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:48:06 - End Time 2025-03-09 04:48:06 [2025-03-09 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639530', 'tblTempUsageDetail_20' ) start [2025-03-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639530', 'tblTempUsageDetail_20' ) end [2025-03-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639530', 'tblTempVendorCDR_20' ) start [2025-03-09 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639530', 'tblTempVendorCDR_20' ) end [2025-03-09 03:48:18] Production.INFO: ProcessCDR(1,14639530,1,1,2) [2025-03-09 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639530', 'tblTempUsageDetail_20' ) start [2025-03-09 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639530', 'tblTempUsageDetail_20' ) end [2025-03-09 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:48:22] Production.INFO: ==6872== Releasing lock... [2025-03-09 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:49:05 [end_date_ymd] => 2025-03-09 04:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 00:49:05' and `end` < '2025-03-09 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-09 03:49:17] Production.INFO: count ==236 [2025-03-09 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:49:05 - End Time 2025-03-09 04:49:05 [2025-03-09 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639535', 'tblTempUsageDetail_20' ) start [2025-03-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639535', 'tblTempUsageDetail_20' ) end [2025-03-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639535', 'tblTempVendorCDR_20' ) start [2025-03-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639535', 'tblTempVendorCDR_20' ) end [2025-03-09 03:49:17] Production.INFO: ProcessCDR(1,14639535,1,1,2) [2025-03-09 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639535', 'tblTempUsageDetail_20' ) start [2025-03-09 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639535', 'tblTempUsageDetail_20' ) end [2025-03-09 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:49:20] Production.INFO: ==6953== Releasing lock... [2025-03-09 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:49:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:50:07 [end_date_ymd] => 2025-03-09 04:50:07 [RateCDR] => 1 ) [2025-03-09 03: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-09 00:50:07' and `end` < '2025-03-09 04: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-09 03:50:19] Production.INFO: count ==239 [2025-03-09 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-09 00:50:07 - End Time 2025-03-09 04:50:07 [2025-03-09 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639540', 'tblTempUsageDetail_20' ) start [2025-03-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639540', 'tblTempUsageDetail_20' ) end [2025-03-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639540', 'tblTempVendorCDR_20' ) start [2025-03-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639540', 'tblTempVendorCDR_20' ) end [2025-03-09 03:50:19] Production.INFO: ProcessCDR(1,14639540,1,1,2) [2025-03-09 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639540', 'tblTempUsageDetail_20' ) start [2025-03-09 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639540', 'tblTempUsageDetail_20' ) end [2025-03-09 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:50:22] Production.INFO: ==7038== Releasing lock... [2025-03-09 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:51:06 [end_date_ymd] => 2025-03-09 04:51:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:51:06' and `end` < '2025-03-09 04: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-09 03:51:18] Production.INFO: count ==239 [2025-03-09 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:51:06 - End Time 2025-03-09 04:51:06 [2025-03-09 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639546', 'tblTempUsageDetail_20' ) start [2025-03-09 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639546', 'tblTempUsageDetail_20' ) end [2025-03-09 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639546', 'tblTempVendorCDR_20' ) start [2025-03-09 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639546', 'tblTempVendorCDR_20' ) end [2025-03-09 03:51:18] Production.INFO: ProcessCDR(1,14639546,1,1,2) [2025-03-09 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639546', 'tblTempUsageDetail_20' ) start [2025-03-09 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639546', 'tblTempUsageDetail_20' ) end [2025-03-09 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:51:22] Production.INFO: ==7116== Releasing lock... [2025-03-09 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:52:06 [end_date_ymd] => 2025-03-09 04:52:06 [RateCDR] => 1 ) [2025-03-09 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:52:06' and `end` < '2025-03-09 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-09 03:52:18] Production.INFO: count ==240 [2025-03-09 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:52:06 - End Time 2025-03-09 04:52:06 [2025-03-09 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639551', 'tblTempUsageDetail_20' ) start [2025-03-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639551', 'tblTempUsageDetail_20' ) end [2025-03-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639551', 'tblTempVendorCDR_20' ) start [2025-03-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639551', 'tblTempVendorCDR_20' ) end [2025-03-09 03:52:18] Production.INFO: ProcessCDR(1,14639551,1,1,2) [2025-03-09 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639551', 'tblTempUsageDetail_20' ) start [2025-03-09 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639551', 'tblTempUsageDetail_20' ) end [2025-03-09 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:52:23] Production.INFO: ==7196== Releasing lock... [2025-03-09 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:52:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:53:05 [end_date_ymd] => 2025-03-09 04:53:05 [RateCDR] => 1 ) [2025-03-09 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:53:05' and `end` < '2025-03-09 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 03:53:17] Production.INFO: count ==235 [2025-03-09 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:53:05 - End Time 2025-03-09 04:53:05 [2025-03-09 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639556', 'tblTempUsageDetail_20' ) start [2025-03-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639556', 'tblTempUsageDetail_20' ) end [2025-03-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639556', 'tblTempVendorCDR_20' ) start [2025-03-09 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639556', 'tblTempVendorCDR_20' ) end [2025-03-09 03:53:17] Production.INFO: ProcessCDR(1,14639556,1,1,2) [2025-03-09 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639556', 'tblTempUsageDetail_20' ) start [2025-03-09 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639556', 'tblTempUsageDetail_20' ) end [2025-03-09 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:53:21] Production.INFO: ==7273== Releasing lock... [2025-03-09 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:54:06 [end_date_ymd] => 2025-03-09 04:54:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:54:06' and `end` < '2025-03-09 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-09 03:54:18] Production.INFO: count ==234 [2025-03-09 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:54:06 - End Time 2025-03-09 04:54:06 [2025-03-09 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639561', 'tblTempUsageDetail_20' ) start [2025-03-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639561', 'tblTempUsageDetail_20' ) end [2025-03-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639561', 'tblTempVendorCDR_20' ) start [2025-03-09 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639561', 'tblTempVendorCDR_20' ) end [2025-03-09 03:54:18] Production.INFO: ProcessCDR(1,14639561,1,1,2) [2025-03-09 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639561', 'tblTempUsageDetail_20' ) start [2025-03-09 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639561', 'tblTempUsageDetail_20' ) end [2025-03-09 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:54:22] Production.INFO: ==7346== Releasing lock... [2025-03-09 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:55:05 [end_date_ymd] => 2025-03-09 04:55:05 [RateCDR] => 1 ) [2025-03-09 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:55:05' and `end` < '2025-03-09 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-09 03:55:17] Production.INFO: count ==234 [2025-03-09 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:55:05 - End Time 2025-03-09 04:55:05 [2025-03-09 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639566', 'tblTempUsageDetail_20' ) start [2025-03-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639566', 'tblTempUsageDetail_20' ) end [2025-03-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639566', 'tblTempVendorCDR_20' ) start [2025-03-09 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639566', 'tblTempVendorCDR_20' ) end [2025-03-09 03:55:18] Production.INFO: ProcessCDR(1,14639566,1,1,2) [2025-03-09 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639566', 'tblTempUsageDetail_20' ) start [2025-03-09 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639566', 'tblTempUsageDetail_20' ) end [2025-03-09 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:55:21] Production.INFO: ==7430== Releasing lock... [2025-03-09 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:56:06 [end_date_ymd] => 2025-03-09 04:56:06 [RateCDR] => 1 ) [2025-03-09 03: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-09 00:56:06' and `end` < '2025-03-09 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-09 03:56:18] Production.INFO: count ==230 [2025-03-09 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:56:06 - End Time 2025-03-09 04:56:06 [2025-03-09 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639571', 'tblTempUsageDetail_20' ) start [2025-03-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639571', 'tblTempUsageDetail_20' ) end [2025-03-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639571', 'tblTempVendorCDR_20' ) start [2025-03-09 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639571', 'tblTempVendorCDR_20' ) end [2025-03-09 03:56:18] Production.INFO: ProcessCDR(1,14639571,1,1,2) [2025-03-09 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639571', 'tblTempUsageDetail_20' ) start [2025-03-09 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639571', 'tblTempUsageDetail_20' ) end [2025-03-09 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:56:21] Production.INFO: ==7518== Releasing lock... [2025-03-09 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:57:05 [end_date_ymd] => 2025-03-09 04:57:05 [RateCDR] => 1 ) [2025-03-09 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:57:05' and `end` < '2025-03-09 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-09 03:57:17] Production.INFO: count ==229 [2025-03-09 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:57:05 - End Time 2025-03-09 04:57:05 [2025-03-09 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639576', 'tblTempUsageDetail_20' ) start [2025-03-09 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639576', 'tblTempUsageDetail_20' ) end [2025-03-09 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639576', 'tblTempVendorCDR_20' ) start [2025-03-09 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639576', 'tblTempVendorCDR_20' ) end [2025-03-09 03:57:17] Production.INFO: ProcessCDR(1,14639576,1,1,2) [2025-03-09 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639576', 'tblTempUsageDetail_20' ) start [2025-03-09 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639576', 'tblTempUsageDetail_20' ) end [2025-03-09 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:57:21] Production.INFO: ==7588== Releasing lock... [2025-03-09 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:58:06 [end_date_ymd] => 2025-03-09 04:58:06 [RateCDR] => 1 ) [2025-03-09 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-09 00:58:06' and `end` < '2025-03-09 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-09 03:58:18] Production.INFO: count ==229 [2025-03-09 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 00:58:06 - End Time 2025-03-09 04:58:06 [2025-03-09 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639581', 'tblTempUsageDetail_20' ) start [2025-03-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639581', 'tblTempUsageDetail_20' ) end [2025-03-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639581', 'tblTempVendorCDR_20' ) start [2025-03-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639581', 'tblTempVendorCDR_20' ) end [2025-03-09 03:58:18] Production.INFO: ProcessCDR(1,14639581,1,1,2) [2025-03-09 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639581', 'tblTempUsageDetail_20' ) start [2025-03-09 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639581', 'tblTempUsageDetail_20' ) end [2025-03-09 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:58:21] Production.INFO: ==7661== Releasing lock... [2025-03-09 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 00:59:05 [end_date_ymd] => 2025-03-09 04:59:05 [RateCDR] => 1 ) [2025-03-09 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 00:59:05' and `end` < '2025-03-09 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-09 03:59:17] Production.INFO: count ==226 [2025-03-09 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 00:59:05 - End Time 2025-03-09 04:59:05 [2025-03-09 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639586', 'tblTempUsageDetail_20' ) start [2025-03-09 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639586', 'tblTempUsageDetail_20' ) end [2025-03-09 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639586', 'tblTempVendorCDR_20' ) start [2025-03-09 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639586', 'tblTempVendorCDR_20' ) end [2025-03-09 03:59:17] Production.INFO: ProcessCDR(1,14639586,1,1,2) [2025-03-09 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639586', 'tblTempUsageDetail_20' ) start [2025-03-09 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639586', 'tblTempUsageDetail_20' ) end [2025-03-09 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 03:59:21] Production.INFO: ==7734== Releasing lock... [2025-03-09 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 03:59:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:00:06 [end_date_ymd] => 2025-03-09 05:00:06 [RateCDR] => 1 ) [2025-03-09 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:00:06' and `end` < '2025-03-09 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-09 04:00:18] Production.INFO: count ==218 [2025-03-09 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:00:06 - End Time 2025-03-09 05:00:06 [2025-03-09 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639591', 'tblTempUsageDetail_20' ) start [2025-03-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639591', 'tblTempUsageDetail_20' ) end [2025-03-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639591', 'tblTempVendorCDR_20' ) start [2025-03-09 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639591', 'tblTempVendorCDR_20' ) end [2025-03-09 04:00:18] Production.INFO: ProcessCDR(1,14639591,1,1,2) [2025-03-09 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639591', 'tblTempUsageDetail_20' ) start [2025-03-09 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639591', 'tblTempUsageDetail_20' ) end [2025-03-09 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:00:21] Production.INFO: ==7806== Releasing lock... [2025-03-09 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:00:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:01:05 [end_date_ymd] => 2025-03-09 05:01:05 [RateCDR] => 1 ) [2025-03-09 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:01:05' and `end` < '2025-03-09 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-09 04:01:17] Production.INFO: count ==205 [2025-03-09 04:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:01:05 - End Time 2025-03-09 05:01:05 [2025-03-09 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639597', 'tblTempUsageDetail_20' ) start [2025-03-09 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639597', 'tblTempUsageDetail_20' ) end [2025-03-09 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639597', 'tblTempVendorCDR_20' ) start [2025-03-09 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639597', 'tblTempVendorCDR_20' ) end [2025-03-09 04:01:17] Production.INFO: ProcessCDR(1,14639597,1,1,2) [2025-03-09 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639597', 'tblTempUsageDetail_20' ) start [2025-03-09 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639597', 'tblTempUsageDetail_20' ) end [2025-03-09 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:01:21] Production.INFO: ==7893== Releasing lock... [2025-03-09 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:02:06 [end_date_ymd] => 2025-03-09 05:02:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:02:06' and `end` < '2025-03-09 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-09 04:02:18] Production.INFO: count ==208 [2025-03-09 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:02:06 - End Time 2025-03-09 05:02:06 [2025-03-09 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639603', 'tblTempUsageDetail_20' ) start [2025-03-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639603', 'tblTempUsageDetail_20' ) end [2025-03-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639603', 'tblTempVendorCDR_20' ) start [2025-03-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639603', 'tblTempVendorCDR_20' ) end [2025-03-09 04:02:18] Production.INFO: ProcessCDR(1,14639603,1,1,2) [2025-03-09 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639603', 'tblTempUsageDetail_20' ) start [2025-03-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639603', 'tblTempUsageDetail_20' ) end [2025-03-09 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:02:21] Production.INFO: ==8085== Releasing lock... [2025-03-09 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:03:05 [end_date_ymd] => 2025-03-09 05:03:05 [RateCDR] => 1 ) [2025-03-09 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:03:05' and `end` < '2025-03-09 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-09 04:03:17] Production.INFO: count ==208 [2025-03-09 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:03:05 - End Time 2025-03-09 05:03:05 [2025-03-09 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639608', 'tblTempUsageDetail_20' ) start [2025-03-09 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639608', 'tblTempUsageDetail_20' ) end [2025-03-09 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639608', 'tblTempVendorCDR_20' ) start [2025-03-09 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639608', 'tblTempVendorCDR_20' ) end [2025-03-09 04:03:17] Production.INFO: ProcessCDR(1,14639608,1,1,2) [2025-03-09 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639608', 'tblTempUsageDetail_20' ) start [2025-03-09 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639608', 'tblTempUsageDetail_20' ) end [2025-03-09 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:03:20] Production.INFO: ==8155== Releasing lock... [2025-03-09 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:04:05 [end_date_ymd] => 2025-03-09 05:04:05 [RateCDR] => 1 ) [2025-03-09 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:04:05' and `end` < '2025-03-09 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-09 04:04:17] Production.INFO: count ==208 [2025-03-09 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:04:05 - End Time 2025-03-09 05:04:05 [2025-03-09 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639613', 'tblTempUsageDetail_20' ) start [2025-03-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639613', 'tblTempUsageDetail_20' ) end [2025-03-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639613', 'tblTempVendorCDR_20' ) start [2025-03-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639613', 'tblTempVendorCDR_20' ) end [2025-03-09 04:04:17] Production.INFO: ProcessCDR(1,14639613,1,1,2) [2025-03-09 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639613', 'tblTempUsageDetail_20' ) start [2025-03-09 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639613', 'tblTempUsageDetail_20' ) end [2025-03-09 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:04:21] Production.INFO: ==8228== Releasing lock... [2025-03-09 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:05:05 [end_date_ymd] => 2025-03-09 05:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:05:05' and `end` < '2025-03-09 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-09 04:05:17] Production.INFO: count ==208 [2025-03-09 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:05:05 - End Time 2025-03-09 05:05:05 [2025-03-09 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639618', 'tblTempUsageDetail_20' ) start [2025-03-09 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639618', 'tblTempUsageDetail_20' ) end [2025-03-09 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639618', 'tblTempVendorCDR_20' ) start [2025-03-09 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639618', 'tblTempVendorCDR_20' ) end [2025-03-09 04:05:17] Production.INFO: ProcessCDR(1,14639618,1,1,2) [2025-03-09 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639618', 'tblTempUsageDetail_20' ) start [2025-03-09 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639618', 'tblTempUsageDetail_20' ) end [2025-03-09 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:05:20] Production.INFO: ==8298== Releasing lock... [2025-03-09 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:05:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:06:05 [end_date_ymd] => 2025-03-09 05:06:05 [RateCDR] => 1 ) [2025-03-09 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:06:05' and `end` < '2025-03-09 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:06:17] Production.INFO: count ==209 [2025-03-09 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:06:05 - End Time 2025-03-09 05:06:05 [2025-03-09 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639623', 'tblTempUsageDetail_20' ) start [2025-03-09 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639623', 'tblTempUsageDetail_20' ) end [2025-03-09 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639623', 'tblTempVendorCDR_20' ) start [2025-03-09 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639623', 'tblTempVendorCDR_20' ) end [2025-03-09 04:06:17] Production.INFO: ProcessCDR(1,14639623,1,1,2) [2025-03-09 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639623', 'tblTempUsageDetail_20' ) start [2025-03-09 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639623', 'tblTempUsageDetail_20' ) end [2025-03-09 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:06:22] Production.INFO: ==8448== Releasing lock... [2025-03-09 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:07:06 [end_date_ymd] => 2025-03-09 05:07:06 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:07:06' and `end` < '2025-03-09 05: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-09 04:07:18] Production.INFO: count ==209 [2025-03-09 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:07:06 - End Time 2025-03-09 05:07:06 [2025-03-09 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639628', 'tblTempUsageDetail_20' ) start [2025-03-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639628', 'tblTempUsageDetail_20' ) end [2025-03-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639628', 'tblTempVendorCDR_20' ) start [2025-03-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639628', 'tblTempVendorCDR_20' ) end [2025-03-09 04:07:18] Production.INFO: ProcessCDR(1,14639628,1,1,2) [2025-03-09 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639628', 'tblTempUsageDetail_20' ) start [2025-03-09 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639628', 'tblTempUsageDetail_20' ) end [2025-03-09 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:07:22] Production.INFO: ==8519== Releasing lock... [2025-03-09 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:08:05 [end_date_ymd] => 2025-03-09 05:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:08:05' and `end` < '2025-03-09 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-09 04:08:17] Production.INFO: count ==209 [2025-03-09 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:08:05 - End Time 2025-03-09 05:08:05 [2025-03-09 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639633', 'tblTempUsageDetail_20' ) start [2025-03-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639633', 'tblTempUsageDetail_20' ) end [2025-03-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639633', 'tblTempVendorCDR_20' ) start [2025-03-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639633', 'tblTempVendorCDR_20' ) end [2025-03-09 04:08:17] Production.INFO: ProcessCDR(1,14639633,1,1,2) [2025-03-09 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639633', 'tblTempUsageDetail_20' ) start [2025-03-09 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639633', 'tblTempUsageDetail_20' ) end [2025-03-09 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:08:21] Production.INFO: ==8591== Releasing lock... [2025-03-09 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:09:04 [end_date_ymd] => 2025-03-09 05:09:04 [RateCDR] => 1 ) [2025-03-09 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:09:04' and `end` < '2025-03-09 05: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-09 04:09:16] Production.INFO: count ==208 [2025-03-09 04:09:16] Production.ERROR: pbx CDR StartTime 2025-03-09 01:09:04 - End Time 2025-03-09 05:09:04 [2025-03-09 04:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639638', 'tblTempUsageDetail_20' ) start [2025-03-09 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639638', 'tblTempUsageDetail_20' ) end [2025-03-09 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639638', 'tblTempVendorCDR_20' ) start [2025-03-09 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639638', 'tblTempVendorCDR_20' ) end [2025-03-09 04:09:16] Production.INFO: ProcessCDR(1,14639638,1,1,2) [2025-03-09 04:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639638', 'tblTempUsageDetail_20' ) start [2025-03-09 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639638', 'tblTempUsageDetail_20' ) end [2025-03-09 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:09:20] Production.INFO: ==8740== Releasing lock... [2025-03-09 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:10:06 [end_date_ymd] => 2025-03-09 05:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:10:06' and `end` < '2025-03-09 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-09 04:10:18] Production.INFO: count ==207 [2025-03-09 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:10:06 - End Time 2025-03-09 05:10:06 [2025-03-09 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639644', 'tblTempUsageDetail_20' ) start [2025-03-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639644', 'tblTempUsageDetail_20' ) end [2025-03-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639644', 'tblTempVendorCDR_20' ) start [2025-03-09 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639644', 'tblTempVendorCDR_20' ) end [2025-03-09 04:10:18] Production.INFO: ProcessCDR(1,14639644,1,1,2) [2025-03-09 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639644', 'tblTempUsageDetail_20' ) start [2025-03-09 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639644', 'tblTempUsageDetail_20' ) end [2025-03-09 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:10:21] Production.INFO: ==8813== Releasing lock... [2025-03-09 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:11:05 [end_date_ymd] => 2025-03-09 05:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:11:05' and `end` < '2025-03-09 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-09 04:11:17] Production.INFO: count ==207 [2025-03-09 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:11:05 - End Time 2025-03-09 05:11:05 [2025-03-09 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639649', 'tblTempUsageDetail_20' ) start [2025-03-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639649', 'tblTempUsageDetail_20' ) end [2025-03-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639649', 'tblTempVendorCDR_20' ) start [2025-03-09 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639649', 'tblTempVendorCDR_20' ) end [2025-03-09 04:11:17] Production.INFO: ProcessCDR(1,14639649,1,1,2) [2025-03-09 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639649', 'tblTempUsageDetail_20' ) start [2025-03-09 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639649', 'tblTempUsageDetail_20' ) end [2025-03-09 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:11:20] Production.INFO: ==8884== Releasing lock... [2025-03-09 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:12:06 [end_date_ymd] => 2025-03-09 05:12:06 [RateCDR] => 1 ) [2025-03-09 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:12:06' and `end` < '2025-03-09 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:12:18] Production.INFO: count ==210 [2025-03-09 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:12:06 - End Time 2025-03-09 05:12:06 [2025-03-09 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639654', 'tblTempUsageDetail_20' ) start [2025-03-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639654', 'tblTempUsageDetail_20' ) end [2025-03-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639654', 'tblTempVendorCDR_20' ) start [2025-03-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639654', 'tblTempVendorCDR_20' ) end [2025-03-09 04:12:18] Production.INFO: ProcessCDR(1,14639654,1,1,2) [2025-03-09 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639654', 'tblTempUsageDetail_20' ) start [2025-03-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639654', 'tblTempUsageDetail_20' ) end [2025-03-09 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:12:21] Production.INFO: ==8962== Releasing lock... [2025-03-09 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:12:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:13:06 [end_date_ymd] => 2025-03-09 05:13:06 [RateCDR] => 1 ) [2025-03-09 04:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:13:06' and `end` < '2025-03-09 05: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-09 04:13:18] Production.INFO: count ==210 [2025-03-09 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:13:06 - End Time 2025-03-09 05:13:06 [2025-03-09 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639659', 'tblTempUsageDetail_20' ) start [2025-03-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639659', 'tblTempUsageDetail_20' ) end [2025-03-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639659', 'tblTempVendorCDR_20' ) start [2025-03-09 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639659', 'tblTempVendorCDR_20' ) end [2025-03-09 04:13:18] Production.INFO: ProcessCDR(1,14639659,1,1,2) [2025-03-09 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639659', 'tblTempUsageDetail_20' ) start [2025-03-09 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639659', 'tblTempUsageDetail_20' ) end [2025-03-09 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:13:21] Production.INFO: ==9118== Releasing lock... [2025-03-09 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:13:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:14:05 [end_date_ymd] => 2025-03-09 05:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:14:05' and `end` < '2025-03-09 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-09 04:14:17] Production.INFO: count ==210 [2025-03-09 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:14:05 - End Time 2025-03-09 05:14:05 [2025-03-09 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639664', 'tblTempUsageDetail_20' ) start [2025-03-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639664', 'tblTempUsageDetail_20' ) end [2025-03-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639664', 'tblTempVendorCDR_20' ) start [2025-03-09 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639664', 'tblTempVendorCDR_20' ) end [2025-03-09 04:14:17] Production.INFO: ProcessCDR(1,14639664,1,1,2) [2025-03-09 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639664', 'tblTempUsageDetail_20' ) start [2025-03-09 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639664', 'tblTempUsageDetail_20' ) end [2025-03-09 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:14:22] Production.INFO: ==9188== Releasing lock... [2025-03-09 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:14:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:15:05 [end_date_ymd] => 2025-03-09 05:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:15:05' and `end` < '2025-03-09 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:15:17] Production.INFO: count ==210 [2025-03-09 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:15:05 - End Time 2025-03-09 05:15:05 [2025-03-09 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639669', 'tblTempUsageDetail_20' ) start [2025-03-09 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639669', 'tblTempUsageDetail_20' ) end [2025-03-09 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639669', 'tblTempVendorCDR_20' ) start [2025-03-09 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639669', 'tblTempVendorCDR_20' ) end [2025-03-09 04:15:17] Production.INFO: ProcessCDR(1,14639669,1,1,2) [2025-03-09 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639669', 'tblTempUsageDetail_20' ) start [2025-03-09 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639669', 'tblTempUsageDetail_20' ) end [2025-03-09 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:15:22] Production.INFO: ==9262== Releasing lock... [2025-03-09 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:16:05 [end_date_ymd] => 2025-03-09 05:16:05 [RateCDR] => 1 ) [2025-03-09 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:16:05' and `end` < '2025-03-09 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:16:17] Production.INFO: count ==206 [2025-03-09 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:16:05 - End Time 2025-03-09 05:16:05 [2025-03-09 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639674', 'tblTempUsageDetail_20' ) start [2025-03-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639674', 'tblTempUsageDetail_20' ) end [2025-03-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639674', 'tblTempVendorCDR_20' ) start [2025-03-09 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639674', 'tblTempVendorCDR_20' ) end [2025-03-09 04:16:17] Production.INFO: ProcessCDR(1,14639674,1,1,2) [2025-03-09 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639674', 'tblTempUsageDetail_20' ) start [2025-03-09 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639674', 'tblTempUsageDetail_20' ) end [2025-03-09 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:16:20] Production.INFO: ==9336== Releasing lock... [2025-03-09 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:17:06 [end_date_ymd] => 2025-03-09 05:17:06 [RateCDR] => 1 ) [2025-03-09 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:17:06' and `end` < '2025-03-09 05:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:17:18] Production.INFO: count ==207 [2025-03-09 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:17:06 - End Time 2025-03-09 05:17:06 [2025-03-09 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639679', 'tblTempUsageDetail_20' ) start [2025-03-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639679', 'tblTempUsageDetail_20' ) end [2025-03-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639679', 'tblTempVendorCDR_20' ) start [2025-03-09 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639679', 'tblTempVendorCDR_20' ) end [2025-03-09 04:17:18] Production.INFO: ProcessCDR(1,14639679,1,1,2) [2025-03-09 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639679', 'tblTempUsageDetail_20' ) start [2025-03-09 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639679', 'tblTempUsageDetail_20' ) end [2025-03-09 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:17:21] Production.INFO: ==9485== Releasing lock... [2025-03-09 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:18:05 [end_date_ymd] => 2025-03-09 05:18:05 [RateCDR] => 1 ) [2025-03-09 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:18:05' and `end` < '2025-03-09 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-09 04:18:17] Production.INFO: count ==211 [2025-03-09 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:18:05 - End Time 2025-03-09 05:18:05 [2025-03-09 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639684', 'tblTempUsageDetail_20' ) start [2025-03-09 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639684', 'tblTempUsageDetail_20' ) end [2025-03-09 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639684', 'tblTempVendorCDR_20' ) start [2025-03-09 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639684', 'tblTempVendorCDR_20' ) end [2025-03-09 04:18:17] Production.INFO: ProcessCDR(1,14639684,1,1,2) [2025-03-09 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639684', 'tblTempUsageDetail_20' ) start [2025-03-09 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639684', 'tblTempUsageDetail_20' ) end [2025-03-09 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:18:20] Production.INFO: ==9602== Releasing lock... [2025-03-09 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:18:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:19:06 [end_date_ymd] => 2025-03-09 05:19:06 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:19:06' and `end` < '2025-03-09 05:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:19:18] Production.INFO: count ==216 [2025-03-09 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:19:06 - End Time 2025-03-09 05:19:06 [2025-03-09 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639689', 'tblTempUsageDetail_20' ) start [2025-03-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639689', 'tblTempUsageDetail_20' ) end [2025-03-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639689', 'tblTempVendorCDR_20' ) start [2025-03-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639689', 'tblTempVendorCDR_20' ) end [2025-03-09 04:19:18] Production.INFO: ProcessCDR(1,14639689,1,1,2) [2025-03-09 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639689', 'tblTempUsageDetail_20' ) start [2025-03-09 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639689', 'tblTempUsageDetail_20' ) end [2025-03-09 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:19:21] Production.INFO: ==9674== Releasing lock... [2025-03-09 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:19:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:20:05 [end_date_ymd] => 2025-03-09 05:20:05 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:20:05' and `end` < '2025-03-09 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-09 04:20:18] Production.INFO: count ==232 [2025-03-09 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:20:05 - End Time 2025-03-09 05:20:05 [2025-03-09 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639695', 'tblTempUsageDetail_20' ) start [2025-03-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639695', 'tblTempUsageDetail_20' ) end [2025-03-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639695', 'tblTempVendorCDR_20' ) start [2025-03-09 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639695', 'tblTempVendorCDR_20' ) end [2025-03-09 04:20:18] Production.INFO: ProcessCDR(1,14639695,1,1,2) [2025-03-09 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639695', 'tblTempUsageDetail_20' ) start [2025-03-09 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639695', 'tblTempUsageDetail_20' ) end [2025-03-09 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:20:21] Production.INFO: ==9749== Releasing lock... [2025-03-09 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:21:06 [end_date_ymd] => 2025-03-09 05:21:06 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:21:06' and `end` < '2025-03-09 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-09 04:21:18] Production.INFO: count ==217 [2025-03-09 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:21:06 - End Time 2025-03-09 05:21:06 [2025-03-09 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639700', 'tblTempUsageDetail_20' ) start [2025-03-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639700', 'tblTempUsageDetail_20' ) end [2025-03-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639700', 'tblTempVendorCDR_20' ) start [2025-03-09 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639700', 'tblTempVendorCDR_20' ) end [2025-03-09 04:21:18] Production.INFO: ProcessCDR(1,14639700,1,1,2) [2025-03-09 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639700', 'tblTempUsageDetail_20' ) start [2025-03-09 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639700', 'tblTempUsageDetail_20' ) end [2025-03-09 04:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:21:23] Production.INFO: ==9823== Releasing lock... [2025-03-09 04:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:21:23] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:22:05 [end_date_ymd] => 2025-03-09 05:22:05 [RateCDR] => 1 ) [2025-03-09 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:22:05' and `end` < '2025-03-09 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-09 04:22:17] Production.INFO: count ==214 [2025-03-09 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:22:05 - End Time 2025-03-09 05:22:05 [2025-03-09 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639705', 'tblTempUsageDetail_20' ) start [2025-03-09 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639705', 'tblTempUsageDetail_20' ) end [2025-03-09 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639705', 'tblTempVendorCDR_20' ) start [2025-03-09 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639705', 'tblTempVendorCDR_20' ) end [2025-03-09 04:22:17] Production.INFO: ProcessCDR(1,14639705,1,1,2) [2025-03-09 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639705', 'tblTempUsageDetail_20' ) start [2025-03-09 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639705', 'tblTempUsageDetail_20' ) end [2025-03-09 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:22:20] Production.INFO: ==9895== Releasing lock... [2025-03-09 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:22:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:23:05 [end_date_ymd] => 2025-03-09 05:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:23:05' and `end` < '2025-03-09 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-09 04:23:17] Production.INFO: count ==212 [2025-03-09 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:23:05 - End Time 2025-03-09 05:23:05 [2025-03-09 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639710', 'tblTempUsageDetail_20' ) start [2025-03-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639710', 'tblTempUsageDetail_20' ) end [2025-03-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639710', 'tblTempVendorCDR_20' ) start [2025-03-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639710', 'tblTempVendorCDR_20' ) end [2025-03-09 04:23:17] Production.INFO: ProcessCDR(1,14639710,1,1,2) [2025-03-09 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639710', 'tblTempUsageDetail_20' ) start [2025-03-09 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639710', 'tblTempUsageDetail_20' ) end [2025-03-09 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:23:21] Production.INFO: ==9966== Releasing lock... [2025-03-09 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:23:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:24:05 [end_date_ymd] => 2025-03-09 05:24:05 [RateCDR] => 1 ) [2025-03-09 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:24:05' and `end` < '2025-03-09 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-09 04:24:17] Production.INFO: count ==212 [2025-03-09 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:24:05 - End Time 2025-03-09 05:24:05 [2025-03-09 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639715', 'tblTempUsageDetail_20' ) start [2025-03-09 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639715', 'tblTempUsageDetail_20' ) end [2025-03-09 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639715', 'tblTempVendorCDR_20' ) start [2025-03-09 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639715', 'tblTempVendorCDR_20' ) end [2025-03-09 04:24:17] Production.INFO: ProcessCDR(1,14639715,1,1,2) [2025-03-09 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639715', 'tblTempUsageDetail_20' ) start [2025-03-09 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639715', 'tblTempUsageDetail_20' ) end [2025-03-09 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:24:20] Production.INFO: ==10036== Releasing lock... [2025-03-09 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:24:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:25:05 [end_date_ymd] => 2025-03-09 05:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:25:05' and `end` < '2025-03-09 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-09 04:25:17] Production.INFO: count ==211 [2025-03-09 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:25:05 - End Time 2025-03-09 05:25:05 [2025-03-09 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639720', 'tblTempUsageDetail_20' ) start [2025-03-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639720', 'tblTempUsageDetail_20' ) end [2025-03-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639720', 'tblTempVendorCDR_20' ) start [2025-03-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639720', 'tblTempVendorCDR_20' ) end [2025-03-09 04:25:17] Production.INFO: ProcessCDR(1,14639720,1,1,2) [2025-03-09 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639720', 'tblTempUsageDetail_20' ) start [2025-03-09 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639720', 'tblTempUsageDetail_20' ) end [2025-03-09 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:25:20] Production.INFO: ==10106== Releasing lock... [2025-03-09 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:25:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:26:04 [end_date_ymd] => 2025-03-09 05:26:04 [RateCDR] => 1 ) [2025-03-09 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:26:04' and `end` < '2025-03-09 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:26:16] Production.INFO: count ==211 [2025-03-09 04:26:16] Production.ERROR: pbx CDR StartTime 2025-03-09 01:26:04 - End Time 2025-03-09 05:26:04 [2025-03-09 04:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639725', 'tblTempUsageDetail_20' ) start [2025-03-09 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639725', 'tblTempUsageDetail_20' ) end [2025-03-09 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639725', 'tblTempVendorCDR_20' ) start [2025-03-09 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639725', 'tblTempVendorCDR_20' ) end [2025-03-09 04:26:16] Production.INFO: ProcessCDR(1,14639725,1,1,2) [2025-03-09 04:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639725', 'tblTempUsageDetail_20' ) start [2025-03-09 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639725', 'tblTempUsageDetail_20' ) end [2025-03-09 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:26:20] Production.INFO: ==10180== Releasing lock... [2025-03-09 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:26:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:27:05 [end_date_ymd] => 2025-03-09 05:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:27:05' and `end` < '2025-03-09 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-09 04:27:17] Production.INFO: count ==214 [2025-03-09 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:27:05 - End Time 2025-03-09 05:27:05 [2025-03-09 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639730', 'tblTempUsageDetail_20' ) start [2025-03-09 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639730', 'tblTempUsageDetail_20' ) end [2025-03-09 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639730', 'tblTempVendorCDR_20' ) start [2025-03-09 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639730', 'tblTempVendorCDR_20' ) end [2025-03-09 04:27:17] Production.INFO: ProcessCDR(1,14639730,1,1,2) [2025-03-09 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639730', 'tblTempUsageDetail_20' ) start [2025-03-09 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639730', 'tblTempUsageDetail_20' ) end [2025-03-09 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:27:21] Production.INFO: ==10253== Releasing lock... [2025-03-09 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:28:06 [end_date_ymd] => 2025-03-09 05:28:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:28:06' and `end` < '2025-03-09 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-09 04:28:18] Production.INFO: count ==211 [2025-03-09 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:28:06 - End Time 2025-03-09 05:28:06 [2025-03-09 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639735', 'tblTempUsageDetail_20' ) start [2025-03-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639735', 'tblTempUsageDetail_20' ) end [2025-03-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639735', 'tblTempVendorCDR_20' ) start [2025-03-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639735', 'tblTempVendorCDR_20' ) end [2025-03-09 04:28:18] Production.INFO: ProcessCDR(1,14639735,1,1,2) [2025-03-09 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639735', 'tblTempUsageDetail_20' ) start [2025-03-09 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639735', 'tblTempUsageDetail_20' ) end [2025-03-09 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:28:21] Production.INFO: ==10328== Releasing lock... [2025-03-09 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:29:05 [end_date_ymd] => 2025-03-09 05:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:29:05' and `end` < '2025-03-09 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-09 04:29:17] Production.INFO: count ==211 [2025-03-09 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:29:05 - End Time 2025-03-09 05:29:05 [2025-03-09 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639740', 'tblTempUsageDetail_20' ) start [2025-03-09 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639740', 'tblTempUsageDetail_20' ) end [2025-03-09 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639740', 'tblTempVendorCDR_20' ) start [2025-03-09 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639740', 'tblTempVendorCDR_20' ) end [2025-03-09 04:29:17] Production.INFO: ProcessCDR(1,14639740,1,1,2) [2025-03-09 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639740', 'tblTempUsageDetail_20' ) start [2025-03-09 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639740', 'tblTempUsageDetail_20' ) end [2025-03-09 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:29:20] Production.INFO: ==10399== Releasing lock... [2025-03-09 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:29:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:30:06 [end_date_ymd] => 2025-03-09 05:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:30:06' and `end` < '2025-03-09 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-09 04:30:18] Production.INFO: count ==203 [2025-03-09 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:30:06 - End Time 2025-03-09 05:30:06 [2025-03-09 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639746', 'tblTempUsageDetail_20' ) start [2025-03-09 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639746', 'tblTempUsageDetail_20' ) end [2025-03-09 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639746', 'tblTempVendorCDR_20' ) start [2025-03-09 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639746', 'tblTempVendorCDR_20' ) end [2025-03-09 04:30:18] Production.INFO: ProcessCDR(1,14639746,1,1,2) [2025-03-09 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639746', 'tblTempUsageDetail_20' ) start [2025-03-09 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639746', 'tblTempUsageDetail_20' ) end [2025-03-09 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:30:21] Production.INFO: ==10472== Releasing lock... [2025-03-09 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:31:05 [end_date_ymd] => 2025-03-09 05:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:31:05' and `end` < '2025-03-09 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-09 04:31:17] Production.INFO: count ==191 [2025-03-09 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:31:05 - End Time 2025-03-09 05:31:05 [2025-03-09 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639752', 'tblTempUsageDetail_20' ) start [2025-03-09 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639752', 'tblTempUsageDetail_20' ) end [2025-03-09 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639752', 'tblTempVendorCDR_20' ) start [2025-03-09 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639752', 'tblTempVendorCDR_20' ) end [2025-03-09 04:31:17] Production.INFO: ProcessCDR(1,14639752,1,1,2) [2025-03-09 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639752', 'tblTempUsageDetail_20' ) start [2025-03-09 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639752', 'tblTempUsageDetail_20' ) end [2025-03-09 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:31:21] Production.INFO: ==10547== Releasing lock... [2025-03-09 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:31:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:32:05 [end_date_ymd] => 2025-03-09 05:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:32:05' and `end` < '2025-03-09 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-09 04:32:17] Production.INFO: count ==191 [2025-03-09 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:32:05 - End Time 2025-03-09 05:32:05 [2025-03-09 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639757', 'tblTempUsageDetail_20' ) start [2025-03-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639757', 'tblTempUsageDetail_20' ) end [2025-03-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639757', 'tblTempVendorCDR_20' ) start [2025-03-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639757', 'tblTempVendorCDR_20' ) end [2025-03-09 04:32:17] Production.INFO: ProcessCDR(1,14639757,1,1,2) [2025-03-09 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639757', 'tblTempUsageDetail_20' ) start [2025-03-09 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639757', 'tblTempUsageDetail_20' ) end [2025-03-09 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:32:21] Production.INFO: ==10653== Releasing lock... [2025-03-09 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:33:05 [end_date_ymd] => 2025-03-09 05:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:33:05' and `end` < '2025-03-09 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-09 04:33:17] Production.INFO: count ==189 [2025-03-09 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:33:05 - End Time 2025-03-09 05:33:05 [2025-03-09 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639762', 'tblTempUsageDetail_20' ) start [2025-03-09 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639762', 'tblTempUsageDetail_20' ) end [2025-03-09 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639762', 'tblTempVendorCDR_20' ) start [2025-03-09 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639762', 'tblTempVendorCDR_20' ) end [2025-03-09 04:33:17] Production.INFO: ProcessCDR(1,14639762,1,1,2) [2025-03-09 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639762', 'tblTempUsageDetail_20' ) start [2025-03-09 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639762', 'tblTempUsageDetail_20' ) end [2025-03-09 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:33:20] Production.INFO: ==10761== Releasing lock... [2025-03-09 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:34:05 [end_date_ymd] => 2025-03-09 05:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:34:05' and `end` < '2025-03-09 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-09 04:34:17] Production.INFO: count ==192 [2025-03-09 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:34:05 - End Time 2025-03-09 05:34:05 [2025-03-09 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639767', 'tblTempUsageDetail_20' ) start [2025-03-09 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639767', 'tblTempUsageDetail_20' ) end [2025-03-09 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639767', 'tblTempVendorCDR_20' ) start [2025-03-09 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639767', 'tblTempVendorCDR_20' ) end [2025-03-09 04:34:17] Production.INFO: ProcessCDR(1,14639767,1,1,2) [2025-03-09 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639767', 'tblTempUsageDetail_20' ) start [2025-03-09 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639767', 'tblTempUsageDetail_20' ) end [2025-03-09 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:34:20] Production.INFO: ==10835== Releasing lock... [2025-03-09 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:34:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:35:05 [end_date_ymd] => 2025-03-09 05:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:35:05' and `end` < '2025-03-09 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-09 04:35:17] Production.INFO: count ==197 [2025-03-09 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:35:05 - End Time 2025-03-09 05:35:05 [2025-03-09 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639772', 'tblTempUsageDetail_20' ) start [2025-03-09 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639772', 'tblTempUsageDetail_20' ) end [2025-03-09 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639772', 'tblTempVendorCDR_20' ) start [2025-03-09 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639772', 'tblTempVendorCDR_20' ) end [2025-03-09 04:35:17] Production.INFO: ProcessCDR(1,14639772,1,1,2) [2025-03-09 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639772', 'tblTempUsageDetail_20' ) start [2025-03-09 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639772', 'tblTempUsageDetail_20' ) end [2025-03-09 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:35:20] Production.INFO: ==10909== Releasing lock... [2025-03-09 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:35:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:36:05 [end_date_ymd] => 2025-03-09 05:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:36:05' and `end` < '2025-03-09 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-09 04:36:17] Production.INFO: count ==201 [2025-03-09 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:36:05 - End Time 2025-03-09 05:36:05 [2025-03-09 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639777', 'tblTempUsageDetail_20' ) start [2025-03-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639777', 'tblTempUsageDetail_20' ) end [2025-03-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639777', 'tblTempVendorCDR_20' ) start [2025-03-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639777', 'tblTempVendorCDR_20' ) end [2025-03-09 04:36:18] Production.INFO: ProcessCDR(1,14639777,1,1,2) [2025-03-09 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639777', 'tblTempUsageDetail_20' ) start [2025-03-09 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639777', 'tblTempUsageDetail_20' ) end [2025-03-09 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:36:21] Production.INFO: ==10980== Releasing lock... [2025-03-09 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:36:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:37:05 [end_date_ymd] => 2025-03-09 05:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:37:05' and `end` < '2025-03-09 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-09 04:37:17] Production.INFO: count ==203 [2025-03-09 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:37:05 - End Time 2025-03-09 05:37:05 [2025-03-09 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639782', 'tblTempUsageDetail_20' ) start [2025-03-09 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639782', 'tblTempUsageDetail_20' ) end [2025-03-09 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639782', 'tblTempVendorCDR_20' ) start [2025-03-09 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639782', 'tblTempVendorCDR_20' ) end [2025-03-09 04:37:17] Production.INFO: ProcessCDR(1,14639782,1,1,2) [2025-03-09 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639782', 'tblTempUsageDetail_20' ) start [2025-03-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639782', 'tblTempUsageDetail_20' ) end [2025-03-09 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:37:21] Production.INFO: ==11051== Releasing lock... [2025-03-09 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:37:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:38:05 [end_date_ymd] => 2025-03-09 05:38:05 [RateCDR] => 1 ) [2025-03-09 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:38:05' and `end` < '2025-03-09 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-09 04:38:17] Production.INFO: count ==212 [2025-03-09 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:38:05 - End Time 2025-03-09 05:38:05 [2025-03-09 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639787', 'tblTempUsageDetail_20' ) start [2025-03-09 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639787', 'tblTempUsageDetail_20' ) end [2025-03-09 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639787', 'tblTempVendorCDR_20' ) start [2025-03-09 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639787', 'tblTempVendorCDR_20' ) end [2025-03-09 04:38:17] Production.INFO: ProcessCDR(1,14639787,1,1,2) [2025-03-09 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639787', 'tblTempUsageDetail_20' ) start [2025-03-09 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639787', 'tblTempUsageDetail_20' ) end [2025-03-09 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:38:21] Production.INFO: ==11122== Releasing lock... [2025-03-09 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:39:04 [end_date_ymd] => 2025-03-09 05:39:04 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:39:04' and `end` < '2025-03-09 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:39:16] Production.INFO: count ==217 [2025-03-09 04:39:16] Production.ERROR: pbx CDR StartTime 2025-03-09 01:39:04 - End Time 2025-03-09 05:39:04 [2025-03-09 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639792', 'tblTempUsageDetail_20' ) start [2025-03-09 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639792', 'tblTempUsageDetail_20' ) end [2025-03-09 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639792', 'tblTempVendorCDR_20' ) start [2025-03-09 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639792', 'tblTempVendorCDR_20' ) end [2025-03-09 04:39:16] Production.INFO: ProcessCDR(1,14639792,1,1,2) [2025-03-09 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639792', 'tblTempUsageDetail_20' ) start [2025-03-09 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639792', 'tblTempUsageDetail_20' ) end [2025-03-09 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:39:20] Production.INFO: ==11193== Releasing lock... [2025-03-09 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:39:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:40:06 [end_date_ymd] => 2025-03-09 05:40:06 [RateCDR] => 1 ) [2025-03-09 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:40:06' and `end` < '2025-03-09 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:40:19] Production.INFO: count ==223 [2025-03-09 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-09 01:40:06 - End Time 2025-03-09 05:40:06 [2025-03-09 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639798', 'tblTempUsageDetail_20' ) start [2025-03-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639798', 'tblTempUsageDetail_20' ) end [2025-03-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639798', 'tblTempVendorCDR_20' ) start [2025-03-09 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639798', 'tblTempVendorCDR_20' ) end [2025-03-09 04:40:19] Production.INFO: ProcessCDR(1,14639798,1,1,2) [2025-03-09 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639798', 'tblTempUsageDetail_20' ) start [2025-03-09 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639798', 'tblTempUsageDetail_20' ) end [2025-03-09 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:40:22] Production.INFO: ==11271== Releasing lock... [2025-03-09 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:40:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:41:04 [end_date_ymd] => 2025-03-09 05:41:04 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:41:04' and `end` < '2025-03-09 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:41:16] Production.INFO: count ==210 [2025-03-09 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:41:04 - End Time 2025-03-09 05:41:04 [2025-03-09 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639803', 'tblTempUsageDetail_20' ) start [2025-03-09 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639803', 'tblTempUsageDetail_20' ) end [2025-03-09 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639803', 'tblTempVendorCDR_20' ) start [2025-03-09 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639803', 'tblTempVendorCDR_20' ) end [2025-03-09 04:41:17] Production.INFO: ProcessCDR(1,14639803,1,1,2) [2025-03-09 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639803', 'tblTempUsageDetail_20' ) start [2025-03-09 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639803', 'tblTempUsageDetail_20' ) end [2025-03-09 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:41:20] Production.INFO: ==11348== Releasing lock... [2025-03-09 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:42:06 [end_date_ymd] => 2025-03-09 05:42:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:42:06' and `end` < '2025-03-09 05: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-09 04:42:18] Production.INFO: count ==216 [2025-03-09 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:42:06 - End Time 2025-03-09 05:42:06 [2025-03-09 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639808', 'tblTempUsageDetail_20' ) start [2025-03-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639808', 'tblTempUsageDetail_20' ) end [2025-03-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639808', 'tblTempVendorCDR_20' ) start [2025-03-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639808', 'tblTempVendorCDR_20' ) end [2025-03-09 04:42:18] Production.INFO: ProcessCDR(1,14639808,1,1,2) [2025-03-09 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639808', 'tblTempUsageDetail_20' ) start [2025-03-09 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639808', 'tblTempUsageDetail_20' ) end [2025-03-09 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:42:22] Production.INFO: ==11420== Releasing lock... [2025-03-09 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:43:04 [end_date_ymd] => 2025-03-09 05:43:04 [RateCDR] => 1 ) [2025-03-09 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:43:04' and `end` < '2025-03-09 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:43:16] Production.INFO: count ==238 [2025-03-09 04:43:16] Production.ERROR: pbx CDR StartTime 2025-03-09 01:43:04 - End Time 2025-03-09 05:43:04 [2025-03-09 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639813', 'tblTempUsageDetail_20' ) start [2025-03-09 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639813', 'tblTempUsageDetail_20' ) end [2025-03-09 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639813', 'tblTempVendorCDR_20' ) start [2025-03-09 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639813', 'tblTempVendorCDR_20' ) end [2025-03-09 04:43:16] Production.INFO: ProcessCDR(1,14639813,1,1,2) [2025-03-09 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639813', 'tblTempUsageDetail_20' ) start [2025-03-09 04:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639813', 'tblTempUsageDetail_20' ) end [2025-03-09 04:43:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:43:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:43:20] Production.INFO: ==11489== Releasing lock... [2025-03-09 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:43:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:44:05 [end_date_ymd] => 2025-03-09 05:44:05 [RateCDR] => 1 ) [2025-03-09 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:44:05' and `end` < '2025-03-09 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-09 04:44:17] Production.INFO: count ==238 [2025-03-09 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:44:05 - End Time 2025-03-09 05:44:05 [2025-03-09 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639818', 'tblTempUsageDetail_20' ) start [2025-03-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639818', 'tblTempUsageDetail_20' ) end [2025-03-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639818', 'tblTempVendorCDR_20' ) start [2025-03-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639818', 'tblTempVendorCDR_20' ) end [2025-03-09 04:44:17] Production.INFO: ProcessCDR(1,14639818,1,1,2) [2025-03-09 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639818', 'tblTempUsageDetail_20' ) start [2025-03-09 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639818', 'tblTempUsageDetail_20' ) end [2025-03-09 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:44:20] Production.INFO: ==11562== Releasing lock... [2025-03-09 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:44:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:45:06 [end_date_ymd] => 2025-03-09 05:45:06 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:45:06' and `end` < '2025-03-09 05: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-09 04:45:18] Production.INFO: count ==238 [2025-03-09 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:45:06 - End Time 2025-03-09 05:45:06 [2025-03-09 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639823', 'tblTempUsageDetail_20' ) start [2025-03-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639823', 'tblTempUsageDetail_20' ) end [2025-03-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639823', 'tblTempVendorCDR_20' ) start [2025-03-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639823', 'tblTempVendorCDR_20' ) end [2025-03-09 04:45:18] Production.INFO: ProcessCDR(1,14639823,1,1,2) [2025-03-09 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639823', 'tblTempUsageDetail_20' ) start [2025-03-09 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639823', 'tblTempUsageDetail_20' ) end [2025-03-09 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:45:21] Production.INFO: ==11640== Releasing lock... [2025-03-09 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:45:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:46:05 [end_date_ymd] => 2025-03-09 05:46:05 [RateCDR] => 1 ) [2025-03-09 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:46:05' and `end` < '2025-03-09 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-09 04:46:17] Production.INFO: count ==239 [2025-03-09 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:46:05 - End Time 2025-03-09 05:46:05 [2025-03-09 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639828', 'tblTempUsageDetail_20' ) start [2025-03-09 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639828', 'tblTempUsageDetail_20' ) end [2025-03-09 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639828', 'tblTempVendorCDR_20' ) start [2025-03-09 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639828', 'tblTempVendorCDR_20' ) end [2025-03-09 04:46:17] Production.INFO: ProcessCDR(1,14639828,1,1,2) [2025-03-09 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639828', 'tblTempUsageDetail_20' ) start [2025-03-09 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639828', 'tblTempUsageDetail_20' ) end [2025-03-09 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:46:21] Production.INFO: ==11712== Releasing lock... [2025-03-09 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:47:06 [end_date_ymd] => 2025-03-09 05:47:06 [RateCDR] => 1 ) [2025-03-09 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:47:06' and `end` < '2025-03-09 05:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:47:18] Production.INFO: count ==303 [2025-03-09 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:47:06 - End Time 2025-03-09 05:47:06 [2025-03-09 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639833', 'tblTempUsageDetail_20' ) start [2025-03-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639833', 'tblTempUsageDetail_20' ) end [2025-03-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639833', 'tblTempVendorCDR_20' ) start [2025-03-09 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639833', 'tblTempVendorCDR_20' ) end [2025-03-09 04:47:18] Production.INFO: ProcessCDR(1,14639833,1,1,2) [2025-03-09 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639833', 'tblTempUsageDetail_20' ) start [2025-03-09 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639833', 'tblTempUsageDetail_20' ) end [2025-03-09 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:47:21] Production.INFO: ==11788== Releasing lock... [2025-03-09 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:47:21] Production.INFO: 31 MB #Memory Used# [2025-03-09 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:48:05 [end_date_ymd] => 2025-03-09 05:48:05 [RateCDR] => 1 ) [2025-03-09 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:48:05' and `end` < '2025-03-09 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-09 04:48:17] Production.INFO: count ==344 [2025-03-09 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:48:05 - End Time 2025-03-09 05:48:05 [2025-03-09 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639838', 'tblTempUsageDetail_20' ) start [2025-03-09 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639838', 'tblTempUsageDetail_20' ) end [2025-03-09 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639838', 'tblTempVendorCDR_20' ) start [2025-03-09 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639838', 'tblTempVendorCDR_20' ) end [2025-03-09 04:48:17] Production.INFO: ProcessCDR(1,14639838,1,1,2) [2025-03-09 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639838', 'tblTempUsageDetail_20' ) start [2025-03-09 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639838', 'tblTempUsageDetail_20' ) end [2025-03-09 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:48:21] Production.INFO: ==11861== Releasing lock... [2025-03-09 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:49:06 [end_date_ymd] => 2025-03-09 05:49:06 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:49:06' and `end` < '2025-03-09 05:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:49:18] Production.INFO: count ==427 [2025-03-09 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:49:06 - End Time 2025-03-09 05:49:06 [2025-03-09 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639843', 'tblTempUsageDetail_20' ) start [2025-03-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639843', 'tblTempUsageDetail_20' ) end [2025-03-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639843', 'tblTempVendorCDR_20' ) start [2025-03-09 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639843', 'tblTempVendorCDR_20' ) end [2025-03-09 04:49:18] Production.INFO: ProcessCDR(1,14639843,1,1,2) [2025-03-09 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639843', 'tblTempUsageDetail_20' ) start [2025-03-09 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639843', 'tblTempUsageDetail_20' ) end [2025-03-09 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:49:22] Production.INFO: ==11973== Releasing lock... [2025-03-09 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:50:05 [end_date_ymd] => 2025-03-09 05:50:05 [RateCDR] => 1 ) [2025-03-09 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:50:05' and `end` < '2025-03-09 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-09 04:50:18] Production.INFO: count ==419 [2025-03-09 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:50:05 - End Time 2025-03-09 05:50:05 [2025-03-09 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639849', 'tblTempUsageDetail_20' ) start [2025-03-09 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639849', 'tblTempUsageDetail_20' ) end [2025-03-09 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639849', 'tblTempVendorCDR_20' ) start [2025-03-09 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639849', 'tblTempVendorCDR_20' ) end [2025-03-09 04:50:18] Production.INFO: ProcessCDR(1,14639849,1,1,2) [2025-03-09 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639849', 'tblTempUsageDetail_20' ) start [2025-03-09 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639849', 'tblTempUsageDetail_20' ) end [2025-03-09 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:50:21] Production.INFO: ==12045== Releasing lock... [2025-03-09 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:51:05 [end_date_ymd] => 2025-03-09 05:51:05 [RateCDR] => 1 ) [2025-03-09 04: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-09 01:51:05' and `end` < '2025-03-09 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:51:18] Production.INFO: count ==419 [2025-03-09 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:51:05 - End Time 2025-03-09 05:51:05 [2025-03-09 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639854', 'tblTempUsageDetail_20' ) start [2025-03-09 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639854', 'tblTempUsageDetail_20' ) end [2025-03-09 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639854', 'tblTempVendorCDR_20' ) start [2025-03-09 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639854', 'tblTempVendorCDR_20' ) end [2025-03-09 04:51:18] Production.INFO: ProcessCDR(1,14639854,1,1,2) [2025-03-09 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639854', 'tblTempUsageDetail_20' ) start [2025-03-09 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639854', 'tblTempUsageDetail_20' ) end [2025-03-09 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:51:21] Production.INFO: ==12119== Releasing lock... [2025-03-09 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:52:06 [end_date_ymd] => 2025-03-09 05:52:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:52:06' and `end` < '2025-03-09 05: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-09 04:52:18] Production.INFO: count ==419 [2025-03-09 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:52:06 - End Time 2025-03-09 05:52:06 [2025-03-09 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639859', 'tblTempUsageDetail_20' ) start [2025-03-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639859', 'tblTempUsageDetail_20' ) end [2025-03-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639859', 'tblTempVendorCDR_20' ) start [2025-03-09 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639859', 'tblTempVendorCDR_20' ) end [2025-03-09 04:52:18] Production.INFO: ProcessCDR(1,14639859,1,1,2) [2025-03-09 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639859', 'tblTempUsageDetail_20' ) start [2025-03-09 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639859', 'tblTempUsageDetail_20' ) end [2025-03-09 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:52:21] Production.INFO: ==12196== Releasing lock... [2025-03-09 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:53:05 [end_date_ymd] => 2025-03-09 05:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:53:05' and `end` < '2025-03-09 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-09 04:53:18] Production.INFO: count ==419 [2025-03-09 04:53:19] Production.ERROR: pbx CDR StartTime 2025-03-09 01:53:05 - End Time 2025-03-09 05:53:05 [2025-03-09 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639864', 'tblTempUsageDetail_20' ) start [2025-03-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639864', 'tblTempUsageDetail_20' ) end [2025-03-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639864', 'tblTempVendorCDR_20' ) start [2025-03-09 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639864', 'tblTempVendorCDR_20' ) end [2025-03-09 04:53:19] Production.INFO: ProcessCDR(1,14639864,1,1,2) [2025-03-09 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639864', 'tblTempUsageDetail_20' ) start [2025-03-09 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639864', 'tblTempUsageDetail_20' ) end [2025-03-09 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:53:22] Production.INFO: ==12273== Releasing lock... [2025-03-09 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:54:05 [end_date_ymd] => 2025-03-09 05:54:05 [RateCDR] => 1 ) [2025-03-09 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:54:05' and `end` < '2025-03-09 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-09 04:54:18] Production.INFO: count ==419 [2025-03-09 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:54:05 - End Time 2025-03-09 05:54:05 [2025-03-09 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639869', 'tblTempUsageDetail_20' ) start [2025-03-09 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639869', 'tblTempUsageDetail_20' ) end [2025-03-09 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639869', 'tblTempVendorCDR_20' ) start [2025-03-09 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639869', 'tblTempVendorCDR_20' ) end [2025-03-09 04:54:18] Production.INFO: ProcessCDR(1,14639869,1,1,2) [2025-03-09 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639869', 'tblTempUsageDetail_20' ) start [2025-03-09 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639869', 'tblTempUsageDetail_20' ) end [2025-03-09 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:54:22] Production.INFO: ==12350== Releasing lock... [2025-03-09 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:55:05 [end_date_ymd] => 2025-03-09 05:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:55:05' and `end` < '2025-03-09 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 04:55:18] Production.INFO: count ==412 [2025-03-09 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:55:05 - End Time 2025-03-09 05:55:05 [2025-03-09 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639874', 'tblTempUsageDetail_20' ) start [2025-03-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639874', 'tblTempUsageDetail_20' ) end [2025-03-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639874', 'tblTempVendorCDR_20' ) start [2025-03-09 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639874', 'tblTempVendorCDR_20' ) end [2025-03-09 04:55:18] Production.INFO: ProcessCDR(1,14639874,1,1,2) [2025-03-09 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639874', 'tblTempUsageDetail_20' ) start [2025-03-09 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639874', 'tblTempUsageDetail_20' ) end [2025-03-09 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:55:21] Production.INFO: ==12431== Releasing lock... [2025-03-09 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:56:05 [end_date_ymd] => 2025-03-09 05:56:05 [RateCDR] => 1 ) [2025-03-09 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 01:56:05' and `end` < '2025-03-09 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-09 04:56:17] Production.INFO: count ==405 [2025-03-09 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:56:05 - End Time 2025-03-09 05:56:05 [2025-03-09 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639879', 'tblTempUsageDetail_20' ) start [2025-03-09 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639879', 'tblTempUsageDetail_20' ) end [2025-03-09 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639879', 'tblTempVendorCDR_20' ) start [2025-03-09 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639879', 'tblTempVendorCDR_20' ) end [2025-03-09 04:56:17] Production.INFO: ProcessCDR(1,14639879,1,1,2) [2025-03-09 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639879', 'tblTempUsageDetail_20' ) start [2025-03-09 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639879', 'tblTempUsageDetail_20' ) end [2025-03-09 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:56:21] Production.INFO: ==12506== Releasing lock... [2025-03-09 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:56:21] Production.INFO: 32 MB #Memory Used# [2025-03-09 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:57:05 [end_date_ymd] => 2025-03-09 05:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:57:05' and `end` < '2025-03-09 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-09 04:57:17] Production.INFO: count ==396 [2025-03-09 04:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 01:57:05 - End Time 2025-03-09 05:57:05 [2025-03-09 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639884', 'tblTempUsageDetail_20' ) start [2025-03-09 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639884', 'tblTempUsageDetail_20' ) end [2025-03-09 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639884', 'tblTempVendorCDR_20' ) start [2025-03-09 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639884', 'tblTempVendorCDR_20' ) end [2025-03-09 04:57:17] Production.INFO: ProcessCDR(1,14639884,1,1,2) [2025-03-09 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639884', 'tblTempUsageDetail_20' ) start [2025-03-09 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639884', 'tblTempUsageDetail_20' ) end [2025-03-09 04:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:57:20] Production.INFO: ==12579== Releasing lock... [2025-03-09 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:57:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:58:06 [end_date_ymd] => 2025-03-09 05:58:06 [RateCDR] => 1 ) [2025-03-09 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-09 01:58:06' and `end` < '2025-03-09 05: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-09 04:58:18] Production.INFO: count ==396 [2025-03-09 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:58:06 - End Time 2025-03-09 05:58:06 [2025-03-09 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639889', 'tblTempUsageDetail_20' ) start [2025-03-09 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639889', 'tblTempUsageDetail_20' ) end [2025-03-09 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639889', 'tblTempVendorCDR_20' ) start [2025-03-09 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639889', 'tblTempVendorCDR_20' ) end [2025-03-09 04:58:18] Production.INFO: ProcessCDR(1,14639889,1,1,2) [2025-03-09 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639889', 'tblTempUsageDetail_20' ) start [2025-03-09 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639889', 'tblTempUsageDetail_20' ) end [2025-03-09 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:58:22] Production.INFO: ==12653== Releasing lock... [2025-03-09 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 01:59:05 [end_date_ymd] => 2025-03-09 05:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 01:59:05' and `end` < '2025-03-09 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-09 04:59:18] Production.INFO: count ==506 [2025-03-09 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 01:59:05 - End Time 2025-03-09 05:59:05 [2025-03-09 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639894', 'tblTempUsageDetail_20' ) start [2025-03-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639894', 'tblTempUsageDetail_20' ) end [2025-03-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639894', 'tblTempVendorCDR_20' ) start [2025-03-09 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639894', 'tblTempVendorCDR_20' ) end [2025-03-09 04:59:18] Production.INFO: ProcessCDR(1,14639894,1,1,2) [2025-03-09 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639894', 'tblTempUsageDetail_20' ) start [2025-03-09 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639894', 'tblTempUsageDetail_20' ) end [2025-03-09 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 04:59:21] Production.INFO: ==12726== Releasing lock... [2025-03-09 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 04:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:00:06 [end_date_ymd] => 2025-03-09 06:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 03:00:06' and `end` < '2025-03-09 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-09 05:00:19] Production.INFO: count ==512 [2025-03-09 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-09 03:00:06 - End Time 2025-03-09 06:00:06 [2025-03-09 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639899', 'tblTempUsageDetail_20' ) start [2025-03-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639899', 'tblTempUsageDetail_20' ) end [2025-03-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639899', 'tblTempVendorCDR_20' ) start [2025-03-09 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639899', 'tblTempVendorCDR_20' ) end [2025-03-09 05:00:19] Production.INFO: ProcessCDR(1,14639899,1,1,2) [2025-03-09 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639899', 'tblTempUsageDetail_20' ) start [2025-03-09 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639899', 'tblTempUsageDetail_20' ) end [2025-03-09 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:00:22] Production.INFO: ==12800== Releasing lock... [2025-03-09 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:01:05 [end_date_ymd] => 2025-03-09 06:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:01:05' and `end` < '2025-03-09 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-09 05:01:17] Production.INFO: count ==517 [2025-03-09 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:01:05 - End Time 2025-03-09 06:01:05 [2025-03-09 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639905', 'tblTempUsageDetail_20' ) start [2025-03-09 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639905', 'tblTempUsageDetail_20' ) end [2025-03-09 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639905', 'tblTempVendorCDR_20' ) start [2025-03-09 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639905', 'tblTempVendorCDR_20' ) end [2025-03-09 05:01:18] Production.INFO: ProcessCDR(1,14639905,1,1,2) [2025-03-09 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639905', 'tblTempUsageDetail_20' ) start [2025-03-09 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639905', 'tblTempUsageDetail_20' ) end [2025-03-09 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:01:21] Production.INFO: ==12890== Releasing lock... [2025-03-09 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:02:05 [end_date_ymd] => 2025-03-09 06:02:05 [RateCDR] => 1 ) [2025-03-09 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:02:05' and `end` < '2025-03-09 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:02:19] Production.INFO: count ==559 [2025-03-09 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-09 03:02:05 - End Time 2025-03-09 06:02:05 [2025-03-09 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639910', 'tblTempUsageDetail_20' ) start [2025-03-09 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639910', 'tblTempUsageDetail_20' ) end [2025-03-09 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639910', 'tblTempVendorCDR_20' ) start [2025-03-09 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639910', 'tblTempVendorCDR_20' ) end [2025-03-09 05:02:19] Production.INFO: ProcessCDR(1,14639910,1,1,2) [2025-03-09 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639910', 'tblTempUsageDetail_20' ) start [2025-03-09 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639910', 'tblTempUsageDetail_20' ) end [2025-03-09 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:02:22] Production.INFO: ==12965== Releasing lock... [2025-03-09 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:03:05 [end_date_ymd] => 2025-03-09 06:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:03:05' and `end` < '2025-03-09 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-09 05:03:17] Production.INFO: count ==558 [2025-03-09 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:03:05 - End Time 2025-03-09 06:03:05 [2025-03-09 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639915', 'tblTempUsageDetail_20' ) start [2025-03-09 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639915', 'tblTempUsageDetail_20' ) end [2025-03-09 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639915', 'tblTempVendorCDR_20' ) start [2025-03-09 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639915', 'tblTempVendorCDR_20' ) end [2025-03-09 05:03:17] Production.INFO: ProcessCDR(1,14639915,1,1,2) [2025-03-09 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639915', 'tblTempUsageDetail_20' ) start [2025-03-09 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639915', 'tblTempUsageDetail_20' ) end [2025-03-09 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:03:20] Production.INFO: ==13037== Releasing lock... [2025-03-09 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:03:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:04:05 [end_date_ymd] => 2025-03-09 06:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:04:05' and `end` < '2025-03-09 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-09 05:04:18] Production.INFO: count ==557 [2025-03-09 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:04:05 - End Time 2025-03-09 06:04:05 [2025-03-09 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639920', 'tblTempUsageDetail_20' ) start [2025-03-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639920', 'tblTempUsageDetail_20' ) end [2025-03-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639920', 'tblTempVendorCDR_20' ) start [2025-03-09 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639920', 'tblTempVendorCDR_20' ) end [2025-03-09 05:04:18] Production.INFO: ProcessCDR(1,14639920,1,1,2) [2025-03-09 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639920', 'tblTempUsageDetail_20' ) start [2025-03-09 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639920', 'tblTempUsageDetail_20' ) end [2025-03-09 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:04:21] Production.INFO: ==13150== Releasing lock... [2025-03-09 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:05:05 [end_date_ymd] => 2025-03-09 06:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:05:05' and `end` < '2025-03-09 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-09 05:05:17] Production.INFO: count ==557 [2025-03-09 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:05:05 - End Time 2025-03-09 06:05:05 [2025-03-09 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639925', 'tblTempUsageDetail_20' ) start [2025-03-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639925', 'tblTempUsageDetail_20' ) end [2025-03-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639925', 'tblTempVendorCDR_20' ) start [2025-03-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639925', 'tblTempVendorCDR_20' ) end [2025-03-09 05:05:17] Production.INFO: ProcessCDR(1,14639925,1,1,2) [2025-03-09 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639925', 'tblTempUsageDetail_20' ) start [2025-03-09 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639925', 'tblTempUsageDetail_20' ) end [2025-03-09 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:05:20] Production.INFO: ==13223== Releasing lock... [2025-03-09 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:05:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:06:05 [end_date_ymd] => 2025-03-09 06:06:05 [RateCDR] => 1 ) [2025-03-09 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:06:05' and `end` < '2025-03-09 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:06:18] Production.INFO: count ==554 [2025-03-09 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:06:05 - End Time 2025-03-09 06:06:05 [2025-03-09 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639930', 'tblTempUsageDetail_20' ) start [2025-03-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639930', 'tblTempUsageDetail_20' ) end [2025-03-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639930', 'tblTempVendorCDR_20' ) start [2025-03-09 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639930', 'tblTempVendorCDR_20' ) end [2025-03-09 05:06:18] Production.INFO: ProcessCDR(1,14639930,1,1,2) [2025-03-09 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639930', 'tblTempUsageDetail_20' ) start [2025-03-09 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639930', 'tblTempUsageDetail_20' ) end [2025-03-09 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:06:21] Production.INFO: ==13300== Releasing lock... [2025-03-09 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:07:05 [end_date_ymd] => 2025-03-09 06:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:07:05' and `end` < '2025-03-09 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-09 05:07:17] Production.INFO: count ==554 [2025-03-09 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:07:05 - End Time 2025-03-09 06:07:05 [2025-03-09 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639935', 'tblTempUsageDetail_20' ) start [2025-03-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639935', 'tblTempUsageDetail_20' ) end [2025-03-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639935', 'tblTempVendorCDR_20' ) start [2025-03-09 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639935', 'tblTempVendorCDR_20' ) end [2025-03-09 05:07:17] Production.INFO: ProcessCDR(1,14639935,1,1,2) [2025-03-09 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639935', 'tblTempUsageDetail_20' ) start [2025-03-09 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639935', 'tblTempUsageDetail_20' ) end [2025-03-09 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:07:20] Production.INFO: ==13373== Releasing lock... [2025-03-09 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:07:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:08:05 [end_date_ymd] => 2025-03-09 06:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:08:05' and `end` < '2025-03-09 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:08:17] Production.INFO: count ==553 [2025-03-09 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:08:05 - End Time 2025-03-09 06:08:05 [2025-03-09 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639940', 'tblTempUsageDetail_20' ) start [2025-03-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639940', 'tblTempUsageDetail_20' ) end [2025-03-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639940', 'tblTempVendorCDR_20' ) start [2025-03-09 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639940', 'tblTempVendorCDR_20' ) end [2025-03-09 05:08:18] Production.INFO: ProcessCDR(1,14639940,1,1,2) [2025-03-09 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639940', 'tblTempUsageDetail_20' ) start [2025-03-09 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639940', 'tblTempUsageDetail_20' ) end [2025-03-09 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:08:21] Production.INFO: ==13454== Releasing lock... [2025-03-09 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:09:05 [end_date_ymd] => 2025-03-09 06:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:09:05' and `end` < '2025-03-09 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:09:17] Production.INFO: count ==553 [2025-03-09 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:09:05 - End Time 2025-03-09 06:09:05 [2025-03-09 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639945', 'tblTempUsageDetail_20' ) start [2025-03-09 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639945', 'tblTempUsageDetail_20' ) end [2025-03-09 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639945', 'tblTempVendorCDR_20' ) start [2025-03-09 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639945', 'tblTempVendorCDR_20' ) end [2025-03-09 05:09:17] Production.INFO: ProcessCDR(1,14639945,1,1,2) [2025-03-09 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639945', 'tblTempUsageDetail_20' ) start [2025-03-09 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639945', 'tblTempUsageDetail_20' ) end [2025-03-09 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:09:20] Production.INFO: ==13532== Releasing lock... [2025-03-09 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:09:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:10:06 [end_date_ymd] => 2025-03-09 06:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 03:10:06' and `end` < '2025-03-09 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-09 05:10:18] Production.INFO: count ==561 [2025-03-09 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:10:06 - End Time 2025-03-09 06:10:06 [2025-03-09 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639951', 'tblTempUsageDetail_20' ) start [2025-03-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639951', 'tblTempUsageDetail_20' ) end [2025-03-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639951', 'tblTempVendorCDR_20' ) start [2025-03-09 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639951', 'tblTempVendorCDR_20' ) end [2025-03-09 05:10:18] Production.INFO: ProcessCDR(1,14639951,1,1,2) [2025-03-09 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639951', 'tblTempUsageDetail_20' ) start [2025-03-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639951', 'tblTempUsageDetail_20' ) end [2025-03-09 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:10:22] Production.INFO: ==13609== Releasing lock... [2025-03-09 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:10:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:11:04 [end_date_ymd] => 2025-03-09 06:11:04 [RateCDR] => 1 ) [2025-03-09 05: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-09 03:11:04' and `end` < '2025-03-09 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-09 05:11:17] Production.INFO: count ==561 [2025-03-09 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:11:04 - End Time 2025-03-09 06:11:04 [2025-03-09 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639956', 'tblTempUsageDetail_20' ) start [2025-03-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639956', 'tblTempUsageDetail_20' ) end [2025-03-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639956', 'tblTempVendorCDR_20' ) start [2025-03-09 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639956', 'tblTempVendorCDR_20' ) end [2025-03-09 05:11:17] Production.INFO: ProcessCDR(1,14639956,1,1,2) [2025-03-09 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639956', 'tblTempUsageDetail_20' ) start [2025-03-09 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639956', 'tblTempUsageDetail_20' ) end [2025-03-09 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:11:20] Production.INFO: ==13686== Releasing lock... [2025-03-09 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:11:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:12:05 [end_date_ymd] => 2025-03-09 06:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:12:05' and `end` < '2025-03-09 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-09 05:12:17] Production.INFO: count ==560 [2025-03-09 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:12:05 - End Time 2025-03-09 06:12:05 [2025-03-09 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639961', 'tblTempUsageDetail_20' ) start [2025-03-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639961', 'tblTempUsageDetail_20' ) end [2025-03-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639961', 'tblTempVendorCDR_20' ) start [2025-03-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639961', 'tblTempVendorCDR_20' ) end [2025-03-09 05:12:18] Production.INFO: ProcessCDR(1,14639961,1,1,2) [2025-03-09 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639961', 'tblTempUsageDetail_20' ) start [2025-03-09 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639961', 'tblTempUsageDetail_20' ) end [2025-03-09 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:12:21] Production.INFO: ==13761== Releasing lock... [2025-03-09 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:13:04 [end_date_ymd] => 2025-03-09 06:13:04 [RateCDR] => 1 ) [2025-03-09 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:13:04' and `end` < '2025-03-09 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:13:16] Production.INFO: count ==559 [2025-03-09 05:13:16] Production.ERROR: pbx CDR StartTime 2025-03-09 03:13:04 - End Time 2025-03-09 06:13:04 [2025-03-09 05:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639966', 'tblTempUsageDetail_20' ) start [2025-03-09 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639966', 'tblTempUsageDetail_20' ) end [2025-03-09 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639966', 'tblTempVendorCDR_20' ) start [2025-03-09 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639966', 'tblTempVendorCDR_20' ) end [2025-03-09 05:13:16] Production.INFO: ProcessCDR(1,14639966,1,1,2) [2025-03-09 05:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639966', 'tblTempUsageDetail_20' ) start [2025-03-09 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639966', 'tblTempUsageDetail_20' ) end [2025-03-09 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:13:20] Production.INFO: ==13834== Releasing lock... [2025-03-09 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:13:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:14:05 [end_date_ymd] => 2025-03-09 06:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:14:05' and `end` < '2025-03-09 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:14:17] Production.INFO: count ==559 [2025-03-09 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:14:05 - End Time 2025-03-09 06:14:05 [2025-03-09 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639971', 'tblTempUsageDetail_20' ) start [2025-03-09 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639971', 'tblTempUsageDetail_20' ) end [2025-03-09 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639971', 'tblTempVendorCDR_20' ) start [2025-03-09 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639971', 'tblTempVendorCDR_20' ) end [2025-03-09 05:14:17] Production.INFO: ProcessCDR(1,14639971,1,1,2) [2025-03-09 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639971', 'tblTempUsageDetail_20' ) start [2025-03-09 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639971', 'tblTempUsageDetail_20' ) end [2025-03-09 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:14:20] Production.INFO: ==13908== Releasing lock... [2025-03-09 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:14:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:15:06 [end_date_ymd] => 2025-03-09 06:15:06 [RateCDR] => 1 ) [2025-03-09 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-09 03:15:06' and `end` < '2025-03-09 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-09 05:15:18] Production.INFO: count ==559 [2025-03-09 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:15:06 - End Time 2025-03-09 06:15:06 [2025-03-09 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639976', 'tblTempUsageDetail_20' ) start [2025-03-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639976', 'tblTempUsageDetail_20' ) end [2025-03-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639976', 'tblTempVendorCDR_20' ) start [2025-03-09 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639976', 'tblTempVendorCDR_20' ) end [2025-03-09 05:15:18] Production.INFO: ProcessCDR(1,14639976,1,1,2) [2025-03-09 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639976', 'tblTempUsageDetail_20' ) start [2025-03-09 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639976', 'tblTempUsageDetail_20' ) end [2025-03-09 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:15:21] Production.INFO: ==13983== Releasing lock... [2025-03-09 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:16:05 [end_date_ymd] => 2025-03-09 06:16:05 [RateCDR] => 1 ) [2025-03-09 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:16:05' and `end` < '2025-03-09 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-09 05:16:17] Production.INFO: count ==559 [2025-03-09 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:16:05 - End Time 2025-03-09 06:16:05 [2025-03-09 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639981', 'tblTempUsageDetail_20' ) start [2025-03-09 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639981', 'tblTempUsageDetail_20' ) end [2025-03-09 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639981', 'tblTempVendorCDR_20' ) start [2025-03-09 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639981', 'tblTempVendorCDR_20' ) end [2025-03-09 05:16:17] Production.INFO: ProcessCDR(1,14639981,1,1,2) [2025-03-09 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639981', 'tblTempUsageDetail_20' ) start [2025-03-09 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639981', 'tblTempUsageDetail_20' ) end [2025-03-09 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:16:20] Production.INFO: ==14058== Releasing lock... [2025-03-09 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:16:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:17:05 [end_date_ymd] => 2025-03-09 06:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:17:05' and `end` < '2025-03-09 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:17:17] Production.INFO: count ==559 [2025-03-09 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:17:05 - End Time 2025-03-09 06:17:05 [2025-03-09 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639986', 'tblTempUsageDetail_20' ) start [2025-03-09 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639986', 'tblTempUsageDetail_20' ) end [2025-03-09 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639986', 'tblTempVendorCDR_20' ) start [2025-03-09 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639986', 'tblTempVendorCDR_20' ) end [2025-03-09 05:17:17] Production.INFO: ProcessCDR(1,14639986,1,1,2) [2025-03-09 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639986', 'tblTempUsageDetail_20' ) start [2025-03-09 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639986', 'tblTempUsageDetail_20' ) end [2025-03-09 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:17:20] Production.INFO: ==14132== Releasing lock... [2025-03-09 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:17:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:18:05 [end_date_ymd] => 2025-03-09 06:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:18:05' and `end` < '2025-03-09 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:18:17] Production.INFO: count ==560 [2025-03-09 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:18:05 - End Time 2025-03-09 06:18:05 [2025-03-09 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639991', 'tblTempUsageDetail_20' ) start [2025-03-09 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639991', 'tblTempUsageDetail_20' ) end [2025-03-09 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639991', 'tblTempVendorCDR_20' ) start [2025-03-09 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639991', 'tblTempVendorCDR_20' ) end [2025-03-09 05:18:17] Production.INFO: ProcessCDR(1,14639991,1,1,2) [2025-03-09 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639991', 'tblTempUsageDetail_20' ) start [2025-03-09 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639991', 'tblTempUsageDetail_20' ) end [2025-03-09 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:18:22] Production.INFO: ==14218== Releasing lock... [2025-03-09 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:19:05 [end_date_ymd] => 2025-03-09 06:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:19:05' and `end` < '2025-03-09 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-09 05:19:17] Production.INFO: count ==560 [2025-03-09 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:19:05 - End Time 2025-03-09 06:19:05 [2025-03-09 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639996', 'tblTempUsageDetail_20' ) start [2025-03-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14639996', 'tblTempUsageDetail_20' ) end [2025-03-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639996', 'tblTempVendorCDR_20' ) start [2025-03-09 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14639996', 'tblTempVendorCDR_20' ) end [2025-03-09 05:19:18] Production.INFO: ProcessCDR(1,14639996,1,1,2) [2025-03-09 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14639996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14639996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14639996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14639996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639996', 'tblTempUsageDetail_20' ) start [2025-03-09 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14639996', 'tblTempUsageDetail_20' ) end [2025-03-09 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:19:21] Production.INFO: ==14338== Releasing lock... [2025-03-09 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:20:05 [end_date_ymd] => 2025-03-09 06:20:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:20:05' and `end` < '2025-03-09 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:20:17] Production.INFO: count ==552 [2025-03-09 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:20:05 - End Time 2025-03-09 06:20:05 [2025-03-09 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640001', 'tblTempUsageDetail_20' ) start [2025-03-09 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640001', 'tblTempUsageDetail_20' ) end [2025-03-09 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640001', 'tblTempVendorCDR_20' ) start [2025-03-09 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640001', 'tblTempVendorCDR_20' ) end [2025-03-09 05:20:18] Production.INFO: ProcessCDR(1,14640001,1,1,2) [2025-03-09 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640001', 'tblTempUsageDetail_20' ) start [2025-03-09 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640001', 'tblTempUsageDetail_20' ) end [2025-03-09 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:20:21] Production.INFO: ==14413== Releasing lock... [2025-03-09 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:20:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:21:05 [end_date_ymd] => 2025-03-09 06:21:05 [RateCDR] => 1 ) [2025-03-09 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:21:05' and `end` < '2025-03-09 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-09 05:21:18] Production.INFO: count ==552 [2025-03-09 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:21:05 - End Time 2025-03-09 06:21:05 [2025-03-09 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640007', 'tblTempUsageDetail_20' ) start [2025-03-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640007', 'tblTempUsageDetail_20' ) end [2025-03-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640007', 'tblTempVendorCDR_20' ) start [2025-03-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640007', 'tblTempVendorCDR_20' ) end [2025-03-09 05:21:18] Production.INFO: ProcessCDR(1,14640007,1,1,2) [2025-03-09 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640007', 'tblTempUsageDetail_20' ) start [2025-03-09 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640007', 'tblTempUsageDetail_20' ) end [2025-03-09 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:21:22] Production.INFO: ==14489== Releasing lock... [2025-03-09 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:21:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:22:05 [end_date_ymd] => 2025-03-09 06:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:22:05' and `end` < '2025-03-09 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-09 05:22:17] Production.INFO: count ==552 [2025-03-09 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:22:05 - End Time 2025-03-09 06:22:05 [2025-03-09 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640012', 'tblTempUsageDetail_20' ) start [2025-03-09 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640012', 'tblTempUsageDetail_20' ) end [2025-03-09 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640012', 'tblTempVendorCDR_20' ) start [2025-03-09 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640012', 'tblTempVendorCDR_20' ) end [2025-03-09 05:22:17] Production.INFO: ProcessCDR(1,14640012,1,1,2) [2025-03-09 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640012', 'tblTempUsageDetail_20' ) start [2025-03-09 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640012', 'tblTempUsageDetail_20' ) end [2025-03-09 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:22:20] Production.INFO: ==14559== Releasing lock... [2025-03-09 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:22:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:23:05 [end_date_ymd] => 2025-03-09 06:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:23:05' and `end` < '2025-03-09 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-09 05:23:18] Production.INFO: count ==552 [2025-03-09 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:23:05 - End Time 2025-03-09 06:23:05 [2025-03-09 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640017', 'tblTempUsageDetail_20' ) start [2025-03-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640017', 'tblTempUsageDetail_20' ) end [2025-03-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640017', 'tblTempVendorCDR_20' ) start [2025-03-09 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640017', 'tblTempVendorCDR_20' ) end [2025-03-09 05:23:18] Production.INFO: ProcessCDR(1,14640017,1,1,2) [2025-03-09 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640017', 'tblTempUsageDetail_20' ) start [2025-03-09 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640017', 'tblTempUsageDetail_20' ) end [2025-03-09 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:23:21] Production.INFO: ==14635== Releasing lock... [2025-03-09 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:24:04 [end_date_ymd] => 2025-03-09 06:24:04 [RateCDR] => 1 ) [2025-03-09 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-09 03:24:04' and `end` < '2025-03-09 06:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:24:17] Production.INFO: count ==552 [2025-03-09 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:24:04 - End Time 2025-03-09 06:24:04 [2025-03-09 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640022', 'tblTempUsageDetail_20' ) start [2025-03-09 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640022', 'tblTempUsageDetail_20' ) end [2025-03-09 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640022', 'tblTempVendorCDR_20' ) start [2025-03-09 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640022', 'tblTempVendorCDR_20' ) end [2025-03-09 05:24:17] Production.INFO: ProcessCDR(1,14640022,1,1,2) [2025-03-09 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640022', 'tblTempUsageDetail_20' ) start [2025-03-09 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640022', 'tblTempUsageDetail_20' ) end [2025-03-09 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:24:20] Production.INFO: ==14707== Releasing lock... [2025-03-09 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:24:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:25:05 [end_date_ymd] => 2025-03-09 06:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:25:05' and `end` < '2025-03-09 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-09 05:25:17] Production.INFO: count ==552 [2025-03-09 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:25:05 - End Time 2025-03-09 06:25:05 [2025-03-09 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640027', 'tblTempUsageDetail_20' ) start [2025-03-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640027', 'tblTempUsageDetail_20' ) end [2025-03-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640027', 'tblTempVendorCDR_20' ) start [2025-03-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640027', 'tblTempVendorCDR_20' ) end [2025-03-09 05:25:18] Production.INFO: ProcessCDR(1,14640027,1,1,2) [2025-03-09 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640027', 'tblTempUsageDetail_20' ) start [2025-03-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640027', 'tblTempUsageDetail_20' ) end [2025-03-09 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:25:21] Production.INFO: ==14777== Releasing lock... [2025-03-09 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:26:05 [end_date_ymd] => 2025-03-09 06:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:26:05' and `end` < '2025-03-09 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-09 05:26:17] Production.INFO: count ==552 [2025-03-09 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:26:05 - End Time 2025-03-09 06:26:05 [2025-03-09 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640032', 'tblTempUsageDetail_20' ) start [2025-03-09 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640032', 'tblTempUsageDetail_20' ) end [2025-03-09 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640032', 'tblTempVendorCDR_20' ) start [2025-03-09 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640032', 'tblTempVendorCDR_20' ) end [2025-03-09 05:26:17] Production.INFO: ProcessCDR(1,14640032,1,1,2) [2025-03-09 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640032', 'tblTempUsageDetail_20' ) start [2025-03-09 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640032', 'tblTempUsageDetail_20' ) end [2025-03-09 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:26:20] Production.INFO: ==14852== Releasing lock... [2025-03-09 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:26:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:27:05 [end_date_ymd] => 2025-03-09 06:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:27:05' and `end` < '2025-03-09 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-09 05:27:17] Production.INFO: count ==552 [2025-03-09 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:27:05 - End Time 2025-03-09 06:27:05 [2025-03-09 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640037', 'tblTempUsageDetail_20' ) start [2025-03-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640037', 'tblTempUsageDetail_20' ) end [2025-03-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640037', 'tblTempVendorCDR_20' ) start [2025-03-09 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640037', 'tblTempVendorCDR_20' ) end [2025-03-09 05:27:17] Production.INFO: ProcessCDR(1,14640037,1,1,2) [2025-03-09 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640037', 'tblTempUsageDetail_20' ) start [2025-03-09 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640037', 'tblTempUsageDetail_20' ) end [2025-03-09 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:27:20] Production.INFO: ==14921== Releasing lock... [2025-03-09 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:27:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:28:05 [end_date_ymd] => 2025-03-09 06:28:05 [RateCDR] => 1 ) [2025-03-09 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:28:05' and `end` < '2025-03-09 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-09 05:28:17] Production.INFO: count ==552 [2025-03-09 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:28:05 - End Time 2025-03-09 06:28:05 [2025-03-09 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640042', 'tblTempUsageDetail_20' ) start [2025-03-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640042', 'tblTempUsageDetail_20' ) end [2025-03-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640042', 'tblTempVendorCDR_20' ) start [2025-03-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640042', 'tblTempVendorCDR_20' ) end [2025-03-09 05:28:18] Production.INFO: ProcessCDR(1,14640042,1,1,2) [2025-03-09 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640042', 'tblTempUsageDetail_20' ) start [2025-03-09 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640042', 'tblTempUsageDetail_20' ) end [2025-03-09 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:28:21] Production.INFO: ==14993== Releasing lock... [2025-03-09 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:29:05 [end_date_ymd] => 2025-03-09 06:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:29:05' and `end` < '2025-03-09 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-09 05:29:17] Production.INFO: count ==552 [2025-03-09 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:29:05 - End Time 2025-03-09 06:29:05 [2025-03-09 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640047', 'tblTempUsageDetail_20' ) start [2025-03-09 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640047', 'tblTempUsageDetail_20' ) end [2025-03-09 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640047', 'tblTempVendorCDR_20' ) start [2025-03-09 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640047', 'tblTempVendorCDR_20' ) end [2025-03-09 05:29:17] Production.INFO: ProcessCDR(1,14640047,1,1,2) [2025-03-09 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640047', 'tblTempUsageDetail_20' ) start [2025-03-09 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640047', 'tblTempUsageDetail_20' ) end [2025-03-09 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:29:20] Production.INFO: ==15066== Releasing lock... [2025-03-09 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:29:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:30:06 [end_date_ymd] => 2025-03-09 06:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 03:30:06' and `end` < '2025-03-09 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-09 05:30:18] Production.INFO: count ==555 [2025-03-09 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:30:06 - End Time 2025-03-09 06:30:06 [2025-03-09 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640053', 'tblTempUsageDetail_20' ) start [2025-03-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640053', 'tblTempUsageDetail_20' ) end [2025-03-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640053', 'tblTempVendorCDR_20' ) start [2025-03-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640053', 'tblTempVendorCDR_20' ) end [2025-03-09 05:30:18] Production.INFO: ProcessCDR(1,14640053,1,1,2) [2025-03-09 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640053', 'tblTempUsageDetail_20' ) start [2025-03-09 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640053', 'tblTempUsageDetail_20' ) end [2025-03-09 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:30:21] Production.INFO: ==15143== Releasing lock... [2025-03-09 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:30:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:31:04 [end_date_ymd] => 2025-03-09 06:31:04 [RateCDR] => 1 ) [2025-03-09 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-09 03:31:04' and `end` < '2025-03-09 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:31:17] Production.INFO: count ==558 [2025-03-09 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:31:04 - End Time 2025-03-09 06:31:04 [2025-03-09 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640058', 'tblTempUsageDetail_20' ) start [2025-03-09 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640058', 'tblTempUsageDetail_20' ) end [2025-03-09 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640058', 'tblTempVendorCDR_20' ) start [2025-03-09 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640058', 'tblTempVendorCDR_20' ) end [2025-03-09 05:31:17] Production.INFO: ProcessCDR(1,14640058,1,1,2) [2025-03-09 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640058', 'tblTempUsageDetail_20' ) start [2025-03-09 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640058', 'tblTempUsageDetail_20' ) end [2025-03-09 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:31:20] Production.INFO: ==15222== Releasing lock... [2025-03-09 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:31:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:32:05 [end_date_ymd] => 2025-03-09 06:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:32:05' and `end` < '2025-03-09 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-09 05:32:17] Production.INFO: count ==558 [2025-03-09 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:32:05 - End Time 2025-03-09 06:32:05 [2025-03-09 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640063', 'tblTempUsageDetail_20' ) start [2025-03-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640063', 'tblTempUsageDetail_20' ) end [2025-03-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640063', 'tblTempVendorCDR_20' ) start [2025-03-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640063', 'tblTempVendorCDR_20' ) end [2025-03-09 05:32:18] Production.INFO: ProcessCDR(1,14640063,1,1,2) [2025-03-09 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640063', 'tblTempUsageDetail_20' ) start [2025-03-09 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640063', 'tblTempUsageDetail_20' ) end [2025-03-09 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:32:21] Production.INFO: ==15292== Releasing lock... [2025-03-09 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:33:05 [end_date_ymd] => 2025-03-09 06:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:33:05' and `end` < '2025-03-09 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-09 05:33:17] Production.INFO: count ==561 [2025-03-09 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:33:05 - End Time 2025-03-09 06:33:05 [2025-03-09 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640068', 'tblTempUsageDetail_20' ) start [2025-03-09 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640068', 'tblTempUsageDetail_20' ) end [2025-03-09 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640068', 'tblTempVendorCDR_20' ) start [2025-03-09 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640068', 'tblTempVendorCDR_20' ) end [2025-03-09 05:33:17] Production.INFO: ProcessCDR(1,14640068,1,1,2) [2025-03-09 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640068', 'tblTempUsageDetail_20' ) start [2025-03-09 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640068', 'tblTempUsageDetail_20' ) end [2025-03-09 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:33:20] Production.INFO: ==15373== Releasing lock... [2025-03-09 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:33:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:34:05 [end_date_ymd] => 2025-03-09 06:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:34:05' and `end` < '2025-03-09 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-09 05:34:17] Production.INFO: count ==561 [2025-03-09 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:34:05 - End Time 2025-03-09 06:34:05 [2025-03-09 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640073', 'tblTempUsageDetail_20' ) start [2025-03-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640073', 'tblTempUsageDetail_20' ) end [2025-03-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640073', 'tblTempVendorCDR_20' ) start [2025-03-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640073', 'tblTempVendorCDR_20' ) end [2025-03-09 05:34:18] Production.INFO: ProcessCDR(1,14640073,1,1,2) [2025-03-09 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640073', 'tblTempUsageDetail_20' ) start [2025-03-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640073', 'tblTempUsageDetail_20' ) end [2025-03-09 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:34:21] Production.INFO: ==15445== Releasing lock... [2025-03-09 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:35:04 [end_date_ymd] => 2025-03-09 06:35:04 [RateCDR] => 1 ) [2025-03-09 05: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-09 03:35:04' and `end` < '2025-03-09 06: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-09 05:35:17] Production.INFO: count ==561 [2025-03-09 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:35:04 - End Time 2025-03-09 06:35:04 [2025-03-09 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640078', 'tblTempUsageDetail_20' ) start [2025-03-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640078', 'tblTempUsageDetail_20' ) end [2025-03-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640078', 'tblTempVendorCDR_20' ) start [2025-03-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640078', 'tblTempVendorCDR_20' ) end [2025-03-09 05:35:17] Production.INFO: ProcessCDR(1,14640078,1,1,2) [2025-03-09 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640078', 'tblTempUsageDetail_20' ) start [2025-03-09 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640078', 'tblTempUsageDetail_20' ) end [2025-03-09 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:35:20] Production.INFO: ==15562== Releasing lock... [2025-03-09 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:35:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:36:05 [end_date_ymd] => 2025-03-09 06:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:36:05' and `end` < '2025-03-09 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-09 05:36:18] Production.INFO: count ==559 [2025-03-09 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:36:05 - End Time 2025-03-09 06:36:05 [2025-03-09 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640083', 'tblTempUsageDetail_20' ) start [2025-03-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640083', 'tblTempUsageDetail_20' ) end [2025-03-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640083', 'tblTempVendorCDR_20' ) start [2025-03-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640083', 'tblTempVendorCDR_20' ) end [2025-03-09 05:36:18] Production.INFO: ProcessCDR(1,14640083,1,1,2) [2025-03-09 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640083', 'tblTempUsageDetail_20' ) start [2025-03-09 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640083', 'tblTempUsageDetail_20' ) end [2025-03-09 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:36:21] Production.INFO: ==15638== Releasing lock... [2025-03-09 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:36:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:37:05 [end_date_ymd] => 2025-03-09 06:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:37:05' and `end` < '2025-03-09 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-09 05:37:17] Production.INFO: count ==557 [2025-03-09 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:37:05 - End Time 2025-03-09 06:37:05 [2025-03-09 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640088', 'tblTempUsageDetail_20' ) start [2025-03-09 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640088', 'tblTempUsageDetail_20' ) end [2025-03-09 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640088', 'tblTempVendorCDR_20' ) start [2025-03-09 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640088', 'tblTempVendorCDR_20' ) end [2025-03-09 05:37:17] Production.INFO: ProcessCDR(1,14640088,1,1,2) [2025-03-09 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640088', 'tblTempUsageDetail_20' ) start [2025-03-09 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640088', 'tblTempUsageDetail_20' ) end [2025-03-09 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:37:21] Production.INFO: ==15717== Releasing lock... [2025-03-09 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:37:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:38:05 [end_date_ymd] => 2025-03-09 06:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:38:05' and `end` < '2025-03-09 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:38:18] Production.INFO: count ==556 [2025-03-09 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:38:05 - End Time 2025-03-09 06:38:05 [2025-03-09 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640093', 'tblTempUsageDetail_20' ) start [2025-03-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640093', 'tblTempUsageDetail_20' ) end [2025-03-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640093', 'tblTempVendorCDR_20' ) start [2025-03-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640093', 'tblTempVendorCDR_20' ) end [2025-03-09 05:38:18] Production.INFO: ProcessCDR(1,14640093,1,1,2) [2025-03-09 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640093', 'tblTempUsageDetail_20' ) start [2025-03-09 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640093', 'tblTempUsageDetail_20' ) end [2025-03-09 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:38:21] Production.INFO: ==15787== Releasing lock... [2025-03-09 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:39:05 [end_date_ymd] => 2025-03-09 06:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:39:05' and `end` < '2025-03-09 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-09 05:39:17] Production.INFO: count ==555 [2025-03-09 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:39:05 - End Time 2025-03-09 06:39:05 [2025-03-09 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640098', 'tblTempUsageDetail_20' ) start [2025-03-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640098', 'tblTempUsageDetail_20' ) end [2025-03-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640098', 'tblTempVendorCDR_20' ) start [2025-03-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640098', 'tblTempVendorCDR_20' ) end [2025-03-09 05:39:17] Production.INFO: ProcessCDR(1,14640098,1,1,2) [2025-03-09 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640098', 'tblTempUsageDetail_20' ) start [2025-03-09 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640098', 'tblTempUsageDetail_20' ) end [2025-03-09 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:39:20] Production.INFO: ==15862== Releasing lock... [2025-03-09 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:39:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:40:05 [end_date_ymd] => 2025-03-09 06:40:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:40:05' and `end` < '2025-03-09 06: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-09 05:40:17] Production.INFO: count ==553 [2025-03-09 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:40:05 - End Time 2025-03-09 06:40:05 [2025-03-09 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640101', 'tblTempUsageDetail_20' ) start [2025-03-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640101', 'tblTempUsageDetail_20' ) end [2025-03-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640101', 'tblTempVendorCDR_20' ) start [2025-03-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640101', 'tblTempVendorCDR_20' ) end [2025-03-09 05:40:18] Production.INFO: ProcessCDR(1,14640101,1,1,2) [2025-03-09 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640101', 'tblTempUsageDetail_20' ) start [2025-03-09 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640101', 'tblTempUsageDetail_20' ) end [2025-03-09 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:40:21] Production.INFO: ==15939== Releasing lock... [2025-03-09 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:40:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:41:05 [end_date_ymd] => 2025-03-09 06:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:41:05' and `end` < '2025-03-09 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-09 05:41:17] Production.INFO: count ==553 [2025-03-09 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:41:05 - End Time 2025-03-09 06:41:05 [2025-03-09 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640109', 'tblTempUsageDetail_20' ) start [2025-03-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640109', 'tblTempUsageDetail_20' ) end [2025-03-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640109', 'tblTempVendorCDR_20' ) start [2025-03-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640109', 'tblTempVendorCDR_20' ) end [2025-03-09 05:41:17] Production.INFO: ProcessCDR(1,14640109,1,1,2) [2025-03-09 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640109', 'tblTempUsageDetail_20' ) start [2025-03-09 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640109', 'tblTempUsageDetail_20' ) end [2025-03-09 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:41:20] Production.INFO: ==16019== Releasing lock... [2025-03-09 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:41:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:42:05 [end_date_ymd] => 2025-03-09 06:42:05 [RateCDR] => 1 ) [2025-03-09 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:42:05' and `end` < '2025-03-09 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-09 05:42:17] Production.INFO: count ==553 [2025-03-09 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:42:05 - End Time 2025-03-09 06:42:05 [2025-03-09 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640114', 'tblTempUsageDetail_20' ) start [2025-03-09 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640114', 'tblTempUsageDetail_20' ) end [2025-03-09 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640114', 'tblTempVendorCDR_20' ) start [2025-03-09 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640114', 'tblTempVendorCDR_20' ) end [2025-03-09 05:42:17] Production.INFO: ProcessCDR(1,14640114,1,1,2) [2025-03-09 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640114', 'tblTempUsageDetail_20' ) start [2025-03-09 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640114', 'tblTempUsageDetail_20' ) end [2025-03-09 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:42:21] Production.INFO: ==16091== Releasing lock... [2025-03-09 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:43:05 [end_date_ymd] => 2025-03-09 06:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:43:05' and `end` < '2025-03-09 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-09 05:43:17] Production.INFO: count ==550 [2025-03-09 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:43:05 - End Time 2025-03-09 06:43:05 [2025-03-09 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640119', 'tblTempUsageDetail_20' ) start [2025-03-09 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640119', 'tblTempUsageDetail_20' ) end [2025-03-09 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640119', 'tblTempVendorCDR_20' ) start [2025-03-09 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640119', 'tblTempVendorCDR_20' ) end [2025-03-09 05:43:17] Production.INFO: ProcessCDR(1,14640119,1,1,2) [2025-03-09 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640119', 'tblTempUsageDetail_20' ) start [2025-03-09 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640119', 'tblTempUsageDetail_20' ) end [2025-03-09 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:43:20] Production.INFO: ==16166== Releasing lock... [2025-03-09 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:43:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:44:05 [end_date_ymd] => 2025-03-09 06:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:44:05' and `end` < '2025-03-09 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-09 05:44:17] Production.INFO: count ==550 [2025-03-09 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:44:05 - End Time 2025-03-09 06:44:05 [2025-03-09 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640124', 'tblTempUsageDetail_20' ) start [2025-03-09 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640124', 'tblTempUsageDetail_20' ) end [2025-03-09 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640124', 'tblTempVendorCDR_20' ) start [2025-03-09 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640124', 'tblTempVendorCDR_20' ) end [2025-03-09 05:44:17] Production.INFO: ProcessCDR(1,14640124,1,1,2) [2025-03-09 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640124', 'tblTempUsageDetail_20' ) start [2025-03-09 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640124', 'tblTempUsageDetail_20' ) end [2025-03-09 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:44:20] Production.INFO: ==16242== Releasing lock... [2025-03-09 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:44:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:45:05 [end_date_ymd] => 2025-03-09 06:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:45:05' and `end` < '2025-03-09 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-09 05:45:17] Production.INFO: count ==549 [2025-03-09 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:45:05 - End Time 2025-03-09 06:45:05 [2025-03-09 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640129', 'tblTempUsageDetail_20' ) start [2025-03-09 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640129', 'tblTempUsageDetail_20' ) end [2025-03-09 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640129', 'tblTempVendorCDR_20' ) start [2025-03-09 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640129', 'tblTempVendorCDR_20' ) end [2025-03-09 05:45:17] Production.INFO: ProcessCDR(1,14640129,1,1,2) [2025-03-09 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640129', 'tblTempUsageDetail_20' ) start [2025-03-09 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640129', 'tblTempUsageDetail_20' ) end [2025-03-09 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:45:20] Production.INFO: ==16319== Releasing lock... [2025-03-09 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:45:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:46:05 [end_date_ymd] => 2025-03-09 06:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:46:05' and `end` < '2025-03-09 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-09 05:46:17] Production.INFO: count ==549 [2025-03-09 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:46:05 - End Time 2025-03-09 06:46:05 [2025-03-09 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640134', 'tblTempUsageDetail_20' ) start [2025-03-09 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640134', 'tblTempUsageDetail_20' ) end [2025-03-09 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640134', 'tblTempVendorCDR_20' ) start [2025-03-09 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640134', 'tblTempVendorCDR_20' ) end [2025-03-09 05:46:17] Production.INFO: ProcessCDR(1,14640134,1,1,2) [2025-03-09 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640134', 'tblTempUsageDetail_20' ) start [2025-03-09 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640134', 'tblTempUsageDetail_20' ) end [2025-03-09 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:46:20] Production.INFO: ==16391== Releasing lock... [2025-03-09 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:46:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:47:05 [end_date_ymd] => 2025-03-09 06:47:05 [RateCDR] => 1 ) [2025-03-09 05:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:47:05' and `end` < '2025-03-09 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-09 05:47:18] Production.INFO: count ==549 [2025-03-09 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:47:05 - End Time 2025-03-09 06:47:05 [2025-03-09 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640139', 'tblTempUsageDetail_20' ) start [2025-03-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640139', 'tblTempUsageDetail_20' ) end [2025-03-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640139', 'tblTempVendorCDR_20' ) start [2025-03-09 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640139', 'tblTempVendorCDR_20' ) end [2025-03-09 05:47:18] Production.INFO: ProcessCDR(1,14640139,1,1,2) [2025-03-09 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640139', 'tblTempUsageDetail_20' ) start [2025-03-09 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640139', 'tblTempUsageDetail_20' ) end [2025-03-09 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:47:21] Production.INFO: ==16465== Releasing lock... [2025-03-09 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:48:05 [end_date_ymd] => 2025-03-09 06:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:48:05' and `end` < '2025-03-09 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-09 05:48:17] Production.INFO: count ==549 [2025-03-09 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:48:05 - End Time 2025-03-09 06:48:05 [2025-03-09 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640144', 'tblTempUsageDetail_20' ) start [2025-03-09 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640144', 'tblTempUsageDetail_20' ) end [2025-03-09 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640144', 'tblTempVendorCDR_20' ) start [2025-03-09 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640144', 'tblTempVendorCDR_20' ) end [2025-03-09 05:48:17] Production.INFO: ProcessCDR(1,14640144,1,1,2) [2025-03-09 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640144', 'tblTempUsageDetail_20' ) start [2025-03-09 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640144', 'tblTempUsageDetail_20' ) end [2025-03-09 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:48:20] Production.INFO: ==16538== Releasing lock... [2025-03-09 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:48:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:49:06 [end_date_ymd] => 2025-03-09 06:49:06 [RateCDR] => 1 ) [2025-03-09 05:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:49:06' and `end` < '2025-03-09 06:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:49:18] Production.INFO: count ==547 [2025-03-09 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:49:06 - End Time 2025-03-09 06:49:06 [2025-03-09 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640149', 'tblTempUsageDetail_20' ) start [2025-03-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640149', 'tblTempUsageDetail_20' ) end [2025-03-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640149', 'tblTempVendorCDR_20' ) start [2025-03-09 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640149', 'tblTempVendorCDR_20' ) end [2025-03-09 05:49:18] Production.INFO: ProcessCDR(1,14640149,1,1,2) [2025-03-09 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640149', 'tblTempUsageDetail_20' ) start [2025-03-09 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640149', 'tblTempUsageDetail_20' ) end [2025-03-09 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:49:21] Production.INFO: ==16615== Releasing lock... [2025-03-09 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:50:05 [end_date_ymd] => 2025-03-09 06:50:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:50:05' and `end` < '2025-03-09 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-09 05:50:17] Production.INFO: count ==546 [2025-03-09 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:50:05 - End Time 2025-03-09 06:50:05 [2025-03-09 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640155', 'tblTempUsageDetail_20' ) start [2025-03-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640155', 'tblTempUsageDetail_20' ) end [2025-03-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640155', 'tblTempVendorCDR_20' ) start [2025-03-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640155', 'tblTempVendorCDR_20' ) end [2025-03-09 05:50:18] Production.INFO: ProcessCDR(1,14640155,1,1,2) [2025-03-09 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640155', 'tblTempUsageDetail_20' ) start [2025-03-09 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640155', 'tblTempUsageDetail_20' ) end [2025-03-09 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:50:21] Production.INFO: ==16730== Releasing lock... [2025-03-09 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:50:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:51:05 [end_date_ymd] => 2025-03-09 06:51:05 [RateCDR] => 1 ) [2025-03-09 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:51:05' and `end` < '2025-03-09 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-09 05:51:17] Production.INFO: count ==546 [2025-03-09 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:51:05 - End Time 2025-03-09 06:51:05 [2025-03-09 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640160', 'tblTempUsageDetail_20' ) start [2025-03-09 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640160', 'tblTempUsageDetail_20' ) end [2025-03-09 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640160', 'tblTempVendorCDR_20' ) start [2025-03-09 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640160', 'tblTempVendorCDR_20' ) end [2025-03-09 05:51:17] Production.INFO: ProcessCDR(1,14640160,1,1,2) [2025-03-09 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640160', 'tblTempUsageDetail_20' ) start [2025-03-09 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640160', 'tblTempUsageDetail_20' ) end [2025-03-09 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:51:20] Production.INFO: ==16811== Releasing lock... [2025-03-09 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:51:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:52:04 [end_date_ymd] => 2025-03-09 06:52:04 [RateCDR] => 1 ) [2025-03-09 05: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-09 03:52:04' and `end` < '2025-03-09 06: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-09 05:52:16] Production.INFO: count ==545 [2025-03-09 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:52:04 - End Time 2025-03-09 06:52:04 [2025-03-09 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640165', 'tblTempUsageDetail_20' ) start [2025-03-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640165', 'tblTempUsageDetail_20' ) end [2025-03-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640165', 'tblTempVendorCDR_20' ) start [2025-03-09 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640165', 'tblTempVendorCDR_20' ) end [2025-03-09 05:52:17] Production.INFO: ProcessCDR(1,14640165,1,1,2) [2025-03-09 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640165', 'tblTempUsageDetail_20' ) start [2025-03-09 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640165', 'tblTempUsageDetail_20' ) end [2025-03-09 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:52:20] Production.INFO: ==16886== Releasing lock... [2025-03-09 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:52:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:53:05 [end_date_ymd] => 2025-03-09 06:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:53:05' and `end` < '2025-03-09 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:53:17] Production.INFO: count ==545 [2025-03-09 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:53:05 - End Time 2025-03-09 06:53:05 [2025-03-09 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640170', 'tblTempUsageDetail_20' ) start [2025-03-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640170', 'tblTempUsageDetail_20' ) end [2025-03-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640170', 'tblTempVendorCDR_20' ) start [2025-03-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640170', 'tblTempVendorCDR_20' ) end [2025-03-09 05:53:18] Production.INFO: ProcessCDR(1,14640170,1,1,2) [2025-03-09 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640170', 'tblTempUsageDetail_20' ) start [2025-03-09 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640170', 'tblTempUsageDetail_20' ) end [2025-03-09 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:53:21] Production.INFO: ==16967== Releasing lock... [2025-03-09 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:54:04 [end_date_ymd] => 2025-03-09 06:54:04 [RateCDR] => 1 ) [2025-03-09 05: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-09 03:54:04' and `end` < '2025-03-09 06: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-09 05:54:16] Production.INFO: count ==545 [2025-03-09 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:54:04 - End Time 2025-03-09 06:54:04 [2025-03-09 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640175', 'tblTempUsageDetail_20' ) start [2025-03-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640175', 'tblTempUsageDetail_20' ) end [2025-03-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640175', 'tblTempVendorCDR_20' ) start [2025-03-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640175', 'tblTempVendorCDR_20' ) end [2025-03-09 05:54:17] Production.INFO: ProcessCDR(1,14640175,1,1,2) [2025-03-09 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640175', 'tblTempUsageDetail_20' ) start [2025-03-09 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640175', 'tblTempUsageDetail_20' ) end [2025-03-09 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:54:20] Production.INFO: ==17040== Releasing lock... [2025-03-09 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:54:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:55:05 [end_date_ymd] => 2025-03-09 06:55:05 [RateCDR] => 1 ) [2025-03-09 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:55:05' and `end` < '2025-03-09 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:55:17] Production.INFO: count ==542 [2025-03-09 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:55:05 - End Time 2025-03-09 06:55:05 [2025-03-09 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640180', 'tblTempUsageDetail_20' ) start [2025-03-09 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640180', 'tblTempUsageDetail_20' ) end [2025-03-09 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640180', 'tblTempVendorCDR_20' ) start [2025-03-09 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640180', 'tblTempVendorCDR_20' ) end [2025-03-09 05:55:17] Production.INFO: ProcessCDR(1,14640180,1,1,2) [2025-03-09 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640180', 'tblTempUsageDetail_20' ) start [2025-03-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640180', 'tblTempUsageDetail_20' ) end [2025-03-09 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:55:21] Production.INFO: ==17115== Releasing lock... [2025-03-09 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:56:05 [end_date_ymd] => 2025-03-09 06:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:56:05' and `end` < '2025-03-09 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-09 05:56:17] Production.INFO: count ==542 [2025-03-09 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:56:05 - End Time 2025-03-09 06:56:05 [2025-03-09 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640185', 'tblTempUsageDetail_20' ) start [2025-03-09 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640185', 'tblTempUsageDetail_20' ) end [2025-03-09 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640185', 'tblTempVendorCDR_20' ) start [2025-03-09 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640185', 'tblTempVendorCDR_20' ) end [2025-03-09 05:56:17] Production.INFO: ProcessCDR(1,14640185,1,1,2) [2025-03-09 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640185', 'tblTempUsageDetail_20' ) start [2025-03-09 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640185', 'tblTempUsageDetail_20' ) end [2025-03-09 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:56:20] Production.INFO: ==17189== Releasing lock... [2025-03-09 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:56:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:57:05 [end_date_ymd] => 2025-03-09 06:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:57:05' and `end` < '2025-03-09 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 05:57:17] Production.INFO: count ==542 [2025-03-09 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:57:05 - End Time 2025-03-09 06:57:05 [2025-03-09 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640190', 'tblTempUsageDetail_20' ) start [2025-03-09 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640190', 'tblTempUsageDetail_20' ) end [2025-03-09 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640190', 'tblTempVendorCDR_20' ) start [2025-03-09 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640190', 'tblTempVendorCDR_20' ) end [2025-03-09 05:57:17] Production.INFO: ProcessCDR(1,14640190,1,1,2) [2025-03-09 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640190', 'tblTempUsageDetail_20' ) start [2025-03-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640190', 'tblTempUsageDetail_20' ) end [2025-03-09 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:57:21] Production.INFO: ==17263== Releasing lock... [2025-03-09 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:58:05 [end_date_ymd] => 2025-03-09 06:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:58:05' and `end` < '2025-03-09 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-09 05:58:17] Production.INFO: count ==542 [2025-03-09 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:58:05 - End Time 2025-03-09 06:58:05 [2025-03-09 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640195', 'tblTempUsageDetail_20' ) start [2025-03-09 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640195', 'tblTempUsageDetail_20' ) end [2025-03-09 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640195', 'tblTempVendorCDR_20' ) start [2025-03-09 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640195', 'tblTempVendorCDR_20' ) end [2025-03-09 05:58:17] Production.INFO: ProcessCDR(1,14640195,1,1,2) [2025-03-09 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640195', 'tblTempUsageDetail_20' ) start [2025-03-09 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640195', 'tblTempUsageDetail_20' ) end [2025-03-09 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:58:20] Production.INFO: ==17338== Releasing lock... [2025-03-09 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:58:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:59:05 [end_date_ymd] => 2025-03-09 06:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:59:05' and `end` < '2025-03-09 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-09 05:59:17] Production.INFO: count ==542 [2025-03-09 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:59:05 - End Time 2025-03-09 06:59:05 [2025-03-09 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640200', 'tblTempUsageDetail_20' ) start [2025-03-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640200', 'tblTempUsageDetail_20' ) end [2025-03-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640200', 'tblTempVendorCDR_20' ) start [2025-03-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640200', 'tblTempVendorCDR_20' ) end [2025-03-09 05:59:17] Production.INFO: ProcessCDR(1,14640200,1,1,2) [2025-03-09 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640200', 'tblTempUsageDetail_20' ) start [2025-03-09 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640200', 'tblTempUsageDetail_20' ) end [2025-03-09 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 05:59:21] Production.INFO: ==17414== Releasing lock... [2025-03-09 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 05:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:00:06 [end_date_ymd] => 2025-03-09 06:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 03:00:06' and `end` < '2025-03-09 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-09 06:00:18] Production.INFO: count ==583 [2025-03-09 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:00:06 - End Time 2025-03-09 06:00:06 [2025-03-09 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640206', 'tblTempUsageDetail_20' ) start [2025-03-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640206', 'tblTempUsageDetail_20' ) end [2025-03-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640206', 'tblTempVendorCDR_20' ) start [2025-03-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640206', 'tblTempVendorCDR_20' ) end [2025-03-09 06:00:18] Production.INFO: ProcessCDR(1,14640206,1,1,2) [2025-03-09 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640206', 'tblTempUsageDetail_20' ) start [2025-03-09 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640206', 'tblTempUsageDetail_20' ) end [2025-03-09 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:00:21] Production.INFO: ==17491== Releasing lock... [2025-03-09 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:00:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:01:05 [end_date_ymd] => 2025-03-09 06:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:01:05' and `end` < '2025-03-09 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-09 06:01:17] Production.INFO: count ==580 [2025-03-09 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:01:05 - End Time 2025-03-09 06:01:05 [2025-03-09 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640211', 'tblTempUsageDetail_20' ) start [2025-03-09 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640211', 'tblTempUsageDetail_20' ) end [2025-03-09 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640211', 'tblTempVendorCDR_20' ) start [2025-03-09 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640211', 'tblTempVendorCDR_20' ) end [2025-03-09 06:01:17] Production.INFO: ProcessCDR(1,14640211,1,1,2) [2025-03-09 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640211', 'tblTempUsageDetail_20' ) start [2025-03-09 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640211', 'tblTempUsageDetail_20' ) end [2025-03-09 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:01:21] Production.INFO: ==17580== Releasing lock... [2025-03-09 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:02:05 [end_date_ymd] => 2025-03-09 06:02:05 [RateCDR] => 1 ) [2025-03-09 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:02:05' and `end` < '2025-03-09 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:02:17] Production.INFO: count ==580 [2025-03-09 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:02:05 - End Time 2025-03-09 06:02:05 [2025-03-09 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640216', 'tblTempUsageDetail_20' ) start [2025-03-09 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640216', 'tblTempUsageDetail_20' ) end [2025-03-09 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640216', 'tblTempVendorCDR_20' ) start [2025-03-09 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640216', 'tblTempVendorCDR_20' ) end [2025-03-09 06:02:17] Production.INFO: ProcessCDR(1,14640216,1,1,2) [2025-03-09 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640216', 'tblTempUsageDetail_20' ) start [2025-03-09 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640216', 'tblTempUsageDetail_20' ) end [2025-03-09 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:02:21] Production.INFO: ==17654== Releasing lock... [2025-03-09 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:03:05 [end_date_ymd] => 2025-03-09 06:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:03:05' and `end` < '2025-03-09 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-09 06:03:17] Production.INFO: count ==579 [2025-03-09 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:03:05 - End Time 2025-03-09 06:03:05 [2025-03-09 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640221', 'tblTempUsageDetail_20' ) start [2025-03-09 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640221', 'tblTempUsageDetail_20' ) end [2025-03-09 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640221', 'tblTempVendorCDR_20' ) start [2025-03-09 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640221', 'tblTempVendorCDR_20' ) end [2025-03-09 06:03:17] Production.INFO: ProcessCDR(1,14640221,1,1,2) [2025-03-09 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640221', 'tblTempUsageDetail_20' ) start [2025-03-09 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640221', 'tblTempUsageDetail_20' ) end [2025-03-09 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:03:21] Production.INFO: ==17729== Releasing lock... [2025-03-09 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:04:06 [end_date_ymd] => 2025-03-09 06:04:06 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:04:06' and `end` < '2025-03-09 06: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-09 06:04:18] Production.INFO: count ==581 [2025-03-09 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:04:06 - End Time 2025-03-09 06:04:06 [2025-03-09 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640226', 'tblTempUsageDetail_20' ) start [2025-03-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640226', 'tblTempUsageDetail_20' ) end [2025-03-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640226', 'tblTempVendorCDR_20' ) start [2025-03-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640226', 'tblTempVendorCDR_20' ) end [2025-03-09 06:04:18] Production.INFO: ProcessCDR(1,14640226,1,1,2) [2025-03-09 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640226', 'tblTempUsageDetail_20' ) start [2025-03-09 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640226', 'tblTempUsageDetail_20' ) end [2025-03-09 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:04:21] Production.INFO: ==17806== Releasing lock... [2025-03-09 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:05:05 [end_date_ymd] => 2025-03-09 06:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:05:05' and `end` < '2025-03-09 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-09 06:05:17] Production.INFO: count ==581 [2025-03-09 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:05:05 - End Time 2025-03-09 06:05:05 [2025-03-09 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640231', 'tblTempUsageDetail_20' ) start [2025-03-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640231', 'tblTempUsageDetail_20' ) end [2025-03-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640231', 'tblTempVendorCDR_20' ) start [2025-03-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640231', 'tblTempVendorCDR_20' ) end [2025-03-09 06:05:17] Production.INFO: ProcessCDR(1,14640231,1,1,2) [2025-03-09 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640231', 'tblTempUsageDetail_20' ) start [2025-03-09 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640231', 'tblTempUsageDetail_20' ) end [2025-03-09 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:05:20] Production.INFO: ==17879== Releasing lock... [2025-03-09 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:05:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:06:05 [end_date_ymd] => 2025-03-09 06:06:05 [RateCDR] => 1 ) [2025-03-09 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:06:05' and `end` < '2025-03-09 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:06:18] Production.INFO: count ==578 [2025-03-09 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:06:05 - End Time 2025-03-09 06:06:05 [2025-03-09 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640236', 'tblTempUsageDetail_20' ) start [2025-03-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640236', 'tblTempUsageDetail_20' ) end [2025-03-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640236', 'tblTempVendorCDR_20' ) start [2025-03-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640236', 'tblTempVendorCDR_20' ) end [2025-03-09 06:06:18] Production.INFO: ProcessCDR(1,14640236,1,1,2) [2025-03-09 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640236', 'tblTempUsageDetail_20' ) start [2025-03-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640236', 'tblTempUsageDetail_20' ) end [2025-03-09 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:06:21] Production.INFO: ==17996== Releasing lock... [2025-03-09 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:07:05 [end_date_ymd] => 2025-03-09 06:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:07:05' and `end` < '2025-03-09 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-09 06:07:17] Production.INFO: count ==578 [2025-03-09 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:07:05 - End Time 2025-03-09 06:07:05 [2025-03-09 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640241', 'tblTempUsageDetail_20' ) start [2025-03-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640241', 'tblTempUsageDetail_20' ) end [2025-03-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640241', 'tblTempVendorCDR_20' ) start [2025-03-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640241', 'tblTempVendorCDR_20' ) end [2025-03-09 06:07:18] Production.INFO: ProcessCDR(1,14640241,1,1,2) [2025-03-09 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640241', 'tblTempUsageDetail_20' ) start [2025-03-09 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640241', 'tblTempUsageDetail_20' ) end [2025-03-09 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:07:21] Production.INFO: ==18068== Releasing lock... [2025-03-09 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:07:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:08:05 [end_date_ymd] => 2025-03-09 06:08:05 [RateCDR] => 1 ) [2025-03-09 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:08:05' and `end` < '2025-03-09 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:08:17] Production.INFO: count ==577 [2025-03-09 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:08:05 - End Time 2025-03-09 06:08:05 [2025-03-09 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640246', 'tblTempUsageDetail_20' ) start [2025-03-09 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640246', 'tblTempUsageDetail_20' ) end [2025-03-09 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640246', 'tblTempVendorCDR_20' ) start [2025-03-09 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640246', 'tblTempVendorCDR_20' ) end [2025-03-09 06:08:17] Production.INFO: ProcessCDR(1,14640246,1,1,2) [2025-03-09 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640246', 'tblTempUsageDetail_20' ) start [2025-03-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640246', 'tblTempUsageDetail_20' ) end [2025-03-09 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:08:21] Production.INFO: ==18147== Releasing lock... [2025-03-09 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:08:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:09:04 [end_date_ymd] => 2025-03-09 06:09:04 [RateCDR] => 1 ) [2025-03-09 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-09 03:09:04' and `end` < '2025-03-09 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-09 06:09:16] Production.INFO: count ==577 [2025-03-09 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:09:04 - End Time 2025-03-09 06:09:04 [2025-03-09 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640251', 'tblTempUsageDetail_20' ) start [2025-03-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640251', 'tblTempUsageDetail_20' ) end [2025-03-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640251', 'tblTempVendorCDR_20' ) start [2025-03-09 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640251', 'tblTempVendorCDR_20' ) end [2025-03-09 06:09:17] Production.INFO: ProcessCDR(1,14640251,1,1,2) [2025-03-09 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640251', 'tblTempUsageDetail_20' ) start [2025-03-09 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640251', 'tblTempUsageDetail_20' ) end [2025-03-09 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:09:20] Production.INFO: ==18223== Releasing lock... [2025-03-09 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:09:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:10:06 [end_date_ymd] => 2025-03-09 06:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 03:10:06' and `end` < '2025-03-09 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-09 06:10:18] Production.INFO: count ==577 [2025-03-09 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:10:06 - End Time 2025-03-09 06:10:06 [2025-03-09 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640257', 'tblTempUsageDetail_20' ) start [2025-03-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640257', 'tblTempUsageDetail_20' ) end [2025-03-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640257', 'tblTempVendorCDR_20' ) start [2025-03-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640257', 'tblTempVendorCDR_20' ) end [2025-03-09 06:10:18] Production.INFO: ProcessCDR(1,14640257,1,1,2) [2025-03-09 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640257', 'tblTempUsageDetail_20' ) start [2025-03-09 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640257', 'tblTempUsageDetail_20' ) end [2025-03-09 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:10:22] Production.INFO: ==18299== Releasing lock... [2025-03-09 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:10:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:11:04 [end_date_ymd] => 2025-03-09 06:11:04 [RateCDR] => 1 ) [2025-03-09 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-09 03:11:04' and `end` < '2025-03-09 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-09 06:11:16] Production.INFO: count ==577 [2025-03-09 06:11:16] Production.ERROR: pbx CDR StartTime 2025-03-09 03:11:04 - End Time 2025-03-09 06:11:04 [2025-03-09 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640262', 'tblTempUsageDetail_20' ) start [2025-03-09 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640262', 'tblTempUsageDetail_20' ) end [2025-03-09 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640262', 'tblTempVendorCDR_20' ) start [2025-03-09 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640262', 'tblTempVendorCDR_20' ) end [2025-03-09 06:11:16] Production.INFO: ProcessCDR(1,14640262,1,1,2) [2025-03-09 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640262', 'tblTempUsageDetail_20' ) start [2025-03-09 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640262', 'tblTempUsageDetail_20' ) end [2025-03-09 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:11:20] Production.INFO: ==18372== Releasing lock... [2025-03-09 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:11:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:12:05 [end_date_ymd] => 2025-03-09 06:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:12:05' and `end` < '2025-03-09 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-09 06:12:17] Production.INFO: count ==576 [2025-03-09 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:12:05 - End Time 2025-03-09 06:12:05 [2025-03-09 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640267', 'tblTempUsageDetail_20' ) start [2025-03-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640267', 'tblTempUsageDetail_20' ) end [2025-03-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640267', 'tblTempVendorCDR_20' ) start [2025-03-09 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640267', 'tblTempVendorCDR_20' ) end [2025-03-09 06:12:17] Production.INFO: ProcessCDR(1,14640267,1,1,2) [2025-03-09 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640267', 'tblTempUsageDetail_20' ) start [2025-03-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640267', 'tblTempUsageDetail_20' ) end [2025-03-09 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:12:21] Production.INFO: ==18453== Releasing lock... [2025-03-09 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:13:06 [end_date_ymd] => 2025-03-09 06:13:06 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:13:06' and `end` < '2025-03-09 06: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-09 06:13:18] Production.INFO: count ==575 [2025-03-09 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:13:06 - End Time 2025-03-09 06:13:06 [2025-03-09 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640272', 'tblTempUsageDetail_20' ) start [2025-03-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640272', 'tblTempUsageDetail_20' ) end [2025-03-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640272', 'tblTempVendorCDR_20' ) start [2025-03-09 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640272', 'tblTempVendorCDR_20' ) end [2025-03-09 06:13:18] Production.INFO: ProcessCDR(1,14640272,1,1,2) [2025-03-09 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640272', 'tblTempUsageDetail_20' ) start [2025-03-09 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640272', 'tblTempUsageDetail_20' ) end [2025-03-09 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:13:21] Production.INFO: ==18523== Releasing lock... [2025-03-09 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:14:05 [end_date_ymd] => 2025-03-09 06:14:05 [RateCDR] => 1 ) [2025-03-09 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:14:05' and `end` < '2025-03-09 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:14:17] Production.INFO: count ==575 [2025-03-09 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:14:05 - End Time 2025-03-09 06:14:05 [2025-03-09 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640277', 'tblTempUsageDetail_20' ) start [2025-03-09 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640277', 'tblTempUsageDetail_20' ) end [2025-03-09 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640277', 'tblTempVendorCDR_20' ) start [2025-03-09 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640277', 'tblTempVendorCDR_20' ) end [2025-03-09 06:14:17] Production.INFO: ProcessCDR(1,14640277,1,1,2) [2025-03-09 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640277', 'tblTempUsageDetail_20' ) start [2025-03-09 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640277', 'tblTempUsageDetail_20' ) end [2025-03-09 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:14:20] Production.INFO: ==18593== Releasing lock... [2025-03-09 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:14:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:15:05 [end_date_ymd] => 2025-03-09 06:15:05 [RateCDR] => 1 ) [2025-03-09 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:15:05' and `end` < '2025-03-09 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:15:17] Production.INFO: count ==575 [2025-03-09 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:15:05 - End Time 2025-03-09 06:15:05 [2025-03-09 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640282', 'tblTempUsageDetail_20' ) start [2025-03-09 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640282', 'tblTempUsageDetail_20' ) end [2025-03-09 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640282', 'tblTempVendorCDR_20' ) start [2025-03-09 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640282', 'tblTempVendorCDR_20' ) end [2025-03-09 06:15:17] Production.INFO: ProcessCDR(1,14640282,1,1,2) [2025-03-09 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640282', 'tblTempUsageDetail_20' ) start [2025-03-09 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640282', 'tblTempUsageDetail_20' ) end [2025-03-09 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:15:21] Production.INFO: ==18664== Releasing lock... [2025-03-09 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:16:05 [end_date_ymd] => 2025-03-09 06:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:16:05' and `end` < '2025-03-09 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-09 06:16:17] Production.INFO: count ==575 [2025-03-09 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:16:05 - End Time 2025-03-09 06:16:05 [2025-03-09 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640287', 'tblTempUsageDetail_20' ) start [2025-03-09 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640287', 'tblTempUsageDetail_20' ) end [2025-03-09 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640287', 'tblTempVendorCDR_20' ) start [2025-03-09 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640287', 'tblTempVendorCDR_20' ) end [2025-03-09 06:16:17] Production.INFO: ProcessCDR(1,14640287,1,1,2) [2025-03-09 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640287', 'tblTempUsageDetail_20' ) start [2025-03-09 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640287', 'tblTempUsageDetail_20' ) end [2025-03-09 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:16:20] Production.INFO: ==18735== Releasing lock... [2025-03-09 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:16:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:17:05 [end_date_ymd] => 2025-03-09 06:17:05 [RateCDR] => 1 ) [2025-03-09 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:17:05' and `end` < '2025-03-09 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:17:17] Production.INFO: count ==575 [2025-03-09 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:17:05 - End Time 2025-03-09 06:17:05 [2025-03-09 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640292', 'tblTempUsageDetail_20' ) start [2025-03-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640292', 'tblTempUsageDetail_20' ) end [2025-03-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640292', 'tblTempVendorCDR_20' ) start [2025-03-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640292', 'tblTempVendorCDR_20' ) end [2025-03-09 06:17:17] Production.INFO: ProcessCDR(1,14640292,1,1,2) [2025-03-09 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640292', 'tblTempUsageDetail_20' ) start [2025-03-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640292', 'tblTempUsageDetail_20' ) end [2025-03-09 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:17:21] Production.INFO: ==18807== Releasing lock... [2025-03-09 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:18:05 [end_date_ymd] => 2025-03-09 06:18:05 [RateCDR] => 1 ) [2025-03-09 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:18:05' and `end` < '2025-03-09 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:18:17] Production.INFO: count ==575 [2025-03-09 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:18:05 - End Time 2025-03-09 06:18:05 [2025-03-09 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640297', 'tblTempUsageDetail_20' ) start [2025-03-09 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640297', 'tblTempUsageDetail_20' ) end [2025-03-09 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640297', 'tblTempVendorCDR_20' ) start [2025-03-09 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640297', 'tblTempVendorCDR_20' ) end [2025-03-09 06:18:17] Production.INFO: ProcessCDR(1,14640297,1,1,2) [2025-03-09 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640297', 'tblTempUsageDetail_20' ) start [2025-03-09 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640297', 'tblTempUsageDetail_20' ) end [2025-03-09 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:18:20] Production.INFO: ==18877== Releasing lock... [2025-03-09 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:18:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:19:05 [end_date_ymd] => 2025-03-09 06:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:19:05' and `end` < '2025-03-09 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-09 06:19:17] Production.INFO: count ==575 [2025-03-09 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:19:05 - End Time 2025-03-09 06:19:05 [2025-03-09 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640302', 'tblTempUsageDetail_20' ) start [2025-03-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640302', 'tblTempUsageDetail_20' ) end [2025-03-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640302', 'tblTempVendorCDR_20' ) start [2025-03-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640302', 'tblTempVendorCDR_20' ) end [2025-03-09 06:19:18] Production.INFO: ProcessCDR(1,14640302,1,1,2) [2025-03-09 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640302', 'tblTempUsageDetail_20' ) start [2025-03-09 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640302', 'tblTempUsageDetail_20' ) end [2025-03-09 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:19:21] Production.INFO: ==18949== Releasing lock... [2025-03-09 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:20:05 [end_date_ymd] => 2025-03-09 06:20:05 [RateCDR] => 1 ) [2025-03-09 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:20:05' and `end` < '2025-03-09 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:20:17] Production.INFO: count ==572 [2025-03-09 06:20:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:20:05 - End Time 2025-03-09 06:20:05 [2025-03-09 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640308', 'tblTempUsageDetail_20' ) start [2025-03-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640308', 'tblTempUsageDetail_20' ) end [2025-03-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640308', 'tblTempVendorCDR_20' ) start [2025-03-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640308', 'tblTempVendorCDR_20' ) end [2025-03-09 06:20:18] Production.INFO: ProcessCDR(1,14640308,1,1,2) [2025-03-09 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640308', 'tblTempUsageDetail_20' ) start [2025-03-09 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640308', 'tblTempUsageDetail_20' ) end [2025-03-09 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:20:21] Production.INFO: ==19026== Releasing lock... [2025-03-09 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:20:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:21:04 [end_date_ymd] => 2025-03-09 06:21:04 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:21:04' and `end` < '2025-03-09 06: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-09 06:21:16] Production.INFO: count ==579 [2025-03-09 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:21:04 - End Time 2025-03-09 06:21:04 [2025-03-09 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640313', 'tblTempUsageDetail_20' ) start [2025-03-09 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640313', 'tblTempUsageDetail_20' ) end [2025-03-09 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640313', 'tblTempVendorCDR_20' ) start [2025-03-09 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640313', 'tblTempVendorCDR_20' ) end [2025-03-09 06:21:17] Production.INFO: ProcessCDR(1,14640313,1,1,2) [2025-03-09 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640313', 'tblTempUsageDetail_20' ) start [2025-03-09 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640313', 'tblTempUsageDetail_20' ) end [2025-03-09 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:21:20] Production.INFO: ==19145== Releasing lock... [2025-03-09 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:21:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:22:05 [end_date_ymd] => 2025-03-09 06:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:22:05' and `end` < '2025-03-09 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-09 06:22:17] Production.INFO: count ==579 [2025-03-09 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:22:05 - End Time 2025-03-09 06:22:05 [2025-03-09 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640318', 'tblTempUsageDetail_20' ) start [2025-03-09 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640318', 'tblTempUsageDetail_20' ) end [2025-03-09 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640318', 'tblTempVendorCDR_20' ) start [2025-03-09 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640318', 'tblTempVendorCDR_20' ) end [2025-03-09 06:22:17] Production.INFO: ProcessCDR(1,14640318,1,1,2) [2025-03-09 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640318', 'tblTempUsageDetail_20' ) start [2025-03-09 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640318', 'tblTempUsageDetail_20' ) end [2025-03-09 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:22:21] Production.INFO: ==19218== Releasing lock... [2025-03-09 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:23:05 [end_date_ymd] => 2025-03-09 06:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:23:05' and `end` < '2025-03-09 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-09 06:23:17] Production.INFO: count ==579 [2025-03-09 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:23:05 - End Time 2025-03-09 06:23:05 [2025-03-09 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640323', 'tblTempUsageDetail_20' ) start [2025-03-09 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640323', 'tblTempUsageDetail_20' ) end [2025-03-09 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640323', 'tblTempVendorCDR_20' ) start [2025-03-09 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640323', 'tblTempVendorCDR_20' ) end [2025-03-09 06:23:17] Production.INFO: ProcessCDR(1,14640323,1,1,2) [2025-03-09 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640323', 'tblTempUsageDetail_20' ) start [2025-03-09 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640323', 'tblTempUsageDetail_20' ) end [2025-03-09 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:23:21] Production.INFO: ==19288== Releasing lock... [2025-03-09 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:24:06 [end_date_ymd] => 2025-03-09 06:24:06 [RateCDR] => 1 ) [2025-03-09 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:24:06' and `end` < '2025-03-09 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:24:18] Production.INFO: count ==579 [2025-03-09 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:24:06 - End Time 2025-03-09 06:24:06 [2025-03-09 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640328', 'tblTempUsageDetail_20' ) start [2025-03-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640328', 'tblTempUsageDetail_20' ) end [2025-03-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640328', 'tblTempVendorCDR_20' ) start [2025-03-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640328', 'tblTempVendorCDR_20' ) end [2025-03-09 06:24:18] Production.INFO: ProcessCDR(1,14640328,1,1,2) [2025-03-09 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640328', 'tblTempUsageDetail_20' ) start [2025-03-09 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640328', 'tblTempUsageDetail_20' ) end [2025-03-09 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:24:21] Production.INFO: ==19361== Releasing lock... [2025-03-09 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:25:04 [end_date_ymd] => 2025-03-09 06:25:04 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:25:04' and `end` < '2025-03-09 06: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-09 06:25:17] Production.INFO: count ==579 [2025-03-09 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:25:04 - End Time 2025-03-09 06:25:04 [2025-03-09 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640333', 'tblTempUsageDetail_20' ) start [2025-03-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640333', 'tblTempUsageDetail_20' ) end [2025-03-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640333', 'tblTempVendorCDR_20' ) start [2025-03-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640333', 'tblTempVendorCDR_20' ) end [2025-03-09 06:25:17] Production.INFO: ProcessCDR(1,14640333,1,1,2) [2025-03-09 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640333', 'tblTempUsageDetail_20' ) start [2025-03-09 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640333', 'tblTempUsageDetail_20' ) end [2025-03-09 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:25:20] Production.INFO: ==19435== Releasing lock... [2025-03-09 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:25:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:26:06 [end_date_ymd] => 2025-03-09 06:26:06 [RateCDR] => 1 ) [2025-03-09 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:26:06' and `end` < '2025-03-09 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:26:18] Production.INFO: count ==582 [2025-03-09 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:26:06 - End Time 2025-03-09 06:26:06 [2025-03-09 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640338', 'tblTempUsageDetail_20' ) start [2025-03-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640338', 'tblTempUsageDetail_20' ) end [2025-03-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640338', 'tblTempVendorCDR_20' ) start [2025-03-09 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640338', 'tblTempVendorCDR_20' ) end [2025-03-09 06:26:18] Production.INFO: ProcessCDR(1,14640338,1,1,2) [2025-03-09 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640338', 'tblTempUsageDetail_20' ) start [2025-03-09 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640338', 'tblTempUsageDetail_20' ) end [2025-03-09 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:26:21] Production.INFO: ==19508== Releasing lock... [2025-03-09 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:27:05 [end_date_ymd] => 2025-03-09 06:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:27:05' and `end` < '2025-03-09 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-09 06:27:17] Production.INFO: count ==582 [2025-03-09 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:27:05 - End Time 2025-03-09 06:27:05 [2025-03-09 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640343', 'tblTempUsageDetail_20' ) start [2025-03-09 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640343', 'tblTempUsageDetail_20' ) end [2025-03-09 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640343', 'tblTempVendorCDR_20' ) start [2025-03-09 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640343', 'tblTempVendorCDR_20' ) end [2025-03-09 06:27:17] Production.INFO: ProcessCDR(1,14640343,1,1,2) [2025-03-09 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640343', 'tblTempUsageDetail_20' ) start [2025-03-09 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640343', 'tblTempUsageDetail_20' ) end [2025-03-09 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:27:21] Production.INFO: ==19581== Releasing lock... [2025-03-09 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:28:06 [end_date_ymd] => 2025-03-09 06:28:06 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:28:06' and `end` < '2025-03-09 06: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-09 06:28:18] Production.INFO: count ==582 [2025-03-09 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:28:06 - End Time 2025-03-09 06:28:06 [2025-03-09 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640348', 'tblTempUsageDetail_20' ) start [2025-03-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640348', 'tblTempUsageDetail_20' ) end [2025-03-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640348', 'tblTempVendorCDR_20' ) start [2025-03-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640348', 'tblTempVendorCDR_20' ) end [2025-03-09 06:28:18] Production.INFO: ProcessCDR(1,14640348,1,1,2) [2025-03-09 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640348', 'tblTempUsageDetail_20' ) start [2025-03-09 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640348', 'tblTempUsageDetail_20' ) end [2025-03-09 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:28:21] Production.INFO: ==19653== Releasing lock... [2025-03-09 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:29:05 [end_date_ymd] => 2025-03-09 06:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:29:05' and `end` < '2025-03-09 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-09 06:29:17] Production.INFO: count ==582 [2025-03-09 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:29:05 - End Time 2025-03-09 06:29:05 [2025-03-09 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640353', 'tblTempUsageDetail_20' ) start [2025-03-09 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640353', 'tblTempUsageDetail_20' ) end [2025-03-09 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640353', 'tblTempVendorCDR_20' ) start [2025-03-09 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640353', 'tblTempVendorCDR_20' ) end [2025-03-09 06:29:17] Production.INFO: ProcessCDR(1,14640353,1,1,2) [2025-03-09 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640353', 'tblTempUsageDetail_20' ) start [2025-03-09 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640353', 'tblTempUsageDetail_20' ) end [2025-03-09 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:29:20] Production.INFO: ==19725== Releasing lock... [2025-03-09 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:29:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:30:05 [end_date_ymd] => 2025-03-09 06:30:05 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:30:05' and `end` < '2025-03-09 06: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-09 06:30:17] Production.INFO: count ==584 [2025-03-09 06:30:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:30:05 - End Time 2025-03-09 06:30:05 [2025-03-09 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640359', 'tblTempUsageDetail_20' ) start [2025-03-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640359', 'tblTempUsageDetail_20' ) end [2025-03-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640359', 'tblTempVendorCDR_20' ) start [2025-03-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640359', 'tblTempVendorCDR_20' ) end [2025-03-09 06:30:18] Production.INFO: ProcessCDR(1,14640359,1,1,2) [2025-03-09 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640359', 'tblTempUsageDetail_20' ) start [2025-03-09 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640359', 'tblTempUsageDetail_20' ) end [2025-03-09 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:30:21] Production.INFO: ==19802== Releasing lock... [2025-03-09 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:30:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:31:05 [end_date_ymd] => 2025-03-09 06:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:31:05' and `end` < '2025-03-09 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-09 06:31:17] Production.INFO: count ==584 [2025-03-09 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:31:05 - End Time 2025-03-09 06:31:05 [2025-03-09 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640364', 'tblTempUsageDetail_20' ) start [2025-03-09 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640364', 'tblTempUsageDetail_20' ) end [2025-03-09 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640364', 'tblTempVendorCDR_20' ) start [2025-03-09 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640364', 'tblTempVendorCDR_20' ) end [2025-03-09 06:31:17] Production.INFO: ProcessCDR(1,14640364,1,1,2) [2025-03-09 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640364', 'tblTempUsageDetail_20' ) start [2025-03-09 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640364', 'tblTempUsageDetail_20' ) end [2025-03-09 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:31:20] Production.INFO: ==19883== Releasing lock... [2025-03-09 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:31:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:32:05 [end_date_ymd] => 2025-03-09 06:32:05 [RateCDR] => 1 ) [2025-03-09 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:32:05' and `end` < '2025-03-09 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-09 06:32:17] Production.INFO: count ==584 [2025-03-09 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:32:05 - End Time 2025-03-09 06:32:05 [2025-03-09 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640369', 'tblTempUsageDetail_20' ) start [2025-03-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640369', 'tblTempUsageDetail_20' ) end [2025-03-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640369', 'tblTempVendorCDR_20' ) start [2025-03-09 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640369', 'tblTempVendorCDR_20' ) end [2025-03-09 06:32:17] Production.INFO: ProcessCDR(1,14640369,1,1,2) [2025-03-09 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640369', 'tblTempUsageDetail_20' ) start [2025-03-09 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640369', 'tblTempUsageDetail_20' ) end [2025-03-09 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:32:20] Production.INFO: ==19958== Releasing lock... [2025-03-09 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:32:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:33:05 [end_date_ymd] => 2025-03-09 06:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:33:05' and `end` < '2025-03-09 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-09 06:33:17] Production.INFO: count ==584 [2025-03-09 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:33:05 - End Time 2025-03-09 06:33:05 [2025-03-09 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640374', 'tblTempUsageDetail_20' ) start [2025-03-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640374', 'tblTempUsageDetail_20' ) end [2025-03-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640374', 'tblTempVendorCDR_20' ) start [2025-03-09 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640374', 'tblTempVendorCDR_20' ) end [2025-03-09 06:33:18] Production.INFO: ProcessCDR(1,14640374,1,1,2) [2025-03-09 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640374', 'tblTempUsageDetail_20' ) start [2025-03-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640374', 'tblTempUsageDetail_20' ) end [2025-03-09 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:33:21] Production.INFO: ==20030== Releasing lock... [2025-03-09 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:34:05 [end_date_ymd] => 2025-03-09 06:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:34:05' and `end` < '2025-03-09 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-09 06:34:17] Production.INFO: count ==584 [2025-03-09 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:34:05 - End Time 2025-03-09 06:34:05 [2025-03-09 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640379', 'tblTempUsageDetail_20' ) start [2025-03-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640379', 'tblTempUsageDetail_20' ) end [2025-03-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640379', 'tblTempVendorCDR_20' ) start [2025-03-09 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640379', 'tblTempVendorCDR_20' ) end [2025-03-09 06:34:17] Production.INFO: ProcessCDR(1,14640379,1,1,2) [2025-03-09 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640379', 'tblTempUsageDetail_20' ) start [2025-03-09 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640379', 'tblTempUsageDetail_20' ) end [2025-03-09 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:34:21] Production.INFO: ==20106== Releasing lock... [2025-03-09 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:35:05 [end_date_ymd] => 2025-03-09 06:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:35:05' and `end` < '2025-03-09 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-09 06:35:17] Production.INFO: count ==584 [2025-03-09 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:35:05 - End Time 2025-03-09 06:35:05 [2025-03-09 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640384', 'tblTempUsageDetail_20' ) start [2025-03-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640384', 'tblTempUsageDetail_20' ) end [2025-03-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640384', 'tblTempVendorCDR_20' ) start [2025-03-09 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640384', 'tblTempVendorCDR_20' ) end [2025-03-09 06:35:18] Production.INFO: ProcessCDR(1,14640384,1,1,2) [2025-03-09 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640384', 'tblTempUsageDetail_20' ) start [2025-03-09 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640384', 'tblTempUsageDetail_20' ) end [2025-03-09 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:35:21] Production.INFO: ==20180== Releasing lock... [2025-03-09 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:36:04 [end_date_ymd] => 2025-03-09 06:36:04 [RateCDR] => 1 ) [2025-03-09 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:36:04' and `end` < '2025-03-09 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:36:16] Production.INFO: count ==582 [2025-03-09 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:36:04 - End Time 2025-03-09 06:36:04 [2025-03-09 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640389', 'tblTempUsageDetail_20' ) start [2025-03-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640389', 'tblTempUsageDetail_20' ) end [2025-03-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640389', 'tblTempVendorCDR_20' ) start [2025-03-09 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640389', 'tblTempVendorCDR_20' ) end [2025-03-09 06:36:17] Production.INFO: ProcessCDR(1,14640389,1,1,2) [2025-03-09 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640389', 'tblTempUsageDetail_20' ) start [2025-03-09 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640389', 'tblTempUsageDetail_20' ) end [2025-03-09 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:36:20] Production.INFO: ==20253== Releasing lock... [2025-03-09 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:36:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:37:05 [end_date_ymd] => 2025-03-09 06:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:37:05' and `end` < '2025-03-09 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-09 06:37:18] Production.INFO: count ==580 [2025-03-09 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:37:05 - End Time 2025-03-09 06:37:05 [2025-03-09 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640394', 'tblTempUsageDetail_20' ) start [2025-03-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640394', 'tblTempUsageDetail_20' ) end [2025-03-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640394', 'tblTempVendorCDR_20' ) start [2025-03-09 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640394', 'tblTempVendorCDR_20' ) end [2025-03-09 06:37:18] Production.INFO: ProcessCDR(1,14640394,1,1,2) [2025-03-09 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640394', 'tblTempUsageDetail_20' ) start [2025-03-09 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640394', 'tblTempUsageDetail_20' ) end [2025-03-09 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:37:21] Production.INFO: ==20365== Releasing lock... [2025-03-09 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:37:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:38:05 [end_date_ymd] => 2025-03-09 06:38:05 [RateCDR] => 1 ) [2025-03-09 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:38:05' and `end` < '2025-03-09 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:38:17] Production.INFO: count ==579 [2025-03-09 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:38:05 - End Time 2025-03-09 06:38:05 [2025-03-09 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640399', 'tblTempUsageDetail_20' ) start [2025-03-09 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640399', 'tblTempUsageDetail_20' ) end [2025-03-09 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640399', 'tblTempVendorCDR_20' ) start [2025-03-09 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640399', 'tblTempVendorCDR_20' ) end [2025-03-09 06:38:17] Production.INFO: ProcessCDR(1,14640399,1,1,2) [2025-03-09 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640399', 'tblTempUsageDetail_20' ) start [2025-03-09 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640399', 'tblTempUsageDetail_20' ) end [2025-03-09 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:38:20] Production.INFO: ==20439== Releasing lock... [2025-03-09 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:39:05 [end_date_ymd] => 2025-03-09 06:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:39:05' and `end` < '2025-03-09 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-09 06:39:17] Production.INFO: count ==578 [2025-03-09 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:39:05 - End Time 2025-03-09 06:39:05 [2025-03-09 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640404', 'tblTempUsageDetail_20' ) start [2025-03-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640404', 'tblTempUsageDetail_20' ) end [2025-03-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640404', 'tblTempVendorCDR_20' ) start [2025-03-09 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640404', 'tblTempVendorCDR_20' ) end [2025-03-09 06:39:18] Production.INFO: ProcessCDR(1,14640404,1,1,2) [2025-03-09 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640404', 'tblTempUsageDetail_20' ) start [2025-03-09 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640404', 'tblTempUsageDetail_20' ) end [2025-03-09 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:39:21] Production.INFO: ==20513== Releasing lock... [2025-03-09 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:40:05 [end_date_ymd] => 2025-03-09 06:40:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:40:05' and `end` < '2025-03-09 06: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-09 06:40:17] Production.INFO: count ==576 [2025-03-09 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:40:05 - End Time 2025-03-09 06:40:05 [2025-03-09 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640410', 'tblTempUsageDetail_20' ) start [2025-03-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640410', 'tblTempUsageDetail_20' ) end [2025-03-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640410', 'tblTempVendorCDR_20' ) start [2025-03-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640410', 'tblTempVendorCDR_20' ) end [2025-03-09 06:40:18] Production.INFO: ProcessCDR(1,14640410,1,1,2) [2025-03-09 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640410', 'tblTempUsageDetail_20' ) start [2025-03-09 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640410', 'tblTempUsageDetail_20' ) end [2025-03-09 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:40:21] Production.INFO: ==20589== Releasing lock... [2025-03-09 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:40:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:41:05 [end_date_ymd] => 2025-03-09 06:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:41:05' and `end` < '2025-03-09 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-09 06:41:17] Production.INFO: count ==576 [2025-03-09 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:41:05 - End Time 2025-03-09 06:41:05 [2025-03-09 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640415', 'tblTempUsageDetail_20' ) start [2025-03-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640415', 'tblTempUsageDetail_20' ) end [2025-03-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640415', 'tblTempVendorCDR_20' ) start [2025-03-09 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640415', 'tblTempVendorCDR_20' ) end [2025-03-09 06:41:17] Production.INFO: ProcessCDR(1,14640415,1,1,2) [2025-03-09 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640415', 'tblTempUsageDetail_20' ) start [2025-03-09 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640415', 'tblTempUsageDetail_20' ) end [2025-03-09 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:41:21] Production.INFO: ==20669== Releasing lock... [2025-03-09 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:42:05 [end_date_ymd] => 2025-03-09 06:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:42:05' and `end` < '2025-03-09 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-09 06:42:17] Production.INFO: count ==576 [2025-03-09 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:42:05 - End Time 2025-03-09 06:42:05 [2025-03-09 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640420', 'tblTempUsageDetail_20' ) start [2025-03-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640420', 'tblTempUsageDetail_20' ) end [2025-03-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640420', 'tblTempVendorCDR_20' ) start [2025-03-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640420', 'tblTempVendorCDR_20' ) end [2025-03-09 06:42:18] Production.INFO: ProcessCDR(1,14640420,1,1,2) [2025-03-09 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640420', 'tblTempUsageDetail_20' ) start [2025-03-09 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640420', 'tblTempUsageDetail_20' ) end [2025-03-09 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:42:21] Production.INFO: ==20741== Releasing lock... [2025-03-09 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:43:05 [end_date_ymd] => 2025-03-09 06:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:43:05' and `end` < '2025-03-09 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-09 06:43:17] Production.INFO: count ==573 [2025-03-09 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:43:05 - End Time 2025-03-09 06:43:05 [2025-03-09 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640425', 'tblTempUsageDetail_20' ) start [2025-03-09 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640425', 'tblTempUsageDetail_20' ) end [2025-03-09 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640425', 'tblTempVendorCDR_20' ) start [2025-03-09 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640425', 'tblTempVendorCDR_20' ) end [2025-03-09 06:43:17] Production.INFO: ProcessCDR(1,14640425,1,1,2) [2025-03-09 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640425', 'tblTempUsageDetail_20' ) start [2025-03-09 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640425', 'tblTempUsageDetail_20' ) end [2025-03-09 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:43:20] Production.INFO: ==20813== Releasing lock... [2025-03-09 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:43:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:44:06 [end_date_ymd] => 2025-03-09 06:44:06 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:44:06' and `end` < '2025-03-09 06: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-09 06:44:18] Production.INFO: count ==573 [2025-03-09 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:44:06 - End Time 2025-03-09 06:44:06 [2025-03-09 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640430', 'tblTempUsageDetail_20' ) start [2025-03-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640430', 'tblTempUsageDetail_20' ) end [2025-03-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640430', 'tblTempVendorCDR_20' ) start [2025-03-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640430', 'tblTempVendorCDR_20' ) end [2025-03-09 06:44:18] Production.INFO: ProcessCDR(1,14640430,1,1,2) [2025-03-09 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640430', 'tblTempUsageDetail_20' ) start [2025-03-09 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640430', 'tblTempUsageDetail_20' ) end [2025-03-09 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:44:21] Production.INFO: ==20884== Releasing lock... [2025-03-09 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:45:05 [end_date_ymd] => 2025-03-09 06:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:45:05' and `end` < '2025-03-09 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-09 06:45:17] Production.INFO: count ==572 [2025-03-09 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:45:05 - End Time 2025-03-09 06:45:05 [2025-03-09 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640435', 'tblTempUsageDetail_20' ) start [2025-03-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640435', 'tblTempUsageDetail_20' ) end [2025-03-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640435', 'tblTempVendorCDR_20' ) start [2025-03-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640435', 'tblTempVendorCDR_20' ) end [2025-03-09 06:45:17] Production.INFO: ProcessCDR(1,14640435,1,1,2) [2025-03-09 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640435', 'tblTempUsageDetail_20' ) start [2025-03-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640435', 'tblTempUsageDetail_20' ) end [2025-03-09 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:45:21] Production.INFO: ==20957== Releasing lock... [2025-03-09 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:46:05 [end_date_ymd] => 2025-03-09 06:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:46:05' and `end` < '2025-03-09 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-09 06:46:17] Production.INFO: count ==572 [2025-03-09 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:46:05 - End Time 2025-03-09 06:46:05 [2025-03-09 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640440', 'tblTempUsageDetail_20' ) start [2025-03-09 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640440', 'tblTempUsageDetail_20' ) end [2025-03-09 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640440', 'tblTempVendorCDR_20' ) start [2025-03-09 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640440', 'tblTempVendorCDR_20' ) end [2025-03-09 06:46:17] Production.INFO: ProcessCDR(1,14640440,1,1,2) [2025-03-09 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640440', 'tblTempUsageDetail_20' ) start [2025-03-09 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640440', 'tblTempUsageDetail_20' ) end [2025-03-09 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:46:20] Production.INFO: ==21033== Releasing lock... [2025-03-09 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:46:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:47:04 [end_date_ymd] => 2025-03-09 06:47:04 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:47:04' and `end` < '2025-03-09 06: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-09 06:47:16] Production.INFO: count ==575 [2025-03-09 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:47:04 - End Time 2025-03-09 06:47:04 [2025-03-09 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640445', 'tblTempUsageDetail_20' ) start [2025-03-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640445', 'tblTempUsageDetail_20' ) end [2025-03-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640445', 'tblTempVendorCDR_20' ) start [2025-03-09 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640445', 'tblTempVendorCDR_20' ) end [2025-03-09 06:47:17] Production.INFO: ProcessCDR(1,14640445,1,1,2) [2025-03-09 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640445', 'tblTempUsageDetail_20' ) start [2025-03-09 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640445', 'tblTempUsageDetail_20' ) end [2025-03-09 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:47:20] Production.INFO: ==21111== Releasing lock... [2025-03-09 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:47:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:48:05 [end_date_ymd] => 2025-03-09 06:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:48:05' and `end` < '2025-03-09 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-09 06:48:17] Production.INFO: count ==575 [2025-03-09 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:48:05 - End Time 2025-03-09 06:48:05 [2025-03-09 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640450', 'tblTempUsageDetail_20' ) start [2025-03-09 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640450', 'tblTempUsageDetail_20' ) end [2025-03-09 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640450', 'tblTempVendorCDR_20' ) start [2025-03-09 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640450', 'tblTempVendorCDR_20' ) end [2025-03-09 06:48:17] Production.INFO: ProcessCDR(1,14640450,1,1,2) [2025-03-09 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640450', 'tblTempUsageDetail_20' ) start [2025-03-09 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640450', 'tblTempUsageDetail_20' ) end [2025-03-09 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:48:21] Production.INFO: ==21186== Releasing lock... [2025-03-09 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:48:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:49:05 [end_date_ymd] => 2025-03-09 06:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:49:05' and `end` < '2025-03-09 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-09 06:49:17] Production.INFO: count ==573 [2025-03-09 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:49:05 - End Time 2025-03-09 06:49:05 [2025-03-09 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640455', 'tblTempUsageDetail_20' ) start [2025-03-09 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640455', 'tblTempUsageDetail_20' ) end [2025-03-09 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640455', 'tblTempVendorCDR_20' ) start [2025-03-09 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640455', 'tblTempVendorCDR_20' ) end [2025-03-09 06:49:17] Production.INFO: ProcessCDR(1,14640455,1,1,2) [2025-03-09 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640455', 'tblTempUsageDetail_20' ) start [2025-03-09 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640455', 'tblTempUsageDetail_20' ) end [2025-03-09 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:49:20] Production.INFO: ==21269== Releasing lock... [2025-03-09 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:49:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:50:05 [end_date_ymd] => 2025-03-09 06:50:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:50:05' and `end` < '2025-03-09 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-09 06:50:17] Production.INFO: count ==572 [2025-03-09 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:50:05 - End Time 2025-03-09 06:50:05 [2025-03-09 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640461', 'tblTempUsageDetail_20' ) start [2025-03-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640461', 'tblTempUsageDetail_20' ) end [2025-03-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640461', 'tblTempVendorCDR_20' ) start [2025-03-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640461', 'tblTempVendorCDR_20' ) end [2025-03-09 06:50:18] Production.INFO: ProcessCDR(1,14640461,1,1,2) [2025-03-09 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640461', 'tblTempUsageDetail_20' ) start [2025-03-09 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640461', 'tblTempUsageDetail_20' ) end [2025-03-09 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:50:21] Production.INFO: ==21351== Releasing lock... [2025-03-09 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:51:05 [end_date_ymd] => 2025-03-09 06:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:51:05' and `end` < '2025-03-09 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-09 06:51:17] Production.INFO: count ==572 [2025-03-09 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:51:05 - End Time 2025-03-09 06:51:05 [2025-03-09 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640466', 'tblTempUsageDetail_20' ) start [2025-03-09 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640466', 'tblTempUsageDetail_20' ) end [2025-03-09 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640466', 'tblTempVendorCDR_20' ) start [2025-03-09 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640466', 'tblTempVendorCDR_20' ) end [2025-03-09 06:51:17] Production.INFO: ProcessCDR(1,14640466,1,1,2) [2025-03-09 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640466', 'tblTempUsageDetail_20' ) start [2025-03-09 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640466', 'tblTempUsageDetail_20' ) end [2025-03-09 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:51:20] Production.INFO: ==21435== Releasing lock... [2025-03-09 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:51:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:52:04 [end_date_ymd] => 2025-03-09 06:52:04 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:52:04' and `end` < '2025-03-09 06: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-09 06:52:16] Production.INFO: count ==571 [2025-03-09 06:52:16] Production.ERROR: pbx CDR StartTime 2025-03-09 03:52:04 - End Time 2025-03-09 06:52:04 [2025-03-09 06:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640471', 'tblTempUsageDetail_20' ) start [2025-03-09 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640471', 'tblTempUsageDetail_20' ) end [2025-03-09 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640471', 'tblTempVendorCDR_20' ) start [2025-03-09 06:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640471', 'tblTempVendorCDR_20' ) end [2025-03-09 06:52:16] Production.INFO: ProcessCDR(1,14640471,1,1,2) [2025-03-09 06:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640471', 'tblTempUsageDetail_20' ) start [2025-03-09 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640471', 'tblTempUsageDetail_20' ) end [2025-03-09 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:52:20] Production.INFO: ==21557== Releasing lock... [2025-03-09 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:52:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:53:05 [end_date_ymd] => 2025-03-09 06:53:05 [RateCDR] => 1 ) [2025-03-09 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:53:05' and `end` < '2025-03-09 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:53:17] Production.INFO: count ==574 [2025-03-09 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:53:05 - End Time 2025-03-09 06:53:05 [2025-03-09 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640476', 'tblTempUsageDetail_20' ) start [2025-03-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640476', 'tblTempUsageDetail_20' ) end [2025-03-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640476', 'tblTempVendorCDR_20' ) start [2025-03-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640476', 'tblTempVendorCDR_20' ) end [2025-03-09 06:53:17] Production.INFO: ProcessCDR(1,14640476,1,1,2) [2025-03-09 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640476', 'tblTempUsageDetail_20' ) start [2025-03-09 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640476', 'tblTempUsageDetail_20' ) end [2025-03-09 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:53:20] Production.INFO: ==21646== Releasing lock... [2025-03-09 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:53:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:54:06 [end_date_ymd] => 2025-03-09 06:54:06 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:54:06' and `end` < '2025-03-09 06: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-09 06:54:18] Production.INFO: count ==577 [2025-03-09 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:54:06 - End Time 2025-03-09 06:54:06 [2025-03-09 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640481', 'tblTempUsageDetail_20' ) start [2025-03-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640481', 'tblTempUsageDetail_20' ) end [2025-03-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640481', 'tblTempVendorCDR_20' ) start [2025-03-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640481', 'tblTempVendorCDR_20' ) end [2025-03-09 06:54:18] Production.INFO: ProcessCDR(1,14640481,1,1,2) [2025-03-09 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640481', 'tblTempUsageDetail_20' ) start [2025-03-09 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640481', 'tblTempUsageDetail_20' ) end [2025-03-09 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:54:21] Production.INFO: ==21750== Releasing lock... [2025-03-09 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:55:05 [end_date_ymd] => 2025-03-09 06:55:05 [RateCDR] => 1 ) [2025-03-09 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:55:05' and `end` < '2025-03-09 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:55:17] Production.INFO: count ==574 [2025-03-09 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:55:05 - End Time 2025-03-09 06:55:05 [2025-03-09 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640486', 'tblTempUsageDetail_20' ) start [2025-03-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640486', 'tblTempUsageDetail_20' ) end [2025-03-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640486', 'tblTempVendorCDR_20' ) start [2025-03-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640486', 'tblTempVendorCDR_20' ) end [2025-03-09 06:55:17] Production.INFO: ProcessCDR(1,14640486,1,1,2) [2025-03-09 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640486', 'tblTempUsageDetail_20' ) start [2025-03-09 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640486', 'tblTempUsageDetail_20' ) end [2025-03-09 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:55:20] Production.INFO: ==21848== Releasing lock... [2025-03-09 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:55:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:56:05 [end_date_ymd] => 2025-03-09 06:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:56:05' and `end` < '2025-03-09 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-09 06:56:17] Production.INFO: count ==574 [2025-03-09 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 03:56:05 - End Time 2025-03-09 06:56:05 [2025-03-09 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640491', 'tblTempUsageDetail_20' ) start [2025-03-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640491', 'tblTempUsageDetail_20' ) end [2025-03-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640491', 'tblTempVendorCDR_20' ) start [2025-03-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640491', 'tblTempVendorCDR_20' ) end [2025-03-09 06:56:18] Production.INFO: ProcessCDR(1,14640491,1,1,2) [2025-03-09 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640491', 'tblTempUsageDetail_20' ) start [2025-03-09 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640491', 'tblTempUsageDetail_20' ) end [2025-03-09 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:56:21] Production.INFO: ==21951== Releasing lock... [2025-03-09 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:57:05 [end_date_ymd] => 2025-03-09 06:57:05 [RateCDR] => 1 ) [2025-03-09 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 03:57:05' and `end` < '2025-03-09 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 06:57:17] Production.INFO: count ==574 [2025-03-09 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:57:05 - End Time 2025-03-09 06:57:05 [2025-03-09 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640496', 'tblTempUsageDetail_20' ) start [2025-03-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640496', 'tblTempUsageDetail_20' ) end [2025-03-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640496', 'tblTempVendorCDR_20' ) start [2025-03-09 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640496', 'tblTempVendorCDR_20' ) end [2025-03-09 06:57:17] Production.INFO: ProcessCDR(1,14640496,1,1,2) [2025-03-09 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640496', 'tblTempUsageDetail_20' ) start [2025-03-09 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640496', 'tblTempUsageDetail_20' ) end [2025-03-09 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:57:20] Production.INFO: ==22054== Releasing lock... [2025-03-09 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:57:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:58:05 [end_date_ymd] => 2025-03-09 06:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 03:58:05' and `end` < '2025-03-09 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-09 06:58:17] Production.INFO: count ==574 [2025-03-09 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:58:05 - End Time 2025-03-09 06:58:05 [2025-03-09 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640501', 'tblTempUsageDetail_20' ) start [2025-03-09 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640501', 'tblTempUsageDetail_20' ) end [2025-03-09 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640501', 'tblTempVendorCDR_20' ) start [2025-03-09 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640501', 'tblTempVendorCDR_20' ) end [2025-03-09 06:58:17] Production.INFO: ProcessCDR(1,14640501,1,1,2) [2025-03-09 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640501', 'tblTempUsageDetail_20' ) start [2025-03-09 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640501', 'tblTempUsageDetail_20' ) end [2025-03-09 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:58:20] Production.INFO: ==22136== Releasing lock... [2025-03-09 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:58:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 03:59:04 [end_date_ymd] => 2025-03-09 06:59:04 [RateCDR] => 1 ) [2025-03-09 06: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-09 03:59:04' and `end` < '2025-03-09 06: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-09 06:59:16] Production.INFO: count ==574 [2025-03-09 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 03:59:04 - End Time 2025-03-09 06:59:04 [2025-03-09 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640506', 'tblTempUsageDetail_20' ) start [2025-03-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640506', 'tblTempUsageDetail_20' ) end [2025-03-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640506', 'tblTempVendorCDR_20' ) start [2025-03-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640506', 'tblTempVendorCDR_20' ) end [2025-03-09 06:59:17] Production.INFO: ProcessCDR(1,14640506,1,1,2) [2025-03-09 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640506', 'tblTempUsageDetail_20' ) start [2025-03-09 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640506', 'tblTempUsageDetail_20' ) end [2025-03-09 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 06:59:20] Production.INFO: ==22219== Releasing lock... [2025-03-09 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 06:59:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:00:06 [end_date_ymd] => 2025-03-09 07:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 04:00:06' and `end` < '2025-03-09 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-09 07:00:18] Production.INFO: count ==574 [2025-03-09 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:00:06 - End Time 2025-03-09 07:00:06 [2025-03-09 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640511', 'tblTempUsageDetail_20' ) start [2025-03-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640511', 'tblTempUsageDetail_20' ) end [2025-03-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640511', 'tblTempVendorCDR_20' ) start [2025-03-09 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640511', 'tblTempVendorCDR_20' ) end [2025-03-09 07:00:18] Production.INFO: ProcessCDR(1,14640511,1,1,2) [2025-03-09 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640511', 'tblTempUsageDetail_20' ) start [2025-03-09 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640511', 'tblTempUsageDetail_20' ) end [2025-03-09 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:00:21] Production.INFO: ==22309== Releasing lock... [2025-03-09 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:00:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:01:05 [end_date_ymd] => 2025-03-09 07:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:01:05' and `end` < '2025-03-09 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-09 07:01:18] Production.INFO: count ==574 [2025-03-09 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:01:05 - End Time 2025-03-09 07:01:05 [2025-03-09 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640517', 'tblTempUsageDetail_20' ) start [2025-03-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640517', 'tblTempUsageDetail_20' ) end [2025-03-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640517', 'tblTempVendorCDR_20' ) start [2025-03-09 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640517', 'tblTempVendorCDR_20' ) end [2025-03-09 07:01:18] Production.INFO: ProcessCDR(1,14640517,1,1,2) [2025-03-09 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640517', 'tblTempUsageDetail_20' ) start [2025-03-09 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640517', 'tblTempUsageDetail_20' ) end [2025-03-09 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:01:21] Production.INFO: ==22482== Releasing lock... [2025-03-09 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:02:05 [end_date_ymd] => 2025-03-09 07:02:05 [RateCDR] => 1 ) [2025-03-09 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:02:05' and `end` < '2025-03-09 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:02:17] Production.INFO: count ==574 [2025-03-09 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:02:05 - End Time 2025-03-09 07:02:05 [2025-03-09 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640522', 'tblTempUsageDetail_20' ) start [2025-03-09 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640522', 'tblTempUsageDetail_20' ) end [2025-03-09 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640522', 'tblTempVendorCDR_20' ) start [2025-03-09 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640522', 'tblTempVendorCDR_20' ) end [2025-03-09 07:02:18] Production.INFO: ProcessCDR(1,14640522,1,1,2) [2025-03-09 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640522', 'tblTempUsageDetail_20' ) start [2025-03-09 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640522', 'tblTempUsageDetail_20' ) end [2025-03-09 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:02:21] Production.INFO: ==22564== Releasing lock... [2025-03-09 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:03:05 [end_date_ymd] => 2025-03-09 07:03:05 [RateCDR] => 1 ) [2025-03-09 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:03:05' and `end` < '2025-03-09 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:03:17] Production.INFO: count ==574 [2025-03-09 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:03:05 - End Time 2025-03-09 07:03:05 [2025-03-09 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640527', 'tblTempUsageDetail_20' ) start [2025-03-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640527', 'tblTempUsageDetail_20' ) end [2025-03-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640527', 'tblTempVendorCDR_20' ) start [2025-03-09 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640527', 'tblTempVendorCDR_20' ) end [2025-03-09 07:03:18] Production.INFO: ProcessCDR(1,14640527,1,1,2) [2025-03-09 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640527', 'tblTempUsageDetail_20' ) start [2025-03-09 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640527', 'tblTempUsageDetail_20' ) end [2025-03-09 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:03:21] Production.INFO: ==22645== Releasing lock... [2025-03-09 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:04:05 [end_date_ymd] => 2025-03-09 07:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:04:05' and `end` < '2025-03-09 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-09 07:04:17] Production.INFO: count ==574 [2025-03-09 07:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:04:05 - End Time 2025-03-09 07:04:05 [2025-03-09 07:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640532', 'tblTempUsageDetail_20' ) start [2025-03-09 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640532', 'tblTempUsageDetail_20' ) end [2025-03-09 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640532', 'tblTempVendorCDR_20' ) start [2025-03-09 07:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640532', 'tblTempVendorCDR_20' ) end [2025-03-09 07:04:17] Production.INFO: ProcessCDR(1,14640532,1,1,2) [2025-03-09 07:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640532', 'tblTempUsageDetail_20' ) start [2025-03-09 07:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640532', 'tblTempUsageDetail_20' ) end [2025-03-09 07:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:04:20] Production.INFO: ==22730== Releasing lock... [2025-03-09 07:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:04:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:05:05 [end_date_ymd] => 2025-03-09 07:05:05 [RateCDR] => 1 ) [2025-03-09 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:05:05' and `end` < '2025-03-09 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:05:17] Production.INFO: count ==577 [2025-03-09 07:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:05:05 - End Time 2025-03-09 07:05:05 [2025-03-09 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640537', 'tblTempUsageDetail_20' ) start [2025-03-09 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640537', 'tblTempUsageDetail_20' ) end [2025-03-09 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640537', 'tblTempVendorCDR_20' ) start [2025-03-09 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640537', 'tblTempVendorCDR_20' ) end [2025-03-09 07:05:17] Production.INFO: ProcessCDR(1,14640537,1,1,2) [2025-03-09 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640537', 'tblTempUsageDetail_20' ) start [2025-03-09 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640537', 'tblTempUsageDetail_20' ) end [2025-03-09 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:05:21] Production.INFO: ==22887== Releasing lock... [2025-03-09 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:06:05 [end_date_ymd] => 2025-03-09 07:06:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:06:05' and `end` < '2025-03-09 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-09 07:06:18] Production.INFO: count ==576 [2025-03-09 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:06:05 - End Time 2025-03-09 07:06:05 [2025-03-09 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640542', 'tblTempUsageDetail_20' ) start [2025-03-09 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640542', 'tblTempUsageDetail_20' ) end [2025-03-09 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640542', 'tblTempVendorCDR_20' ) start [2025-03-09 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640542', 'tblTempVendorCDR_20' ) end [2025-03-09 07:06:18] Production.INFO: ProcessCDR(1,14640542,1,1,2) [2025-03-09 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640542', 'tblTempUsageDetail_20' ) start [2025-03-09 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640542', 'tblTempUsageDetail_20' ) end [2025-03-09 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:06:22] Production.INFO: ==22962== Releasing lock... [2025-03-09 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:07:05 [end_date_ymd] => 2025-03-09 07:07:05 [RateCDR] => 1 ) [2025-03-09 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:07:05' and `end` < '2025-03-09 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:07:20] Production.INFO: count ==579 [2025-03-09 07:07:20] Production.ERROR: pbx CDR StartTime 2025-03-09 04:07:05 - End Time 2025-03-09 07:07:05 [2025-03-09 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640547', 'tblTempUsageDetail_20' ) start [2025-03-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640547', 'tblTempUsageDetail_20' ) end [2025-03-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640547', 'tblTempVendorCDR_20' ) start [2025-03-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640547', 'tblTempVendorCDR_20' ) end [2025-03-09 07:07:20] Production.INFO: ProcessCDR(1,14640547,1,1,2) [2025-03-09 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640547', 'tblTempUsageDetail_20' ) start [2025-03-09 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640547', 'tblTempUsageDetail_20' ) end [2025-03-09 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:07:23] Production.INFO: ==23040== Releasing lock... [2025-03-09 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:07:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:08:05 [end_date_ymd] => 2025-03-09 07:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:08:05' and `end` < '2025-03-09 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-09 07:08:18] Production.INFO: count ==579 [2025-03-09 07:08:19] Production.ERROR: pbx CDR StartTime 2025-03-09 04:08:05 - End Time 2025-03-09 07:08:05 [2025-03-09 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640552', 'tblTempUsageDetail_20' ) start [2025-03-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640552', 'tblTempUsageDetail_20' ) end [2025-03-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640552', 'tblTempVendorCDR_20' ) start [2025-03-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640552', 'tblTempVendorCDR_20' ) end [2025-03-09 07:08:19] Production.INFO: ProcessCDR(1,14640552,1,1,2) [2025-03-09 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640552', 'tblTempUsageDetail_20' ) start [2025-03-09 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640552', 'tblTempUsageDetail_20' ) end [2025-03-09 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:08:22] Production.INFO: ==23236== Releasing lock... [2025-03-09 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:09:05 [end_date_ymd] => 2025-03-09 07:09:05 [RateCDR] => 1 ) [2025-03-09 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:09:05' and `end` < '2025-03-09 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:09:19] Production.INFO: count ==579 [2025-03-09 07:09:19] Production.ERROR: pbx CDR StartTime 2025-03-09 04:09:05 - End Time 2025-03-09 07:09:05 [2025-03-09 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640557', 'tblTempUsageDetail_20' ) start [2025-03-09 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640557', 'tblTempUsageDetail_20' ) end [2025-03-09 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640557', 'tblTempVendorCDR_20' ) start [2025-03-09 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640557', 'tblTempVendorCDR_20' ) end [2025-03-09 07:09:19] Production.INFO: ProcessCDR(1,14640557,1,1,2) [2025-03-09 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640557', 'tblTempUsageDetail_20' ) start [2025-03-09 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640557', 'tblTempUsageDetail_20' ) end [2025-03-09 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:09:22] Production.INFO: ==23313== Releasing lock... [2025-03-09 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:10:06 [end_date_ymd] => 2025-03-09 07:10:06 [RateCDR] => 1 ) [2025-03-09 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:10:06' and `end` < '2025-03-09 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:10:18] Production.INFO: count ==580 [2025-03-09 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:10:06 - End Time 2025-03-09 07:10:06 [2025-03-09 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640562', 'tblTempUsageDetail_20' ) start [2025-03-09 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640562', 'tblTempUsageDetail_20' ) end [2025-03-09 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640562', 'tblTempVendorCDR_20' ) start [2025-03-09 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640562', 'tblTempVendorCDR_20' ) end [2025-03-09 07:10:18] Production.INFO: ProcessCDR(1,14640562,1,1,2) [2025-03-09 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640562', 'tblTempUsageDetail_20' ) start [2025-03-09 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640562', 'tblTempUsageDetail_20' ) end [2025-03-09 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:10:23] Production.INFO: ==23397== Releasing lock... [2025-03-09 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:10:23] Production.INFO: 33 MB #Memory Used# [2025-03-09 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:11:05 [end_date_ymd] => 2025-03-09 07:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:11:05' and `end` < '2025-03-09 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-09 07:11:18] Production.INFO: count ==580 [2025-03-09 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:11:05 - End Time 2025-03-09 07:11:05 [2025-03-09 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640568', 'tblTempUsageDetail_20' ) start [2025-03-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640568', 'tblTempUsageDetail_20' ) end [2025-03-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640568', 'tblTempVendorCDR_20' ) start [2025-03-09 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640568', 'tblTempVendorCDR_20' ) end [2025-03-09 07:11:18] Production.INFO: ProcessCDR(1,14640568,1,1,2) [2025-03-09 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640568', 'tblTempUsageDetail_20' ) start [2025-03-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640568', 'tblTempUsageDetail_20' ) end [2025-03-09 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:11:22] Production.INFO: ==23477== Releasing lock... [2025-03-09 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:11:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:12:05 [end_date_ymd] => 2025-03-09 07:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:12:05' and `end` < '2025-03-09 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-09 07:12:18] Production.INFO: count ==577 [2025-03-09 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:12:05 - End Time 2025-03-09 07:12:05 [2025-03-09 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640573', 'tblTempUsageDetail_20' ) start [2025-03-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640573', 'tblTempUsageDetail_20' ) end [2025-03-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640573', 'tblTempVendorCDR_20' ) start [2025-03-09 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640573', 'tblTempVendorCDR_20' ) end [2025-03-09 07:12:18] Production.INFO: ProcessCDR(1,14640573,1,1,2) [2025-03-09 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640573', 'tblTempUsageDetail_20' ) start [2025-03-09 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640573', 'tblTempUsageDetail_20' ) end [2025-03-09 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:12:21] Production.INFO: ==23633== Releasing lock... [2025-03-09 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:13:04 [end_date_ymd] => 2025-03-09 07:13:04 [RateCDR] => 1 ) [2025-03-09 07:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:13:04' and `end` < '2025-03-09 07:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:13:17] Production.INFO: count ==577 [2025-03-09 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:13:04 - End Time 2025-03-09 07:13:04 [2025-03-09 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640578', 'tblTempUsageDetail_20' ) start [2025-03-09 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640578', 'tblTempUsageDetail_20' ) end [2025-03-09 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640578', 'tblTempVendorCDR_20' ) start [2025-03-09 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640578', 'tblTempVendorCDR_20' ) end [2025-03-09 07:13:17] Production.INFO: ProcessCDR(1,14640578,1,1,2) [2025-03-09 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640578', 'tblTempUsageDetail_20' ) start [2025-03-09 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640578', 'tblTempUsageDetail_20' ) end [2025-03-09 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:13:20] Production.INFO: ==23707== Releasing lock... [2025-03-09 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:13:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:14:05 [end_date_ymd] => 2025-03-09 07:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:14:05' and `end` < '2025-03-09 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-09 07:14:17] Production.INFO: count ==569 [2025-03-09 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:14:05 - End Time 2025-03-09 07:14:05 [2025-03-09 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640583', 'tblTempUsageDetail_20' ) start [2025-03-09 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640583', 'tblTempUsageDetail_20' ) end [2025-03-09 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640583', 'tblTempVendorCDR_20' ) start [2025-03-09 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640583', 'tblTempVendorCDR_20' ) end [2025-03-09 07:14:17] Production.INFO: ProcessCDR(1,14640583,1,1,2) [2025-03-09 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640583', 'tblTempUsageDetail_20' ) start [2025-03-09 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640583', 'tblTempUsageDetail_20' ) end [2025-03-09 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:14:20] Production.INFO: ==23786== Releasing lock... [2025-03-09 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:14:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:15:04 [end_date_ymd] => 2025-03-09 07:15:04 [RateCDR] => 1 ) [2025-03-09 07: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-09 04:15:04' and `end` < '2025-03-09 07: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-09 07:15:18] Production.INFO: count ==564 [2025-03-09 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:15:04 - End Time 2025-03-09 07:15:04 [2025-03-09 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640588', 'tblTempUsageDetail_20' ) start [2025-03-09 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640588', 'tblTempUsageDetail_20' ) end [2025-03-09 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640588', 'tblTempVendorCDR_20' ) start [2025-03-09 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640588', 'tblTempVendorCDR_20' ) end [2025-03-09 07:15:18] Production.INFO: ProcessCDR(1,14640588,1,1,2) [2025-03-09 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640588', 'tblTempUsageDetail_20' ) start [2025-03-09 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640588', 'tblTempUsageDetail_20' ) end [2025-03-09 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:15:21] Production.INFO: ==23941== Releasing lock... [2025-03-09 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:16:05 [end_date_ymd] => 2025-03-09 07:16:05 [RateCDR] => 1 ) [2025-03-09 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:16:05' and `end` < '2025-03-09 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:16:18] Production.INFO: count ==556 [2025-03-09 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:16:05 - End Time 2025-03-09 07:16:05 [2025-03-09 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640593', 'tblTempUsageDetail_20' ) start [2025-03-09 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640593', 'tblTempUsageDetail_20' ) end [2025-03-09 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640593', 'tblTempVendorCDR_20' ) start [2025-03-09 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640593', 'tblTempVendorCDR_20' ) end [2025-03-09 07:16:18] Production.INFO: ProcessCDR(1,14640593,1,1,2) [2025-03-09 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640593', 'tblTempUsageDetail_20' ) start [2025-03-09 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640593', 'tblTempUsageDetail_20' ) end [2025-03-09 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:16:21] Production.INFO: ==24016== Releasing lock... [2025-03-09 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:17:05 [end_date_ymd] => 2025-03-09 07:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:17:05' and `end` < '2025-03-09 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-09 07:17:18] Production.INFO: count ==550 [2025-03-09 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-09 04:17:05 - End Time 2025-03-09 07:17:05 [2025-03-09 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640598', 'tblTempUsageDetail_20' ) start [2025-03-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640598', 'tblTempUsageDetail_20' ) end [2025-03-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640598', 'tblTempVendorCDR_20' ) start [2025-03-09 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640598', 'tblTempVendorCDR_20' ) end [2025-03-09 07:17:19] Production.INFO: ProcessCDR(1,14640598,1,1,2) [2025-03-09 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640598', 'tblTempUsageDetail_20' ) start [2025-03-09 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640598', 'tblTempUsageDetail_20' ) end [2025-03-09 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:17:22] Production.INFO: ==24094== Releasing lock... [2025-03-09 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:17:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:18:04 [end_date_ymd] => 2025-03-09 07:18:04 [RateCDR] => 1 ) [2025-03-09 07: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-09 04:18:04' and `end` < '2025-03-09 07: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-09 07:18:16] Production.INFO: count ==542 [2025-03-09 07:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:18:04 - End Time 2025-03-09 07:18:04 [2025-03-09 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640599', 'tblTempUsageDetail_20' ) start [2025-03-09 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640599', 'tblTempUsageDetail_20' ) end [2025-03-09 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640599', 'tblTempVendorCDR_20' ) start [2025-03-09 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640599', 'tblTempVendorCDR_20' ) end [2025-03-09 07:18:17] Production.INFO: ProcessCDR(1,14640599,1,1,2) [2025-03-09 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640599', 'tblTempUsageDetail_20' ) start [2025-03-09 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640599', 'tblTempUsageDetail_20' ) end [2025-03-09 07:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:18:20] Production.INFO: ==24170== Releasing lock... [2025-03-09 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:18:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:19:05 [end_date_ymd] => 2025-03-09 07:19:05 [RateCDR] => 1 ) [2025-03-09 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:19:05' and `end` < '2025-03-09 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:19:17] Production.INFO: count ==530 [2025-03-09 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:19:05 - End Time 2025-03-09 07:19:05 [2025-03-09 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640606', 'tblTempUsageDetail_20' ) start [2025-03-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640606', 'tblTempUsageDetail_20' ) end [2025-03-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640606', 'tblTempVendorCDR_20' ) start [2025-03-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640606', 'tblTempVendorCDR_20' ) end [2025-03-09 07:19:18] Production.INFO: ProcessCDR(1,14640606,1,1,2) [2025-03-09 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640606', 'tblTempUsageDetail_20' ) start [2025-03-09 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640606', 'tblTempUsageDetail_20' ) end [2025-03-09 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:19:21] Production.INFO: ==24248== Releasing lock... [2025-03-09 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:20:06 [end_date_ymd] => 2025-03-09 07:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 04:20:06' and `end` < '2025-03-09 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-09 07:20:18] Production.INFO: count ==522 [2025-03-09 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:20:06 - End Time 2025-03-09 07:20:06 [2025-03-09 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640614', 'tblTempUsageDetail_20' ) start [2025-03-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640614', 'tblTempUsageDetail_20' ) end [2025-03-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640614', 'tblTempVendorCDR_20' ) start [2025-03-09 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640614', 'tblTempVendorCDR_20' ) end [2025-03-09 07:20:18] Production.INFO: ProcessCDR(1,14640614,1,1,2) [2025-03-09 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640614', 'tblTempUsageDetail_20' ) start [2025-03-09 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640614', 'tblTempUsageDetail_20' ) end [2025-03-09 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:20:22] Production.INFO: ==24326== Releasing lock... [2025-03-09 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:21:06 [end_date_ymd] => 2025-03-09 07:21:06 [RateCDR] => 1 ) [2025-03-09 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-09 04:21:06' and `end` < '2025-03-09 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-09 07:21:18] Production.INFO: count ==521 [2025-03-09 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:21:06 - End Time 2025-03-09 07:21:06 [2025-03-09 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640619', 'tblTempUsageDetail_20' ) start [2025-03-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640619', 'tblTempUsageDetail_20' ) end [2025-03-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640619', 'tblTempVendorCDR_20' ) start [2025-03-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640619', 'tblTempVendorCDR_20' ) end [2025-03-09 07:21:18] Production.INFO: ProcessCDR(1,14640619,1,1,2) [2025-03-09 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640619', 'tblTempUsageDetail_20' ) start [2025-03-09 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640619', 'tblTempUsageDetail_20' ) end [2025-03-09 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:21:21] Production.INFO: ==24399== Releasing lock... [2025-03-09 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:22:04 [end_date_ymd] => 2025-03-09 07:22:04 [RateCDR] => 1 ) [2025-03-09 07: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-09 04:22:04' and `end` < '2025-03-09 07: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-09 07:22:17] Production.INFO: count ==521 [2025-03-09 07:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:22:04 - End Time 2025-03-09 07:22:04 [2025-03-09 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640624', 'tblTempUsageDetail_20' ) start [2025-03-09 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640624', 'tblTempUsageDetail_20' ) end [2025-03-09 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640624', 'tblTempVendorCDR_20' ) start [2025-03-09 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640624', 'tblTempVendorCDR_20' ) end [2025-03-09 07:22:17] Production.INFO: ProcessCDR(1,14640624,1,1,2) [2025-03-09 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640624', 'tblTempUsageDetail_20' ) start [2025-03-09 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640624', 'tblTempUsageDetail_20' ) end [2025-03-09 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:22:20] Production.INFO: ==24473== Releasing lock... [2025-03-09 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:22:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:23:04 [end_date_ymd] => 2025-03-09 07:23:04 [RateCDR] => 1 ) [2025-03-09 07:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:23:04' and `end` < '2025-03-09 07:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:23:17] Production.INFO: count ==521 [2025-03-09 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:23:04 - End Time 2025-03-09 07:23:04 [2025-03-09 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640629', 'tblTempUsageDetail_20' ) start [2025-03-09 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640629', 'tblTempUsageDetail_20' ) end [2025-03-09 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640629', 'tblTempVendorCDR_20' ) start [2025-03-09 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640629', 'tblTempVendorCDR_20' ) end [2025-03-09 07:23:17] Production.INFO: ProcessCDR(1,14640629,1,1,2) [2025-03-09 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640629', 'tblTempUsageDetail_20' ) start [2025-03-09 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640629', 'tblTempUsageDetail_20' ) end [2025-03-09 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:23:20] Production.INFO: ==24590== Releasing lock... [2025-03-09 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:23:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:24:05 [end_date_ymd] => 2025-03-09 07:24:05 [RateCDR] => 1 ) [2025-03-09 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:24:05' and `end` < '2025-03-09 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:24:17] Production.INFO: count ==521 [2025-03-09 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:24:05 - End Time 2025-03-09 07:24:05 [2025-03-09 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640634', 'tblTempUsageDetail_20' ) start [2025-03-09 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640634', 'tblTempUsageDetail_20' ) end [2025-03-09 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640634', 'tblTempVendorCDR_20' ) start [2025-03-09 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640634', 'tblTempVendorCDR_20' ) end [2025-03-09 07:24:17] Production.INFO: ProcessCDR(1,14640634,1,1,2) [2025-03-09 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640634', 'tblTempUsageDetail_20' ) start [2025-03-09 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640634', 'tblTempUsageDetail_20' ) end [2025-03-09 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:24:20] Production.INFO: ==24672== Releasing lock... [2025-03-09 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:24:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:25:05 [end_date_ymd] => 2025-03-09 07:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:25:05' and `end` < '2025-03-09 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-09 07:25:17] Production.INFO: count ==521 [2025-03-09 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:25:05 - End Time 2025-03-09 07:25:05 [2025-03-09 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640639', 'tblTempUsageDetail_20' ) start [2025-03-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640639', 'tblTempUsageDetail_20' ) end [2025-03-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640639', 'tblTempVendorCDR_20' ) start [2025-03-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640639', 'tblTempVendorCDR_20' ) end [2025-03-09 07:25:17] Production.INFO: ProcessCDR(1,14640639,1,1,2) [2025-03-09 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640639', 'tblTempUsageDetail_20' ) start [2025-03-09 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640639', 'tblTempUsageDetail_20' ) end [2025-03-09 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:25:20] Production.INFO: ==24757== Releasing lock... [2025-03-09 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:25:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:26:05 [end_date_ymd] => 2025-03-09 07:26:05 [RateCDR] => 1 ) [2025-03-09 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:26:05' and `end` < '2025-03-09 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:26:17] Production.INFO: count ==518 [2025-03-09 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:26:05 - End Time 2025-03-09 07:26:05 [2025-03-09 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640644', 'tblTempUsageDetail_20' ) start [2025-03-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640644', 'tblTempUsageDetail_20' ) end [2025-03-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640644', 'tblTempVendorCDR_20' ) start [2025-03-09 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640644', 'tblTempVendorCDR_20' ) end [2025-03-09 07:26:18] Production.INFO: ProcessCDR(1,14640644,1,1,2) [2025-03-09 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640644', 'tblTempUsageDetail_20' ) start [2025-03-09 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640644', 'tblTempUsageDetail_20' ) end [2025-03-09 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:26:21] Production.INFO: ==24838== Releasing lock... [2025-03-09 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:27:04 [end_date_ymd] => 2025-03-09 07:27:04 [RateCDR] => 1 ) [2025-03-09 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:27:04' and `end` < '2025-03-09 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:27:17] Production.INFO: count ==518 [2025-03-09 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:27:04 - End Time 2025-03-09 07:27:04 [2025-03-09 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640649', 'tblTempUsageDetail_20' ) start [2025-03-09 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640649', 'tblTempUsageDetail_20' ) end [2025-03-09 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640649', 'tblTempVendorCDR_20' ) start [2025-03-09 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640649', 'tblTempVendorCDR_20' ) end [2025-03-09 07:27:17] Production.INFO: ProcessCDR(1,14640649,1,1,2) [2025-03-09 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640649', 'tblTempUsageDetail_20' ) start [2025-03-09 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640649', 'tblTempUsageDetail_20' ) end [2025-03-09 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:27:20] Production.INFO: ==24916== Releasing lock... [2025-03-09 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:27:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:28:05 [end_date_ymd] => 2025-03-09 07:28:05 [RateCDR] => 1 ) [2025-03-09 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:28:05' and `end` < '2025-03-09 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:28:17] Production.INFO: count ==518 [2025-03-09 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:28:05 - End Time 2025-03-09 07:28:05 [2025-03-09 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640654', 'tblTempUsageDetail_20' ) start [2025-03-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640654', 'tblTempUsageDetail_20' ) end [2025-03-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640654', 'tblTempVendorCDR_20' ) start [2025-03-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640654', 'tblTempVendorCDR_20' ) end [2025-03-09 07:28:18] Production.INFO: ProcessCDR(1,14640654,1,1,2) [2025-03-09 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640654', 'tblTempUsageDetail_20' ) start [2025-03-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640654', 'tblTempUsageDetail_20' ) end [2025-03-09 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:28:21] Production.INFO: ==24997== Releasing lock... [2025-03-09 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:29:05 [end_date_ymd] => 2025-03-09 07:29:05 [RateCDR] => 1 ) [2025-03-09 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:29:05' and `end` < '2025-03-09 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:29:17] Production.INFO: count ==518 [2025-03-09 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:29:05 - End Time 2025-03-09 07:29:05 [2025-03-09 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640659', 'tblTempUsageDetail_20' ) start [2025-03-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640659', 'tblTempUsageDetail_20' ) end [2025-03-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640659', 'tblTempVendorCDR_20' ) start [2025-03-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640659', 'tblTempVendorCDR_20' ) end [2025-03-09 07:29:17] Production.INFO: ProcessCDR(1,14640659,1,1,2) [2025-03-09 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640659', 'tblTempUsageDetail_20' ) start [2025-03-09 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640659', 'tblTempUsageDetail_20' ) end [2025-03-09 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:29:20] Production.INFO: ==25082== Releasing lock... [2025-03-09 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:29:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:30:06 [end_date_ymd] => 2025-03-09 07:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 04:30:06' and `end` < '2025-03-09 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-09 07:30:18] Production.INFO: count ==516 [2025-03-09 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:30:06 - End Time 2025-03-09 07:30:06 [2025-03-09 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640665', 'tblTempUsageDetail_20' ) start [2025-03-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640665', 'tblTempUsageDetail_20' ) end [2025-03-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640665', 'tblTempVendorCDR_20' ) start [2025-03-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640665', 'tblTempVendorCDR_20' ) end [2025-03-09 07:30:18] Production.INFO: ProcessCDR(1,14640665,1,1,2) [2025-03-09 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640665', 'tblTempUsageDetail_20' ) start [2025-03-09 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640665', 'tblTempUsageDetail_20' ) end [2025-03-09 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:30:21] Production.INFO: ==25166== Releasing lock... [2025-03-09 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:30:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:31:05 [end_date_ymd] => 2025-03-09 07:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:31:05' and `end` < '2025-03-09 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-09 07:31:17] Production.INFO: count ==516 [2025-03-09 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:31:05 - End Time 2025-03-09 07:31:05 [2025-03-09 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640670', 'tblTempUsageDetail_20' ) start [2025-03-09 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640670', 'tblTempUsageDetail_20' ) end [2025-03-09 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640670', 'tblTempVendorCDR_20' ) start [2025-03-09 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640670', 'tblTempVendorCDR_20' ) end [2025-03-09 07:31:17] Production.INFO: ProcessCDR(1,14640670,1,1,2) [2025-03-09 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640670', 'tblTempUsageDetail_20' ) start [2025-03-09 07:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640670', 'tblTempUsageDetail_20' ) end [2025-03-09 07:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:31:20] Production.INFO: ==25244== Releasing lock... [2025-03-09 07:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:31:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:32:05 [end_date_ymd] => 2025-03-09 07:32:05 [RateCDR] => 1 ) [2025-03-09 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:32:05' and `end` < '2025-03-09 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:32:17] Production.INFO: count ==516 [2025-03-09 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:32:05 - End Time 2025-03-09 07:32:05 [2025-03-09 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640675', 'tblTempUsageDetail_20' ) start [2025-03-09 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640675', 'tblTempUsageDetail_20' ) end [2025-03-09 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640675', 'tblTempVendorCDR_20' ) start [2025-03-09 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640675', 'tblTempVendorCDR_20' ) end [2025-03-09 07:32:17] Production.INFO: ProcessCDR(1,14640675,1,1,2) [2025-03-09 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640675', 'tblTempUsageDetail_20' ) start [2025-03-09 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640675', 'tblTempUsageDetail_20' ) end [2025-03-09 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:32:20] Production.INFO: ==25315== Releasing lock... [2025-03-09 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:32:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:33:04 [end_date_ymd] => 2025-03-09 07:33:04 [RateCDR] => 1 ) [2025-03-09 07: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-09 04:33:04' and `end` < '2025-03-09 07: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-09 07:33:17] Production.INFO: count ==516 [2025-03-09 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:33:04 - End Time 2025-03-09 07:33:04 [2025-03-09 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640680', 'tblTempUsageDetail_20' ) start [2025-03-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640680', 'tblTempUsageDetail_20' ) end [2025-03-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640680', 'tblTempVendorCDR_20' ) start [2025-03-09 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640680', 'tblTempVendorCDR_20' ) end [2025-03-09 07:33:17] Production.INFO: ProcessCDR(1,14640680,1,1,2) [2025-03-09 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640680', 'tblTempUsageDetail_20' ) start [2025-03-09 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640680', 'tblTempUsageDetail_20' ) end [2025-03-09 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:33:20] Production.INFO: ==25384== Releasing lock... [2025-03-09 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:33:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:34:05 [end_date_ymd] => 2025-03-09 07:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:34:05' and `end` < '2025-03-09 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-09 07:34:17] Production.INFO: count ==512 [2025-03-09 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:34:05 - End Time 2025-03-09 07:34:05 [2025-03-09 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640685', 'tblTempUsageDetail_20' ) start [2025-03-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640685', 'tblTempUsageDetail_20' ) end [2025-03-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640685', 'tblTempVendorCDR_20' ) start [2025-03-09 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640685', 'tblTempVendorCDR_20' ) end [2025-03-09 07:34:17] Production.INFO: ProcessCDR(1,14640685,1,1,2) [2025-03-09 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640685', 'tblTempUsageDetail_20' ) start [2025-03-09 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640685', 'tblTempUsageDetail_20' ) end [2025-03-09 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:34:20] Production.INFO: ==25455== Releasing lock... [2025-03-09 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:34:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:35:05 [end_date_ymd] => 2025-03-09 07:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:35:05' and `end` < '2025-03-09 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-09 07:35:17] Production.INFO: count ==504 [2025-03-09 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:35:05 - End Time 2025-03-09 07:35:05 [2025-03-09 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640690', 'tblTempUsageDetail_20' ) start [2025-03-09 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640690', 'tblTempUsageDetail_20' ) end [2025-03-09 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640690', 'tblTempVendorCDR_20' ) start [2025-03-09 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640690', 'tblTempVendorCDR_20' ) end [2025-03-09 07:35:17] Production.INFO: ProcessCDR(1,14640690,1,1,2) [2025-03-09 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640690', 'tblTempUsageDetail_20' ) start [2025-03-09 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640690', 'tblTempUsageDetail_20' ) end [2025-03-09 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:35:21] Production.INFO: ==25528== Releasing lock... [2025-03-09 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:36:05 [end_date_ymd] => 2025-03-09 07:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:36:05' and `end` < '2025-03-09 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-09 07:36:17] Production.INFO: count ==494 [2025-03-09 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:36:05 - End Time 2025-03-09 07:36:05 [2025-03-09 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640695', 'tblTempUsageDetail_20' ) start [2025-03-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640695', 'tblTempUsageDetail_20' ) end [2025-03-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640695', 'tblTempVendorCDR_20' ) start [2025-03-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640695', 'tblTempVendorCDR_20' ) end [2025-03-09 07:36:17] Production.INFO: ProcessCDR(1,14640695,1,1,2) [2025-03-09 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640695', 'tblTempUsageDetail_20' ) start [2025-03-09 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640695', 'tblTempUsageDetail_20' ) end [2025-03-09 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:36:20] Production.INFO: ==25597== Releasing lock... [2025-03-09 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:36:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:37:05 [end_date_ymd] => 2025-03-09 07:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:37:05' and `end` < '2025-03-09 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-09 07:37:17] Production.INFO: count ==490 [2025-03-09 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:37:05 - End Time 2025-03-09 07:37:05 [2025-03-09 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640700', 'tblTempUsageDetail_20' ) start [2025-03-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640700', 'tblTempUsageDetail_20' ) end [2025-03-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640700', 'tblTempVendorCDR_20' ) start [2025-03-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640700', 'tblTempVendorCDR_20' ) end [2025-03-09 07:37:18] Production.INFO: ProcessCDR(1,14640700,1,1,2) [2025-03-09 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640700', 'tblTempUsageDetail_20' ) start [2025-03-09 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640700', 'tblTempUsageDetail_20' ) end [2025-03-09 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:37:21] Production.INFO: ==25667== Releasing lock... [2025-03-09 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:37:21] Production.INFO: 32 MB #Memory Used# [2025-03-09 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:38:05 [end_date_ymd] => 2025-03-09 07:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:38:05' and `end` < '2025-03-09 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-09 07:38:17] Production.INFO: count ==480 [2025-03-09 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:38:05 - End Time 2025-03-09 07:38:05 [2025-03-09 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640705', 'tblTempUsageDetail_20' ) start [2025-03-09 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640705', 'tblTempUsageDetail_20' ) end [2025-03-09 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640705', 'tblTempVendorCDR_20' ) start [2025-03-09 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640705', 'tblTempVendorCDR_20' ) end [2025-03-09 07:38:17] Production.INFO: ProcessCDR(1,14640705,1,1,2) [2025-03-09 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640705', 'tblTempUsageDetail_20' ) start [2025-03-09 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640705', 'tblTempUsageDetail_20' ) end [2025-03-09 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:38:20] Production.INFO: ==25738== Releasing lock... [2025-03-09 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:38:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:39:05 [end_date_ymd] => 2025-03-09 07:39:05 [RateCDR] => 1 ) [2025-03-09 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:39:05' and `end` < '2025-03-09 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:39:17] Production.INFO: count ==472 [2025-03-09 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:39:05 - End Time 2025-03-09 07:39:05 [2025-03-09 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640710', 'tblTempUsageDetail_20' ) start [2025-03-09 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640710', 'tblTempUsageDetail_20' ) end [2025-03-09 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640710', 'tblTempVendorCDR_20' ) start [2025-03-09 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640710', 'tblTempVendorCDR_20' ) end [2025-03-09 07:39:17] Production.INFO: ProcessCDR(1,14640710,1,1,2) [2025-03-09 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640710', 'tblTempUsageDetail_20' ) start [2025-03-09 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640710', 'tblTempUsageDetail_20' ) end [2025-03-09 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:39:20] Production.INFO: ==25849== Releasing lock... [2025-03-09 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:39:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:40:06 [end_date_ymd] => 2025-03-09 07:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 04:40:06' and `end` < '2025-03-09 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-09 07:40:18] Production.INFO: count ==456 [2025-03-09 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:40:06 - End Time 2025-03-09 07:40:06 [2025-03-09 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640716', 'tblTempUsageDetail_20' ) start [2025-03-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640716', 'tblTempUsageDetail_20' ) end [2025-03-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640716', 'tblTempVendorCDR_20' ) start [2025-03-09 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640716', 'tblTempVendorCDR_20' ) end [2025-03-09 07:40:18] Production.INFO: ProcessCDR(1,14640716,1,1,2) [2025-03-09 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640716', 'tblTempUsageDetail_20' ) start [2025-03-09 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640716', 'tblTempUsageDetail_20' ) end [2025-03-09 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:40:21] Production.INFO: ==25925== Releasing lock... [2025-03-09 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:40:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:41:05 [end_date_ymd] => 2025-03-09 07:41:05 [RateCDR] => 1 ) [2025-03-09 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:41:05' and `end` < '2025-03-09 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:41:17] Production.INFO: count ==448 [2025-03-09 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:41:05 - End Time 2025-03-09 07:41:05 [2025-03-09 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640721', 'tblTempUsageDetail_20' ) start [2025-03-09 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640721', 'tblTempUsageDetail_20' ) end [2025-03-09 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640721', 'tblTempVendorCDR_20' ) start [2025-03-09 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640721', 'tblTempVendorCDR_20' ) end [2025-03-09 07:41:17] Production.INFO: ProcessCDR(1,14640721,1,1,2) [2025-03-09 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640721', 'tblTempUsageDetail_20' ) start [2025-03-09 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640721', 'tblTempUsageDetail_20' ) end [2025-03-09 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:41:21] Production.INFO: ==25998== Releasing lock... [2025-03-09 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:41:21] Production.INFO: 32 MB #Memory Used# [2025-03-09 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:42:04 [end_date_ymd] => 2025-03-09 07:42:04 [RateCDR] => 1 ) [2025-03-09 07:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:42:04' and `end` < '2025-03-09 07:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:42:17] Production.INFO: count ==438 [2025-03-09 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:42:04 - End Time 2025-03-09 07:42:04 [2025-03-09 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640726', 'tblTempUsageDetail_20' ) start [2025-03-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640726', 'tblTempUsageDetail_20' ) end [2025-03-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640726', 'tblTempVendorCDR_20' ) start [2025-03-09 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640726', 'tblTempVendorCDR_20' ) end [2025-03-09 07:42:17] Production.INFO: ProcessCDR(1,14640726,1,1,2) [2025-03-09 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640726', 'tblTempUsageDetail_20' ) start [2025-03-09 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640726', 'tblTempUsageDetail_20' ) end [2025-03-09 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:42:20] Production.INFO: ==26067== Releasing lock... [2025-03-09 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:42:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:43:05 [end_date_ymd] => 2025-03-09 07:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:43:05' and `end` < '2025-03-09 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-09 07:43:17] Production.INFO: count ==429 [2025-03-09 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:43:05 - End Time 2025-03-09 07:43:05 [2025-03-09 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640731', 'tblTempUsageDetail_20' ) start [2025-03-09 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640731', 'tblTempUsageDetail_20' ) end [2025-03-09 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640731', 'tblTempVendorCDR_20' ) start [2025-03-09 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640731', 'tblTempVendorCDR_20' ) end [2025-03-09 07:43:17] Production.INFO: ProcessCDR(1,14640731,1,1,2) [2025-03-09 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640731', 'tblTempUsageDetail_20' ) start [2025-03-09 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640731', 'tblTempUsageDetail_20' ) end [2025-03-09 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:43:21] Production.INFO: ==26139== Releasing lock... [2025-03-09 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:44:06 [end_date_ymd] => 2025-03-09 07:44:06 [RateCDR] => 1 ) [2025-03-09 07: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-09 04:44:06' and `end` < '2025-03-09 07: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-09 07:44:18] Production.INFO: count ==429 [2025-03-09 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:44:06 - End Time 2025-03-09 07:44:06 [2025-03-09 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640736', 'tblTempUsageDetail_20' ) start [2025-03-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640736', 'tblTempUsageDetail_20' ) end [2025-03-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640736', 'tblTempVendorCDR_20' ) start [2025-03-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640736', 'tblTempVendorCDR_20' ) end [2025-03-09 07:44:18] Production.INFO: ProcessCDR(1,14640736,1,1,2) [2025-03-09 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640736', 'tblTempUsageDetail_20' ) start [2025-03-09 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640736', 'tblTempUsageDetail_20' ) end [2025-03-09 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:44:21] Production.INFO: ==26209== Releasing lock... [2025-03-09 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:45:05 [end_date_ymd] => 2025-03-09 07:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:45:05' and `end` < '2025-03-09 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-09 07:45:17] Production.INFO: count ==429 [2025-03-09 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:45:05 - End Time 2025-03-09 07:45:05 [2025-03-09 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640741', 'tblTempUsageDetail_20' ) start [2025-03-09 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640741', 'tblTempUsageDetail_20' ) end [2025-03-09 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640741', 'tblTempVendorCDR_20' ) start [2025-03-09 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640741', 'tblTempVendorCDR_20' ) end [2025-03-09 07:45:17] Production.INFO: ProcessCDR(1,14640741,1,1,2) [2025-03-09 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640741', 'tblTempUsageDetail_20' ) start [2025-03-09 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640741', 'tblTempUsageDetail_20' ) end [2025-03-09 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:45:20] Production.INFO: ==26283== Releasing lock... [2025-03-09 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:45:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:46:05 [end_date_ymd] => 2025-03-09 07:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:46:05' and `end` < '2025-03-09 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-09 07:46:17] Production.INFO: count ==387 [2025-03-09 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:46:05 - End Time 2025-03-09 07:46:05 [2025-03-09 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640746', 'tblTempUsageDetail_20' ) start [2025-03-09 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640746', 'tblTempUsageDetail_20' ) end [2025-03-09 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640746', 'tblTempVendorCDR_20' ) start [2025-03-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640746', 'tblTempVendorCDR_20' ) end [2025-03-09 07:46:18] Production.INFO: ProcessCDR(1,14640746,1,1,2) [2025-03-09 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640746', 'tblTempUsageDetail_20' ) start [2025-03-09 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640746', 'tblTempUsageDetail_20' ) end [2025-03-09 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:46:21] Production.INFO: ==26354== Releasing lock... [2025-03-09 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:47:05 [end_date_ymd] => 2025-03-09 07:47:05 [RateCDR] => 1 ) [2025-03-09 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:47:05' and `end` < '2025-03-09 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:47:17] Production.INFO: count ==328 [2025-03-09 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:47:05 - End Time 2025-03-09 07:47:05 [2025-03-09 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640751', 'tblTempUsageDetail_20' ) start [2025-03-09 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640751', 'tblTempUsageDetail_20' ) end [2025-03-09 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640751', 'tblTempVendorCDR_20' ) start [2025-03-09 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640751', 'tblTempVendorCDR_20' ) end [2025-03-09 07:47:17] Production.INFO: ProcessCDR(1,14640751,1,1,2) [2025-03-09 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640751', 'tblTempUsageDetail_20' ) start [2025-03-09 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640751', 'tblTempUsageDetail_20' ) end [2025-03-09 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:47:20] Production.INFO: ==26426== Releasing lock... [2025-03-09 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:47:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:48:05 [end_date_ymd] => 2025-03-09 07:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:48:05' and `end` < '2025-03-09 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-09 07:48:17] Production.INFO: count ==266 [2025-03-09 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:48:05 - End Time 2025-03-09 07:48:05 [2025-03-09 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640756', 'tblTempUsageDetail_20' ) start [2025-03-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640756', 'tblTempUsageDetail_20' ) end [2025-03-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640756', 'tblTempVendorCDR_20' ) start [2025-03-09 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640756', 'tblTempVendorCDR_20' ) end [2025-03-09 07:48:18] Production.INFO: ProcessCDR(1,14640756,1,1,2) [2025-03-09 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640756', 'tblTempUsageDetail_20' ) start [2025-03-09 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640756', 'tblTempUsageDetail_20' ) end [2025-03-09 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:48:21] Production.INFO: ==26497== Releasing lock... [2025-03-09 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:49:05 [end_date_ymd] => 2025-03-09 07:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:49:05' and `end` < '2025-03-09 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-09 07:49:17] Production.INFO: count ==237 [2025-03-09 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:49:05 - End Time 2025-03-09 07:49:05 [2025-03-09 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640761', 'tblTempUsageDetail_20' ) start [2025-03-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640761', 'tblTempUsageDetail_20' ) end [2025-03-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640761', 'tblTempVendorCDR_20' ) start [2025-03-09 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640761', 'tblTempVendorCDR_20' ) end [2025-03-09 07:49:17] Production.INFO: ProcessCDR(1,14640761,1,1,2) [2025-03-09 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640761', 'tblTempUsageDetail_20' ) start [2025-03-09 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640761', 'tblTempUsageDetail_20' ) end [2025-03-09 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:49:20] Production.INFO: ==26572== Releasing lock... [2025-03-09 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:50:06 [end_date_ymd] => 2025-03-09 07:50:06 [RateCDR] => 1 ) [2025-03-09 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:50:06' and `end` < '2025-03-09 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:50:18] Production.INFO: count ==237 [2025-03-09 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:50:06 - End Time 2025-03-09 07:50:06 [2025-03-09 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640767', 'tblTempUsageDetail_20' ) start [2025-03-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640767', 'tblTempUsageDetail_20' ) end [2025-03-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640767', 'tblTempVendorCDR_20' ) start [2025-03-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640767', 'tblTempVendorCDR_20' ) end [2025-03-09 07:50:18] Production.INFO: ProcessCDR(1,14640767,1,1,2) [2025-03-09 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640767', 'tblTempUsageDetail_20' ) start [2025-03-09 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640767', 'tblTempUsageDetail_20' ) end [2025-03-09 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:50:21] Production.INFO: ==26646== Releasing lock... [2025-03-09 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:51:04 [end_date_ymd] => 2025-03-09 07:51:04 [RateCDR] => 1 ) [2025-03-09 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:51:04' and `end` < '2025-03-09 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:51:16] Production.INFO: count ==237 [2025-03-09 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:51:04 - End Time 2025-03-09 07:51:04 [2025-03-09 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640772', 'tblTempUsageDetail_20' ) start [2025-03-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640772', 'tblTempUsageDetail_20' ) end [2025-03-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640772', 'tblTempVendorCDR_20' ) start [2025-03-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640772', 'tblTempVendorCDR_20' ) end [2025-03-09 07:51:17] Production.INFO: ProcessCDR(1,14640772,1,1,2) [2025-03-09 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640772', 'tblTempUsageDetail_20' ) start [2025-03-09 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640772', 'tblTempUsageDetail_20' ) end [2025-03-09 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:51:20] Production.INFO: ==26718== Releasing lock... [2025-03-09 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:51:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:52:05 [end_date_ymd] => 2025-03-09 07:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:52:05' and `end` < '2025-03-09 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-09 07:52:17] Production.INFO: count ==237 [2025-03-09 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:52:05 - End Time 2025-03-09 07:52:05 [2025-03-09 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640777', 'tblTempUsageDetail_20' ) start [2025-03-09 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640777', 'tblTempUsageDetail_20' ) end [2025-03-09 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640777', 'tblTempVendorCDR_20' ) start [2025-03-09 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640777', 'tblTempVendorCDR_20' ) end [2025-03-09 07:52:17] Production.INFO: ProcessCDR(1,14640777,1,1,2) [2025-03-09 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640777', 'tblTempUsageDetail_20' ) start [2025-03-09 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640777', 'tblTempUsageDetail_20' ) end [2025-03-09 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:52:20] Production.INFO: ==26789== Releasing lock... [2025-03-09 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:52:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:53:05 [end_date_ymd] => 2025-03-09 07:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:53:05' and `end` < '2025-03-09 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-09 07:53:17] Production.INFO: count ==237 [2025-03-09 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:53:05 - End Time 2025-03-09 07:53:05 [2025-03-09 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640782', 'tblTempUsageDetail_20' ) start [2025-03-09 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640782', 'tblTempUsageDetail_20' ) end [2025-03-09 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640782', 'tblTempVendorCDR_20' ) start [2025-03-09 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640782', 'tblTempVendorCDR_20' ) end [2025-03-09 07:53:17] Production.INFO: ProcessCDR(1,14640782,1,1,2) [2025-03-09 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640782', 'tblTempUsageDetail_20' ) start [2025-03-09 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640782', 'tblTempUsageDetail_20' ) end [2025-03-09 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:53:20] Production.INFO: ==26861== Releasing lock... [2025-03-09 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:53:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:54:05 [end_date_ymd] => 2025-03-09 07:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:54:05' and `end` < '2025-03-09 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-09 07:54:17] Production.INFO: count ==237 [2025-03-09 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:54:05 - End Time 2025-03-09 07:54:05 [2025-03-09 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640787', 'tblTempUsageDetail_20' ) start [2025-03-09 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640787', 'tblTempUsageDetail_20' ) end [2025-03-09 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640787', 'tblTempVendorCDR_20' ) start [2025-03-09 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640787', 'tblTempVendorCDR_20' ) end [2025-03-09 07:54:17] Production.INFO: ProcessCDR(1,14640787,1,1,2) [2025-03-09 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640787', 'tblTempUsageDetail_20' ) start [2025-03-09 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640787', 'tblTempUsageDetail_20' ) end [2025-03-09 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:54:20] Production.INFO: ==26970== Releasing lock... [2025-03-09 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:54:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:55:05 [end_date_ymd] => 2025-03-09 07:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:55:05' and `end` < '2025-03-09 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-09 07:55:17] Production.INFO: count ==237 [2025-03-09 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:55:05 - End Time 2025-03-09 07:55:05 [2025-03-09 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640792', 'tblTempUsageDetail_20' ) start [2025-03-09 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640792', 'tblTempUsageDetail_20' ) end [2025-03-09 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640792', 'tblTempVendorCDR_20' ) start [2025-03-09 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640792', 'tblTempVendorCDR_20' ) end [2025-03-09 07:55:17] Production.INFO: ProcessCDR(1,14640792,1,1,2) [2025-03-09 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640792', 'tblTempUsageDetail_20' ) start [2025-03-09 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640792', 'tblTempUsageDetail_20' ) end [2025-03-09 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:55:20] Production.INFO: ==27043== Releasing lock... [2025-03-09 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:55:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:56:05 [end_date_ymd] => 2025-03-09 07:56:05 [RateCDR] => 1 ) [2025-03-09 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:56:05' and `end` < '2025-03-09 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:56:17] Production.INFO: count ==232 [2025-03-09 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:56:05 - End Time 2025-03-09 07:56:05 [2025-03-09 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640797', 'tblTempUsageDetail_20' ) start [2025-03-09 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640797', 'tblTempUsageDetail_20' ) end [2025-03-09 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640797', 'tblTempVendorCDR_20' ) start [2025-03-09 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640797', 'tblTempVendorCDR_20' ) end [2025-03-09 07:56:17] Production.INFO: ProcessCDR(1,14640797,1,1,2) [2025-03-09 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640797', 'tblTempUsageDetail_20' ) start [2025-03-09 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640797', 'tblTempUsageDetail_20' ) end [2025-03-09 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:56:20] Production.INFO: ==27115== Releasing lock... [2025-03-09 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:56:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:57:05 [end_date_ymd] => 2025-03-09 07:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:57:05' and `end` < '2025-03-09 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-09 07:57:17] Production.INFO: count ==182 [2025-03-09 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 04:57:05 - End Time 2025-03-09 07:57:05 [2025-03-09 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640802', 'tblTempUsageDetail_20' ) start [2025-03-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640802', 'tblTempUsageDetail_20' ) end [2025-03-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640802', 'tblTempVendorCDR_20' ) start [2025-03-09 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640802', 'tblTempVendorCDR_20' ) end [2025-03-09 07:57:18] Production.INFO: ProcessCDR(1,14640802,1,1,2) [2025-03-09 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640802', 'tblTempUsageDetail_20' ) start [2025-03-09 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640802', 'tblTempUsageDetail_20' ) end [2025-03-09 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:57:21] Production.INFO: ==27186== Releasing lock... [2025-03-09 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:58:05 [end_date_ymd] => 2025-03-09 07:58:05 [RateCDR] => 1 ) [2025-03-09 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 04:58:05' and `end` < '2025-03-09 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 07:58:17] Production.INFO: count ==131 [2025-03-09 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:58:05 - End Time 2025-03-09 07:58:05 [2025-03-09 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640807', 'tblTempUsageDetail_20' ) start [2025-03-09 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640807', 'tblTempUsageDetail_20' ) end [2025-03-09 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640807', 'tblTempVendorCDR_20' ) start [2025-03-09 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640807', 'tblTempVendorCDR_20' ) end [2025-03-09 07:58:17] Production.INFO: ProcessCDR(1,14640807,1,1,2) [2025-03-09 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640807', 'tblTempUsageDetail_20' ) start [2025-03-09 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640807', 'tblTempUsageDetail_20' ) end [2025-03-09 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:58:22] Production.INFO: ==27267== Releasing lock... [2025-03-09 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-09 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 04:59:05 [end_date_ymd] => 2025-03-09 07:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 04:59:05' and `end` < '2025-03-09 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-09 07:59:17] Production.INFO: count ==99 [2025-03-09 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 04:59:05 - End Time 2025-03-09 07:59:05 [2025-03-09 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640812', 'tblTempUsageDetail_20' ) start [2025-03-09 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640812', 'tblTempUsageDetail_20' ) end [2025-03-09 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640812', 'tblTempVendorCDR_20' ) start [2025-03-09 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640812', 'tblTempVendorCDR_20' ) end [2025-03-09 07:59:17] Production.INFO: ProcessCDR(1,14640812,1,1,2) [2025-03-09 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640812', 'tblTempUsageDetail_20' ) start [2025-03-09 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640812', 'tblTempUsageDetail_20' ) end [2025-03-09 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 07:59:20] Production.INFO: ==27382== Releasing lock... [2025-03-09 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 07:59:20] Production.INFO: 29 MB #Memory Used# [2025-03-09 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:00:06 [end_date_ymd] => 2025-03-09 08:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 05:00:06' and `end` < '2025-03-09 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-09 08:00:18] Production.INFO: count ==85 [2025-03-09 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:00:06 - End Time 2025-03-09 08:00:06 [2025-03-09 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640818', 'tblTempUsageDetail_20' ) start [2025-03-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640818', 'tblTempUsageDetail_20' ) end [2025-03-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640818', 'tblTempVendorCDR_20' ) start [2025-03-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640818', 'tblTempVendorCDR_20' ) end [2025-03-09 08:00:18] Production.INFO: ProcessCDR(1,14640818,1,1,2) [2025-03-09 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640818', 'tblTempUsageDetail_20' ) start [2025-03-09 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640818', 'tblTempUsageDetail_20' ) end [2025-03-09 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:00:21] Production.INFO: ==27498== Releasing lock... [2025-03-09 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:01:05 [end_date_ymd] => 2025-03-09 08:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:01:05' and `end` < '2025-03-09 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-09 08:01:17] Production.INFO: count ==74 [2025-03-09 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:01:05 - End Time 2025-03-09 08:01:05 [2025-03-09 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640823', 'tblTempUsageDetail_20' ) start [2025-03-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640823', 'tblTempUsageDetail_20' ) end [2025-03-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640823', 'tblTempVendorCDR_20' ) start [2025-03-09 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640823', 'tblTempVendorCDR_20' ) end [2025-03-09 08:01:17] Production.INFO: ProcessCDR(1,14640823,1,1,2) [2025-03-09 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640823', 'tblTempUsageDetail_20' ) start [2025-03-09 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640823', 'tblTempUsageDetail_20' ) end [2025-03-09 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:01:20] Production.INFO: ==27627== Releasing lock... [2025-03-09 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:02:04 [end_date_ymd] => 2025-03-09 08:02:04 [RateCDR] => 1 ) [2025-03-09 08: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-09 05:02:04' and `end` < '2025-03-09 08: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-09 08:02:16] Production.INFO: count ==66 [2025-03-09 08:02:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:02:04 - End Time 2025-03-09 08:02:04 [2025-03-09 08:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640824', 'tblTempUsageDetail_20' ) start [2025-03-09 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640824', 'tblTempUsageDetail_20' ) end [2025-03-09 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640824', 'tblTempVendorCDR_20' ) start [2025-03-09 08:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640824', 'tblTempVendorCDR_20' ) end [2025-03-09 08:02:16] Production.INFO: ProcessCDR(1,14640824,1,1,2) [2025-03-09 08:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640824', 'tblTempUsageDetail_20' ) start [2025-03-09 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640824', 'tblTempUsageDetail_20' ) end [2025-03-09 08:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:02:20] Production.INFO: ==27739== Releasing lock... [2025-03-09 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:02:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:03:05 [end_date_ymd] => 2025-03-09 08:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:03:05' and `end` < '2025-03-09 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-09 08:03:17] Production.INFO: count ==66 [2025-03-09 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:03:05 - End Time 2025-03-09 08:03:05 [2025-03-09 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640833', 'tblTempUsageDetail_20' ) start [2025-03-09 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640833', 'tblTempUsageDetail_20' ) end [2025-03-09 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640833', 'tblTempVendorCDR_20' ) start [2025-03-09 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640833', 'tblTempVendorCDR_20' ) end [2025-03-09 08:03:17] Production.INFO: ProcessCDR(1,14640833,1,1,2) [2025-03-09 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640833', 'tblTempUsageDetail_20' ) start [2025-03-09 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640833', 'tblTempUsageDetail_20' ) end [2025-03-09 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:03:20] Production.INFO: ==27852== Releasing lock... [2025-03-09 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:04:06 [end_date_ymd] => 2025-03-09 08:04:06 [RateCDR] => 1 ) [2025-03-09 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-09 05:04:06' and `end` < '2025-03-09 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-09 08:04:18] Production.INFO: count ==66 [2025-03-09 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:04:06 - End Time 2025-03-09 08:04:06 [2025-03-09 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640838', 'tblTempUsageDetail_20' ) start [2025-03-09 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640838', 'tblTempUsageDetail_20' ) end [2025-03-09 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640838', 'tblTempVendorCDR_20' ) start [2025-03-09 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640838', 'tblTempVendorCDR_20' ) end [2025-03-09 08:04:19] Production.INFO: ProcessCDR(1,14640838,1,1,2) [2025-03-09 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640838', 'tblTempUsageDetail_20' ) start [2025-03-09 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640838', 'tblTempUsageDetail_20' ) end [2025-03-09 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:04:22] Production.INFO: ==27963== Releasing lock... [2025-03-09 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:05:05 [end_date_ymd] => 2025-03-09 08:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:05:05' and `end` < '2025-03-09 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-09 08:05:17] Production.INFO: count ==66 [2025-03-09 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:05:05 - End Time 2025-03-09 08:05:05 [2025-03-09 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640843', 'tblTempUsageDetail_20' ) start [2025-03-09 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640843', 'tblTempUsageDetail_20' ) end [2025-03-09 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640843', 'tblTempVendorCDR_20' ) start [2025-03-09 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640843', 'tblTempVendorCDR_20' ) end [2025-03-09 08:05:17] Production.INFO: ProcessCDR(1,14640843,1,1,2) [2025-03-09 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640843', 'tblTempUsageDetail_20' ) start [2025-03-09 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640843', 'tblTempUsageDetail_20' ) end [2025-03-09 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:05:20] Production.INFO: ==28072== Releasing lock... [2025-03-09 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:06:04 [end_date_ymd] => 2025-03-09 08:06:04 [RateCDR] => 1 ) [2025-03-09 08:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:06:04' and `end` < '2025-03-09 08:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:06:16] Production.INFO: count ==66 [2025-03-09 08:06:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:06:04 - End Time 2025-03-09 08:06:04 [2025-03-09 08:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640848', 'tblTempUsageDetail_20' ) start [2025-03-09 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640848', 'tblTempUsageDetail_20' ) end [2025-03-09 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640848', 'tblTempVendorCDR_20' ) start [2025-03-09 08:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640848', 'tblTempVendorCDR_20' ) end [2025-03-09 08:06:16] Production.INFO: ProcessCDR(1,14640848,1,1,2) [2025-03-09 08:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640848', 'tblTempUsageDetail_20' ) start [2025-03-09 08:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640848', 'tblTempUsageDetail_20' ) end [2025-03-09 08:06:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:06:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:06:19] Production.INFO: ==28181== Releasing lock... [2025-03-09 08:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:06:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:07:05 [end_date_ymd] => 2025-03-09 08:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:07:05' and `end` < '2025-03-09 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-09 08:07:17] Production.INFO: count ==66 [2025-03-09 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:07:05 - End Time 2025-03-09 08:07:05 [2025-03-09 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640853', 'tblTempUsageDetail_20' ) start [2025-03-09 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640853', 'tblTempUsageDetail_20' ) end [2025-03-09 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640853', 'tblTempVendorCDR_20' ) start [2025-03-09 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640853', 'tblTempVendorCDR_20' ) end [2025-03-09 08:07:17] Production.INFO: ProcessCDR(1,14640853,1,1,2) [2025-03-09 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640853', 'tblTempUsageDetail_20' ) start [2025-03-09 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640853', 'tblTempUsageDetail_20' ) end [2025-03-09 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:07:20] Production.INFO: ==28291== Releasing lock... [2025-03-09 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:08:05 [end_date_ymd] => 2025-03-09 08:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:08:05' and `end` < '2025-03-09 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-09 08:08:17] Production.INFO: count ==66 [2025-03-09 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:08:05 - End Time 2025-03-09 08:08:05 [2025-03-09 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640858', 'tblTempUsageDetail_20' ) start [2025-03-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640858', 'tblTempUsageDetail_20' ) end [2025-03-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640858', 'tblTempVendorCDR_20' ) start [2025-03-09 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640858', 'tblTempVendorCDR_20' ) end [2025-03-09 08:08:17] Production.INFO: ProcessCDR(1,14640858,1,1,2) [2025-03-09 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640858', 'tblTempUsageDetail_20' ) start [2025-03-09 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640858', 'tblTempUsageDetail_20' ) end [2025-03-09 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:08:20] Production.INFO: ==28408== Releasing lock... [2025-03-09 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:09:04 [end_date_ymd] => 2025-03-09 08:09:04 [RateCDR] => 1 ) [2025-03-09 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:09:04' and `end` < '2025-03-09 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:09:16] Production.INFO: count ==66 [2025-03-09 08:09:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:09:04 - End Time 2025-03-09 08:09:04 [2025-03-09 08:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640863', 'tblTempUsageDetail_20' ) start [2025-03-09 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640863', 'tblTempUsageDetail_20' ) end [2025-03-09 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640863', 'tblTempVendorCDR_20' ) start [2025-03-09 08:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640863', 'tblTempVendorCDR_20' ) end [2025-03-09 08:09:16] Production.INFO: ProcessCDR(1,14640863,1,1,2) [2025-03-09 08:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640863', 'tblTempUsageDetail_20' ) start [2025-03-09 08:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640863', 'tblTempUsageDetail_20' ) end [2025-03-09 08:09:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:09:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:09:19] Production.INFO: ==28520== Releasing lock... [2025-03-09 08:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:09:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:10:05 [end_date_ymd] => 2025-03-09 08:10:05 [RateCDR] => 1 ) [2025-03-09 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:10:05' and `end` < '2025-03-09 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:10:17] Production.INFO: count ==58 [2025-03-09 08:10:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:10:05 - End Time 2025-03-09 08:10:05 [2025-03-09 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640868', 'tblTempUsageDetail_20' ) start [2025-03-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640868', 'tblTempUsageDetail_20' ) end [2025-03-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640868', 'tblTempVendorCDR_20' ) start [2025-03-09 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640868', 'tblTempVendorCDR_20' ) end [2025-03-09 08:10:18] Production.INFO: ProcessCDR(1,14640868,1,1,2) [2025-03-09 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640868', 'tblTempUsageDetail_20' ) start [2025-03-09 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640868', 'tblTempUsageDetail_20' ) end [2025-03-09 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:10:21] Production.INFO: ==28671== Releasing lock... [2025-03-09 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:11:04 [end_date_ymd] => 2025-03-09 08:11:04 [RateCDR] => 1 ) [2025-03-09 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:11:04' and `end` < '2025-03-09 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:11:16] Production.INFO: count ==58 [2025-03-09 08:11:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:11:04 - End Time 2025-03-09 08:11:04 [2025-03-09 08:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640874', 'tblTempUsageDetail_20' ) start [2025-03-09 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640874', 'tblTempUsageDetail_20' ) end [2025-03-09 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640874', 'tblTempVendorCDR_20' ) start [2025-03-09 08:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640874', 'tblTempVendorCDR_20' ) end [2025-03-09 08:11:16] Production.INFO: ProcessCDR(1,14640874,1,1,2) [2025-03-09 08:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640874', 'tblTempUsageDetail_20' ) start [2025-03-09 08:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640874', 'tblTempUsageDetail_20' ) end [2025-03-09 08:11:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:11:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:11:19] Production.INFO: ==28764== Releasing lock... [2025-03-09 08:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:11:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:12:05 [end_date_ymd] => 2025-03-09 08:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:12:05' and `end` < '2025-03-09 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-09 08:12:18] Production.INFO: count ==58 [2025-03-09 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:12:05 - End Time 2025-03-09 08:12:05 [2025-03-09 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640879', 'tblTempUsageDetail_20' ) start [2025-03-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640879', 'tblTempUsageDetail_20' ) end [2025-03-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640879', 'tblTempVendorCDR_20' ) start [2025-03-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640879', 'tblTempVendorCDR_20' ) end [2025-03-09 08:12:18] Production.INFO: ProcessCDR(1,14640879,1,1,2) [2025-03-09 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640879', 'tblTempUsageDetail_20' ) start [2025-03-09 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640879', 'tblTempUsageDetail_20' ) end [2025-03-09 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:12:21] Production.INFO: ==28838== Releasing lock... [2025-03-09 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:13:04 [end_date_ymd] => 2025-03-09 08:13:04 [RateCDR] => 1 ) [2025-03-09 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:13:04' and `end` < '2025-03-09 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:13:17] Production.INFO: count ==58 [2025-03-09 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:13:04 - End Time 2025-03-09 08:13:04 [2025-03-09 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640884', 'tblTempUsageDetail_20' ) start [2025-03-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640884', 'tblTempUsageDetail_20' ) end [2025-03-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640884', 'tblTempVendorCDR_20' ) start [2025-03-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640884', 'tblTempVendorCDR_20' ) end [2025-03-09 08:13:17] Production.INFO: ProcessCDR(1,14640884,1,1,2) [2025-03-09 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640884', 'tblTempUsageDetail_20' ) start [2025-03-09 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640884', 'tblTempUsageDetail_20' ) end [2025-03-09 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:13:20] Production.INFO: ==28907== Releasing lock... [2025-03-09 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:13:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:14:05 [end_date_ymd] => 2025-03-09 08:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:14:05' and `end` < '2025-03-09 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-09 08:14:17] Production.INFO: count ==58 [2025-03-09 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:14:05 - End Time 2025-03-09 08:14:05 [2025-03-09 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640889', 'tblTempUsageDetail_20' ) start [2025-03-09 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640889', 'tblTempUsageDetail_20' ) end [2025-03-09 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640889', 'tblTempVendorCDR_20' ) start [2025-03-09 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640889', 'tblTempVendorCDR_20' ) end [2025-03-09 08:14:17] Production.INFO: ProcessCDR(1,14640889,1,1,2) [2025-03-09 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640889', 'tblTempUsageDetail_20' ) start [2025-03-09 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640889', 'tblTempUsageDetail_20' ) end [2025-03-09 08:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:14:20] Production.INFO: ==28978== Releasing lock... [2025-03-09 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:15:05 [end_date_ymd] => 2025-03-09 08:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:15:05' and `end` < '2025-03-09 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-09 08:15:17] Production.INFO: count ==58 [2025-03-09 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:15:05 - End Time 2025-03-09 08:15:05 [2025-03-09 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640894', 'tblTempUsageDetail_20' ) start [2025-03-09 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640894', 'tblTempUsageDetail_20' ) end [2025-03-09 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640894', 'tblTempVendorCDR_20' ) start [2025-03-09 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640894', 'tblTempVendorCDR_20' ) end [2025-03-09 08:15:17] Production.INFO: ProcessCDR(1,14640894,1,1,2) [2025-03-09 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640894', 'tblTempUsageDetail_20' ) start [2025-03-09 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640894', 'tblTempUsageDetail_20' ) end [2025-03-09 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:15:21] Production.INFO: ==29061== Releasing lock... [2025-03-09 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:16:04 [end_date_ymd] => 2025-03-09 08:16:04 [RateCDR] => 1 ) [2025-03-09 08:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:16:04' and `end` < '2025-03-09 08:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:16:16] Production.INFO: count ==58 [2025-03-09 08:16:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:16:04 - End Time 2025-03-09 08:16:04 [2025-03-09 08:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640895', 'tblTempUsageDetail_20' ) start [2025-03-09 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640895', 'tblTempUsageDetail_20' ) end [2025-03-09 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640895', 'tblTempVendorCDR_20' ) start [2025-03-09 08:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640895', 'tblTempVendorCDR_20' ) end [2025-03-09 08:16:16] Production.INFO: ProcessCDR(1,14640895,1,1,2) [2025-03-09 08:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640895', 'tblTempUsageDetail_20' ) start [2025-03-09 08:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640895', 'tblTempUsageDetail_20' ) end [2025-03-09 08:16:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:16:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:16:19] Production.INFO: ==29161== Releasing lock... [2025-03-09 08:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:16:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:17:06 [end_date_ymd] => 2025-03-09 08:17:06 [RateCDR] => 1 ) [2025-03-09 08: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-09 05:17:06' and `end` < '2025-03-09 08: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-09 08:17:18] Production.INFO: count ==58 [2025-03-09 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:17:06 - End Time 2025-03-09 08:17:06 [2025-03-09 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640904', 'tblTempUsageDetail_20' ) start [2025-03-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640904', 'tblTempUsageDetail_20' ) end [2025-03-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640904', 'tblTempVendorCDR_20' ) start [2025-03-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640904', 'tblTempVendorCDR_20' ) end [2025-03-09 08:17:18] Production.INFO: ProcessCDR(1,14640904,1,1,2) [2025-03-09 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640904', 'tblTempUsageDetail_20' ) start [2025-03-09 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640904', 'tblTempUsageDetail_20' ) end [2025-03-09 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:17:21] Production.INFO: ==29265== Releasing lock... [2025-03-09 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:18:05 [end_date_ymd] => 2025-03-09 08:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:18:05' and `end` < '2025-03-09 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-09 08:18:17] Production.INFO: count ==57 [2025-03-09 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:18:05 - End Time 2025-03-09 08:18:05 [2025-03-09 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640909', 'tblTempUsageDetail_20' ) start [2025-03-09 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640909', 'tblTempUsageDetail_20' ) end [2025-03-09 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640909', 'tblTempVendorCDR_20' ) start [2025-03-09 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640909', 'tblTempVendorCDR_20' ) end [2025-03-09 08:18:17] Production.INFO: ProcessCDR(1,14640909,1,1,2) [2025-03-09 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640909', 'tblTempUsageDetail_20' ) start [2025-03-09 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640909', 'tblTempUsageDetail_20' ) end [2025-03-09 08:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:18:20] Production.INFO: ==29364== Releasing lock... [2025-03-09 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:19:05 [end_date_ymd] => 2025-03-09 08:19:05 [RateCDR] => 1 ) [2025-03-09 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:19:05' and `end` < '2025-03-09 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:19:17] Production.INFO: count ==57 [2025-03-09 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:19:05 - End Time 2025-03-09 08:19:05 [2025-03-09 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640914', 'tblTempUsageDetail_20' ) start [2025-03-09 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640914', 'tblTempUsageDetail_20' ) end [2025-03-09 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640914', 'tblTempVendorCDR_20' ) start [2025-03-09 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640914', 'tblTempVendorCDR_20' ) end [2025-03-09 08:19:17] Production.INFO: ProcessCDR(1,14640914,1,1,2) [2025-03-09 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640914', 'tblTempUsageDetail_20' ) start [2025-03-09 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640914', 'tblTempUsageDetail_20' ) end [2025-03-09 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:19:21] Production.INFO: ==29473== Releasing lock... [2025-03-09 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:20:06 [end_date_ymd] => 2025-03-09 08:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 05:20:06' and `end` < '2025-03-09 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-09 08:20:18] Production.INFO: count ==57 [2025-03-09 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:20:06 - End Time 2025-03-09 08:20:06 [2025-03-09 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640916', 'tblTempUsageDetail_20' ) start [2025-03-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640916', 'tblTempUsageDetail_20' ) end [2025-03-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640916', 'tblTempVendorCDR_20' ) start [2025-03-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640916', 'tblTempVendorCDR_20' ) end [2025-03-09 08:20:18] Production.INFO: ProcessCDR(1,14640916,1,1,2) [2025-03-09 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640916', 'tblTempUsageDetail_20' ) start [2025-03-09 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640916', 'tblTempUsageDetail_20' ) end [2025-03-09 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:20:21] Production.INFO: ==29574== Releasing lock... [2025-03-09 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:21:05 [end_date_ymd] => 2025-03-09 08:21:05 [RateCDR] => 1 ) [2025-03-09 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:21:05' and `end` < '2025-03-09 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:21:17] Production.INFO: count ==57 [2025-03-09 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:21:05 - End Time 2025-03-09 08:21:05 [2025-03-09 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640925', 'tblTempUsageDetail_20' ) start [2025-03-09 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640925', 'tblTempUsageDetail_20' ) end [2025-03-09 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640925', 'tblTempVendorCDR_20' ) start [2025-03-09 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640925', 'tblTempVendorCDR_20' ) end [2025-03-09 08:21:17] Production.INFO: ProcessCDR(1,14640925,1,1,2) [2025-03-09 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640925', 'tblTempUsageDetail_20' ) start [2025-03-09 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640925', 'tblTempUsageDetail_20' ) end [2025-03-09 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:21:21] Production.INFO: ==29679== Releasing lock... [2025-03-09 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:22:05 [end_date_ymd] => 2025-03-09 08:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:22:05' and `end` < '2025-03-09 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-09 08:22:17] Production.INFO: count ==57 [2025-03-09 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:22:05 - End Time 2025-03-09 08:22:05 [2025-03-09 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640930', 'tblTempUsageDetail_20' ) start [2025-03-09 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640930', 'tblTempUsageDetail_20' ) end [2025-03-09 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640930', 'tblTempVendorCDR_20' ) start [2025-03-09 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640930', 'tblTempVendorCDR_20' ) end [2025-03-09 08:22:17] Production.INFO: ProcessCDR(1,14640930,1,1,2) [2025-03-09 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640930', 'tblTempUsageDetail_20' ) start [2025-03-09 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640930', 'tblTempUsageDetail_20' ) end [2025-03-09 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:22:20] Production.INFO: ==29782== Releasing lock... [2025-03-09 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:23:05 [end_date_ymd] => 2025-03-09 08:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:23:05' and `end` < '2025-03-09 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-09 08:23:17] Production.INFO: count ==57 [2025-03-09 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:23:05 - End Time 2025-03-09 08:23:05 [2025-03-09 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640935', 'tblTempUsageDetail_20' ) start [2025-03-09 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640935', 'tblTempUsageDetail_20' ) end [2025-03-09 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640935', 'tblTempVendorCDR_20' ) start [2025-03-09 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640935', 'tblTempVendorCDR_20' ) end [2025-03-09 08:23:17] Production.INFO: ProcessCDR(1,14640935,1,1,2) [2025-03-09 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640935', 'tblTempUsageDetail_20' ) start [2025-03-09 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640935', 'tblTempUsageDetail_20' ) end [2025-03-09 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:23:21] Production.INFO: ==29886== Releasing lock... [2025-03-09 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:24:04 [end_date_ymd] => 2025-03-09 08:24:04 [RateCDR] => 1 ) [2025-03-09 08: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-09 05:24:04' and `end` < '2025-03-09 08: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-09 08:24:16] Production.INFO: count ==57 [2025-03-09 08:24:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:24:04 - End Time 2025-03-09 08:24:04 [2025-03-09 08:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640940', 'tblTempUsageDetail_20' ) start [2025-03-09 08:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640940', 'tblTempUsageDetail_20' ) end [2025-03-09 08:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640940', 'tblTempVendorCDR_20' ) start [2025-03-09 08:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640940', 'tblTempVendorCDR_20' ) end [2025-03-09 08:24:16] Production.INFO: ProcessCDR(1,14640940,1,1,2) [2025-03-09 08:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:24:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640940', 'tblTempUsageDetail_20' ) start [2025-03-09 08:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640940', 'tblTempUsageDetail_20' ) end [2025-03-09 08:24:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:24:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:24:19] Production.INFO: ==29989== Releasing lock... [2025-03-09 08:24:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:24:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:25:05 [end_date_ymd] => 2025-03-09 08:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:25:05' and `end` < '2025-03-09 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-09 08:25:17] Production.INFO: count ==57 [2025-03-09 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:25:05 - End Time 2025-03-09 08:25:05 [2025-03-09 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640944', 'tblTempUsageDetail_20' ) start [2025-03-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640944', 'tblTempUsageDetail_20' ) end [2025-03-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640944', 'tblTempVendorCDR_20' ) start [2025-03-09 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640944', 'tblTempVendorCDR_20' ) end [2025-03-09 08:25:17] Production.INFO: ProcessCDR(1,14640944,1,1,2) [2025-03-09 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640944', 'tblTempUsageDetail_20' ) start [2025-03-09 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640944', 'tblTempUsageDetail_20' ) end [2025-03-09 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:25:20] Production.INFO: ==30126== Releasing lock... [2025-03-09 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:26:05 [end_date_ymd] => 2025-03-09 08:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:26:05' and `end` < '2025-03-09 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-09 08:26:17] Production.INFO: count ==57 [2025-03-09 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:26:05 - End Time 2025-03-09 08:26:05 [2025-03-09 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640950', 'tblTempUsageDetail_20' ) start [2025-03-09 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640950', 'tblTempUsageDetail_20' ) end [2025-03-09 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640950', 'tblTempVendorCDR_20' ) start [2025-03-09 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640950', 'tblTempVendorCDR_20' ) end [2025-03-09 08:26:17] Production.INFO: ProcessCDR(1,14640950,1,1,2) [2025-03-09 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640950', 'tblTempUsageDetail_20' ) start [2025-03-09 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640950', 'tblTempUsageDetail_20' ) end [2025-03-09 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:26:20] Production.INFO: ==30228== Releasing lock... [2025-03-09 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:27:04 [end_date_ymd] => 2025-03-09 08:27:04 [RateCDR] => 1 ) [2025-03-09 08: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-09 05:27:04' and `end` < '2025-03-09 08: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-09 08:27:16] Production.INFO: count ==57 [2025-03-09 08:27:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:27:04 - End Time 2025-03-09 08:27:04 [2025-03-09 08:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640955', 'tblTempUsageDetail_20' ) start [2025-03-09 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640955', 'tblTempUsageDetail_20' ) end [2025-03-09 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640955', 'tblTempVendorCDR_20' ) start [2025-03-09 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640955', 'tblTempVendorCDR_20' ) end [2025-03-09 08:27:16] Production.INFO: ProcessCDR(1,14640955,1,1,2) [2025-03-09 08:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640955', 'tblTempUsageDetail_20' ) start [2025-03-09 08:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640955', 'tblTempUsageDetail_20' ) end [2025-03-09 08:27:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:27:20] Production.INFO: ==30329== Releasing lock... [2025-03-09 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:28:05 [end_date_ymd] => 2025-03-09 08:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:28:05' and `end` < '2025-03-09 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-09 08:28:17] Production.INFO: count ==57 [2025-03-09 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:28:05 - End Time 2025-03-09 08:28:05 [2025-03-09 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640960', 'tblTempUsageDetail_20' ) start [2025-03-09 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640960', 'tblTempUsageDetail_20' ) end [2025-03-09 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640960', 'tblTempVendorCDR_20' ) start [2025-03-09 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640960', 'tblTempVendorCDR_20' ) end [2025-03-09 08:28:17] Production.INFO: ProcessCDR(1,14640960,1,1,2) [2025-03-09 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640960', 'tblTempUsageDetail_20' ) start [2025-03-09 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640960', 'tblTempUsageDetail_20' ) end [2025-03-09 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:28:20] Production.INFO: ==30441== Releasing lock... [2025-03-09 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:29:05 [end_date_ymd] => 2025-03-09 08:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:29:05' and `end` < '2025-03-09 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-09 08:29:17] Production.INFO: count ==57 [2025-03-09 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:29:05 - End Time 2025-03-09 08:29:05 [2025-03-09 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640965', 'tblTempUsageDetail_20' ) start [2025-03-09 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640965', 'tblTempUsageDetail_20' ) end [2025-03-09 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640965', 'tblTempVendorCDR_20' ) start [2025-03-09 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640965', 'tblTempVendorCDR_20' ) end [2025-03-09 08:29:17] Production.INFO: ProcessCDR(1,14640965,1,1,2) [2025-03-09 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640965', 'tblTempUsageDetail_20' ) start [2025-03-09 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640965', 'tblTempUsageDetail_20' ) end [2025-03-09 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:29:20] Production.INFO: ==30547== Releasing lock... [2025-03-09 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:30:06 [end_date_ymd] => 2025-03-09 08:30:06 [RateCDR] => 1 ) [2025-03-09 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:30:06' and `end` < '2025-03-09 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:30:18] Production.INFO: count ==56 [2025-03-09 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:30:06 - End Time 2025-03-09 08:30:06 [2025-03-09 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640971', 'tblTempUsageDetail_20' ) start [2025-03-09 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640971', 'tblTempUsageDetail_20' ) end [2025-03-09 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640971', 'tblTempVendorCDR_20' ) start [2025-03-09 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640971', 'tblTempVendorCDR_20' ) end [2025-03-09 08:30:18] Production.INFO: ProcessCDR(1,14640971,1,1,2) [2025-03-09 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640971', 'tblTempUsageDetail_20' ) start [2025-03-09 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640971', 'tblTempUsageDetail_20' ) end [2025-03-09 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:30:22] Production.INFO: ==30656== Releasing lock... [2025-03-09 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:31:04 [end_date_ymd] => 2025-03-09 08:31:04 [RateCDR] => 1 ) [2025-03-09 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:31:04' and `end` < '2025-03-09 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:31:16] Production.INFO: count ==53 [2025-03-09 08:31:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:31:04 - End Time 2025-03-09 08:31:04 [2025-03-09 08:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640976', 'tblTempUsageDetail_20' ) start [2025-03-09 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640976', 'tblTempUsageDetail_20' ) end [2025-03-09 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640976', 'tblTempVendorCDR_20' ) start [2025-03-09 08:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640976', 'tblTempVendorCDR_20' ) end [2025-03-09 08:31:16] Production.INFO: ProcessCDR(1,14640976,1,1,2) [2025-03-09 08:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640976', 'tblTempUsageDetail_20' ) start [2025-03-09 08:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640976', 'tblTempUsageDetail_20' ) end [2025-03-09 08:31:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:31:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:31:19] Production.INFO: ==30760== Releasing lock... [2025-03-09 08:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:31:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:32:05 [end_date_ymd] => 2025-03-09 08:32:05 [RateCDR] => 1 ) [2025-03-09 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:32:05' and `end` < '2025-03-09 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:32:17] Production.INFO: count ==53 [2025-03-09 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:32:05 - End Time 2025-03-09 08:32:05 [2025-03-09 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640981', 'tblTempUsageDetail_20' ) start [2025-03-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640981', 'tblTempUsageDetail_20' ) end [2025-03-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640981', 'tblTempVendorCDR_20' ) start [2025-03-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640981', 'tblTempVendorCDR_20' ) end [2025-03-09 08:32:17] Production.INFO: ProcessCDR(1,14640981,1,1,2) [2025-03-09 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640981', 'tblTempUsageDetail_20' ) start [2025-03-09 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640981', 'tblTempUsageDetail_20' ) end [2025-03-09 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:32:21] Production.INFO: ==30864== Releasing lock... [2025-03-09 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:33:04 [end_date_ymd] => 2025-03-09 08:33:04 [RateCDR] => 1 ) [2025-03-09 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-09 05:33:04' and `end` < '2025-03-09 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-09 08:33:16] Production.INFO: count ==50 [2025-03-09 08:33:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:33:04 - End Time 2025-03-09 08:33:04 [2025-03-09 08:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640986', 'tblTempUsageDetail_20' ) start [2025-03-09 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640986', 'tblTempUsageDetail_20' ) end [2025-03-09 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640986', 'tblTempVendorCDR_20' ) start [2025-03-09 08:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640986', 'tblTempVendorCDR_20' ) end [2025-03-09 08:33:16] Production.INFO: ProcessCDR(1,14640986,1,1,2) [2025-03-09 08:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640986', 'tblTempUsageDetail_20' ) start [2025-03-09 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640986', 'tblTempUsageDetail_20' ) end [2025-03-09 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:33:20] Production.INFO: ==30967== Releasing lock... [2025-03-09 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:34:05 [end_date_ymd] => 2025-03-09 08:34:05 [RateCDR] => 1 ) [2025-03-09 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:34:05' and `end` < '2025-03-09 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:34:17] Production.INFO: count ==50 [2025-03-09 08:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:34:05 - End Time 2025-03-09 08:34:05 [2025-03-09 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640991', 'tblTempUsageDetail_20' ) start [2025-03-09 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640991', 'tblTempUsageDetail_20' ) end [2025-03-09 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640991', 'tblTempVendorCDR_20' ) start [2025-03-09 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640991', 'tblTempVendorCDR_20' ) end [2025-03-09 08:34:17] Production.INFO: ProcessCDR(1,14640991,1,1,2) [2025-03-09 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640991', 'tblTempUsageDetail_20' ) start [2025-03-09 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640991', 'tblTempUsageDetail_20' ) end [2025-03-09 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:34:20] Production.INFO: ==31043== Releasing lock... [2025-03-09 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:35:05 [end_date_ymd] => 2025-03-09 08:35:05 [RateCDR] => 1 ) [2025-03-09 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:35:05' and `end` < '2025-03-09 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:35:17] Production.INFO: count ==50 [2025-03-09 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:35:05 - End Time 2025-03-09 08:35:05 [2025-03-09 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640996', 'tblTempUsageDetail_20' ) start [2025-03-09 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14640996', 'tblTempUsageDetail_20' ) end [2025-03-09 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640996', 'tblTempVendorCDR_20' ) start [2025-03-09 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14640996', 'tblTempVendorCDR_20' ) end [2025-03-09 08:35:17] Production.INFO: ProcessCDR(1,14640996,1,1,2) [2025-03-09 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14640996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14640996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14640996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14640996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640996', 'tblTempUsageDetail_20' ) start [2025-03-09 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14640996', 'tblTempUsageDetail_20' ) end [2025-03-09 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:35:20] Production.INFO: ==31112== Releasing lock... [2025-03-09 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:36:05 [end_date_ymd] => 2025-03-09 08:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:36:05' and `end` < '2025-03-09 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-09 08:36:17] Production.INFO: count ==50 [2025-03-09 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:36:05 - End Time 2025-03-09 08:36:05 [2025-03-09 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641001', 'tblTempUsageDetail_20' ) start [2025-03-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641001', 'tblTempUsageDetail_20' ) end [2025-03-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641001', 'tblTempVendorCDR_20' ) start [2025-03-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641001', 'tblTempVendorCDR_20' ) end [2025-03-09 08:36:17] Production.INFO: ProcessCDR(1,14641001,1,1,2) [2025-03-09 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641001', 'tblTempUsageDetail_20' ) start [2025-03-09 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641001', 'tblTempUsageDetail_20' ) end [2025-03-09 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:36:20] Production.INFO: ==31185== Releasing lock... [2025-03-09 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:36:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:37:04 [end_date_ymd] => 2025-03-09 08:37:04 [RateCDR] => 1 ) [2025-03-09 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:37:04' and `end` < '2025-03-09 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:37:16] Production.INFO: count ==50 [2025-03-09 08:37:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:37:04 - End Time 2025-03-09 08:37:04 [2025-03-09 08:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641006', 'tblTempUsageDetail_20' ) start [2025-03-09 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641006', 'tblTempUsageDetail_20' ) end [2025-03-09 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641006', 'tblTempVendorCDR_20' ) start [2025-03-09 08:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641006', 'tblTempVendorCDR_20' ) end [2025-03-09 08:37:16] Production.INFO: ProcessCDR(1,14641006,1,1,2) [2025-03-09 08:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641006', 'tblTempUsageDetail_20' ) start [2025-03-09 08:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641006', 'tblTempUsageDetail_20' ) end [2025-03-09 08:37:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:37:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:37:19] Production.INFO: ==31254== Releasing lock... [2025-03-09 08:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:37:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:38:05 [end_date_ymd] => 2025-03-09 08:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:38:05' and `end` < '2025-03-09 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-09 08:38:17] Production.INFO: count ==50 [2025-03-09 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:38:05 - End Time 2025-03-09 08:38:05 [2025-03-09 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641011', 'tblTempUsageDetail_20' ) start [2025-03-09 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641011', 'tblTempUsageDetail_20' ) end [2025-03-09 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641011', 'tblTempVendorCDR_20' ) start [2025-03-09 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641011', 'tblTempVendorCDR_20' ) end [2025-03-09 08:38:17] Production.INFO: ProcessCDR(1,14641011,1,1,2) [2025-03-09 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641011', 'tblTempUsageDetail_20' ) start [2025-03-09 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641011', 'tblTempUsageDetail_20' ) end [2025-03-09 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:38:20] Production.INFO: ==31328== Releasing lock... [2025-03-09 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:39:05 [end_date_ymd] => 2025-03-09 08:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:39:05' and `end` < '2025-03-09 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-09 08:39:17] Production.INFO: count ==50 [2025-03-09 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:39:05 - End Time 2025-03-09 08:39:05 [2025-03-09 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641016', 'tblTempUsageDetail_20' ) start [2025-03-09 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641016', 'tblTempUsageDetail_20' ) end [2025-03-09 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641016', 'tblTempVendorCDR_20' ) start [2025-03-09 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641016', 'tblTempVendorCDR_20' ) end [2025-03-09 08:39:17] Production.INFO: ProcessCDR(1,14641016,1,1,2) [2025-03-09 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641016', 'tblTempUsageDetail_20' ) start [2025-03-09 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641016', 'tblTempUsageDetail_20' ) end [2025-03-09 08:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:39:20] Production.INFO: ==31402== Releasing lock... [2025-03-09 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:40:05 [end_date_ymd] => 2025-03-09 08:40:05 [RateCDR] => 1 ) [2025-03-09 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:40:05' and `end` < '2025-03-09 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:40:17] Production.INFO: count ==52 [2025-03-09 08:40:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:40:05 - End Time 2025-03-09 08:40:05 [2025-03-09 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641021', 'tblTempUsageDetail_20' ) start [2025-03-09 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641021', 'tblTempUsageDetail_20' ) end [2025-03-09 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641021', 'tblTempVendorCDR_20' ) start [2025-03-09 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641021', 'tblTempVendorCDR_20' ) end [2025-03-09 08:40:17] Production.INFO: ProcessCDR(1,14641021,1,1,2) [2025-03-09 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641021', 'tblTempUsageDetail_20' ) start [2025-03-09 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641021', 'tblTempUsageDetail_20' ) end [2025-03-09 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:40:21] Production.INFO: ==31512== Releasing lock... [2025-03-09 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:41:05 [end_date_ymd] => 2025-03-09 08:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:41:05' and `end` < '2025-03-09 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-09 08:41:17] Production.INFO: count ==52 [2025-03-09 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:41:05 - End Time 2025-03-09 08:41:05 [2025-03-09 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641027', 'tblTempUsageDetail_20' ) start [2025-03-09 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641027', 'tblTempUsageDetail_20' ) end [2025-03-09 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641027', 'tblTempVendorCDR_20' ) start [2025-03-09 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641027', 'tblTempVendorCDR_20' ) end [2025-03-09 08:41:17] Production.INFO: ProcessCDR(1,14641027,1,1,2) [2025-03-09 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641027', 'tblTempUsageDetail_20' ) start [2025-03-09 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641027', 'tblTempUsageDetail_20' ) end [2025-03-09 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:41:21] Production.INFO: ==31586== Releasing lock... [2025-03-09 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:42:04 [end_date_ymd] => 2025-03-09 08:42:04 [RateCDR] => 1 ) [2025-03-09 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-09 05:42:04' and `end` < '2025-03-09 08:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:42:16] Production.INFO: count ==52 [2025-03-09 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:42:04 - End Time 2025-03-09 08:42:04 [2025-03-09 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641032', 'tblTempUsageDetail_20' ) start [2025-03-09 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641032', 'tblTempUsageDetail_20' ) end [2025-03-09 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641032', 'tblTempVendorCDR_20' ) start [2025-03-09 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641032', 'tblTempVendorCDR_20' ) end [2025-03-09 08:42:17] Production.INFO: ProcessCDR(1,14641032,1,1,2) [2025-03-09 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641032', 'tblTempUsageDetail_20' ) start [2025-03-09 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641032', 'tblTempUsageDetail_20' ) end [2025-03-09 08:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:42:20] Production.INFO: ==31656== Releasing lock... [2025-03-09 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:43:05 [end_date_ymd] => 2025-03-09 08:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:43:05' and `end` < '2025-03-09 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-09 08:43:17] Production.INFO: count ==52 [2025-03-09 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:43:05 - End Time 2025-03-09 08:43:05 [2025-03-09 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641037', 'tblTempUsageDetail_20' ) start [2025-03-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641037', 'tblTempUsageDetail_20' ) end [2025-03-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641037', 'tblTempVendorCDR_20' ) start [2025-03-09 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641037', 'tblTempVendorCDR_20' ) end [2025-03-09 08:43:17] Production.INFO: ProcessCDR(1,14641037,1,1,2) [2025-03-09 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641037', 'tblTempUsageDetail_20' ) start [2025-03-09 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641037', 'tblTempUsageDetail_20' ) end [2025-03-09 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:43:20] Production.INFO: ==31726== Releasing lock... [2025-03-09 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:44:05 [end_date_ymd] => 2025-03-09 08:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:44:05' and `end` < '2025-03-09 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-09 08:44:18] Production.INFO: count ==52 [2025-03-09 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:44:05 - End Time 2025-03-09 08:44:05 [2025-03-09 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641042', 'tblTempUsageDetail_20' ) start [2025-03-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641042', 'tblTempUsageDetail_20' ) end [2025-03-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641042', 'tblTempVendorCDR_20' ) start [2025-03-09 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641042', 'tblTempVendorCDR_20' ) end [2025-03-09 08:44:18] Production.INFO: ProcessCDR(1,14641042,1,1,2) [2025-03-09 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641042', 'tblTempUsageDetail_20' ) start [2025-03-09 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641042', 'tblTempUsageDetail_20' ) end [2025-03-09 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:44:21] Production.INFO: ==31802== Releasing lock... [2025-03-09 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:45:05 [end_date_ymd] => 2025-03-09 08:45:05 [RateCDR] => 1 ) [2025-03-09 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:45:05' and `end` < '2025-03-09 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:45:17] Production.INFO: count ==52 [2025-03-09 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:45:05 - End Time 2025-03-09 08:45:05 [2025-03-09 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641047', 'tblTempUsageDetail_20' ) start [2025-03-09 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641047', 'tblTempUsageDetail_20' ) end [2025-03-09 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641047', 'tblTempVendorCDR_20' ) start [2025-03-09 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641047', 'tblTempVendorCDR_20' ) end [2025-03-09 08:45:17] Production.INFO: ProcessCDR(1,14641047,1,1,2) [2025-03-09 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641047', 'tblTempUsageDetail_20' ) start [2025-03-09 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641047', 'tblTempUsageDetail_20' ) end [2025-03-09 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:45:20] Production.INFO: ==31876== Releasing lock... [2025-03-09 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:46:05 [end_date_ymd] => 2025-03-09 08:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:46:05' and `end` < '2025-03-09 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-09 08:46:18] Production.INFO: count ==52 [2025-03-09 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:46:05 - End Time 2025-03-09 08:46:05 [2025-03-09 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641052', 'tblTempUsageDetail_20' ) start [2025-03-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641052', 'tblTempUsageDetail_20' ) end [2025-03-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641052', 'tblTempVendorCDR_20' ) start [2025-03-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641052', 'tblTempVendorCDR_20' ) end [2025-03-09 08:46:18] Production.INFO: ProcessCDR(1,14641052,1,1,2) [2025-03-09 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641052', 'tblTempUsageDetail_20' ) start [2025-03-09 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641052', 'tblTempUsageDetail_20' ) end [2025-03-09 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:46:21] Production.INFO: ==31947== Releasing lock... [2025-03-09 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:47:05 [end_date_ymd] => 2025-03-09 08:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:47:05' and `end` < '2025-03-09 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-09 08:47:17] Production.INFO: count ==52 [2025-03-09 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:47:05 - End Time 2025-03-09 08:47:05 [2025-03-09 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641057', 'tblTempUsageDetail_20' ) start [2025-03-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641057', 'tblTempUsageDetail_20' ) end [2025-03-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641057', 'tblTempVendorCDR_20' ) start [2025-03-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641057', 'tblTempVendorCDR_20' ) end [2025-03-09 08:47:17] Production.INFO: ProcessCDR(1,14641057,1,1,2) [2025-03-09 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641057', 'tblTempUsageDetail_20' ) start [2025-03-09 08:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641057', 'tblTempUsageDetail_20' ) end [2025-03-09 08:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:47:20] Production.INFO: ==32022== Releasing lock... [2025-03-09 08:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:48:05 [end_date_ymd] => 2025-03-09 08:48:05 [RateCDR] => 1 ) [2025-03-09 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:48:05' and `end` < '2025-03-09 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:48:17] Production.INFO: count ==52 [2025-03-09 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:48:05 - End Time 2025-03-09 08:48:05 [2025-03-09 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641062', 'tblTempUsageDetail_20' ) start [2025-03-09 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641062', 'tblTempUsageDetail_20' ) end [2025-03-09 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641062', 'tblTempVendorCDR_20' ) start [2025-03-09 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641062', 'tblTempVendorCDR_20' ) end [2025-03-09 08:48:17] Production.INFO: ProcessCDR(1,14641062,1,1,2) [2025-03-09 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641062', 'tblTempUsageDetail_20' ) start [2025-03-09 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641062', 'tblTempUsageDetail_20' ) end [2025-03-09 08:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:48:20] Production.INFO: ==32098== Releasing lock... [2025-03-09 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:49:04 [end_date_ymd] => 2025-03-09 08:49:04 [RateCDR] => 1 ) [2025-03-09 08: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-09 05:49:04' and `end` < '2025-03-09 08: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-09 08:49:16] Production.INFO: count ==52 [2025-03-09 08:49:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:49:04 - End Time 2025-03-09 08:49:04 [2025-03-09 08:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641067', 'tblTempUsageDetail_20' ) start [2025-03-09 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641067', 'tblTempUsageDetail_20' ) end [2025-03-09 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641067', 'tblTempVendorCDR_20' ) start [2025-03-09 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641067', 'tblTempVendorCDR_20' ) end [2025-03-09 08:49:16] Production.INFO: ProcessCDR(1,14641067,1,1,2) [2025-03-09 08:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641067', 'tblTempUsageDetail_20' ) start [2025-03-09 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641067', 'tblTempUsageDetail_20' ) end [2025-03-09 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:49:20] Production.INFO: ==32170== Releasing lock... [2025-03-09 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:50:06 [end_date_ymd] => 2025-03-09 08:50:06 [RateCDR] => 1 ) [2025-03-09 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:50:06' and `end` < '2025-03-09 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:50:18] Production.INFO: count ==52 [2025-03-09 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 05:50:06 - End Time 2025-03-09 08:50:06 [2025-03-09 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641073', 'tblTempUsageDetail_20' ) start [2025-03-09 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641073', 'tblTempUsageDetail_20' ) end [2025-03-09 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641073', 'tblTempVendorCDR_20' ) start [2025-03-09 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641073', 'tblTempVendorCDR_20' ) end [2025-03-09 08:50:18] Production.INFO: ProcessCDR(1,14641073,1,1,2) [2025-03-09 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641073', 'tblTempUsageDetail_20' ) start [2025-03-09 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641073', 'tblTempUsageDetail_20' ) end [2025-03-09 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:50:21] Production.INFO: ==32243== Releasing lock... [2025-03-09 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:51:05 [end_date_ymd] => 2025-03-09 08:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:51:05' and `end` < '2025-03-09 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-09 08:51:17] Production.INFO: count ==52 [2025-03-09 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:51:05 - End Time 2025-03-09 08:51:05 [2025-03-09 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641078', 'tblTempUsageDetail_20' ) start [2025-03-09 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641078', 'tblTempUsageDetail_20' ) end [2025-03-09 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641078', 'tblTempVendorCDR_20' ) start [2025-03-09 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641078', 'tblTempVendorCDR_20' ) end [2025-03-09 08:51:17] Production.INFO: ProcessCDR(1,14641078,1,1,2) [2025-03-09 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641078', 'tblTempUsageDetail_20' ) start [2025-03-09 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641078', 'tblTempUsageDetail_20' ) end [2025-03-09 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:51:20] Production.INFO: ==32316== Releasing lock... [2025-03-09 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:52:05 [end_date_ymd] => 2025-03-09 08:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:52:05' and `end` < '2025-03-09 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-09 08:52:17] Production.INFO: count ==52 [2025-03-09 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:52:05 - End Time 2025-03-09 08:52:05 [2025-03-09 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641083', 'tblTempUsageDetail_20' ) start [2025-03-09 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641083', 'tblTempUsageDetail_20' ) end [2025-03-09 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641083', 'tblTempVendorCDR_20' ) start [2025-03-09 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641083', 'tblTempVendorCDR_20' ) end [2025-03-09 08:52:17] Production.INFO: ProcessCDR(1,14641083,1,1,2) [2025-03-09 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641083', 'tblTempUsageDetail_20' ) start [2025-03-09 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641083', 'tblTempUsageDetail_20' ) end [2025-03-09 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:52:20] Production.INFO: ==32387== Releasing lock... [2025-03-09 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:53:04 [end_date_ymd] => 2025-03-09 08:53:04 [RateCDR] => 1 ) [2025-03-09 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:53:04' and `end` < '2025-03-09 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:53:16] Production.INFO: count ==52 [2025-03-09 08:53:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:53:04 - End Time 2025-03-09 08:53:04 [2025-03-09 08:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641088', 'tblTempUsageDetail_20' ) start [2025-03-09 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641088', 'tblTempUsageDetail_20' ) end [2025-03-09 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641088', 'tblTempVendorCDR_20' ) start [2025-03-09 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641088', 'tblTempVendorCDR_20' ) end [2025-03-09 08:53:16] Production.INFO: ProcessCDR(1,14641088,1,1,2) [2025-03-09 08:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641088', 'tblTempUsageDetail_20' ) start [2025-03-09 08:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641088', 'tblTempUsageDetail_20' ) end [2025-03-09 08:53:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:53:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:53:19] Production.INFO: ==32460== Releasing lock... [2025-03-09 08:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:53:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:54:05 [end_date_ymd] => 2025-03-09 08:54:05 [RateCDR] => 1 ) [2025-03-09 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:54:05' and `end` < '2025-03-09 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:54:17] Production.INFO: count ==52 [2025-03-09 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:54:05 - End Time 2025-03-09 08:54:05 [2025-03-09 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641093', 'tblTempUsageDetail_20' ) start [2025-03-09 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641093', 'tblTempUsageDetail_20' ) end [2025-03-09 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641093', 'tblTempVendorCDR_20' ) start [2025-03-09 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641093', 'tblTempVendorCDR_20' ) end [2025-03-09 08:54:17] Production.INFO: ProcessCDR(1,14641093,1,1,2) [2025-03-09 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641093', 'tblTempUsageDetail_20' ) start [2025-03-09 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641093', 'tblTempUsageDetail_20' ) end [2025-03-09 08:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:54:20] Production.INFO: ==32531== Releasing lock... [2025-03-09 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:55:05 [end_date_ymd] => 2025-03-09 08:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:55:05' and `end` < '2025-03-09 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-09 08:55:17] Production.INFO: count ==52 [2025-03-09 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:55:05 - End Time 2025-03-09 08:55:05 [2025-03-09 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641098', 'tblTempUsageDetail_20' ) start [2025-03-09 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641098', 'tblTempUsageDetail_20' ) end [2025-03-09 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641098', 'tblTempVendorCDR_20' ) start [2025-03-09 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641098', 'tblTempVendorCDR_20' ) end [2025-03-09 08:55:17] Production.INFO: ProcessCDR(1,14641098,1,1,2) [2025-03-09 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641098', 'tblTempUsageDetail_20' ) start [2025-03-09 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641098', 'tblTempUsageDetail_20' ) end [2025-03-09 08:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:55:20] Production.INFO: ==32602== Releasing lock... [2025-03-09 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:56:05 [end_date_ymd] => 2025-03-09 08:56:05 [RateCDR] => 1 ) [2025-03-09 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:56:05' and `end` < '2025-03-09 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:56:17] Production.INFO: count ==52 [2025-03-09 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:56:05 - End Time 2025-03-09 08:56:05 [2025-03-09 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641103', 'tblTempUsageDetail_20' ) start [2025-03-09 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641103', 'tblTempUsageDetail_20' ) end [2025-03-09 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641103', 'tblTempVendorCDR_20' ) start [2025-03-09 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641103', 'tblTempVendorCDR_20' ) end [2025-03-09 08:56:17] Production.INFO: ProcessCDR(1,14641103,1,1,2) [2025-03-09 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641103', 'tblTempUsageDetail_20' ) start [2025-03-09 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641103', 'tblTempUsageDetail_20' ) end [2025-03-09 08:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:56:20] Production.INFO: ==32713== Releasing lock... [2025-03-09 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:57:05 [end_date_ymd] => 2025-03-09 08:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:57:05' and `end` < '2025-03-09 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-09 08:57:17] Production.INFO: count ==52 [2025-03-09 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:57:05 - End Time 2025-03-09 08:57:05 [2025-03-09 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641108', 'tblTempUsageDetail_20' ) start [2025-03-09 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641108', 'tblTempUsageDetail_20' ) end [2025-03-09 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641108', 'tblTempVendorCDR_20' ) start [2025-03-09 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641108', 'tblTempVendorCDR_20' ) end [2025-03-09 08:57:17] Production.INFO: ProcessCDR(1,14641108,1,1,2) [2025-03-09 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641108', 'tblTempUsageDetail_20' ) start [2025-03-09 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641108', 'tblTempUsageDetail_20' ) end [2025-03-09 08:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:57:20] Production.INFO: ==322== Releasing lock... [2025-03-09 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:58:04 [end_date_ymd] => 2025-03-09 08:58:04 [RateCDR] => 1 ) [2025-03-09 08:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 05:58:04' and `end` < '2025-03-09 08:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 08:58:16] Production.INFO: count ==52 [2025-03-09 08:58:16] Production.ERROR: pbx CDR StartTime 2025-03-09 05:58:04 - End Time 2025-03-09 08:58:04 [2025-03-09 08:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641113', 'tblTempUsageDetail_20' ) start [2025-03-09 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641113', 'tblTempUsageDetail_20' ) end [2025-03-09 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641113', 'tblTempVendorCDR_20' ) start [2025-03-09 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641113', 'tblTempVendorCDR_20' ) end [2025-03-09 08:58:16] Production.INFO: ProcessCDR(1,14641113,1,1,2) [2025-03-09 08:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641113', 'tblTempUsageDetail_20' ) start [2025-03-09 08:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641113', 'tblTempUsageDetail_20' ) end [2025-03-09 08:58:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:58:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:58:19] Production.INFO: ==410== Releasing lock... [2025-03-09 08:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:58:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 05:59:05 [end_date_ymd] => 2025-03-09 08:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 05:59:05' and `end` < '2025-03-09 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-09 08:59:17] Production.INFO: count ==55 [2025-03-09 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 05:59:05 - End Time 2025-03-09 08:59:05 [2025-03-09 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641118', 'tblTempUsageDetail_20' ) start [2025-03-09 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641118', 'tblTempUsageDetail_20' ) end [2025-03-09 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641118', 'tblTempVendorCDR_20' ) start [2025-03-09 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641118', 'tblTempVendorCDR_20' ) end [2025-03-09 08:59:17] Production.INFO: ProcessCDR(1,14641118,1,1,2) [2025-03-09 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641118', 'tblTempUsageDetail_20' ) start [2025-03-09 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641118', 'tblTempUsageDetail_20' ) end [2025-03-09 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 08:59:20] Production.INFO: ==483== Releasing lock... [2025-03-09 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 08:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:00:06 [end_date_ymd] => 2025-03-09 09:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 06:00:06' and `end` < '2025-03-09 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-09 09:00:18] Production.INFO: count ==61 [2025-03-09 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:00:06 - End Time 2025-03-09 09:00:06 [2025-03-09 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641124', 'tblTempUsageDetail_20' ) start [2025-03-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641124', 'tblTempUsageDetail_20' ) end [2025-03-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641124', 'tblTempVendorCDR_20' ) start [2025-03-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641124', 'tblTempVendorCDR_20' ) end [2025-03-09 09:00:18] Production.INFO: ProcessCDR(1,14641124,1,1,2) [2025-03-09 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641124', 'tblTempUsageDetail_20' ) start [2025-03-09 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641124', 'tblTempUsageDetail_20' ) end [2025-03-09 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:00:21] Production.INFO: ==558== Releasing lock... [2025-03-09 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:01:04 [end_date_ymd] => 2025-03-09 09:01:04 [RateCDR] => 1 ) [2025-03-09 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:01:04' and `end` < '2025-03-09 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:01:17] Production.INFO: count ==58 [2025-03-09 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:01:04 - End Time 2025-03-09 09:01:04 [2025-03-09 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641129', 'tblTempUsageDetail_20' ) start [2025-03-09 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641129', 'tblTempUsageDetail_20' ) end [2025-03-09 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641129', 'tblTempVendorCDR_20' ) start [2025-03-09 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641129', 'tblTempVendorCDR_20' ) end [2025-03-09 09:01:17] Production.INFO: ProcessCDR(1,14641129,1,1,2) [2025-03-09 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641129', 'tblTempUsageDetail_20' ) start [2025-03-09 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641129', 'tblTempUsageDetail_20' ) end [2025-03-09 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:01:20] Production.INFO: ==683== Releasing lock... [2025-03-09 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:02:06 [end_date_ymd] => 2025-03-09 09:02:06 [RateCDR] => 1 ) [2025-03-09 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:02:06' and `end` < '2025-03-09 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:02:18] Production.INFO: count ==58 [2025-03-09 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:02:06 - End Time 2025-03-09 09:02:06 [2025-03-09 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641134', 'tblTempUsageDetail_20' ) start [2025-03-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641134', 'tblTempUsageDetail_20' ) end [2025-03-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641134', 'tblTempVendorCDR_20' ) start [2025-03-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641134', 'tblTempVendorCDR_20' ) end [2025-03-09 09:02:18] Production.INFO: ProcessCDR(1,14641134,1,1,2) [2025-03-09 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641134', 'tblTempUsageDetail_20' ) start [2025-03-09 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641134', 'tblTempUsageDetail_20' ) end [2025-03-09 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:02:21] Production.INFO: ==790== Releasing lock... [2025-03-09 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:03:05 [end_date_ymd] => 2025-03-09 09:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:03:05' and `end` < '2025-03-09 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-09 09:03:17] Production.INFO: count ==58 [2025-03-09 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:03:05 - End Time 2025-03-09 09:03:05 [2025-03-09 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641139', 'tblTempUsageDetail_20' ) start [2025-03-09 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641139', 'tblTempUsageDetail_20' ) end [2025-03-09 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641139', 'tblTempVendorCDR_20' ) start [2025-03-09 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641139', 'tblTempVendorCDR_20' ) end [2025-03-09 09:03:17] Production.INFO: ProcessCDR(1,14641139,1,1,2) [2025-03-09 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641139', 'tblTempUsageDetail_20' ) start [2025-03-09 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641139', 'tblTempUsageDetail_20' ) end [2025-03-09 09:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:03:20] Production.INFO: ==880== Releasing lock... [2025-03-09 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:04:05 [end_date_ymd] => 2025-03-09 09:04:05 [RateCDR] => 1 ) [2025-03-09 09: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-09 06:04:05' and `end` < '2025-03-09 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:04:17] Production.INFO: count ==55 [2025-03-09 09:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:04:05 - End Time 2025-03-09 09:04:05 [2025-03-09 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641144', 'tblTempUsageDetail_20' ) start [2025-03-09 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641144', 'tblTempUsageDetail_20' ) end [2025-03-09 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641144', 'tblTempVendorCDR_20' ) start [2025-03-09 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641144', 'tblTempVendorCDR_20' ) end [2025-03-09 09:04:17] Production.INFO: ProcessCDR(1,14641144,1,1,2) [2025-03-09 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641144', 'tblTempUsageDetail_20' ) start [2025-03-09 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641144', 'tblTempUsageDetail_20' ) end [2025-03-09 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:04:21] Production.INFO: ==971== Releasing lock... [2025-03-09 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:05:05 [end_date_ymd] => 2025-03-09 09:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:05:05' and `end` < '2025-03-09 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-09 09:05:17] Production.INFO: count ==55 [2025-03-09 09:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:05:05 - End Time 2025-03-09 09:05:05 [2025-03-09 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641149', 'tblTempUsageDetail_20' ) start [2025-03-09 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641149', 'tblTempUsageDetail_20' ) end [2025-03-09 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641149', 'tblTempVendorCDR_20' ) start [2025-03-09 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641149', 'tblTempVendorCDR_20' ) end [2025-03-09 09:05:17] Production.INFO: ProcessCDR(1,14641149,1,1,2) [2025-03-09 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641149', 'tblTempUsageDetail_20' ) start [2025-03-09 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641149', 'tblTempUsageDetail_20' ) end [2025-03-09 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:05:20] Production.INFO: ==1060== Releasing lock... [2025-03-09 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:06:05 [end_date_ymd] => 2025-03-09 09:06:05 [RateCDR] => 1 ) [2025-03-09 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:06:05' and `end` < '2025-03-09 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:06:17] Production.INFO: count ==55 [2025-03-09 09:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:06:05 - End Time 2025-03-09 09:06:05 [2025-03-09 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641154', 'tblTempUsageDetail_20' ) start [2025-03-09 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641154', 'tblTempUsageDetail_20' ) end [2025-03-09 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641154', 'tblTempVendorCDR_20' ) start [2025-03-09 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641154', 'tblTempVendorCDR_20' ) end [2025-03-09 09:06:17] Production.INFO: ProcessCDR(1,14641154,1,1,2) [2025-03-09 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641154', 'tblTempUsageDetail_20' ) start [2025-03-09 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641154', 'tblTempUsageDetail_20' ) end [2025-03-09 09:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:06:20] Production.INFO: ==1162== Releasing lock... [2025-03-09 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:07:04 [end_date_ymd] => 2025-03-09 09:07:04 [RateCDR] => 1 ) [2025-03-09 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-09 06:07:04' and `end` < '2025-03-09 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:07:17] Production.INFO: count ==55 [2025-03-09 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:07:04 - End Time 2025-03-09 09:07:04 [2025-03-09 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641159', 'tblTempUsageDetail_20' ) start [2025-03-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641159', 'tblTempUsageDetail_20' ) end [2025-03-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641159', 'tblTempVendorCDR_20' ) start [2025-03-09 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641159', 'tblTempVendorCDR_20' ) end [2025-03-09 09:07:17] Production.INFO: ProcessCDR(1,14641159,1,1,2) [2025-03-09 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641159', 'tblTempUsageDetail_20' ) start [2025-03-09 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641159', 'tblTempUsageDetail_20' ) end [2025-03-09 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:07:20] Production.INFO: ==1267== Releasing lock... [2025-03-09 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:08:05 [end_date_ymd] => 2025-03-09 09:08:05 [RateCDR] => 1 ) [2025-03-09 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:08:05' and `end` < '2025-03-09 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:08:17] Production.INFO: count ==55 [2025-03-09 09:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:08:05 - End Time 2025-03-09 09:08:05 [2025-03-09 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641164', 'tblTempUsageDetail_20' ) start [2025-03-09 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641164', 'tblTempUsageDetail_20' ) end [2025-03-09 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641164', 'tblTempVendorCDR_20' ) start [2025-03-09 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641164', 'tblTempVendorCDR_20' ) end [2025-03-09 09:08:17] Production.INFO: ProcessCDR(1,14641164,1,1,2) [2025-03-09 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641164', 'tblTempUsageDetail_20' ) start [2025-03-09 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641164', 'tblTempUsageDetail_20' ) end [2025-03-09 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:08:21] Production.INFO: ==1361== Releasing lock... [2025-03-09 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:09:06 [end_date_ymd] => 2025-03-09 09:09:06 [RateCDR] => 1 ) [2025-03-09 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:09:06' and `end` < '2025-03-09 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:09:18] Production.INFO: count ==55 [2025-03-09 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:09:06 - End Time 2025-03-09 09:09:06 [2025-03-09 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641169', 'tblTempUsageDetail_20' ) start [2025-03-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641169', 'tblTempUsageDetail_20' ) end [2025-03-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641169', 'tblTempVendorCDR_20' ) start [2025-03-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641169', 'tblTempVendorCDR_20' ) end [2025-03-09 09:09:18] Production.INFO: ProcessCDR(1,14641169,1,1,2) [2025-03-09 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641169', 'tblTempUsageDetail_20' ) start [2025-03-09 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641169', 'tblTempUsageDetail_20' ) end [2025-03-09 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:09:21] Production.INFO: ==1459== Releasing lock... [2025-03-09 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:10:07 [end_date_ymd] => 2025-03-09 09:10:07 [RateCDR] => 1 ) [2025-03-09 09:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:10:07' and `end` < '2025-03-09 09:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:10:19] Production.INFO: count ==55 [2025-03-09 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 06:10:07 - End Time 2025-03-09 09:10:07 [2025-03-09 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641175', 'tblTempUsageDetail_20' ) start [2025-03-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641175', 'tblTempUsageDetail_20' ) end [2025-03-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641175', 'tblTempVendorCDR_20' ) start [2025-03-09 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641175', 'tblTempVendorCDR_20' ) end [2025-03-09 09:10:19] Production.INFO: ProcessCDR(1,14641175,1,1,2) [2025-03-09 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641175', 'tblTempUsageDetail_20' ) start [2025-03-09 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641175', 'tblTempUsageDetail_20' ) end [2025-03-09 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:10:22] Production.INFO: ==1587== Releasing lock... [2025-03-09 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:11:04 [end_date_ymd] => 2025-03-09 09:11:04 [RateCDR] => 1 ) [2025-03-09 09: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-09 06:11:04' and `end` < '2025-03-09 09: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-09 09:11:16] Production.INFO: count ==55 [2025-03-09 09:11:16] Production.ERROR: pbx CDR StartTime 2025-03-09 06:11:04 - End Time 2025-03-09 09:11:04 [2025-03-09 09:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641180', 'tblTempUsageDetail_20' ) start [2025-03-09 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641180', 'tblTempUsageDetail_20' ) end [2025-03-09 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641180', 'tblTempVendorCDR_20' ) start [2025-03-09 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641180', 'tblTempVendorCDR_20' ) end [2025-03-09 09:11:16] Production.INFO: ProcessCDR(1,14641180,1,1,2) [2025-03-09 09:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641180', 'tblTempUsageDetail_20' ) start [2025-03-09 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641180', 'tblTempUsageDetail_20' ) end [2025-03-09 09:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:11:20] Production.INFO: ==1720== Releasing lock... [2025-03-09 09:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:12:05 [end_date_ymd] => 2025-03-09 09:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:12:05' and `end` < '2025-03-09 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-09 09:12:17] Production.INFO: count ==55 [2025-03-09 09:12:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:12:05 - End Time 2025-03-09 09:12:05 [2025-03-09 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641185', 'tblTempUsageDetail_20' ) start [2025-03-09 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641185', 'tblTempUsageDetail_20' ) end [2025-03-09 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641185', 'tblTempVendorCDR_20' ) start [2025-03-09 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641185', 'tblTempVendorCDR_20' ) end [2025-03-09 09:12:17] Production.INFO: ProcessCDR(1,14641185,1,1,2) [2025-03-09 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641185', 'tblTempUsageDetail_20' ) start [2025-03-09 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641185', 'tblTempUsageDetail_20' ) end [2025-03-09 09:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:12:20] Production.INFO: ==1817== Releasing lock... [2025-03-09 09:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:13:05 [end_date_ymd] => 2025-03-09 09:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:13:05' and `end` < '2025-03-09 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-09 09:13:17] Production.INFO: count ==55 [2025-03-09 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:13:05 - End Time 2025-03-09 09:13:05 [2025-03-09 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641190', 'tblTempUsageDetail_20' ) start [2025-03-09 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641190', 'tblTempUsageDetail_20' ) end [2025-03-09 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641190', 'tblTempVendorCDR_20' ) start [2025-03-09 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641190', 'tblTempVendorCDR_20' ) end [2025-03-09 09:13:17] Production.INFO: ProcessCDR(1,14641190,1,1,2) [2025-03-09 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641190', 'tblTempUsageDetail_20' ) start [2025-03-09 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641190', 'tblTempUsageDetail_20' ) end [2025-03-09 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:13:20] Production.INFO: ==1919== Releasing lock... [2025-03-09 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:14:05 [end_date_ymd] => 2025-03-09 09:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:14:05' and `end` < '2025-03-09 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-09 09:14:18] Production.INFO: count ==55 [2025-03-09 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:14:05 - End Time 2025-03-09 09:14:05 [2025-03-09 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641195', 'tblTempUsageDetail_20' ) start [2025-03-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641195', 'tblTempUsageDetail_20' ) end [2025-03-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641195', 'tblTempVendorCDR_20' ) start [2025-03-09 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641195', 'tblTempVendorCDR_20' ) end [2025-03-09 09:14:18] Production.INFO: ProcessCDR(1,14641195,1,1,2) [2025-03-09 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641195', 'tblTempUsageDetail_20' ) start [2025-03-09 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641195', 'tblTempUsageDetail_20' ) end [2025-03-09 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:14:21] Production.INFO: ==2009== Releasing lock... [2025-03-09 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:15:05 [end_date_ymd] => 2025-03-09 09:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:15:05' and `end` < '2025-03-09 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-09 09:15:17] Production.INFO: count ==55 [2025-03-09 09:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:15:05 - End Time 2025-03-09 09:15:05 [2025-03-09 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641200', 'tblTempUsageDetail_20' ) start [2025-03-09 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641200', 'tblTempUsageDetail_20' ) end [2025-03-09 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641200', 'tblTempVendorCDR_20' ) start [2025-03-09 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641200', 'tblTempVendorCDR_20' ) end [2025-03-09 09:15:17] Production.INFO: ProcessCDR(1,14641200,1,1,2) [2025-03-09 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641200', 'tblTempUsageDetail_20' ) start [2025-03-09 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641200', 'tblTempUsageDetail_20' ) end [2025-03-09 09:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:15:20] Production.INFO: ==2101== Releasing lock... [2025-03-09 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:16:04 [end_date_ymd] => 2025-03-09 09:16:04 [RateCDR] => 1 ) [2025-03-09 09:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:16:04' and `end` < '2025-03-09 09:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:16:17] Production.INFO: count ==55 [2025-03-09 09:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:16:04 - End Time 2025-03-09 09:16:04 [2025-03-09 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641205', 'tblTempUsageDetail_20' ) start [2025-03-09 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641205', 'tblTempUsageDetail_20' ) end [2025-03-09 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641205', 'tblTempVendorCDR_20' ) start [2025-03-09 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641205', 'tblTempVendorCDR_20' ) end [2025-03-09 09:16:17] Production.INFO: ProcessCDR(1,14641205,1,1,2) [2025-03-09 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641205', 'tblTempUsageDetail_20' ) start [2025-03-09 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641205', 'tblTempUsageDetail_20' ) end [2025-03-09 09:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:16:20] Production.INFO: ==2192== Releasing lock... [2025-03-09 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:17:05 [end_date_ymd] => 2025-03-09 09:17:05 [RateCDR] => 1 ) [2025-03-09 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:17:05' and `end` < '2025-03-09 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:17:17] Production.INFO: count ==55 [2025-03-09 09:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:17:05 - End Time 2025-03-09 09:17:05 [2025-03-09 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641210', 'tblTempUsageDetail_20' ) start [2025-03-09 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641210', 'tblTempUsageDetail_20' ) end [2025-03-09 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641210', 'tblTempVendorCDR_20' ) start [2025-03-09 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641210', 'tblTempVendorCDR_20' ) end [2025-03-09 09:17:17] Production.INFO: ProcessCDR(1,14641210,1,1,2) [2025-03-09 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641210', 'tblTempUsageDetail_20' ) start [2025-03-09 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641210', 'tblTempUsageDetail_20' ) end [2025-03-09 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:17:21] Production.INFO: ==2279== Releasing lock... [2025-03-09 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:18:05 [end_date_ymd] => 2025-03-09 09:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:18:05' and `end` < '2025-03-09 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-09 09:18:17] Production.INFO: count ==55 [2025-03-09 09:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:18:05 - End Time 2025-03-09 09:18:05 [2025-03-09 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641215', 'tblTempUsageDetail_20' ) start [2025-03-09 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641215', 'tblTempUsageDetail_20' ) end [2025-03-09 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641215', 'tblTempVendorCDR_20' ) start [2025-03-09 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641215', 'tblTempVendorCDR_20' ) end [2025-03-09 09:18:17] Production.INFO: ProcessCDR(1,14641215,1,1,2) [2025-03-09 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641215', 'tblTempUsageDetail_20' ) start [2025-03-09 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641215', 'tblTempUsageDetail_20' ) end [2025-03-09 09:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:18:20] Production.INFO: ==2366== Releasing lock... [2025-03-09 09:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:19:05 [end_date_ymd] => 2025-03-09 09:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:19:05' and `end` < '2025-03-09 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-09 09:19:17] Production.INFO: count ==55 [2025-03-09 09:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:19:05 - End Time 2025-03-09 09:19:05 [2025-03-09 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641220', 'tblTempUsageDetail_20' ) start [2025-03-09 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641220', 'tblTempUsageDetail_20' ) end [2025-03-09 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641220', 'tblTempVendorCDR_20' ) start [2025-03-09 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641220', 'tblTempVendorCDR_20' ) end [2025-03-09 09:19:17] Production.INFO: ProcessCDR(1,14641220,1,1,2) [2025-03-09 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641220', 'tblTempUsageDetail_20' ) start [2025-03-09 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641220', 'tblTempUsageDetail_20' ) end [2025-03-09 09:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:19:20] Production.INFO: ==2440== Releasing lock... [2025-03-09 09:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:20:06 [end_date_ymd] => 2025-03-09 09:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 06:20:06' and `end` < '2025-03-09 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-09 09:20:18] Production.INFO: count ==49 [2025-03-09 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:20:06 - End Time 2025-03-09 09:20:06 [2025-03-09 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641226', 'tblTempUsageDetail_20' ) start [2025-03-09 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641226', 'tblTempUsageDetail_20' ) end [2025-03-09 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641226', 'tblTempVendorCDR_20' ) start [2025-03-09 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641226', 'tblTempVendorCDR_20' ) end [2025-03-09 09:20:18] Production.INFO: ProcessCDR(1,14641226,1,1,2) [2025-03-09 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641226', 'tblTempUsageDetail_20' ) start [2025-03-09 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641226', 'tblTempUsageDetail_20' ) end [2025-03-09 09:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:20:21] Production.INFO: ==2512== Releasing lock... [2025-03-09 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:21:05 [end_date_ymd] => 2025-03-09 09:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:21:05' and `end` < '2025-03-09 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-09 09:21:17] Production.INFO: count ==43 [2025-03-09 09:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:21:05 - End Time 2025-03-09 09:21:05 [2025-03-09 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641231', 'tblTempUsageDetail_20' ) start [2025-03-09 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641231', 'tblTempUsageDetail_20' ) end [2025-03-09 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641231', 'tblTempVendorCDR_20' ) start [2025-03-09 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641231', 'tblTempVendorCDR_20' ) end [2025-03-09 09:21:17] Production.INFO: ProcessCDR(1,14641231,1,1,2) [2025-03-09 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641231', 'tblTempUsageDetail_20' ) start [2025-03-09 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641231', 'tblTempUsageDetail_20' ) end [2025-03-09 09:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:21:20] Production.INFO: ==2584== Releasing lock... [2025-03-09 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:21:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:22:05 [end_date_ymd] => 2025-03-09 09:22:05 [RateCDR] => 1 ) [2025-03-09 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:22:05' and `end` < '2025-03-09 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:22:17] Production.INFO: count ==43 [2025-03-09 09:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:22:05 - End Time 2025-03-09 09:22:05 [2025-03-09 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641236', 'tblTempUsageDetail_20' ) start [2025-03-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641236', 'tblTempUsageDetail_20' ) end [2025-03-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641236', 'tblTempVendorCDR_20' ) start [2025-03-09 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641236', 'tblTempVendorCDR_20' ) end [2025-03-09 09:22:17] Production.INFO: ProcessCDR(1,14641236,1,1,2) [2025-03-09 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641236', 'tblTempUsageDetail_20' ) start [2025-03-09 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641236', 'tblTempUsageDetail_20' ) end [2025-03-09 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:22:21] Production.INFO: ==2653== Releasing lock... [2025-03-09 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:22:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:23:04 [end_date_ymd] => 2025-03-09 09:23:04 [RateCDR] => 1 ) [2025-03-09 09:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:23:04' and `end` < '2025-03-09 09:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:23:16] Production.INFO: count ==43 [2025-03-09 09:23:16] Production.ERROR: pbx CDR StartTime 2025-03-09 06:23:04 - End Time 2025-03-09 09:23:04 [2025-03-09 09:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641241', 'tblTempUsageDetail_20' ) start [2025-03-09 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641241', 'tblTempUsageDetail_20' ) end [2025-03-09 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641241', 'tblTempVendorCDR_20' ) start [2025-03-09 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641241', 'tblTempVendorCDR_20' ) end [2025-03-09 09:23:16] Production.INFO: ProcessCDR(1,14641241,1,1,2) [2025-03-09 09:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641241', 'tblTempUsageDetail_20' ) start [2025-03-09 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641241', 'tblTempUsageDetail_20' ) end [2025-03-09 09:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:23:20] Production.INFO: ==2725== Releasing lock... [2025-03-09 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:23:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:24:05 [end_date_ymd] => 2025-03-09 09:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:24:05' and `end` < '2025-03-09 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-09 09:24:17] Production.INFO: count ==43 [2025-03-09 09:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:24:05 - End Time 2025-03-09 09:24:05 [2025-03-09 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641246', 'tblTempUsageDetail_20' ) start [2025-03-09 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641246', 'tblTempUsageDetail_20' ) end [2025-03-09 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641246', 'tblTempVendorCDR_20' ) start [2025-03-09 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641246', 'tblTempVendorCDR_20' ) end [2025-03-09 09:24:17] Production.INFO: ProcessCDR(1,14641246,1,1,2) [2025-03-09 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641246', 'tblTempUsageDetail_20' ) start [2025-03-09 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641246', 'tblTempUsageDetail_20' ) end [2025-03-09 09:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:24:20] Production.INFO: ==2796== Releasing lock... [2025-03-09 09:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:24:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:25:04 [end_date_ymd] => 2025-03-09 09:25:04 [RateCDR] => 1 ) [2025-03-09 09: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-09 06:25:04' and `end` < '2025-03-09 09: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-09 09:25:17] Production.INFO: count ==43 [2025-03-09 09:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:25:04 - End Time 2025-03-09 09:25:04 [2025-03-09 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641251', 'tblTempUsageDetail_20' ) start [2025-03-09 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641251', 'tblTempUsageDetail_20' ) end [2025-03-09 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641251', 'tblTempVendorCDR_20' ) start [2025-03-09 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641251', 'tblTempVendorCDR_20' ) end [2025-03-09 09:25:17] Production.INFO: ProcessCDR(1,14641251,1,1,2) [2025-03-09 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641251', 'tblTempUsageDetail_20' ) start [2025-03-09 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641251', 'tblTempUsageDetail_20' ) end [2025-03-09 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:25:20] Production.INFO: ==2868== Releasing lock... [2025-03-09 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:25:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:26:05 [end_date_ymd] => 2025-03-09 09:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:26:05' and `end` < '2025-03-09 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-09 09:26:17] Production.INFO: count ==40 [2025-03-09 09:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:26:05 - End Time 2025-03-09 09:26:05 [2025-03-09 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641256', 'tblTempUsageDetail_20' ) start [2025-03-09 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641256', 'tblTempUsageDetail_20' ) end [2025-03-09 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641256', 'tblTempVendorCDR_20' ) start [2025-03-09 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641256', 'tblTempVendorCDR_20' ) end [2025-03-09 09:26:17] Production.INFO: ProcessCDR(1,14641256,1,1,2) [2025-03-09 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641256', 'tblTempUsageDetail_20' ) start [2025-03-09 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641256', 'tblTempUsageDetail_20' ) end [2025-03-09 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:26:21] Production.INFO: ==2947== Releasing lock... [2025-03-09 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:26:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:27:05 [end_date_ymd] => 2025-03-09 09:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:27:05' and `end` < '2025-03-09 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-09 09:27:17] Production.INFO: count ==40 [2025-03-09 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:27:05 - End Time 2025-03-09 09:27:05 [2025-03-09 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641261', 'tblTempUsageDetail_20' ) start [2025-03-09 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641261', 'tblTempUsageDetail_20' ) end [2025-03-09 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641261', 'tblTempVendorCDR_20' ) start [2025-03-09 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641261', 'tblTempVendorCDR_20' ) end [2025-03-09 09:27:17] Production.INFO: ProcessCDR(1,14641261,1,1,2) [2025-03-09 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641261', 'tblTempUsageDetail_20' ) start [2025-03-09 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641261', 'tblTempUsageDetail_20' ) end [2025-03-09 09:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:27:20] Production.INFO: ==3059== Releasing lock... [2025-03-09 09:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:27:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:28:05 [end_date_ymd] => 2025-03-09 09:28:05 [RateCDR] => 1 ) [2025-03-09 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:28:05' and `end` < '2025-03-09 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:28:17] Production.INFO: count ==41 [2025-03-09 09:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:28:05 - End Time 2025-03-09 09:28:05 [2025-03-09 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641266', 'tblTempUsageDetail_20' ) start [2025-03-09 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641266', 'tblTempUsageDetail_20' ) end [2025-03-09 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641266', 'tblTempVendorCDR_20' ) start [2025-03-09 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641266', 'tblTempVendorCDR_20' ) end [2025-03-09 09:28:17] Production.INFO: ProcessCDR(1,14641266,1,1,2) [2025-03-09 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641266', 'tblTempUsageDetail_20' ) start [2025-03-09 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641266', 'tblTempUsageDetail_20' ) end [2025-03-09 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:28:21] Production.INFO: ==3133== Releasing lock... [2025-03-09 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:28:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:29:05 [end_date_ymd] => 2025-03-09 09:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:29:05' and `end` < '2025-03-09 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-09 09:29:17] Production.INFO: count ==41 [2025-03-09 09:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:29:05 - End Time 2025-03-09 09:29:05 [2025-03-09 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641271', 'tblTempUsageDetail_20' ) start [2025-03-09 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641271', 'tblTempUsageDetail_20' ) end [2025-03-09 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641271', 'tblTempVendorCDR_20' ) start [2025-03-09 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641271', 'tblTempVendorCDR_20' ) end [2025-03-09 09:29:17] Production.INFO: ProcessCDR(1,14641271,1,1,2) [2025-03-09 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641271', 'tblTempUsageDetail_20' ) start [2025-03-09 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641271', 'tblTempUsageDetail_20' ) end [2025-03-09 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:29:21] Production.INFO: ==3205== Releasing lock... [2025-03-09 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:29:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:30:05 [end_date_ymd] => 2025-03-09 09:30:05 [RateCDR] => 1 ) [2025-03-09 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:30:05' and `end` < '2025-03-09 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:30:17] Production.INFO: count ==45 [2025-03-09 09:30:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:30:05 - End Time 2025-03-09 09:30:05 [2025-03-09 09:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641276', 'tblTempUsageDetail_20' ) start [2025-03-09 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641276', 'tblTempUsageDetail_20' ) end [2025-03-09 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641276', 'tblTempVendorCDR_20' ) start [2025-03-09 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641276', 'tblTempVendorCDR_20' ) end [2025-03-09 09:30:17] Production.INFO: ProcessCDR(1,14641276,1,1,2) [2025-03-09 09:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641276', 'tblTempUsageDetail_20' ) start [2025-03-09 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641276', 'tblTempUsageDetail_20' ) end [2025-03-09 09:30:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:30:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:30:20] Production.INFO: ==3277== Releasing lock... [2025-03-09 09:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:30:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:31:05 [end_date_ymd] => 2025-03-09 09:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:31:05' and `end` < '2025-03-09 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-09 09:31:17] Production.INFO: count ==48 [2025-03-09 09:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:31:05 - End Time 2025-03-09 09:31:05 [2025-03-09 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641282', 'tblTempUsageDetail_20' ) start [2025-03-09 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641282', 'tblTempUsageDetail_20' ) end [2025-03-09 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641282', 'tblTempVendorCDR_20' ) start [2025-03-09 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641282', 'tblTempVendorCDR_20' ) end [2025-03-09 09:31:17] Production.INFO: ProcessCDR(1,14641282,1,1,2) [2025-03-09 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641282', 'tblTempUsageDetail_20' ) start [2025-03-09 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641282', 'tblTempUsageDetail_20' ) end [2025-03-09 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:31:22] Production.INFO: ==3349== Releasing lock... [2025-03-09 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:31:22] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:32:05 [end_date_ymd] => 2025-03-09 09:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:32:05' and `end` < '2025-03-09 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-09 09:32:17] Production.INFO: count ==48 [2025-03-09 09:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:32:05 - End Time 2025-03-09 09:32:05 [2025-03-09 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641287', 'tblTempUsageDetail_20' ) start [2025-03-09 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641287', 'tblTempUsageDetail_20' ) end [2025-03-09 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641287', 'tblTempVendorCDR_20' ) start [2025-03-09 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641287', 'tblTempVendorCDR_20' ) end [2025-03-09 09:32:17] Production.INFO: ProcessCDR(1,14641287,1,1,2) [2025-03-09 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641287', 'tblTempUsageDetail_20' ) start [2025-03-09 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641287', 'tblTempUsageDetail_20' ) end [2025-03-09 09:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:32:20] Production.INFO: ==3420== Releasing lock... [2025-03-09 09:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:32:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:33:05 [end_date_ymd] => 2025-03-09 09:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:33:05' and `end` < '2025-03-09 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-09 09:33:17] Production.INFO: count ==48 [2025-03-09 09:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:33:05 - End Time 2025-03-09 09:33:05 [2025-03-09 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641292', 'tblTempUsageDetail_20' ) start [2025-03-09 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641292', 'tblTempUsageDetail_20' ) end [2025-03-09 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641292', 'tblTempVendorCDR_20' ) start [2025-03-09 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641292', 'tblTempVendorCDR_20' ) end [2025-03-09 09:33:17] Production.INFO: ProcessCDR(1,14641292,1,1,2) [2025-03-09 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641292', 'tblTempUsageDetail_20' ) start [2025-03-09 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641292', 'tblTempUsageDetail_20' ) end [2025-03-09 09:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:33:20] Production.INFO: ==3490== Releasing lock... [2025-03-09 09:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:33:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:34:04 [end_date_ymd] => 2025-03-09 09:34:04 [RateCDR] => 1 ) [2025-03-09 09: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-09 06:34:04' and `end` < '2025-03-09 09: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-09 09:34:16] Production.INFO: count ==48 [2025-03-09 09:34:16] Production.ERROR: pbx CDR StartTime 2025-03-09 06:34:04 - End Time 2025-03-09 09:34:04 [2025-03-09 09:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641297', 'tblTempUsageDetail_20' ) start [2025-03-09 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641297', 'tblTempUsageDetail_20' ) end [2025-03-09 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641297', 'tblTempVendorCDR_20' ) start [2025-03-09 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641297', 'tblTempVendorCDR_20' ) end [2025-03-09 09:34:16] Production.INFO: ProcessCDR(1,14641297,1,1,2) [2025-03-09 09:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641297', 'tblTempUsageDetail_20' ) start [2025-03-09 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641297', 'tblTempUsageDetail_20' ) end [2025-03-09 09:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:34:20] Production.INFO: ==3564== Releasing lock... [2025-03-09 09:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:34:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:35:05 [end_date_ymd] => 2025-03-09 09:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:35:05' and `end` < '2025-03-09 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-09 09:35:17] Production.INFO: count ==48 [2025-03-09 09:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:35:05 - End Time 2025-03-09 09:35:05 [2025-03-09 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641302', 'tblTempUsageDetail_20' ) start [2025-03-09 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641302', 'tblTempUsageDetail_20' ) end [2025-03-09 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641302', 'tblTempVendorCDR_20' ) start [2025-03-09 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641302', 'tblTempVendorCDR_20' ) end [2025-03-09 09:35:17] Production.INFO: ProcessCDR(1,14641302,1,1,2) [2025-03-09 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641302', 'tblTempUsageDetail_20' ) start [2025-03-09 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641302', 'tblTempUsageDetail_20' ) end [2025-03-09 09:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:35:20] Production.INFO: ==3635== Releasing lock... [2025-03-09 09:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:35:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:36:04 [end_date_ymd] => 2025-03-09 09:36:04 [RateCDR] => 1 ) [2025-03-09 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:36:04' and `end` < '2025-03-09 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:36:17] Production.INFO: count ==50 [2025-03-09 09:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:36:04 - End Time 2025-03-09 09:36:04 [2025-03-09 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641307', 'tblTempUsageDetail_20' ) start [2025-03-09 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641307', 'tblTempUsageDetail_20' ) end [2025-03-09 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641307', 'tblTempVendorCDR_20' ) start [2025-03-09 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641307', 'tblTempVendorCDR_20' ) end [2025-03-09 09:36:17] Production.INFO: ProcessCDR(1,14641307,1,1,2) [2025-03-09 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641307', 'tblTempUsageDetail_20' ) start [2025-03-09 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641307', 'tblTempUsageDetail_20' ) end [2025-03-09 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:36:21] Production.INFO: ==3705== Releasing lock... [2025-03-09 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:36:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:37:05 [end_date_ymd] => 2025-03-09 09:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:37:05' and `end` < '2025-03-09 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-09 09:37:17] Production.INFO: count ==50 [2025-03-09 09:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:37:05 - End Time 2025-03-09 09:37:05 [2025-03-09 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641312', 'tblTempUsageDetail_20' ) start [2025-03-09 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641312', 'tblTempUsageDetail_20' ) end [2025-03-09 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641312', 'tblTempVendorCDR_20' ) start [2025-03-09 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641312', 'tblTempVendorCDR_20' ) end [2025-03-09 09:37:17] Production.INFO: ProcessCDR(1,14641312,1,1,2) [2025-03-09 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641312', 'tblTempUsageDetail_20' ) start [2025-03-09 09:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641312', 'tblTempUsageDetail_20' ) end [2025-03-09 09:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:37:20] Production.INFO: ==3775== Releasing lock... [2025-03-09 09:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:37:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:38:05 [end_date_ymd] => 2025-03-09 09:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:38:05' and `end` < '2025-03-09 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-09 09:38:17] Production.INFO: count ==50 [2025-03-09 09:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:38:05 - End Time 2025-03-09 09:38:05 [2025-03-09 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641317', 'tblTempUsageDetail_20' ) start [2025-03-09 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641317', 'tblTempUsageDetail_20' ) end [2025-03-09 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641317', 'tblTempVendorCDR_20' ) start [2025-03-09 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641317', 'tblTempVendorCDR_20' ) end [2025-03-09 09:38:17] Production.INFO: ProcessCDR(1,14641317,1,1,2) [2025-03-09 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641317', 'tblTempUsageDetail_20' ) start [2025-03-09 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641317', 'tblTempUsageDetail_20' ) end [2025-03-09 09:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:38:20] Production.INFO: ==3848== Releasing lock... [2025-03-09 09:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:38:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:39:05 [end_date_ymd] => 2025-03-09 09:39:05 [RateCDR] => 1 ) [2025-03-09 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:39:05' and `end` < '2025-03-09 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:39:17] Production.INFO: count ==50 [2025-03-09 09:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:39:05 - End Time 2025-03-09 09:39:05 [2025-03-09 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641322', 'tblTempUsageDetail_20' ) start [2025-03-09 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641322', 'tblTempUsageDetail_20' ) end [2025-03-09 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641322', 'tblTempVendorCDR_20' ) start [2025-03-09 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641322', 'tblTempVendorCDR_20' ) end [2025-03-09 09:39:17] Production.INFO: ProcessCDR(1,14641322,1,1,2) [2025-03-09 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641322', 'tblTempUsageDetail_20' ) start [2025-03-09 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641322', 'tblTempUsageDetail_20' ) end [2025-03-09 09:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:39:20] Production.INFO: ==3923== Releasing lock... [2025-03-09 09:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:39:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:40:07 [end_date_ymd] => 2025-03-09 09:40:07 [RateCDR] => 1 ) [2025-03-09 09: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-09 06:40:07' and `end` < '2025-03-09 09: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-09 09:40:19] Production.INFO: count ==50 [2025-03-09 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-09 06:40:07 - End Time 2025-03-09 09:40:07 [2025-03-09 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641328', 'tblTempUsageDetail_20' ) start [2025-03-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641328', 'tblTempUsageDetail_20' ) end [2025-03-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641328', 'tblTempVendorCDR_20' ) start [2025-03-09 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641328', 'tblTempVendorCDR_20' ) end [2025-03-09 09:40:19] Production.INFO: ProcessCDR(1,14641328,1,1,2) [2025-03-09 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641328', 'tblTempUsageDetail_20' ) start [2025-03-09 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641328', 'tblTempUsageDetail_20' ) end [2025-03-09 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:40:22] Production.INFO: ==3998== Releasing lock... [2025-03-09 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:40:22] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:41:05 [end_date_ymd] => 2025-03-09 09:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:41:05' and `end` < '2025-03-09 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-09 09:41:17] Production.INFO: count ==50 [2025-03-09 09:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:41:05 - End Time 2025-03-09 09:41:05 [2025-03-09 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641333', 'tblTempUsageDetail_20' ) start [2025-03-09 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641333', 'tblTempUsageDetail_20' ) end [2025-03-09 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641333', 'tblTempVendorCDR_20' ) start [2025-03-09 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641333', 'tblTempVendorCDR_20' ) end [2025-03-09 09:41:17] Production.INFO: ProcessCDR(1,14641333,1,1,2) [2025-03-09 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641333', 'tblTempUsageDetail_20' ) start [2025-03-09 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641333', 'tblTempUsageDetail_20' ) end [2025-03-09 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:41:21] Production.INFO: ==4074== Releasing lock... [2025-03-09 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:41:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:42:06 [end_date_ymd] => 2025-03-09 09:42:06 [RateCDR] => 1 ) [2025-03-09 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:42:06' and `end` < '2025-03-09 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:42:18] Production.INFO: count ==50 [2025-03-09 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:42:06 - End Time 2025-03-09 09:42:06 [2025-03-09 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641338', 'tblTempUsageDetail_20' ) start [2025-03-09 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641338', 'tblTempUsageDetail_20' ) end [2025-03-09 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641338', 'tblTempVendorCDR_20' ) start [2025-03-09 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641338', 'tblTempVendorCDR_20' ) end [2025-03-09 09:42:18] Production.INFO: ProcessCDR(1,14641338,1,1,2) [2025-03-09 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641338', 'tblTempUsageDetail_20' ) start [2025-03-09 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641338', 'tblTempUsageDetail_20' ) end [2025-03-09 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:42:21] Production.INFO: ==4187== Releasing lock... [2025-03-09 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:42:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:43:05 [end_date_ymd] => 2025-03-09 09:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:43:05' and `end` < '2025-03-09 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-09 09:43:17] Production.INFO: count ==50 [2025-03-09 09:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:43:05 - End Time 2025-03-09 09:43:05 [2025-03-09 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641343', 'tblTempUsageDetail_20' ) start [2025-03-09 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641343', 'tblTempUsageDetail_20' ) end [2025-03-09 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641343', 'tblTempVendorCDR_20' ) start [2025-03-09 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641343', 'tblTempVendorCDR_20' ) end [2025-03-09 09:43:17] Production.INFO: ProcessCDR(1,14641343,1,1,2) [2025-03-09 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641343', 'tblTempUsageDetail_20' ) start [2025-03-09 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641343', 'tblTempUsageDetail_20' ) end [2025-03-09 09:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:43:20] Production.INFO: ==4258== Releasing lock... [2025-03-09 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:43:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:44:05 [end_date_ymd] => 2025-03-09 09:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:44:05' and `end` < '2025-03-09 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-09 09:44:17] Production.INFO: count ==50 [2025-03-09 09:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:44:05 - End Time 2025-03-09 09:44:05 [2025-03-09 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641348', 'tblTempUsageDetail_20' ) start [2025-03-09 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641348', 'tblTempUsageDetail_20' ) end [2025-03-09 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641348', 'tblTempVendorCDR_20' ) start [2025-03-09 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641348', 'tblTempVendorCDR_20' ) end [2025-03-09 09:44:17] Production.INFO: ProcessCDR(1,14641348,1,1,2) [2025-03-09 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641348', 'tblTempUsageDetail_20' ) start [2025-03-09 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641348', 'tblTempUsageDetail_20' ) end [2025-03-09 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:44:21] Production.INFO: ==4331== Releasing lock... [2025-03-09 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:44:21] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:45:05 [end_date_ymd] => 2025-03-09 09:45:05 [RateCDR] => 1 ) [2025-03-09 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:45:05' and `end` < '2025-03-09 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:45:17] Production.INFO: count ==50 [2025-03-09 09:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:45:05 - End Time 2025-03-09 09:45:05 [2025-03-09 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641353', 'tblTempUsageDetail_20' ) start [2025-03-09 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641353', 'tblTempUsageDetail_20' ) end [2025-03-09 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641353', 'tblTempVendorCDR_20' ) start [2025-03-09 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641353', 'tblTempVendorCDR_20' ) end [2025-03-09 09:45:17] Production.INFO: ProcessCDR(1,14641353,1,1,2) [2025-03-09 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641353', 'tblTempUsageDetail_20' ) start [2025-03-09 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641353', 'tblTempUsageDetail_20' ) end [2025-03-09 09:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:45:20] Production.INFO: ==4409== Releasing lock... [2025-03-09 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:45:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:46:05 [end_date_ymd] => 2025-03-09 09:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:46:05' and `end` < '2025-03-09 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-09 09:46:17] Production.INFO: count ==51 [2025-03-09 09:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:46:05 - End Time 2025-03-09 09:46:05 [2025-03-09 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641358', 'tblTempUsageDetail_20' ) start [2025-03-09 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641358', 'tblTempUsageDetail_20' ) end [2025-03-09 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641358', 'tblTempVendorCDR_20' ) start [2025-03-09 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641358', 'tblTempVendorCDR_20' ) end [2025-03-09 09:46:17] Production.INFO: ProcessCDR(1,14641358,1,1,2) [2025-03-09 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641358', 'tblTempUsageDetail_20' ) start [2025-03-09 09:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641358', 'tblTempUsageDetail_20' ) end [2025-03-09 09:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:46:20] Production.INFO: ==4479== Releasing lock... [2025-03-09 09:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:46:20] Production.INFO: 28 MB #Memory Used# [2025-03-09 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:47:05 [end_date_ymd] => 2025-03-09 09:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:47:05' and `end` < '2025-03-09 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-09 09:47:17] Production.INFO: count ==54 [2025-03-09 09:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:47:05 - End Time 2025-03-09 09:47:05 [2025-03-09 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641363', 'tblTempUsageDetail_20' ) start [2025-03-09 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641363', 'tblTempUsageDetail_20' ) end [2025-03-09 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641363', 'tblTempVendorCDR_20' ) start [2025-03-09 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641363', 'tblTempVendorCDR_20' ) end [2025-03-09 09:47:17] Production.INFO: ProcessCDR(1,14641363,1,1,2) [2025-03-09 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641363', 'tblTempUsageDetail_20' ) start [2025-03-09 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641363', 'tblTempUsageDetail_20' ) end [2025-03-09 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:47:21] Production.INFO: ==4550== Releasing lock... [2025-03-09 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:48:04 [end_date_ymd] => 2025-03-09 09:48:04 [RateCDR] => 1 ) [2025-03-09 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-09 06:48:04' and `end` < '2025-03-09 09: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-09 09:48:17] Production.INFO: count ==54 [2025-03-09 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:48:04 - End Time 2025-03-09 09:48:04 [2025-03-09 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641368', 'tblTempUsageDetail_20' ) start [2025-03-09 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641368', 'tblTempUsageDetail_20' ) end [2025-03-09 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641368', 'tblTempVendorCDR_20' ) start [2025-03-09 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641368', 'tblTempVendorCDR_20' ) end [2025-03-09 09:48:17] Production.INFO: ProcessCDR(1,14641368,1,1,2) [2025-03-09 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641368', 'tblTempUsageDetail_20' ) start [2025-03-09 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641368', 'tblTempUsageDetail_20' ) end [2025-03-09 09:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:48:20] Production.INFO: ==4631== Releasing lock... [2025-03-09 09:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:49:05 [end_date_ymd] => 2025-03-09 09:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:49:05' and `end` < '2025-03-09 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-09 09:49:17] Production.INFO: count ==57 [2025-03-09 09:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:49:05 - End Time 2025-03-09 09:49:05 [2025-03-09 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641373', 'tblTempUsageDetail_20' ) start [2025-03-09 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641373', 'tblTempUsageDetail_20' ) end [2025-03-09 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641373', 'tblTempVendorCDR_20' ) start [2025-03-09 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641373', 'tblTempVendorCDR_20' ) end [2025-03-09 09:49:17] Production.INFO: ProcessCDR(1,14641373,1,1,2) [2025-03-09 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641373', 'tblTempUsageDetail_20' ) start [2025-03-09 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641373', 'tblTempUsageDetail_20' ) end [2025-03-09 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:49:22] Production.INFO: ==4705== Releasing lock... [2025-03-09 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:49:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:50:05 [end_date_ymd] => 2025-03-09 09:50:05 [RateCDR] => 1 ) [2025-03-09 09: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-09 06:50:05' and `end` < '2025-03-09 09: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-09 09:50:17] Production.INFO: count ==63 [2025-03-09 09:50:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:50:05 - End Time 2025-03-09 09:50:05 [2025-03-09 09:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641379', 'tblTempUsageDetail_20' ) start [2025-03-09 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641379', 'tblTempUsageDetail_20' ) end [2025-03-09 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641379', 'tblTempVendorCDR_20' ) start [2025-03-09 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641379', 'tblTempVendorCDR_20' ) end [2025-03-09 09:50:17] Production.INFO: ProcessCDR(1,14641379,1,1,2) [2025-03-09 09:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641379', 'tblTempUsageDetail_20' ) start [2025-03-09 09:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641379', 'tblTempUsageDetail_20' ) end [2025-03-09 09:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:50:20] Production.INFO: ==4778== Releasing lock... [2025-03-09 09:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:50:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:51:05 [end_date_ymd] => 2025-03-09 09:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:51:05' and `end` < '2025-03-09 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-09 09:51:17] Production.INFO: count ==76 [2025-03-09 09:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:51:05 - End Time 2025-03-09 09:51:05 [2025-03-09 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641384', 'tblTempUsageDetail_20' ) start [2025-03-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641384', 'tblTempUsageDetail_20' ) end [2025-03-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641384', 'tblTempVendorCDR_20' ) start [2025-03-09 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641384', 'tblTempVendorCDR_20' ) end [2025-03-09 09:51:18] Production.INFO: ProcessCDR(1,14641384,1,1,2) [2025-03-09 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641384', 'tblTempUsageDetail_20' ) start [2025-03-09 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641384', 'tblTempUsageDetail_20' ) end [2025-03-09 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:51:22] Production.INFO: ==4853== Releasing lock... [2025-03-09 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:52:04 [end_date_ymd] => 2025-03-09 09:52:04 [RateCDR] => 1 ) [2025-03-09 09:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:52:04' and `end` < '2025-03-09 09:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:52:16] Production.INFO: count ==76 [2025-03-09 09:52:16] Production.ERROR: pbx CDR StartTime 2025-03-09 06:52:04 - End Time 2025-03-09 09:52:04 [2025-03-09 09:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641389', 'tblTempUsageDetail_20' ) start [2025-03-09 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641389', 'tblTempUsageDetail_20' ) end [2025-03-09 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641389', 'tblTempVendorCDR_20' ) start [2025-03-09 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641389', 'tblTempVendorCDR_20' ) end [2025-03-09 09:52:16] Production.INFO: ProcessCDR(1,14641389,1,1,2) [2025-03-09 09:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641389', 'tblTempUsageDetail_20' ) start [2025-03-09 09:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641389', 'tblTempUsageDetail_20' ) end [2025-03-09 09:52:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:52:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:52:19] Production.INFO: ==4923== Releasing lock... [2025-03-09 09:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:52:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:53:05 [end_date_ymd] => 2025-03-09 09:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:53:05' and `end` < '2025-03-09 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-09 09:53:17] Production.INFO: count ==73 [2025-03-09 09:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:53:05 - End Time 2025-03-09 09:53:05 [2025-03-09 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641394', 'tblTempUsageDetail_20' ) start [2025-03-09 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641394', 'tblTempUsageDetail_20' ) end [2025-03-09 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641394', 'tblTempVendorCDR_20' ) start [2025-03-09 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641394', 'tblTempVendorCDR_20' ) end [2025-03-09 09:53:17] Production.INFO: ProcessCDR(1,14641394,1,1,2) [2025-03-09 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641394', 'tblTempUsageDetail_20' ) start [2025-03-09 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641394', 'tblTempUsageDetail_20' ) end [2025-03-09 09:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:53:20] Production.INFO: ==4997== Releasing lock... [2025-03-09 09:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:54:05 [end_date_ymd] => 2025-03-09 09:54:05 [RateCDR] => 1 ) [2025-03-09 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:54:05' and `end` < '2025-03-09 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:54:17] Production.INFO: count ==70 [2025-03-09 09:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:54:05 - End Time 2025-03-09 09:54:05 [2025-03-09 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641399', 'tblTempUsageDetail_20' ) start [2025-03-09 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641399', 'tblTempUsageDetail_20' ) end [2025-03-09 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641399', 'tblTempVendorCDR_20' ) start [2025-03-09 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641399', 'tblTempVendorCDR_20' ) end [2025-03-09 09:54:17] Production.INFO: ProcessCDR(1,14641399,1,1,2) [2025-03-09 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641399', 'tblTempUsageDetail_20' ) start [2025-03-09 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641399', 'tblTempUsageDetail_20' ) end [2025-03-09 09:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:54:20] Production.INFO: ==5071== Releasing lock... [2025-03-09 09:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:55:05 [end_date_ymd] => 2025-03-09 09:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:55:05' and `end` < '2025-03-09 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-09 09:55:17] Production.INFO: count ==70 [2025-03-09 09:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:55:05 - End Time 2025-03-09 09:55:05 [2025-03-09 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641404', 'tblTempUsageDetail_20' ) start [2025-03-09 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641404', 'tblTempUsageDetail_20' ) end [2025-03-09 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641404', 'tblTempVendorCDR_20' ) start [2025-03-09 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641404', 'tblTempVendorCDR_20' ) end [2025-03-09 09:55:17] Production.INFO: ProcessCDR(1,14641404,1,1,2) [2025-03-09 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641404', 'tblTempUsageDetail_20' ) start [2025-03-09 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641404', 'tblTempUsageDetail_20' ) end [2025-03-09 09:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:55:20] Production.INFO: ==5143== Releasing lock... [2025-03-09 09:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:56:05 [end_date_ymd] => 2025-03-09 09:56:05 [RateCDR] => 1 ) [2025-03-09 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 06:56:05' and `end` < '2025-03-09 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:56:17] Production.INFO: count ==70 [2025-03-09 09:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:56:05 - End Time 2025-03-09 09:56:05 [2025-03-09 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641409', 'tblTempUsageDetail_20' ) start [2025-03-09 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641409', 'tblTempUsageDetail_20' ) end [2025-03-09 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641409', 'tblTempVendorCDR_20' ) start [2025-03-09 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641409', 'tblTempVendorCDR_20' ) end [2025-03-09 09:56:17] Production.INFO: ProcessCDR(1,14641409,1,1,2) [2025-03-09 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641409', 'tblTempUsageDetail_20' ) start [2025-03-09 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641409', 'tblTempUsageDetail_20' ) end [2025-03-09 09:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:56:20] Production.INFO: ==5215== Releasing lock... [2025-03-09 09:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:57:05 [end_date_ymd] => 2025-03-09 09:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:57:05' and `end` < '2025-03-09 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-09 09:57:17] Production.INFO: count ==70 [2025-03-09 09:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:57:05 - End Time 2025-03-09 09:57:05 [2025-03-09 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641414', 'tblTempUsageDetail_20' ) start [2025-03-09 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641414', 'tblTempUsageDetail_20' ) end [2025-03-09 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641414', 'tblTempVendorCDR_20' ) start [2025-03-09 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641414', 'tblTempVendorCDR_20' ) end [2025-03-09 09:57:17] Production.INFO: ProcessCDR(1,14641414,1,1,2) [2025-03-09 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641414', 'tblTempUsageDetail_20' ) start [2025-03-09 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641414', 'tblTempUsageDetail_20' ) end [2025-03-09 09:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:57:20] Production.INFO: ==5285== Releasing lock... [2025-03-09 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:58:05 [end_date_ymd] => 2025-03-09 09:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:58:05' and `end` < '2025-03-09 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 09:58:18] Production.INFO: count ==70 [2025-03-09 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 06:58:05 - End Time 2025-03-09 09:58:05 [2025-03-09 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641419', 'tblTempUsageDetail_20' ) start [2025-03-09 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641419', 'tblTempUsageDetail_20' ) end [2025-03-09 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641419', 'tblTempVendorCDR_20' ) start [2025-03-09 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641419', 'tblTempVendorCDR_20' ) end [2025-03-09 09:58:18] Production.INFO: ProcessCDR(1,14641419,1,1,2) [2025-03-09 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641419', 'tblTempUsageDetail_20' ) start [2025-03-09 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641419', 'tblTempUsageDetail_20' ) end [2025-03-09 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:58:21] Production.INFO: ==5397== Releasing lock... [2025-03-09 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 06:59:05 [end_date_ymd] => 2025-03-09 09:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 06:59:05' and `end` < '2025-03-09 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-09 09:59:17] Production.INFO: count ==70 [2025-03-09 09:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 06:59:05 - End Time 2025-03-09 09:59:05 [2025-03-09 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641424', 'tblTempUsageDetail_20' ) start [2025-03-09 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641424', 'tblTempUsageDetail_20' ) end [2025-03-09 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641424', 'tblTempVendorCDR_20' ) start [2025-03-09 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641424', 'tblTempVendorCDR_20' ) end [2025-03-09 09:59:17] Production.INFO: ProcessCDR(1,14641424,1,1,2) [2025-03-09 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641424', 'tblTempUsageDetail_20' ) start [2025-03-09 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641424', 'tblTempUsageDetail_20' ) end [2025-03-09 09:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 09:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 09:59:20] Production.INFO: ==5471== Releasing lock... [2025-03-09 09:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 09:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:00:06 [end_date_ymd] => 2025-03-09 10:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 07:00:06' and `end` < '2025-03-09 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-09 10:00:18] Production.INFO: count ==78 [2025-03-09 10:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:00:06 - End Time 2025-03-09 10:00:06 [2025-03-09 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641430', 'tblTempUsageDetail_20' ) start [2025-03-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641430', 'tblTempUsageDetail_20' ) end [2025-03-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641430', 'tblTempVendorCDR_20' ) start [2025-03-09 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641430', 'tblTempVendorCDR_20' ) end [2025-03-09 10:00:18] Production.INFO: ProcessCDR(1,14641430,1,1,2) [2025-03-09 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641430', 'tblTempUsageDetail_20' ) start [2025-03-09 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641430', 'tblTempUsageDetail_20' ) end [2025-03-09 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:00:22] Production.INFO: ==5544== Releasing lock... [2025-03-09 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:01:05 [end_date_ymd] => 2025-03-09 10:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:01:05' and `end` < '2025-03-09 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-09 10:01:17] Production.INFO: count ==80 [2025-03-09 10:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:01:05 - End Time 2025-03-09 10:01:05 [2025-03-09 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641435', 'tblTempUsageDetail_20' ) start [2025-03-09 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641435', 'tblTempUsageDetail_20' ) end [2025-03-09 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641435', 'tblTempVendorCDR_20' ) start [2025-03-09 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641435', 'tblTempVendorCDR_20' ) end [2025-03-09 10:01:17] Production.INFO: ProcessCDR(1,14641435,1,1,2) [2025-03-09 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641435', 'tblTempUsageDetail_20' ) start [2025-03-09 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641435', 'tblTempUsageDetail_20' ) end [2025-03-09 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:01:22] Production.INFO: ==5630== Releasing lock... [2025-03-09 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:02:06 [end_date_ymd] => 2025-03-09 10:02:06 [RateCDR] => 1 ) [2025-03-09 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:02:06' and `end` < '2025-03-09 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:02:18] Production.INFO: count ==78 [2025-03-09 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:02:06 - End Time 2025-03-09 10:02:06 [2025-03-09 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641440', 'tblTempUsageDetail_20' ) start [2025-03-09 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641440', 'tblTempUsageDetail_20' ) end [2025-03-09 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641440', 'tblTempVendorCDR_20' ) start [2025-03-09 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641440', 'tblTempVendorCDR_20' ) end [2025-03-09 10:02:18] Production.INFO: ProcessCDR(1,14641440,1,1,2) [2025-03-09 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641440', 'tblTempUsageDetail_20' ) start [2025-03-09 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641440', 'tblTempUsageDetail_20' ) end [2025-03-09 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:02:23] Production.INFO: ==5701== Releasing lock... [2025-03-09 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:03:05 [end_date_ymd] => 2025-03-09 10:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:03:05' and `end` < '2025-03-09 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-09 10:03:17] Production.INFO: count ==79 [2025-03-09 10:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:03:05 - End Time 2025-03-09 10:03:05 [2025-03-09 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641445', 'tblTempUsageDetail_20' ) start [2025-03-09 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641445', 'tblTempUsageDetail_20' ) end [2025-03-09 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641445', 'tblTempVendorCDR_20' ) start [2025-03-09 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641445', 'tblTempVendorCDR_20' ) end [2025-03-09 10:03:17] Production.INFO: ProcessCDR(1,14641445,1,1,2) [2025-03-09 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641445', 'tblTempUsageDetail_20' ) start [2025-03-09 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641445', 'tblTempUsageDetail_20' ) end [2025-03-09 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:03:23] Production.INFO: ==5771== Releasing lock... [2025-03-09 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:04:06 [end_date_ymd] => 2025-03-09 10:04:06 [RateCDR] => 1 ) [2025-03-09 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:04:06' and `end` < '2025-03-09 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:04:18] Production.INFO: count ==81 [2025-03-09 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:04:06 - End Time 2025-03-09 10:04:06 [2025-03-09 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641450', 'tblTempUsageDetail_20' ) start [2025-03-09 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641450', 'tblTempUsageDetail_20' ) end [2025-03-09 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641450', 'tblTempVendorCDR_20' ) start [2025-03-09 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641450', 'tblTempVendorCDR_20' ) end [2025-03-09 10:04:18] Production.INFO: ProcessCDR(1,14641450,1,1,2) [2025-03-09 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641450', 'tblTempUsageDetail_20' ) start [2025-03-09 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641450', 'tblTempUsageDetail_20' ) end [2025-03-09 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:04:23] Production.INFO: ==5848== Releasing lock... [2025-03-09 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:04:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:05:05 [end_date_ymd] => 2025-03-09 10:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:05:05' and `end` < '2025-03-09 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-09 10:05:17] Production.INFO: count ==78 [2025-03-09 10:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:05:05 - End Time 2025-03-09 10:05:05 [2025-03-09 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641455', 'tblTempUsageDetail_20' ) start [2025-03-09 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641455', 'tblTempUsageDetail_20' ) end [2025-03-09 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641455', 'tblTempVendorCDR_20' ) start [2025-03-09 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641455', 'tblTempVendorCDR_20' ) end [2025-03-09 10:05:17] Production.INFO: ProcessCDR(1,14641455,1,1,2) [2025-03-09 10:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641455', 'tblTempUsageDetail_20' ) start [2025-03-09 10:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641455', 'tblTempUsageDetail_20' ) end [2025-03-09 10:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:05:20] Production.INFO: ==5921== Releasing lock... [2025-03-09 10:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:06:06 [end_date_ymd] => 2025-03-09 10:06:06 [RateCDR] => 1 ) [2025-03-09 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:06:06' and `end` < '2025-03-09 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:06:18] Production.INFO: count ==78 [2025-03-09 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:06:06 - End Time 2025-03-09 10:06:06 [2025-03-09 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641460', 'tblTempUsageDetail_20' ) start [2025-03-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641460', 'tblTempUsageDetail_20' ) end [2025-03-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641460', 'tblTempVendorCDR_20' ) start [2025-03-09 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641460', 'tblTempVendorCDR_20' ) end [2025-03-09 10:06:18] Production.INFO: ProcessCDR(1,14641460,1,1,2) [2025-03-09 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641460', 'tblTempUsageDetail_20' ) start [2025-03-09 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641460', 'tblTempUsageDetail_20' ) end [2025-03-09 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:06:22] Production.INFO: ==5995== Releasing lock... [2025-03-09 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:07:05 [end_date_ymd] => 2025-03-09 10:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:07:05' and `end` < '2025-03-09 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-09 10:07:17] Production.INFO: count ==75 [2025-03-09 10:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:07:05 - End Time 2025-03-09 10:07:05 [2025-03-09 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641465', 'tblTempUsageDetail_20' ) start [2025-03-09 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641465', 'tblTempUsageDetail_20' ) end [2025-03-09 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641465', 'tblTempVendorCDR_20' ) start [2025-03-09 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641465', 'tblTempVendorCDR_20' ) end [2025-03-09 10:07:17] Production.INFO: ProcessCDR(1,14641465,1,1,2) [2025-03-09 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641465', 'tblTempUsageDetail_20' ) start [2025-03-09 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641465', 'tblTempUsageDetail_20' ) end [2025-03-09 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:07:21] Production.INFO: ==6067== Releasing lock... [2025-03-09 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:08:06 [end_date_ymd] => 2025-03-09 10:08:06 [RateCDR] => 1 ) [2025-03-09 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-09 07:08:06' and `end` < '2025-03-09 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-09 10:08:18] Production.INFO: count ==76 [2025-03-09 10:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:08:06 - End Time 2025-03-09 10:08:06 [2025-03-09 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641470', 'tblTempUsageDetail_20' ) start [2025-03-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641470', 'tblTempUsageDetail_20' ) end [2025-03-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641470', 'tblTempVendorCDR_20' ) start [2025-03-09 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641470', 'tblTempVendorCDR_20' ) end [2025-03-09 10:08:18] Production.INFO: ProcessCDR(1,14641470,1,1,2) [2025-03-09 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641470', 'tblTempUsageDetail_20' ) start [2025-03-09 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641470', 'tblTempUsageDetail_20' ) end [2025-03-09 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:08:23] Production.INFO: ==6145== Releasing lock... [2025-03-09 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:08:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:09:05 [end_date_ymd] => 2025-03-09 10:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:09:05' and `end` < '2025-03-09 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-09 10:09:17] Production.INFO: count ==83 [2025-03-09 10:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:09:05 - End Time 2025-03-09 10:09:05 [2025-03-09 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641475', 'tblTempUsageDetail_20' ) start [2025-03-09 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641475', 'tblTempUsageDetail_20' ) end [2025-03-09 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641475', 'tblTempVendorCDR_20' ) start [2025-03-09 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641475', 'tblTempVendorCDR_20' ) end [2025-03-09 10:09:17] Production.INFO: ProcessCDR(1,14641475,1,1,2) [2025-03-09 10:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641475', 'tblTempUsageDetail_20' ) start [2025-03-09 10:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641475', 'tblTempUsageDetail_20' ) end [2025-03-09 10:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:09:21] Production.INFO: ==6223== Releasing lock... [2025-03-09 10:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-09 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:10:07 [end_date_ymd] => 2025-03-09 10:10:07 [RateCDR] => 1 ) [2025-03-09 10: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-09 07:10:07' and `end` < '2025-03-09 10: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-09 10:10:19] Production.INFO: count ==92 [2025-03-09 10:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 07:10:07 - End Time 2025-03-09 10:10:07 [2025-03-09 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641481', 'tblTempUsageDetail_20' ) start [2025-03-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641481', 'tblTempUsageDetail_20' ) end [2025-03-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641481', 'tblTempVendorCDR_20' ) start [2025-03-09 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641481', 'tblTempVendorCDR_20' ) end [2025-03-09 10:10:19] Production.INFO: ProcessCDR(1,14641481,1,1,2) [2025-03-09 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641481', 'tblTempUsageDetail_20' ) start [2025-03-09 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641481', 'tblTempUsageDetail_20' ) end [2025-03-09 10:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:10:23] Production.INFO: ==6296== Releasing lock... [2025-03-09 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:11:06 [end_date_ymd] => 2025-03-09 10:11:06 [RateCDR] => 1 ) [2025-03-09 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:11:06' and `end` < '2025-03-09 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:11:18] Production.INFO: count ==96 [2025-03-09 10:11:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:11:06 - End Time 2025-03-09 10:11:06 [2025-03-09 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641486', 'tblTempUsageDetail_20' ) start [2025-03-09 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641486', 'tblTempUsageDetail_20' ) end [2025-03-09 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641486', 'tblTempVendorCDR_20' ) start [2025-03-09 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641486', 'tblTempVendorCDR_20' ) end [2025-03-09 10:11:18] Production.INFO: ProcessCDR(1,14641486,1,1,2) [2025-03-09 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641486', 'tblTempUsageDetail_20' ) start [2025-03-09 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641486', 'tblTempUsageDetail_20' ) end [2025-03-09 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:11:21] Production.INFO: ==6370== Releasing lock... [2025-03-09 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:12:06 [end_date_ymd] => 2025-03-09 10:12:06 [RateCDR] => 1 ) [2025-03-09 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-09 07:12:06' and `end` < '2025-03-09 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-09 10:12:18] Production.INFO: count ==96 [2025-03-09 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:12:06 - End Time 2025-03-09 10:12:06 [2025-03-09 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641491', 'tblTempUsageDetail_20' ) start [2025-03-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641491', 'tblTempUsageDetail_20' ) end [2025-03-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641491', 'tblTempVendorCDR_20' ) start [2025-03-09 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641491', 'tblTempVendorCDR_20' ) end [2025-03-09 10:12:18] Production.INFO: ProcessCDR(1,14641491,1,1,2) [2025-03-09 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641491', 'tblTempUsageDetail_20' ) start [2025-03-09 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641491', 'tblTempUsageDetail_20' ) end [2025-03-09 10:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:12:21] Production.INFO: ==6442== Releasing lock... [2025-03-09 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:13:05 [end_date_ymd] => 2025-03-09 10:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:13:05' and `end` < '2025-03-09 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-09 10:13:17] Production.INFO: count ==96 [2025-03-09 10:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:13:05 - End Time 2025-03-09 10:13:05 [2025-03-09 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641496', 'tblTempUsageDetail_20' ) start [2025-03-09 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641496', 'tblTempUsageDetail_20' ) end [2025-03-09 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641496', 'tblTempVendorCDR_20' ) start [2025-03-09 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641496', 'tblTempVendorCDR_20' ) end [2025-03-09 10:13:17] Production.INFO: ProcessCDR(1,14641496,1,1,2) [2025-03-09 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641496', 'tblTempUsageDetail_20' ) start [2025-03-09 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641496', 'tblTempUsageDetail_20' ) end [2025-03-09 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:13:21] Production.INFO: ==6558== Releasing lock... [2025-03-09 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:14:06 [end_date_ymd] => 2025-03-09 10:14:06 [RateCDR] => 1 ) [2025-03-09 10: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-09 07:14:06' and `end` < '2025-03-09 10: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-09 10:14:18] Production.INFO: count ==96 [2025-03-09 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:14:06 - End Time 2025-03-09 10:14:06 [2025-03-09 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641501', 'tblTempUsageDetail_20' ) start [2025-03-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641501', 'tblTempUsageDetail_20' ) end [2025-03-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641501', 'tblTempVendorCDR_20' ) start [2025-03-09 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641501', 'tblTempVendorCDR_20' ) end [2025-03-09 10:14:18] Production.INFO: ProcessCDR(1,14641501,1,1,2) [2025-03-09 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641501', 'tblTempUsageDetail_20' ) start [2025-03-09 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641501', 'tblTempUsageDetail_20' ) end [2025-03-09 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:14:22] Production.INFO: ==6632== Releasing lock... [2025-03-09 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:15:05 [end_date_ymd] => 2025-03-09 10:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:15:05' and `end` < '2025-03-09 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-09 10:15:17] Production.INFO: count ==100 [2025-03-09 10:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:15:05 - End Time 2025-03-09 10:15:05 [2025-03-09 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641506', 'tblTempUsageDetail_20' ) start [2025-03-09 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641506', 'tblTempUsageDetail_20' ) end [2025-03-09 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641506', 'tblTempVendorCDR_20' ) start [2025-03-09 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641506', 'tblTempVendorCDR_20' ) end [2025-03-09 10:15:17] Production.INFO: ProcessCDR(1,14641506,1,1,2) [2025-03-09 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641506', 'tblTempUsageDetail_20' ) start [2025-03-09 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641506', 'tblTempUsageDetail_20' ) end [2025-03-09 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:15:21] Production.INFO: ==6705== Releasing lock... [2025-03-09 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-09 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:16:06 [end_date_ymd] => 2025-03-09 10:16:06 [RateCDR] => 1 ) [2025-03-09 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:16:06' and `end` < '2025-03-09 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:16:18] Production.INFO: count ==113 [2025-03-09 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:16:06 - End Time 2025-03-09 10:16:06 [2025-03-09 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641511', 'tblTempUsageDetail_20' ) start [2025-03-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641511', 'tblTempUsageDetail_20' ) end [2025-03-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641511', 'tblTempVendorCDR_20' ) start [2025-03-09 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641511', 'tblTempVendorCDR_20' ) end [2025-03-09 10:16:18] Production.INFO: ProcessCDR(1,14641511,1,1,2) [2025-03-09 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641511', 'tblTempUsageDetail_20' ) start [2025-03-09 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641511', 'tblTempUsageDetail_20' ) end [2025-03-09 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:16:23] Production.INFO: ==6782== Releasing lock... [2025-03-09 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:16:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:17:05 [end_date_ymd] => 2025-03-09 10:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:17:05' and `end` < '2025-03-09 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:17:18] Production.INFO: count ==118 [2025-03-09 10:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:17:05 - End Time 2025-03-09 10:17:05 [2025-03-09 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641516', 'tblTempUsageDetail_20' ) start [2025-03-09 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641516', 'tblTempUsageDetail_20' ) end [2025-03-09 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641516', 'tblTempVendorCDR_20' ) start [2025-03-09 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641516', 'tblTempVendorCDR_20' ) end [2025-03-09 10:17:18] Production.INFO: ProcessCDR(1,14641516,1,1,2) [2025-03-09 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641516', 'tblTempUsageDetail_20' ) start [2025-03-09 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641516', 'tblTempUsageDetail_20' ) end [2025-03-09 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:17:21] Production.INFO: ==6853== Releasing lock... [2025-03-09 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:18:06 [end_date_ymd] => 2025-03-09 10:18:06 [RateCDR] => 1 ) [2025-03-09 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:18:06' and `end` < '2025-03-09 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:18:18] Production.INFO: count ==118 [2025-03-09 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:18:06 - End Time 2025-03-09 10:18:06 [2025-03-09 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641521', 'tblTempUsageDetail_20' ) start [2025-03-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641521', 'tblTempUsageDetail_20' ) end [2025-03-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641521', 'tblTempVendorCDR_20' ) start [2025-03-09 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641521', 'tblTempVendorCDR_20' ) end [2025-03-09 10:18:18] Production.INFO: ProcessCDR(1,14641521,1,1,2) [2025-03-09 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641521', 'tblTempUsageDetail_20' ) start [2025-03-09 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641521', 'tblTempUsageDetail_20' ) end [2025-03-09 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:18:21] Production.INFO: ==6928== Releasing lock... [2025-03-09 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:19:05 [end_date_ymd] => 2025-03-09 10:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:19:05' and `end` < '2025-03-09 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-09 10:19:17] Production.INFO: count ==118 [2025-03-09 10:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:19:05 - End Time 2025-03-09 10:19:05 [2025-03-09 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641526', 'tblTempUsageDetail_20' ) start [2025-03-09 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641526', 'tblTempUsageDetail_20' ) end [2025-03-09 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641526', 'tblTempVendorCDR_20' ) start [2025-03-09 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641526', 'tblTempVendorCDR_20' ) end [2025-03-09 10:19:17] Production.INFO: ProcessCDR(1,14641526,1,1,2) [2025-03-09 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641526', 'tblTempUsageDetail_20' ) start [2025-03-09 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641526', 'tblTempUsageDetail_20' ) end [2025-03-09 10:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:19:20] Production.INFO: ==7004== Releasing lock... [2025-03-09 10:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:20:06 [end_date_ymd] => 2025-03-09 10:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 07:20:06' and `end` < '2025-03-09 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-09 10:20:18] Production.INFO: count ==127 [2025-03-09 10:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:20:06 - End Time 2025-03-09 10:20:06 [2025-03-09 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641531', 'tblTempUsageDetail_20' ) start [2025-03-09 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641531', 'tblTempUsageDetail_20' ) end [2025-03-09 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641531', 'tblTempVendorCDR_20' ) start [2025-03-09 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641531', 'tblTempVendorCDR_20' ) end [2025-03-09 10:20:18] Production.INFO: ProcessCDR(1,14641531,1,1,2) [2025-03-09 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641531', 'tblTempUsageDetail_20' ) start [2025-03-09 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641531', 'tblTempUsageDetail_20' ) end [2025-03-09 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:20:23] Production.INFO: ==7079== Releasing lock... [2025-03-09 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:20:23] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:21:05 [end_date_ymd] => 2025-03-09 10:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:21:05' and `end` < '2025-03-09 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-09 10:21:17] Production.INFO: count ==127 [2025-03-09 10:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:21:05 - End Time 2025-03-09 10:21:05 [2025-03-09 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641537', 'tblTempUsageDetail_20' ) start [2025-03-09 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641537', 'tblTempUsageDetail_20' ) end [2025-03-09 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641537', 'tblTempVendorCDR_20' ) start [2025-03-09 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641537', 'tblTempVendorCDR_20' ) end [2025-03-09 10:21:17] Production.INFO: ProcessCDR(1,14641537,1,1,2) [2025-03-09 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641537', 'tblTempUsageDetail_20' ) start [2025-03-09 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641537', 'tblTempUsageDetail_20' ) end [2025-03-09 10:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:21:20] Production.INFO: ==7153== Releasing lock... [2025-03-09 10:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:21:20] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:22:05 [end_date_ymd] => 2025-03-09 10:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:22:05' and `end` < '2025-03-09 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-09 10:22:18] Production.INFO: count ==128 [2025-03-09 10:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:22:05 - End Time 2025-03-09 10:22:05 [2025-03-09 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641542', 'tblTempUsageDetail_20' ) start [2025-03-09 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641542', 'tblTempUsageDetail_20' ) end [2025-03-09 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641542', 'tblTempVendorCDR_20' ) start [2025-03-09 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641542', 'tblTempVendorCDR_20' ) end [2025-03-09 10:22:18] Production.INFO: ProcessCDR(1,14641542,1,1,2) [2025-03-09 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641542', 'tblTempUsageDetail_20' ) start [2025-03-09 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641542', 'tblTempUsageDetail_20' ) end [2025-03-09 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:22:22] Production.INFO: ==7223== Releasing lock... [2025-03-09 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:22:22] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:23:05 [end_date_ymd] => 2025-03-09 10:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:23:05' and `end` < '2025-03-09 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-09 10:23:17] Production.INFO: count ==130 [2025-03-09 10:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:23:05 - End Time 2025-03-09 10:23:05 [2025-03-09 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641547', 'tblTempUsageDetail_20' ) start [2025-03-09 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641547', 'tblTempUsageDetail_20' ) end [2025-03-09 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641547', 'tblTempVendorCDR_20' ) start [2025-03-09 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641547', 'tblTempVendorCDR_20' ) end [2025-03-09 10:23:17] Production.INFO: ProcessCDR(1,14641547,1,1,2) [2025-03-09 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641547', 'tblTempUsageDetail_20' ) start [2025-03-09 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641547', 'tblTempUsageDetail_20' ) end [2025-03-09 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:23:22] Production.INFO: ==7300== Releasing lock... [2025-03-09 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:23:22] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:24:06 [end_date_ymd] => 2025-03-09 10:24:06 [RateCDR] => 1 ) [2025-03-09 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:24:06' and `end` < '2025-03-09 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:24:18] Production.INFO: count ==131 [2025-03-09 10:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:24:06 - End Time 2025-03-09 10:24:06 [2025-03-09 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641552', 'tblTempUsageDetail_20' ) start [2025-03-09 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641552', 'tblTempUsageDetail_20' ) end [2025-03-09 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641552', 'tblTempVendorCDR_20' ) start [2025-03-09 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641552', 'tblTempVendorCDR_20' ) end [2025-03-09 10:24:18] Production.INFO: ProcessCDR(1,14641552,1,1,2) [2025-03-09 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641552', 'tblTempUsageDetail_20' ) start [2025-03-09 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641552', 'tblTempUsageDetail_20' ) end [2025-03-09 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:24:22] Production.INFO: ==7379== Releasing lock... [2025-03-09 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:24:22] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:25:05 [end_date_ymd] => 2025-03-09 10:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:25:05' and `end` < '2025-03-09 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-09 10:25:17] Production.INFO: count ==131 [2025-03-09 10:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:25:05 - End Time 2025-03-09 10:25:05 [2025-03-09 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641557', 'tblTempUsageDetail_20' ) start [2025-03-09 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641557', 'tblTempUsageDetail_20' ) end [2025-03-09 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641557', 'tblTempVendorCDR_20' ) start [2025-03-09 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641557', 'tblTempVendorCDR_20' ) end [2025-03-09 10:25:17] Production.INFO: ProcessCDR(1,14641557,1,1,2) [2025-03-09 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641557', 'tblTempUsageDetail_20' ) start [2025-03-09 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641557', 'tblTempUsageDetail_20' ) end [2025-03-09 10:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:25:20] Production.INFO: ==7452== Releasing lock... [2025-03-09 10:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:26:05 [end_date_ymd] => 2025-03-09 10:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:26:05' and `end` < '2025-03-09 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-09 10:26:17] Production.INFO: count ==132 [2025-03-09 10:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:26:05 - End Time 2025-03-09 10:26:05 [2025-03-09 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641562', 'tblTempUsageDetail_20' ) start [2025-03-09 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641562', 'tblTempUsageDetail_20' ) end [2025-03-09 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641562', 'tblTempVendorCDR_20' ) start [2025-03-09 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641562', 'tblTempVendorCDR_20' ) end [2025-03-09 10:26:17] Production.INFO: ProcessCDR(1,14641562,1,1,2) [2025-03-09 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641562', 'tblTempUsageDetail_20' ) start [2025-03-09 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641562', 'tblTempUsageDetail_20' ) end [2025-03-09 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:26:22] Production.INFO: ==7526== Releasing lock... [2025-03-09 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:26:22] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:27:05 [end_date_ymd] => 2025-03-09 10:27:05 [RateCDR] => 1 ) [2025-03-09 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:27:05' and `end` < '2025-03-09 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:27:17] Production.INFO: count ==133 [2025-03-09 10:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:27:05 - End Time 2025-03-09 10:27:05 [2025-03-09 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641567', 'tblTempUsageDetail_20' ) start [2025-03-09 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641567', 'tblTempUsageDetail_20' ) end [2025-03-09 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641567', 'tblTempVendorCDR_20' ) start [2025-03-09 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641567', 'tblTempVendorCDR_20' ) end [2025-03-09 10:27:17] Production.INFO: ProcessCDR(1,14641567,1,1,2) [2025-03-09 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641567', 'tblTempUsageDetail_20' ) start [2025-03-09 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641567', 'tblTempUsageDetail_20' ) end [2025-03-09 10:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:27:22] Production.INFO: ==7597== Releasing lock... [2025-03-09 10:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:27:22] Production.INFO: 29 MB #Memory Used# [2025-03-09 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:28:05 [end_date_ymd] => 2025-03-09 10:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:28:05' and `end` < '2025-03-09 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-09 10:28:17] Production.INFO: count ==135 [2025-03-09 10:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:28:05 - End Time 2025-03-09 10:28:05 [2025-03-09 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641572', 'tblTempUsageDetail_20' ) start [2025-03-09 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641572', 'tblTempUsageDetail_20' ) end [2025-03-09 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641572', 'tblTempVendorCDR_20' ) start [2025-03-09 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641572', 'tblTempVendorCDR_20' ) end [2025-03-09 10:28:17] Production.INFO: ProcessCDR(1,14641572,1,1,2) [2025-03-09 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641572', 'tblTempUsageDetail_20' ) start [2025-03-09 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641572', 'tblTempUsageDetail_20' ) end [2025-03-09 10:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:28:22] Production.INFO: ==7670== Releasing lock... [2025-03-09 10:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:29:05 [end_date_ymd] => 2025-03-09 10:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:29:05' and `end` < '2025-03-09 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-09 10:29:17] Production.INFO: count ==135 [2025-03-09 10:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:29:05 - End Time 2025-03-09 10:29:05 [2025-03-09 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641577', 'tblTempUsageDetail_20' ) start [2025-03-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641577', 'tblTempUsageDetail_20' ) end [2025-03-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641577', 'tblTempVendorCDR_20' ) start [2025-03-09 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641577', 'tblTempVendorCDR_20' ) end [2025-03-09 10:29:17] Production.INFO: ProcessCDR(1,14641577,1,1,2) [2025-03-09 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641577', 'tblTempUsageDetail_20' ) start [2025-03-09 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641577', 'tblTempUsageDetail_20' ) end [2025-03-09 10:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:29:20] Production.INFO: ==7784== Releasing lock... [2025-03-09 10:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-09 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:30:06 [end_date_ymd] => 2025-03-09 10:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 07:30:06' and `end` < '2025-03-09 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-09 10:30:18] Production.INFO: count ==151 [2025-03-09 10:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:30:06 - End Time 2025-03-09 10:30:06 [2025-03-09 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641583', 'tblTempUsageDetail_20' ) start [2025-03-09 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641583', 'tblTempUsageDetail_20' ) end [2025-03-09 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641583', 'tblTempVendorCDR_20' ) start [2025-03-09 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641583', 'tblTempVendorCDR_20' ) end [2025-03-09 10:30:18] Production.INFO: ProcessCDR(1,14641583,1,1,2) [2025-03-09 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641583', 'tblTempUsageDetail_20' ) start [2025-03-09 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641583', 'tblTempUsageDetail_20' ) end [2025-03-09 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:30:23] Production.INFO: ==7860== Releasing lock... [2025-03-09 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-09 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:31:05 [end_date_ymd] => 2025-03-09 10:31:05 [RateCDR] => 1 ) [2025-03-09 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:31:05' and `end` < '2025-03-09 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:31:17] Production.INFO: count ==164 [2025-03-09 10:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:31:05 - End Time 2025-03-09 10:31:05 [2025-03-09 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641588', 'tblTempUsageDetail_20' ) start [2025-03-09 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641588', 'tblTempUsageDetail_20' ) end [2025-03-09 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641588', 'tblTempVendorCDR_20' ) start [2025-03-09 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641588', 'tblTempVendorCDR_20' ) end [2025-03-09 10:31:17] Production.INFO: ProcessCDR(1,14641588,1,1,2) [2025-03-09 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641588', 'tblTempUsageDetail_20' ) start [2025-03-09 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641588', 'tblTempUsageDetail_20' ) end [2025-03-09 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:31:22] Production.INFO: ==7934== Releasing lock... [2025-03-09 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:32:05 [end_date_ymd] => 2025-03-09 10:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:32:05' and `end` < '2025-03-09 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-09 10:32:17] Production.INFO: count ==164 [2025-03-09 10:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:32:05 - End Time 2025-03-09 10:32:05 [2025-03-09 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641593', 'tblTempUsageDetail_20' ) start [2025-03-09 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641593', 'tblTempUsageDetail_20' ) end [2025-03-09 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641593', 'tblTempVendorCDR_20' ) start [2025-03-09 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641593', 'tblTempVendorCDR_20' ) end [2025-03-09 10:32:17] Production.INFO: ProcessCDR(1,14641593,1,1,2) [2025-03-09 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641593', 'tblTempUsageDetail_20' ) start [2025-03-09 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641593', 'tblTempUsageDetail_20' ) end [2025-03-09 10:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:32:20] Production.INFO: ==8007== Releasing lock... [2025-03-09 10:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:33:06 [end_date_ymd] => 2025-03-09 10:33:06 [RateCDR] => 1 ) [2025-03-09 10: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-09 07:33:06' and `end` < '2025-03-09 10: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-09 10:33:18] Production.INFO: count ==165 [2025-03-09 10:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:33:06 - End Time 2025-03-09 10:33:06 [2025-03-09 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641598', 'tblTempUsageDetail_20' ) start [2025-03-09 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641598', 'tblTempUsageDetail_20' ) end [2025-03-09 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641598', 'tblTempVendorCDR_20' ) start [2025-03-09 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641598', 'tblTempVendorCDR_20' ) end [2025-03-09 10:33:18] Production.INFO: ProcessCDR(1,14641598,1,1,2) [2025-03-09 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641598', 'tblTempUsageDetail_20' ) start [2025-03-09 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641598', 'tblTempUsageDetail_20' ) end [2025-03-09 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:33:22] Production.INFO: ==8082== Releasing lock... [2025-03-09 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:34:05 [end_date_ymd] => 2025-03-09 10:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:34:05' and `end` < '2025-03-09 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-09 10:34:17] Production.INFO: count ==166 [2025-03-09 10:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:34:05 - End Time 2025-03-09 10:34:05 [2025-03-09 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641603', 'tblTempUsageDetail_20' ) start [2025-03-09 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641603', 'tblTempUsageDetail_20' ) end [2025-03-09 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641603', 'tblTempVendorCDR_20' ) start [2025-03-09 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641603', 'tblTempVendorCDR_20' ) end [2025-03-09 10:34:17] Production.INFO: ProcessCDR(1,14641603,1,1,2) [2025-03-09 10:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641603', 'tblTempUsageDetail_20' ) start [2025-03-09 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641603', 'tblTempUsageDetail_20' ) end [2025-03-09 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:34:21] Production.INFO: ==8155== Releasing lock... [2025-03-09 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:35:05 [end_date_ymd] => 2025-03-09 10:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:35:05' and `end` < '2025-03-09 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-09 10:35:17] Production.INFO: count ==166 [2025-03-09 10:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:35:05 - End Time 2025-03-09 10:35:05 [2025-03-09 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641608', 'tblTempUsageDetail_20' ) start [2025-03-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641608', 'tblTempUsageDetail_20' ) end [2025-03-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641608', 'tblTempVendorCDR_20' ) start [2025-03-09 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641608', 'tblTempVendorCDR_20' ) end [2025-03-09 10:35:17] Production.INFO: ProcessCDR(1,14641608,1,1,2) [2025-03-09 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641608', 'tblTempUsageDetail_20' ) start [2025-03-09 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641608', 'tblTempUsageDetail_20' ) end [2025-03-09 10:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:35:20] Production.INFO: ==8229== Releasing lock... [2025-03-09 10:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:36:05 [end_date_ymd] => 2025-03-09 10:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:36:05' and `end` < '2025-03-09 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-09 10:36:17] Production.INFO: count ==167 [2025-03-09 10:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:36:05 - End Time 2025-03-09 10:36:05 [2025-03-09 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641613', 'tblTempUsageDetail_20' ) start [2025-03-09 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641613', 'tblTempUsageDetail_20' ) end [2025-03-09 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641613', 'tblTempVendorCDR_20' ) start [2025-03-09 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641613', 'tblTempVendorCDR_20' ) end [2025-03-09 10:36:17] Production.INFO: ProcessCDR(1,14641613,1,1,2) [2025-03-09 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641613', 'tblTempUsageDetail_20' ) start [2025-03-09 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641613', 'tblTempUsageDetail_20' ) end [2025-03-09 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:36:21] Production.INFO: ==8301== Releasing lock... [2025-03-09 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:37:05 [end_date_ymd] => 2025-03-09 10:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:37:05' and `end` < '2025-03-09 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-09 10:37:17] Production.INFO: count ==169 [2025-03-09 10:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:37:05 - End Time 2025-03-09 10:37:05 [2025-03-09 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641618', 'tblTempUsageDetail_20' ) start [2025-03-09 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641618', 'tblTempUsageDetail_20' ) end [2025-03-09 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641618', 'tblTempVendorCDR_20' ) start [2025-03-09 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641618', 'tblTempVendorCDR_20' ) end [2025-03-09 10:37:17] Production.INFO: ProcessCDR(1,14641618,1,1,2) [2025-03-09 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641618', 'tblTempUsageDetail_20' ) start [2025-03-09 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641618', 'tblTempUsageDetail_20' ) end [2025-03-09 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:37:21] Production.INFO: ==8378== Releasing lock... [2025-03-09 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:38:05 [end_date_ymd] => 2025-03-09 10:38:05 [RateCDR] => 1 ) [2025-03-09 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:38:05' and `end` < '2025-03-09 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:38:17] Production.INFO: count ==171 [2025-03-09 10:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:38:05 - End Time 2025-03-09 10:38:05 [2025-03-09 10:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641623', 'tblTempUsageDetail_20' ) start [2025-03-09 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641623', 'tblTempUsageDetail_20' ) end [2025-03-09 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641623', 'tblTempVendorCDR_20' ) start [2025-03-09 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641623', 'tblTempVendorCDR_20' ) end [2025-03-09 10:38:17] Production.INFO: ProcessCDR(1,14641623,1,1,2) [2025-03-09 10:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641623', 'tblTempUsageDetail_20' ) start [2025-03-09 10:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641623', 'tblTempUsageDetail_20' ) end [2025-03-09 10:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:38:20] Production.INFO: ==8455== Releasing lock... [2025-03-09 10:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:38:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:39:05 [end_date_ymd] => 2025-03-09 10:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:39:05' and `end` < '2025-03-09 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-09 10:39:17] Production.INFO: count ==171 [2025-03-09 10:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:39:05 - End Time 2025-03-09 10:39:05 [2025-03-09 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641628', 'tblTempUsageDetail_20' ) start [2025-03-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641628', 'tblTempUsageDetail_20' ) end [2025-03-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641628', 'tblTempVendorCDR_20' ) start [2025-03-09 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641628', 'tblTempVendorCDR_20' ) end [2025-03-09 10:39:17] Production.INFO: ProcessCDR(1,14641628,1,1,2) [2025-03-09 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641628', 'tblTempUsageDetail_20' ) start [2025-03-09 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641628', 'tblTempUsageDetail_20' ) end [2025-03-09 10:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:39:21] Production.INFO: ==8530== Releasing lock... [2025-03-09 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:40:05 [end_date_ymd] => 2025-03-09 10:40:05 [RateCDR] => 1 ) [2025-03-09 10: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-09 07:40:05' and `end` < '2025-03-09 10: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-09 10:40:17] Production.INFO: count ==177 [2025-03-09 10:40:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:40:05 - End Time 2025-03-09 10:40:05 [2025-03-09 10:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641634', 'tblTempUsageDetail_20' ) start [2025-03-09 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641634', 'tblTempUsageDetail_20' ) end [2025-03-09 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641634', 'tblTempVendorCDR_20' ) start [2025-03-09 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641634', 'tblTempVendorCDR_20' ) end [2025-03-09 10:40:17] Production.INFO: ProcessCDR(1,14641634,1,1,2) [2025-03-09 10:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641634', 'tblTempUsageDetail_20' ) start [2025-03-09 10:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641634', 'tblTempUsageDetail_20' ) end [2025-03-09 10:40:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:40:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:40:20] Production.INFO: ==8607== Releasing lock... [2025-03-09 10:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:40:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:41:05 [end_date_ymd] => 2025-03-09 10:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:41:05' and `end` < '2025-03-09 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-09 10:41:17] Production.INFO: count ==184 [2025-03-09 10:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:41:05 - End Time 2025-03-09 10:41:05 [2025-03-09 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641639', 'tblTempUsageDetail_20' ) start [2025-03-09 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641639', 'tblTempUsageDetail_20' ) end [2025-03-09 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641639', 'tblTempVendorCDR_20' ) start [2025-03-09 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641639', 'tblTempVendorCDR_20' ) end [2025-03-09 10:41:17] Production.INFO: ProcessCDR(1,14641639,1,1,2) [2025-03-09 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641639', 'tblTempUsageDetail_20' ) start [2025-03-09 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641639', 'tblTempUsageDetail_20' ) end [2025-03-09 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:41:21] Production.INFO: ==8682== Releasing lock... [2025-03-09 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:42:06 [end_date_ymd] => 2025-03-09 10:42:06 [RateCDR] => 1 ) [2025-03-09 10: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-09 07:42:06' and `end` < '2025-03-09 10: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-09 10:42:18] Production.INFO: count ==184 [2025-03-09 10:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:42:06 - End Time 2025-03-09 10:42:06 [2025-03-09 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641644', 'tblTempUsageDetail_20' ) start [2025-03-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641644', 'tblTempUsageDetail_20' ) end [2025-03-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641644', 'tblTempVendorCDR_20' ) start [2025-03-09 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641644', 'tblTempVendorCDR_20' ) end [2025-03-09 10:42:18] Production.INFO: ProcessCDR(1,14641644,1,1,2) [2025-03-09 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641644', 'tblTempUsageDetail_20' ) start [2025-03-09 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641644', 'tblTempUsageDetail_20' ) end [2025-03-09 10:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:42:21] Production.INFO: ==8754== Releasing lock... [2025-03-09 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:43:05 [end_date_ymd] => 2025-03-09 10:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:43:05' and `end` < '2025-03-09 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-09 10:43:17] Production.INFO: count ==184 [2025-03-09 10:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:43:05 - End Time 2025-03-09 10:43:05 [2025-03-09 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641649', 'tblTempUsageDetail_20' ) start [2025-03-09 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641649', 'tblTempUsageDetail_20' ) end [2025-03-09 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641649', 'tblTempVendorCDR_20' ) start [2025-03-09 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641649', 'tblTempVendorCDR_20' ) end [2025-03-09 10:43:17] Production.INFO: ProcessCDR(1,14641649,1,1,2) [2025-03-09 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641649', 'tblTempUsageDetail_20' ) start [2025-03-09 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641649', 'tblTempUsageDetail_20' ) end [2025-03-09 10:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:43:20] Production.INFO: ==8834== Releasing lock... [2025-03-09 10:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:43:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:44:05 [end_date_ymd] => 2025-03-09 10:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:44:05' and `end` < '2025-03-09 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-09 10:44:17] Production.INFO: count ==184 [2025-03-09 10:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:44:05 - End Time 2025-03-09 10:44:05 [2025-03-09 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641654', 'tblTempUsageDetail_20' ) start [2025-03-09 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641654', 'tblTempUsageDetail_20' ) end [2025-03-09 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641654', 'tblTempVendorCDR_20' ) start [2025-03-09 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641654', 'tblTempVendorCDR_20' ) end [2025-03-09 10:44:17] Production.INFO: ProcessCDR(1,14641654,1,1,2) [2025-03-09 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641654', 'tblTempUsageDetail_20' ) start [2025-03-09 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641654', 'tblTempUsageDetail_20' ) end [2025-03-09 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:44:21] Production.INFO: ==8950== Releasing lock... [2025-03-09 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:45:05 [end_date_ymd] => 2025-03-09 10:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:45:05' and `end` < '2025-03-09 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-09 10:45:17] Production.INFO: count ==184 [2025-03-09 10:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:45:05 - End Time 2025-03-09 10:45:05 [2025-03-09 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641659', 'tblTempUsageDetail_20' ) start [2025-03-09 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641659', 'tblTempUsageDetail_20' ) end [2025-03-09 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641659', 'tblTempVendorCDR_20' ) start [2025-03-09 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641659', 'tblTempVendorCDR_20' ) end [2025-03-09 10:45:17] Production.INFO: ProcessCDR(1,14641659,1,1,2) [2025-03-09 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641659', 'tblTempUsageDetail_20' ) start [2025-03-09 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641659', 'tblTempUsageDetail_20' ) end [2025-03-09 10:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:45:20] Production.INFO: ==9024== Releasing lock... [2025-03-09 10:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:46:06 [end_date_ymd] => 2025-03-09 10:46:06 [RateCDR] => 1 ) [2025-03-09 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:46:06' and `end` < '2025-03-09 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:46:18] Production.INFO: count ==184 [2025-03-09 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:46:06 - End Time 2025-03-09 10:46:06 [2025-03-09 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641664', 'tblTempUsageDetail_20' ) start [2025-03-09 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641664', 'tblTempUsageDetail_20' ) end [2025-03-09 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641664', 'tblTempVendorCDR_20' ) start [2025-03-09 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641664', 'tblTempVendorCDR_20' ) end [2025-03-09 10:46:18] Production.INFO: ProcessCDR(1,14641664,1,1,2) [2025-03-09 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641664', 'tblTempUsageDetail_20' ) start [2025-03-09 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641664', 'tblTempUsageDetail_20' ) end [2025-03-09 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:46:21] Production.INFO: ==9097== Releasing lock... [2025-03-09 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:47:05 [end_date_ymd] => 2025-03-09 10:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:47:05' and `end` < '2025-03-09 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-09 10:47:17] Production.INFO: count ==184 [2025-03-09 10:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:47:05 - End Time 2025-03-09 10:47:05 [2025-03-09 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641669', 'tblTempUsageDetail_20' ) start [2025-03-09 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641669', 'tblTempUsageDetail_20' ) end [2025-03-09 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641669', 'tblTempVendorCDR_20' ) start [2025-03-09 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641669', 'tblTempVendorCDR_20' ) end [2025-03-09 10:47:17] Production.INFO: ProcessCDR(1,14641669,1,1,2) [2025-03-09 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641669', 'tblTempUsageDetail_20' ) start [2025-03-09 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641669', 'tblTempUsageDetail_20' ) end [2025-03-09 10:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:47:20] Production.INFO: ==9167== Releasing lock... [2025-03-09 10:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:47:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:48:05 [end_date_ymd] => 2025-03-09 10:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:48:05' and `end` < '2025-03-09 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-09 10:48:18] Production.INFO: count ==184 [2025-03-09 10:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:48:05 - End Time 2025-03-09 10:48:05 [2025-03-09 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641674', 'tblTempUsageDetail_20' ) start [2025-03-09 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641674', 'tblTempUsageDetail_20' ) end [2025-03-09 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641674', 'tblTempVendorCDR_20' ) start [2025-03-09 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641674', 'tblTempVendorCDR_20' ) end [2025-03-09 10:48:18] Production.INFO: ProcessCDR(1,14641674,1,1,2) [2025-03-09 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641674', 'tblTempUsageDetail_20' ) start [2025-03-09 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641674', 'tblTempUsageDetail_20' ) end [2025-03-09 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:48:21] Production.INFO: ==9244== Releasing lock... [2025-03-09 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:49:04 [end_date_ymd] => 2025-03-09 10:49:04 [RateCDR] => 1 ) [2025-03-09 10: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-09 07:49:04' and `end` < '2025-03-09 10: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-09 10:49:16] Production.INFO: count ==187 [2025-03-09 10:49:16] Production.ERROR: pbx CDR StartTime 2025-03-09 07:49:04 - End Time 2025-03-09 10:49:04 [2025-03-09 10:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641679', 'tblTempUsageDetail_20' ) start [2025-03-09 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641679', 'tblTempUsageDetail_20' ) end [2025-03-09 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641679', 'tblTempVendorCDR_20' ) start [2025-03-09 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641679', 'tblTempVendorCDR_20' ) end [2025-03-09 10:49:16] Production.INFO: ProcessCDR(1,14641679,1,1,2) [2025-03-09 10:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641679', 'tblTempUsageDetail_20' ) start [2025-03-09 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641679', 'tblTempUsageDetail_20' ) end [2025-03-09 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:49:21] Production.INFO: ==9316== Releasing lock... [2025-03-09 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:50:06 [end_date_ymd] => 2025-03-09 10:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 07:50:06' and `end` < '2025-03-09 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-09 10:50:18] Production.INFO: count ==197 [2025-03-09 10:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:50:06 - End Time 2025-03-09 10:50:06 [2025-03-09 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641685', 'tblTempUsageDetail_20' ) start [2025-03-09 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641685', 'tblTempUsageDetail_20' ) end [2025-03-09 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641685', 'tblTempVendorCDR_20' ) start [2025-03-09 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641685', 'tblTempVendorCDR_20' ) end [2025-03-09 10:50:18] Production.INFO: ProcessCDR(1,14641685,1,1,2) [2025-03-09 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641685', 'tblTempUsageDetail_20' ) start [2025-03-09 10:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641685', 'tblTempUsageDetail_20' ) end [2025-03-09 10:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:50:21] Production.INFO: ==9390== Releasing lock... [2025-03-09 10:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-09 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:51:04 [end_date_ymd] => 2025-03-09 10:51:04 [RateCDR] => 1 ) [2025-03-09 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-09 07:51:04' and `end` < '2025-03-09 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-09 10:51:16] Production.INFO: count ==218 [2025-03-09 10:51:16] Production.ERROR: pbx CDR StartTime 2025-03-09 07:51:04 - End Time 2025-03-09 10:51:04 [2025-03-09 10:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641690', 'tblTempUsageDetail_20' ) start [2025-03-09 10:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641690', 'tblTempUsageDetail_20' ) end [2025-03-09 10:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641690', 'tblTempVendorCDR_20' ) start [2025-03-09 10:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641690', 'tblTempVendorCDR_20' ) end [2025-03-09 10:51:16] Production.INFO: ProcessCDR(1,14641690,1,1,2) [2025-03-09 10:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641690', 'tblTempUsageDetail_20' ) start [2025-03-09 10:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641690', 'tblTempUsageDetail_20' ) end [2025-03-09 10:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:51:20] Production.INFO: ==9464== Releasing lock... [2025-03-09 10:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:52:05 [end_date_ymd] => 2025-03-09 10:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:52:05' and `end` < '2025-03-09 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-09 10:52:17] Production.INFO: count ==219 [2025-03-09 10:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:52:05 - End Time 2025-03-09 10:52:05 [2025-03-09 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641695', 'tblTempUsageDetail_20' ) start [2025-03-09 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641695', 'tblTempUsageDetail_20' ) end [2025-03-09 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641695', 'tblTempVendorCDR_20' ) start [2025-03-09 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641695', 'tblTempVendorCDR_20' ) end [2025-03-09 10:52:17] Production.INFO: ProcessCDR(1,14641695,1,1,2) [2025-03-09 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641695', 'tblTempUsageDetail_20' ) start [2025-03-09 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641695', 'tblTempUsageDetail_20' ) end [2025-03-09 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:52:22] Production.INFO: ==9538== Releasing lock... [2025-03-09 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:53:05 [end_date_ymd] => 2025-03-09 10:53:05 [RateCDR] => 1 ) [2025-03-09 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:53:05' and `end` < '2025-03-09 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:53:17] Production.INFO: count ==219 [2025-03-09 10:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:53:05 - End Time 2025-03-09 10:53:05 [2025-03-09 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641700', 'tblTempUsageDetail_20' ) start [2025-03-09 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641700', 'tblTempUsageDetail_20' ) end [2025-03-09 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641700', 'tblTempVendorCDR_20' ) start [2025-03-09 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641700', 'tblTempVendorCDR_20' ) end [2025-03-09 10:53:17] Production.INFO: ProcessCDR(1,14641700,1,1,2) [2025-03-09 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641700', 'tblTempUsageDetail_20' ) start [2025-03-09 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641700', 'tblTempUsageDetail_20' ) end [2025-03-09 10:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:53:20] Production.INFO: ==9608== Releasing lock... [2025-03-09 10:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:53:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:54:05 [end_date_ymd] => 2025-03-09 10:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:54:05' and `end` < '2025-03-09 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-09 10:54:18] Production.INFO: count ==219 [2025-03-09 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 07:54:05 - End Time 2025-03-09 10:54:05 [2025-03-09 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641705', 'tblTempUsageDetail_20' ) start [2025-03-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641705', 'tblTempUsageDetail_20' ) end [2025-03-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641705', 'tblTempVendorCDR_20' ) start [2025-03-09 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641705', 'tblTempVendorCDR_20' ) end [2025-03-09 10:54:18] Production.INFO: ProcessCDR(1,14641705,1,1,2) [2025-03-09 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641705', 'tblTempUsageDetail_20' ) start [2025-03-09 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641705', 'tblTempUsageDetail_20' ) end [2025-03-09 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:54:21] Production.INFO: ==9679== Releasing lock... [2025-03-09 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:55:05 [end_date_ymd] => 2025-03-09 10:55:05 [RateCDR] => 1 ) [2025-03-09 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:55:05' and `end` < '2025-03-09 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:55:17] Production.INFO: count ==223 [2025-03-09 10:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:55:05 - End Time 2025-03-09 10:55:05 [2025-03-09 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641710', 'tblTempUsageDetail_20' ) start [2025-03-09 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641710', 'tblTempUsageDetail_20' ) end [2025-03-09 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641710', 'tblTempVendorCDR_20' ) start [2025-03-09 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641710', 'tblTempVendorCDR_20' ) end [2025-03-09 10:55:17] Production.INFO: ProcessCDR(1,14641710,1,1,2) [2025-03-09 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641710', 'tblTempUsageDetail_20' ) start [2025-03-09 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641710', 'tblTempUsageDetail_20' ) end [2025-03-09 10:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:55:22] Production.INFO: ==9747== Releasing lock... [2025-03-09 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:56:05 [end_date_ymd] => 2025-03-09 10:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:56:05' and `end` < '2025-03-09 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-09 10:56:17] Production.INFO: count ==223 [2025-03-09 10:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:56:05 - End Time 2025-03-09 10:56:05 [2025-03-09 10:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641715', 'tblTempUsageDetail_20' ) start [2025-03-09 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641715', 'tblTempUsageDetail_20' ) end [2025-03-09 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641715', 'tblTempVendorCDR_20' ) start [2025-03-09 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641715', 'tblTempVendorCDR_20' ) end [2025-03-09 10:56:17] Production.INFO: ProcessCDR(1,14641715,1,1,2) [2025-03-09 10:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641715', 'tblTempUsageDetail_20' ) start [2025-03-09 10:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641715', 'tblTempUsageDetail_20' ) end [2025-03-09 10:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:56:20] Production.INFO: ==9818== Releasing lock... [2025-03-09 10:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:56:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:57:05 [end_date_ymd] => 2025-03-09 10:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:57:05' and `end` < '2025-03-09 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-09 10:57:17] Production.INFO: count ==226 [2025-03-09 10:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:57:05 - End Time 2025-03-09 10:57:05 [2025-03-09 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641720', 'tblTempUsageDetail_20' ) start [2025-03-09 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641720', 'tblTempUsageDetail_20' ) end [2025-03-09 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641720', 'tblTempVendorCDR_20' ) start [2025-03-09 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641720', 'tblTempVendorCDR_20' ) end [2025-03-09 10:57:17] Production.INFO: ProcessCDR(1,14641720,1,1,2) [2025-03-09 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641720', 'tblTempUsageDetail_20' ) start [2025-03-09 10:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641720', 'tblTempUsageDetail_20' ) end [2025-03-09 10:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:57:20] Production.INFO: ==9889== Releasing lock... [2025-03-09 10:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-09 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:58:05 [end_date_ymd] => 2025-03-09 10:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 07:58:05' and `end` < '2025-03-09 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-09 10:58:17] Production.INFO: count ==224 [2025-03-09 10:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:58:05 - End Time 2025-03-09 10:58:05 [2025-03-09 10:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641725', 'tblTempUsageDetail_20' ) start [2025-03-09 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641725', 'tblTempUsageDetail_20' ) end [2025-03-09 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641725', 'tblTempVendorCDR_20' ) start [2025-03-09 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641725', 'tblTempVendorCDR_20' ) end [2025-03-09 10:58:17] Production.INFO: ProcessCDR(1,14641725,1,1,2) [2025-03-09 10:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641725', 'tblTempUsageDetail_20' ) start [2025-03-09 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641725', 'tblTempUsageDetail_20' ) end [2025-03-09 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:58:21] Production.INFO: ==9962== Releasing lock... [2025-03-09 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 07:59:05 [end_date_ymd] => 2025-03-09 10:59:05 [RateCDR] => 1 ) [2025-03-09 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 07:59:05' and `end` < '2025-03-09 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 10:59:17] Production.INFO: count ==227 [2025-03-09 10:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 07:59:05 - End Time 2025-03-09 10:59:05 [2025-03-09 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641730', 'tblTempUsageDetail_20' ) start [2025-03-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641730', 'tblTempUsageDetail_20' ) end [2025-03-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641730', 'tblTempVendorCDR_20' ) start [2025-03-09 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641730', 'tblTempVendorCDR_20' ) end [2025-03-09 10:59:17] Production.INFO: ProcessCDR(1,14641730,1,1,2) [2025-03-09 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 10:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 10:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641730', 'tblTempUsageDetail_20' ) start [2025-03-09 10:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641730', 'tblTempUsageDetail_20' ) end [2025-03-09 10:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 10:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 10:59:20] Production.INFO: ==10032== Releasing lock... [2025-03-09 10:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 10:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:00:06 [end_date_ymd] => 2025-03-09 11:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:00:06' and `end` < '2025-03-09 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-09 11:00:18] Production.INFO: count ==236 [2025-03-09 11:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:00:06 - End Time 2025-03-09 11:00:06 [2025-03-09 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641736', 'tblTempUsageDetail_20' ) start [2025-03-09 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641736', 'tblTempUsageDetail_20' ) end [2025-03-09 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641736', 'tblTempVendorCDR_20' ) start [2025-03-09 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641736', 'tblTempVendorCDR_20' ) end [2025-03-09 11:00:18] Production.INFO: ProcessCDR(1,14641736,1,1,2) [2025-03-09 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641736', 'tblTempUsageDetail_20' ) start [2025-03-09 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641736', 'tblTempUsageDetail_20' ) end [2025-03-09 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:00:23] Production.INFO: ==10151== Releasing lock... [2025-03-09 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:01:06 [end_date_ymd] => 2025-03-09 11:01:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:01:06' and `end` < '2025-03-09 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-09 11:01:18] Production.INFO: count ==240 [2025-03-09 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:01:06 - End Time 2025-03-09 11:01:06 [2025-03-09 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641741', 'tblTempUsageDetail_20' ) start [2025-03-09 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641741', 'tblTempUsageDetail_20' ) end [2025-03-09 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641741', 'tblTempVendorCDR_20' ) start [2025-03-09 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641741', 'tblTempVendorCDR_20' ) end [2025-03-09 11:01:18] Production.INFO: ProcessCDR(1,14641741,1,1,2) [2025-03-09 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641741', 'tblTempUsageDetail_20' ) start [2025-03-09 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641741', 'tblTempUsageDetail_20' ) end [2025-03-09 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:01:23] Production.INFO: ==10315== Releasing lock... [2025-03-09 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-09 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:02:05 [end_date_ymd] => 2025-03-09 11:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:02:05' and `end` < '2025-03-09 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-09 11:02:17] Production.INFO: count ==246 [2025-03-09 11:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:02:05 - End Time 2025-03-09 11:02:05 [2025-03-09 11:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641746', 'tblTempUsageDetail_20' ) start [2025-03-09 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641746', 'tblTempUsageDetail_20' ) end [2025-03-09 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641746', 'tblTempVendorCDR_20' ) start [2025-03-09 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641746', 'tblTempVendorCDR_20' ) end [2025-03-09 11:02:17] Production.INFO: ProcessCDR(1,14641746,1,1,2) [2025-03-09 11:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641746', 'tblTempUsageDetail_20' ) start [2025-03-09 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641746', 'tblTempUsageDetail_20' ) end [2025-03-09 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:02:22] Production.INFO: ==10385== Releasing lock... [2025-03-09 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:02:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:03:05 [end_date_ymd] => 2025-03-09 11:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:03:05' and `end` < '2025-03-09 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-09 11:03:17] Production.INFO: count ==246 [2025-03-09 11:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:03:05 - End Time 2025-03-09 11:03:05 [2025-03-09 11:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641751', 'tblTempUsageDetail_20' ) start [2025-03-09 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641751', 'tblTempUsageDetail_20' ) end [2025-03-09 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641751', 'tblTempVendorCDR_20' ) start [2025-03-09 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641751', 'tblTempVendorCDR_20' ) end [2025-03-09 11:03:17] Production.INFO: ProcessCDR(1,14641751,1,1,2) [2025-03-09 11:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641751', 'tblTempUsageDetail_20' ) start [2025-03-09 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641751', 'tblTempUsageDetail_20' ) end [2025-03-09 11:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:03:21] Production.INFO: ==10461== Releasing lock... [2025-03-09 11:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:03:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:04:05 [end_date_ymd] => 2025-03-09 11:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:04:05' and `end` < '2025-03-09 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-09 11:04:17] Production.INFO: count ==246 [2025-03-09 11:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:04:05 - End Time 2025-03-09 11:04:05 [2025-03-09 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641756', 'tblTempUsageDetail_20' ) start [2025-03-09 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641756', 'tblTempUsageDetail_20' ) end [2025-03-09 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641756', 'tblTempVendorCDR_20' ) start [2025-03-09 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641756', 'tblTempVendorCDR_20' ) end [2025-03-09 11:04:17] Production.INFO: ProcessCDR(1,14641756,1,1,2) [2025-03-09 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641756', 'tblTempUsageDetail_20' ) start [2025-03-09 11:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641756', 'tblTempUsageDetail_20' ) end [2025-03-09 11:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:04:20] Production.INFO: ==10531== Releasing lock... [2025-03-09 11:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:04:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:05:06 [end_date_ymd] => 2025-03-09 11:05:06 [RateCDR] => 1 ) [2025-03-09 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:05:06' and `end` < '2025-03-09 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:05:18] Production.INFO: count ==246 [2025-03-09 11:05:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:05:06 - End Time 2025-03-09 11:05:06 [2025-03-09 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641761', 'tblTempUsageDetail_20' ) start [2025-03-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641761', 'tblTempUsageDetail_20' ) end [2025-03-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641761', 'tblTempVendorCDR_20' ) start [2025-03-09 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641761', 'tblTempVendorCDR_20' ) end [2025-03-09 11:05:18] Production.INFO: ProcessCDR(1,14641761,1,1,2) [2025-03-09 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641761', 'tblTempUsageDetail_20' ) start [2025-03-09 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641761', 'tblTempUsageDetail_20' ) end [2025-03-09 11:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:05:21] Production.INFO: ==10681== Releasing lock... [2025-03-09 11:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:06:05 [end_date_ymd] => 2025-03-09 11:06:05 [RateCDR] => 1 ) [2025-03-09 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:06:05' and `end` < '2025-03-09 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:06:17] Production.INFO: count ==246 [2025-03-09 11:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:06:05 - End Time 2025-03-09 11:06:05 [2025-03-09 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641766', 'tblTempUsageDetail_20' ) start [2025-03-09 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641766', 'tblTempUsageDetail_20' ) end [2025-03-09 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641766', 'tblTempVendorCDR_20' ) start [2025-03-09 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641766', 'tblTempVendorCDR_20' ) end [2025-03-09 11:06:17] Production.INFO: ProcessCDR(1,14641766,1,1,2) [2025-03-09 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641766', 'tblTempUsageDetail_20' ) start [2025-03-09 11:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641766', 'tblTempUsageDetail_20' ) end [2025-03-09 11:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:06:20] Production.INFO: ==10756== Releasing lock... [2025-03-09 11:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:06:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:07:05 [end_date_ymd] => 2025-03-09 11:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:07:05' and `end` < '2025-03-09 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-09 11:07:17] Production.INFO: count ==247 [2025-03-09 11:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:07:05 - End Time 2025-03-09 11:07:05 [2025-03-09 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641771', 'tblTempUsageDetail_20' ) start [2025-03-09 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641771', 'tblTempUsageDetail_20' ) end [2025-03-09 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641771', 'tblTempVendorCDR_20' ) start [2025-03-09 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641771', 'tblTempVendorCDR_20' ) end [2025-03-09 11:07:17] Production.INFO: ProcessCDR(1,14641771,1,1,2) [2025-03-09 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641771', 'tblTempUsageDetail_20' ) start [2025-03-09 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641771', 'tblTempUsageDetail_20' ) end [2025-03-09 11:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:07:22] Production.INFO: ==10830== Releasing lock... [2025-03-09 11:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:07:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:08:05 [end_date_ymd] => 2025-03-09 11:08:05 [RateCDR] => 1 ) [2025-03-09 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:08:05' and `end` < '2025-03-09 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:08:17] Production.INFO: count ==247 [2025-03-09 11:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:08:05 - End Time 2025-03-09 11:08:05 [2025-03-09 11:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641776', 'tblTempUsageDetail_20' ) start [2025-03-09 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641776', 'tblTempUsageDetail_20' ) end [2025-03-09 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641776', 'tblTempVendorCDR_20' ) start [2025-03-09 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641776', 'tblTempVendorCDR_20' ) end [2025-03-09 11:08:17] Production.INFO: ProcessCDR(1,14641776,1,1,2) [2025-03-09 11:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641776', 'tblTempUsageDetail_20' ) start [2025-03-09 11:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641776', 'tblTempUsageDetail_20' ) end [2025-03-09 11:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:08:20] Production.INFO: ==10981== Releasing lock... [2025-03-09 11:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:08:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:09:05 [end_date_ymd] => 2025-03-09 11:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:09:05' and `end` < '2025-03-09 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-09 11:09:17] Production.INFO: count ==248 [2025-03-09 11:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:09:05 - End Time 2025-03-09 11:09:05 [2025-03-09 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641781', 'tblTempUsageDetail_20' ) start [2025-03-09 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641781', 'tblTempUsageDetail_20' ) end [2025-03-09 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641781', 'tblTempVendorCDR_20' ) start [2025-03-09 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641781', 'tblTempVendorCDR_20' ) end [2025-03-09 11:09:17] Production.INFO: ProcessCDR(1,14641781,1,1,2) [2025-03-09 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641781', 'tblTempUsageDetail_20' ) start [2025-03-09 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641781', 'tblTempUsageDetail_20' ) end [2025-03-09 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:09:22] Production.INFO: ==11050== Releasing lock... [2025-03-09 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:09:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:10:07 [end_date_ymd] => 2025-03-09 11:10:07 [RateCDR] => 1 ) [2025-03-09 11: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-09 08:10:07' and `end` < '2025-03-09 11: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-09 11:10:19] Production.INFO: count ==256 [2025-03-09 11:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 08:10:07 - End Time 2025-03-09 11:10:07 [2025-03-09 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641787', 'tblTempUsageDetail_20' ) start [2025-03-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641787', 'tblTempUsageDetail_20' ) end [2025-03-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641787', 'tblTempVendorCDR_20' ) start [2025-03-09 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641787', 'tblTempVendorCDR_20' ) end [2025-03-09 11:10:19] Production.INFO: ProcessCDR(1,14641787,1,1,2) [2025-03-09 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641787', 'tblTempUsageDetail_20' ) start [2025-03-09 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641787', 'tblTempUsageDetail_20' ) end [2025-03-09 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:10:22] Production.INFO: ==11125== Releasing lock... [2025-03-09 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:10:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:11:05 [end_date_ymd] => 2025-03-09 11:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:11:05' and `end` < '2025-03-09 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-09 11:11:17] Production.INFO: count ==256 [2025-03-09 11:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:11:05 - End Time 2025-03-09 11:11:05 [2025-03-09 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641792', 'tblTempUsageDetail_20' ) start [2025-03-09 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641792', 'tblTempUsageDetail_20' ) end [2025-03-09 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641792', 'tblTempVendorCDR_20' ) start [2025-03-09 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641792', 'tblTempVendorCDR_20' ) end [2025-03-09 11:11:17] Production.INFO: ProcessCDR(1,14641792,1,1,2) [2025-03-09 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641792', 'tblTempUsageDetail_20' ) start [2025-03-09 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641792', 'tblTempUsageDetail_20' ) end [2025-03-09 11:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:11:20] Production.INFO: ==11200== Releasing lock... [2025-03-09 11:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:11:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:12:06 [end_date_ymd] => 2025-03-09 11:12:06 [RateCDR] => 1 ) [2025-03-09 11: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-09 08:12:06' and `end` < '2025-03-09 11: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-09 11:12:18] Production.INFO: count ==263 [2025-03-09 11:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:12:06 - End Time 2025-03-09 11:12:06 [2025-03-09 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641797', 'tblTempUsageDetail_20' ) start [2025-03-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641797', 'tblTempUsageDetail_20' ) end [2025-03-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641797', 'tblTempVendorCDR_20' ) start [2025-03-09 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641797', 'tblTempVendorCDR_20' ) end [2025-03-09 11:12:18] Production.INFO: ProcessCDR(1,14641797,1,1,2) [2025-03-09 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641797', 'tblTempUsageDetail_20' ) start [2025-03-09 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641797', 'tblTempUsageDetail_20' ) end [2025-03-09 11:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:12:21] Production.INFO: ==11351== Releasing lock... [2025-03-09 11:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:13:05 [end_date_ymd] => 2025-03-09 11:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:13:05' and `end` < '2025-03-09 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-09 11:13:17] Production.INFO: count ==264 [2025-03-09 11:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:13:05 - End Time 2025-03-09 11:13:05 [2025-03-09 11:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641802', 'tblTempUsageDetail_20' ) start [2025-03-09 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641802', 'tblTempUsageDetail_20' ) end [2025-03-09 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641802', 'tblTempVendorCDR_20' ) start [2025-03-09 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641802', 'tblTempVendorCDR_20' ) end [2025-03-09 11:13:17] Production.INFO: ProcessCDR(1,14641802,1,1,2) [2025-03-09 11:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641802', 'tblTempUsageDetail_20' ) start [2025-03-09 11:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641802', 'tblTempUsageDetail_20' ) end [2025-03-09 11:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:13:20] Production.INFO: ==11424== Releasing lock... [2025-03-09 11:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:13:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:14:05 [end_date_ymd] => 2025-03-09 11:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:14:05' and `end` < '2025-03-09 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-09 11:14:17] Production.INFO: count ==264 [2025-03-09 11:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:14:05 - End Time 2025-03-09 11:14:05 [2025-03-09 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641807', 'tblTempUsageDetail_20' ) start [2025-03-09 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641807', 'tblTempUsageDetail_20' ) end [2025-03-09 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641807', 'tblTempVendorCDR_20' ) start [2025-03-09 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641807', 'tblTempVendorCDR_20' ) end [2025-03-09 11:14:17] Production.INFO: ProcessCDR(1,14641807,1,1,2) [2025-03-09 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641807', 'tblTempUsageDetail_20' ) start [2025-03-09 11:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641807', 'tblTempUsageDetail_20' ) end [2025-03-09 11:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:14:20] Production.INFO: ==11498== Releasing lock... [2025-03-09 11:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:14:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:15:05 [end_date_ymd] => 2025-03-09 11:15:05 [RateCDR] => 1 ) [2025-03-09 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:15:05' and `end` < '2025-03-09 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:15:17] Production.INFO: count ==268 [2025-03-09 11:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:15:05 - End Time 2025-03-09 11:15:05 [2025-03-09 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641812', 'tblTempUsageDetail_20' ) start [2025-03-09 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641812', 'tblTempUsageDetail_20' ) end [2025-03-09 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641812', 'tblTempVendorCDR_20' ) start [2025-03-09 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641812', 'tblTempVendorCDR_20' ) end [2025-03-09 11:15:17] Production.INFO: ProcessCDR(1,14641812,1,1,2) [2025-03-09 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641812', 'tblTempUsageDetail_20' ) start [2025-03-09 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641812', 'tblTempUsageDetail_20' ) end [2025-03-09 11:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:15:20] Production.INFO: ==11692== Releasing lock... [2025-03-09 11:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:16:05 [end_date_ymd] => 2025-03-09 11:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:16:05' and `end` < '2025-03-09 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-09 11:16:17] Production.INFO: count ==268 [2025-03-09 11:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:16:05 - End Time 2025-03-09 11:16:05 [2025-03-09 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641817', 'tblTempUsageDetail_20' ) start [2025-03-09 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641817', 'tblTempUsageDetail_20' ) end [2025-03-09 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641817', 'tblTempVendorCDR_20' ) start [2025-03-09 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641817', 'tblTempVendorCDR_20' ) end [2025-03-09 11:16:17] Production.INFO: ProcessCDR(1,14641817,1,1,2) [2025-03-09 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641817', 'tblTempUsageDetail_20' ) start [2025-03-09 11:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641817', 'tblTempUsageDetail_20' ) end [2025-03-09 11:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:16:20] Production.INFO: ==11762== Releasing lock... [2025-03-09 11:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:17:05 [end_date_ymd] => 2025-03-09 11:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:17:05' and `end` < '2025-03-09 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-09 11:17:17] Production.INFO: count ==270 [2025-03-09 11:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:17:05 - End Time 2025-03-09 11:17:05 [2025-03-09 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641822', 'tblTempUsageDetail_20' ) start [2025-03-09 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641822', 'tblTempUsageDetail_20' ) end [2025-03-09 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641822', 'tblTempVendorCDR_20' ) start [2025-03-09 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641822', 'tblTempVendorCDR_20' ) end [2025-03-09 11:17:17] Production.INFO: ProcessCDR(1,14641822,1,1,2) [2025-03-09 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641822', 'tblTempUsageDetail_20' ) start [2025-03-09 11:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641822', 'tblTempUsageDetail_20' ) end [2025-03-09 11:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:17:20] Production.INFO: ==11835== Releasing lock... [2025-03-09 11:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:17:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:18:05 [end_date_ymd] => 2025-03-09 11:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:18:05' and `end` < '2025-03-09 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-09 11:18:17] Production.INFO: count ==270 [2025-03-09 11:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:18:05 - End Time 2025-03-09 11:18:05 [2025-03-09 11:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641827', 'tblTempUsageDetail_20' ) start [2025-03-09 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641827', 'tblTempUsageDetail_20' ) end [2025-03-09 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641827', 'tblTempVendorCDR_20' ) start [2025-03-09 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641827', 'tblTempVendorCDR_20' ) end [2025-03-09 11:18:17] Production.INFO: ProcessCDR(1,14641827,1,1,2) [2025-03-09 11:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641827', 'tblTempUsageDetail_20' ) start [2025-03-09 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641827', 'tblTempUsageDetail_20' ) end [2025-03-09 11:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:18:20] Production.INFO: ==11908== Releasing lock... [2025-03-09 11:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:18:20] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:19:05 [end_date_ymd] => 2025-03-09 11:19:05 [RateCDR] => 1 ) [2025-03-09 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:19:05' and `end` < '2025-03-09 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:19:17] Production.INFO: count ==270 [2025-03-09 11:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:19:05 - End Time 2025-03-09 11:19:05 [2025-03-09 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641832', 'tblTempUsageDetail_20' ) start [2025-03-09 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641832', 'tblTempUsageDetail_20' ) end [2025-03-09 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641832', 'tblTempVendorCDR_20' ) start [2025-03-09 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641832', 'tblTempVendorCDR_20' ) end [2025-03-09 11:19:17] Production.INFO: ProcessCDR(1,14641832,1,1,2) [2025-03-09 11:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641832', 'tblTempUsageDetail_20' ) start [2025-03-09 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641832', 'tblTempUsageDetail_20' ) end [2025-03-09 11:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:19:21] Production.INFO: ==11983== Releasing lock... [2025-03-09 11:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:19:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:20:06 [end_date_ymd] => 2025-03-09 11:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:20:06' and `end` < '2025-03-09 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-09 11:20:18] Production.INFO: count ==280 [2025-03-09 11:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:20:06 - End Time 2025-03-09 11:20:06 [2025-03-09 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641838', 'tblTempUsageDetail_20' ) start [2025-03-09 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641838', 'tblTempUsageDetail_20' ) end [2025-03-09 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641838', 'tblTempVendorCDR_20' ) start [2025-03-09 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641838', 'tblTempVendorCDR_20' ) end [2025-03-09 11:20:18] Production.INFO: ProcessCDR(1,14641838,1,1,2) [2025-03-09 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641838', 'tblTempUsageDetail_20' ) start [2025-03-09 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641838', 'tblTempUsageDetail_20' ) end [2025-03-09 11:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:20:22] Production.INFO: ==12060== Releasing lock... [2025-03-09 11:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:20:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:21:06 [end_date_ymd] => 2025-03-09 11:21:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:21:06' and `end` < '2025-03-09 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-09 11:21:18] Production.INFO: count ==285 [2025-03-09 11:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:21:06 - End Time 2025-03-09 11:21:06 [2025-03-09 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641843', 'tblTempUsageDetail_20' ) start [2025-03-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641843', 'tblTempUsageDetail_20' ) end [2025-03-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641843', 'tblTempVendorCDR_20' ) start [2025-03-09 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641843', 'tblTempVendorCDR_20' ) end [2025-03-09 11:21:18] Production.INFO: ProcessCDR(1,14641843,1,1,2) [2025-03-09 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641843', 'tblTempUsageDetail_20' ) start [2025-03-09 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641843', 'tblTempUsageDetail_20' ) end [2025-03-09 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:21:22] Production.INFO: ==12136== Releasing lock... [2025-03-09 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:21:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:22:05 [end_date_ymd] => 2025-03-09 11:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:22:05' and `end` < '2025-03-09 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-09 11:22:17] Production.INFO: count ==286 [2025-03-09 11:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:22:05 - End Time 2025-03-09 11:22:05 [2025-03-09 11:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641848', 'tblTempUsageDetail_20' ) start [2025-03-09 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641848', 'tblTempUsageDetail_20' ) end [2025-03-09 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641848', 'tblTempVendorCDR_20' ) start [2025-03-09 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641848', 'tblTempVendorCDR_20' ) end [2025-03-09 11:22:17] Production.INFO: ProcessCDR(1,14641848,1,1,2) [2025-03-09 11:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641848', 'tblTempUsageDetail_20' ) start [2025-03-09 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641848', 'tblTempUsageDetail_20' ) end [2025-03-09 11:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:22:22] Production.INFO: ==12215== Releasing lock... [2025-03-09 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:22:22] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:23:05 [end_date_ymd] => 2025-03-09 11:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:23:05' and `end` < '2025-03-09 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-09 11:23:17] Production.INFO: count ==287 [2025-03-09 11:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:23:05 - End Time 2025-03-09 11:23:05 [2025-03-09 11:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641853', 'tblTempUsageDetail_20' ) start [2025-03-09 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641853', 'tblTempUsageDetail_20' ) end [2025-03-09 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641853', 'tblTempVendorCDR_20' ) start [2025-03-09 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641853', 'tblTempVendorCDR_20' ) end [2025-03-09 11:23:17] Production.INFO: ProcessCDR(1,14641853,1,1,2) [2025-03-09 11:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641853', 'tblTempUsageDetail_20' ) start [2025-03-09 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641853', 'tblTempUsageDetail_20' ) end [2025-03-09 11:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:23:21] Production.INFO: ==12286== Releasing lock... [2025-03-09 11:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:24:05 [end_date_ymd] => 2025-03-09 11:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:24:05' and `end` < '2025-03-09 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-09 11:24:17] Production.INFO: count ==289 [2025-03-09 11:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:24:05 - End Time 2025-03-09 11:24:05 [2025-03-09 11:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641858', 'tblTempUsageDetail_20' ) start [2025-03-09 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641858', 'tblTempUsageDetail_20' ) end [2025-03-09 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641858', 'tblTempVendorCDR_20' ) start [2025-03-09 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641858', 'tblTempVendorCDR_20' ) end [2025-03-09 11:24:17] Production.INFO: ProcessCDR(1,14641858,1,1,2) [2025-03-09 11:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641858', 'tblTempUsageDetail_20' ) start [2025-03-09 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641858', 'tblTempUsageDetail_20' ) end [2025-03-09 11:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:24:22] Production.INFO: ==12359== Releasing lock... [2025-03-09 11:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:25:05 [end_date_ymd] => 2025-03-09 11:25:05 [RateCDR] => 1 ) [2025-03-09 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:25:05' and `end` < '2025-03-09 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:25:17] Production.INFO: count ==290 [2025-03-09 11:25:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:25:05 - End Time 2025-03-09 11:25:05 [2025-03-09 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641863', 'tblTempUsageDetail_20' ) start [2025-03-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641863', 'tblTempUsageDetail_20' ) end [2025-03-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641863', 'tblTempVendorCDR_20' ) start [2025-03-09 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641863', 'tblTempVendorCDR_20' ) end [2025-03-09 11:25:18] Production.INFO: ProcessCDR(1,14641863,1,1,2) [2025-03-09 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641863', 'tblTempUsageDetail_20' ) start [2025-03-09 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641863', 'tblTempUsageDetail_20' ) end [2025-03-09 11:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:25:22] Production.INFO: ==12433== Releasing lock... [2025-03-09 11:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:26:04 [end_date_ymd] => 2025-03-09 11:26:04 [RateCDR] => 1 ) [2025-03-09 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:26:04' and `end` < '2025-03-09 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:26:16] Production.INFO: count ==293 [2025-03-09 11:26:16] Production.ERROR: pbx CDR StartTime 2025-03-09 08:26:04 - End Time 2025-03-09 11:26:04 [2025-03-09 11:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641868', 'tblTempUsageDetail_20' ) start [2025-03-09 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641868', 'tblTempUsageDetail_20' ) end [2025-03-09 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641868', 'tblTempVendorCDR_20' ) start [2025-03-09 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641868', 'tblTempVendorCDR_20' ) end [2025-03-09 11:26:17] Production.INFO: ProcessCDR(1,14641868,1,1,2) [2025-03-09 11:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641868', 'tblTempUsageDetail_20' ) start [2025-03-09 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641868', 'tblTempUsageDetail_20' ) end [2025-03-09 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:26:21] Production.INFO: ==12503== Releasing lock... [2025-03-09 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:26:21] Production.INFO: 30 MB #Memory Used# [2025-03-09 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:27:05 [end_date_ymd] => 2025-03-09 11:27:05 [RateCDR] => 1 ) [2025-03-09 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:27:05' and `end` < '2025-03-09 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:27:17] Production.INFO: count ==294 [2025-03-09 11:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:27:05 - End Time 2025-03-09 11:27:05 [2025-03-09 11:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641873', 'tblTempUsageDetail_20' ) start [2025-03-09 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641873', 'tblTempUsageDetail_20' ) end [2025-03-09 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641873', 'tblTempVendorCDR_20' ) start [2025-03-09 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641873', 'tblTempVendorCDR_20' ) end [2025-03-09 11:27:17] Production.INFO: ProcessCDR(1,14641873,1,1,2) [2025-03-09 11:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641873', 'tblTempUsageDetail_20' ) start [2025-03-09 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641873', 'tblTempUsageDetail_20' ) end [2025-03-09 11:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:27:21] Production.INFO: ==12600== Releasing lock... [2025-03-09 11:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:28:05 [end_date_ymd] => 2025-03-09 11:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:28:05' and `end` < '2025-03-09 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-09 11:28:17] Production.INFO: count ==294 [2025-03-09 11:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:28:05 - End Time 2025-03-09 11:28:05 [2025-03-09 11:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641878', 'tblTempUsageDetail_20' ) start [2025-03-09 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641878', 'tblTempUsageDetail_20' ) end [2025-03-09 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641878', 'tblTempVendorCDR_20' ) start [2025-03-09 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641878', 'tblTempVendorCDR_20' ) end [2025-03-09 11:28:17] Production.INFO: ProcessCDR(1,14641878,1,1,2) [2025-03-09 11:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641878', 'tblTempUsageDetail_20' ) start [2025-03-09 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641878', 'tblTempUsageDetail_20' ) end [2025-03-09 11:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:28:21] Production.INFO: ==12674== Releasing lock... [2025-03-09 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-09 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:29:05 [end_date_ymd] => 2025-03-09 11:29:05 [RateCDR] => 1 ) [2025-03-09 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:29:05' and `end` < '2025-03-09 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:29:17] Production.INFO: count ==301 [2025-03-09 11:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:29:05 - End Time 2025-03-09 11:29:05 [2025-03-09 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641883', 'tblTempUsageDetail_20' ) start [2025-03-09 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641883', 'tblTempUsageDetail_20' ) end [2025-03-09 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641883', 'tblTempVendorCDR_20' ) start [2025-03-09 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641883', 'tblTempVendorCDR_20' ) end [2025-03-09 11:29:17] Production.INFO: ProcessCDR(1,14641883,1,1,2) [2025-03-09 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641883', 'tblTempUsageDetail_20' ) start [2025-03-09 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641883', 'tblTempUsageDetail_20' ) end [2025-03-09 11:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:29:20] Production.INFO: ==12746== Releasing lock... [2025-03-09 11:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:30:06 [end_date_ymd] => 2025-03-09 11:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:30:06' and `end` < '2025-03-09 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-09 11:30:18] Production.INFO: count ==307 [2025-03-09 11:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:30:06 - End Time 2025-03-09 11:30:06 [2025-03-09 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641889', 'tblTempUsageDetail_20' ) start [2025-03-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641889', 'tblTempUsageDetail_20' ) end [2025-03-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641889', 'tblTempVendorCDR_20' ) start [2025-03-09 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641889', 'tblTempVendorCDR_20' ) end [2025-03-09 11:30:18] Production.INFO: ProcessCDR(1,14641889,1,1,2) [2025-03-09 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641889', 'tblTempUsageDetail_20' ) start [2025-03-09 11:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641889', 'tblTempUsageDetail_20' ) end [2025-03-09 11:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:30:21] Production.INFO: ==12864== Releasing lock... [2025-03-09 11:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:31:05 [end_date_ymd] => 2025-03-09 11:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:31:05' and `end` < '2025-03-09 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-09 11:31:17] Production.INFO: count ==313 [2025-03-09 11:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:31:05 - End Time 2025-03-09 11:31:05 [2025-03-09 11:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641894', 'tblTempUsageDetail_20' ) start [2025-03-09 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641894', 'tblTempUsageDetail_20' ) end [2025-03-09 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641894', 'tblTempVendorCDR_20' ) start [2025-03-09 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641894', 'tblTempVendorCDR_20' ) end [2025-03-09 11:31:17] Production.INFO: ProcessCDR(1,14641894,1,1,2) [2025-03-09 11:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641894', 'tblTempUsageDetail_20' ) start [2025-03-09 11:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641894', 'tblTempUsageDetail_20' ) end [2025-03-09 11:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:31:20] Production.INFO: ==12936== Releasing lock... [2025-03-09 11:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:31:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:32:05 [end_date_ymd] => 2025-03-09 11:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:32:05' and `end` < '2025-03-09 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-09 11:32:17] Production.INFO: count ==315 [2025-03-09 11:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:32:05 - End Time 2025-03-09 11:32:05 [2025-03-09 11:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641899', 'tblTempUsageDetail_20' ) start [2025-03-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641899', 'tblTempUsageDetail_20' ) end [2025-03-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641899', 'tblTempVendorCDR_20' ) start [2025-03-09 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641899', 'tblTempVendorCDR_20' ) end [2025-03-09 11:32:17] Production.INFO: ProcessCDR(1,14641899,1,1,2) [2025-03-09 11:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641899', 'tblTempUsageDetail_20' ) start [2025-03-09 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641899', 'tblTempUsageDetail_20' ) end [2025-03-09 11:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:32:22] Production.INFO: ==13009== Releasing lock... [2025-03-09 11:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:32:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:33:05 [end_date_ymd] => 2025-03-09 11:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:33:05' and `end` < '2025-03-09 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-09 11:33:17] Production.INFO: count ==319 [2025-03-09 11:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:33:05 - End Time 2025-03-09 11:33:05 [2025-03-09 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641904', 'tblTempUsageDetail_20' ) start [2025-03-09 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641904', 'tblTempUsageDetail_20' ) end [2025-03-09 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641904', 'tblTempVendorCDR_20' ) start [2025-03-09 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641904', 'tblTempVendorCDR_20' ) end [2025-03-09 11:33:17] Production.INFO: ProcessCDR(1,14641904,1,1,2) [2025-03-09 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641904', 'tblTempUsageDetail_20' ) start [2025-03-09 11:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641904', 'tblTempUsageDetail_20' ) end [2025-03-09 11:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:33:22] Production.INFO: ==13078== Releasing lock... [2025-03-09 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:34:05 [end_date_ymd] => 2025-03-09 11:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:34:05' and `end` < '2025-03-09 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-09 11:34:17] Production.INFO: count ==320 [2025-03-09 11:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:34:05 - End Time 2025-03-09 11:34:05 [2025-03-09 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641909', 'tblTempUsageDetail_20' ) start [2025-03-09 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641909', 'tblTempUsageDetail_20' ) end [2025-03-09 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641909', 'tblTempVendorCDR_20' ) start [2025-03-09 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641909', 'tblTempVendorCDR_20' ) end [2025-03-09 11:34:17] Production.INFO: ProcessCDR(1,14641909,1,1,2) [2025-03-09 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641909', 'tblTempUsageDetail_20' ) start [2025-03-09 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641909', 'tblTempUsageDetail_20' ) end [2025-03-09 11:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:34:22] Production.INFO: ==13152== Releasing lock... [2025-03-09 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:34:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:35:06 [end_date_ymd] => 2025-03-09 11:35:06 [RateCDR] => 1 ) [2025-03-09 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:35:06' and `end` < '2025-03-09 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:35:18] Production.INFO: count ==322 [2025-03-09 11:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:35:06 - End Time 2025-03-09 11:35:06 [2025-03-09 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641914', 'tblTempUsageDetail_20' ) start [2025-03-09 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641914', 'tblTempUsageDetail_20' ) end [2025-03-09 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641914', 'tblTempVendorCDR_20' ) start [2025-03-09 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641914', 'tblTempVendorCDR_20' ) end [2025-03-09 11:35:18] Production.INFO: ProcessCDR(1,14641914,1,1,2) [2025-03-09 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641914', 'tblTempUsageDetail_20' ) start [2025-03-09 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641914', 'tblTempUsageDetail_20' ) end [2025-03-09 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:35:23] Production.INFO: ==13231== Releasing lock... [2025-03-09 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:35:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:36:05 [end_date_ymd] => 2025-03-09 11:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:36:05' and `end` < '2025-03-09 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-09 11:36:17] Production.INFO: count ==329 [2025-03-09 11:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:36:05 - End Time 2025-03-09 11:36:05 [2025-03-09 11:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641919', 'tblTempUsageDetail_20' ) start [2025-03-09 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641919', 'tblTempUsageDetail_20' ) end [2025-03-09 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641919', 'tblTempVendorCDR_20' ) start [2025-03-09 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641919', 'tblTempVendorCDR_20' ) end [2025-03-09 11:36:17] Production.INFO: ProcessCDR(1,14641919,1,1,2) [2025-03-09 11:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641919', 'tblTempUsageDetail_20' ) start [2025-03-09 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641919', 'tblTempUsageDetail_20' ) end [2025-03-09 11:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:36:22] Production.INFO: ==13309== Releasing lock... [2025-03-09 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:37:06 [end_date_ymd] => 2025-03-09 11:37:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:37:06' and `end` < '2025-03-09 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-09 11:37:18] Production.INFO: count ==330 [2025-03-09 11:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:37:06 - End Time 2025-03-09 11:37:06 [2025-03-09 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641924', 'tblTempUsageDetail_20' ) start [2025-03-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641924', 'tblTempUsageDetail_20' ) end [2025-03-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641924', 'tblTempVendorCDR_20' ) start [2025-03-09 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641924', 'tblTempVendorCDR_20' ) end [2025-03-09 11:37:18] Production.INFO: ProcessCDR(1,14641924,1,1,2) [2025-03-09 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641924', 'tblTempUsageDetail_20' ) start [2025-03-09 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641924', 'tblTempUsageDetail_20' ) end [2025-03-09 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:37:23] Production.INFO: ==13383== Releasing lock... [2025-03-09 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:37:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:38:05 [end_date_ymd] => 2025-03-09 11:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:38:05' and `end` < '2025-03-09 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-09 11:38:17] Production.INFO: count ==332 [2025-03-09 11:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:38:05 - End Time 2025-03-09 11:38:05 [2025-03-09 11:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641929', 'tblTempUsageDetail_20' ) start [2025-03-09 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641929', 'tblTempUsageDetail_20' ) end [2025-03-09 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641929', 'tblTempVendorCDR_20' ) start [2025-03-09 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641929', 'tblTempVendorCDR_20' ) end [2025-03-09 11:38:17] Production.INFO: ProcessCDR(1,14641929,1,1,2) [2025-03-09 11:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641929', 'tblTempUsageDetail_20' ) start [2025-03-09 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641929', 'tblTempUsageDetail_20' ) end [2025-03-09 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:38:22] Production.INFO: ==13456== Releasing lock... [2025-03-09 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:39:05 [end_date_ymd] => 2025-03-09 11:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:39:05' and `end` < '2025-03-09 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-09 11:39:17] Production.INFO: count ==336 [2025-03-09 11:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:39:05 - End Time 2025-03-09 11:39:05 [2025-03-09 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641934', 'tblTempUsageDetail_20' ) start [2025-03-09 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641934', 'tblTempUsageDetail_20' ) end [2025-03-09 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641934', 'tblTempVendorCDR_20' ) start [2025-03-09 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641934', 'tblTempVendorCDR_20' ) end [2025-03-09 11:39:17] Production.INFO: ProcessCDR(1,14641934,1,1,2) [2025-03-09 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641934', 'tblTempUsageDetail_20' ) start [2025-03-09 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641934', 'tblTempUsageDetail_20' ) end [2025-03-09 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:39:22] Production.INFO: ==13529== Releasing lock... [2025-03-09 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-09 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:40:06 [end_date_ymd] => 2025-03-09 11:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:40:06' and `end` < '2025-03-09 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-09 11:40:18] Production.INFO: count ==347 [2025-03-09 11:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:40:06 - End Time 2025-03-09 11:40:06 [2025-03-09 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641939', 'tblTempUsageDetail_20' ) start [2025-03-09 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641939', 'tblTempUsageDetail_20' ) end [2025-03-09 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641939', 'tblTempVendorCDR_20' ) start [2025-03-09 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641939', 'tblTempVendorCDR_20' ) end [2025-03-09 11:40:18] Production.INFO: ProcessCDR(1,14641939,1,1,2) [2025-03-09 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641939', 'tblTempUsageDetail_20' ) start [2025-03-09 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641939', 'tblTempUsageDetail_20' ) end [2025-03-09 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:40:23] Production.INFO: ==13607== Releasing lock... [2025-03-09 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:41:06 [end_date_ymd] => 2025-03-09 11:41:06 [RateCDR] => 1 ) [2025-03-09 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:41:06' and `end` < '2025-03-09 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:41:18] Production.INFO: count ==364 [2025-03-09 11:41:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:41:06 - End Time 2025-03-09 11:41:06 [2025-03-09 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641945', 'tblTempUsageDetail_20' ) start [2025-03-09 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641945', 'tblTempUsageDetail_20' ) end [2025-03-09 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641945', 'tblTempVendorCDR_20' ) start [2025-03-09 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641945', 'tblTempVendorCDR_20' ) end [2025-03-09 11:41:18] Production.INFO: ProcessCDR(1,14641945,1,1,2) [2025-03-09 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641945', 'tblTempUsageDetail_20' ) start [2025-03-09 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641945', 'tblTempUsageDetail_20' ) end [2025-03-09 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:41:23] Production.INFO: ==13685== Releasing lock... [2025-03-09 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:41:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:42:04 [end_date_ymd] => 2025-03-09 11:42:04 [RateCDR] => 1 ) [2025-03-09 11: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-09 08:42:04' and `end` < '2025-03-09 11: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-09 11:42:16] Production.INFO: count ==370 [2025-03-09 11:42:16] Production.ERROR: pbx CDR StartTime 2025-03-09 08:42:04 - End Time 2025-03-09 11:42:04 [2025-03-09 11:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641950', 'tblTempUsageDetail_20' ) start [2025-03-09 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641950', 'tblTempUsageDetail_20' ) end [2025-03-09 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641950', 'tblTempVendorCDR_20' ) start [2025-03-09 11:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641950', 'tblTempVendorCDR_20' ) end [2025-03-09 11:42:16] Production.INFO: ProcessCDR(1,14641950,1,1,2) [2025-03-09 11:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641950', 'tblTempUsageDetail_20' ) start [2025-03-09 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641950', 'tblTempUsageDetail_20' ) end [2025-03-09 11:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:42:21] Production.INFO: ==13757== Releasing lock... [2025-03-09 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:43:05 [end_date_ymd] => 2025-03-09 11:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:43:05' and `end` < '2025-03-09 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-09 11:43:17] Production.INFO: count ==373 [2025-03-09 11:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:43:05 - End Time 2025-03-09 11:43:05 [2025-03-09 11:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641955', 'tblTempUsageDetail_20' ) start [2025-03-09 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641955', 'tblTempUsageDetail_20' ) end [2025-03-09 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641955', 'tblTempVendorCDR_20' ) start [2025-03-09 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641955', 'tblTempVendorCDR_20' ) end [2025-03-09 11:43:17] Production.INFO: ProcessCDR(1,14641955,1,1,2) [2025-03-09 11:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641955', 'tblTempUsageDetail_20' ) start [2025-03-09 11:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641955', 'tblTempUsageDetail_20' ) end [2025-03-09 11:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:43:21] Production.INFO: ==13827== Releasing lock... [2025-03-09 11:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:44:04 [end_date_ymd] => 2025-03-09 11:44:04 [RateCDR] => 1 ) [2025-03-09 11:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:44:04' and `end` < '2025-03-09 11:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:44:16] Production.INFO: count ==382 [2025-03-09 11:44:16] Production.ERROR: pbx CDR StartTime 2025-03-09 08:44:04 - End Time 2025-03-09 11:44:04 [2025-03-09 11:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641960', 'tblTempUsageDetail_20' ) start [2025-03-09 11:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641960', 'tblTempUsageDetail_20' ) end [2025-03-09 11:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641960', 'tblTempVendorCDR_20' ) start [2025-03-09 11:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641960', 'tblTempVendorCDR_20' ) end [2025-03-09 11:44:16] Production.INFO: ProcessCDR(1,14641960,1,1,2) [2025-03-09 11:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641960', 'tblTempUsageDetail_20' ) start [2025-03-09 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641960', 'tblTempUsageDetail_20' ) end [2025-03-09 11:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:44:21] Production.INFO: ==13898== Releasing lock... [2025-03-09 11:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:44:21] Production.INFO: 31 MB #Memory Used# [2025-03-09 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:45:05 [end_date_ymd] => 2025-03-09 11:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:45:05' and `end` < '2025-03-09 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-09 11:45:17] Production.INFO: count ==392 [2025-03-09 11:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:45:05 - End Time 2025-03-09 11:45:05 [2025-03-09 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641965', 'tblTempUsageDetail_20' ) start [2025-03-09 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641965', 'tblTempUsageDetail_20' ) end [2025-03-09 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641965', 'tblTempVendorCDR_20' ) start [2025-03-09 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641965', 'tblTempVendorCDR_20' ) end [2025-03-09 11:45:17] Production.INFO: ProcessCDR(1,14641965,1,1,2) [2025-03-09 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641965', 'tblTempUsageDetail_20' ) start [2025-03-09 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641965', 'tblTempUsageDetail_20' ) end [2025-03-09 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:45:22] Production.INFO: ==13971== Releasing lock... [2025-03-09 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:45:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:46:05 [end_date_ymd] => 2025-03-09 11:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:46:05' and `end` < '2025-03-09 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-09 11:46:17] Production.INFO: count ==395 [2025-03-09 11:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:46:05 - End Time 2025-03-09 11:46:05 [2025-03-09 11:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641970', 'tblTempUsageDetail_20' ) start [2025-03-09 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641970', 'tblTempUsageDetail_20' ) end [2025-03-09 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641970', 'tblTempVendorCDR_20' ) start [2025-03-09 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641970', 'tblTempVendorCDR_20' ) end [2025-03-09 11:46:17] Production.INFO: ProcessCDR(1,14641970,1,1,2) [2025-03-09 11:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641970', 'tblTempUsageDetail_20' ) start [2025-03-09 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641970', 'tblTempUsageDetail_20' ) end [2025-03-09 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:46:22] Production.INFO: ==14081== Releasing lock... [2025-03-09 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:47:05 [end_date_ymd] => 2025-03-09 11:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:47:05' and `end` < '2025-03-09 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-09 11:47:17] Production.INFO: count ==398 [2025-03-09 11:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:47:05 - End Time 2025-03-09 11:47:05 [2025-03-09 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641975', 'tblTempUsageDetail_20' ) start [2025-03-09 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641975', 'tblTempUsageDetail_20' ) end [2025-03-09 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641975', 'tblTempVendorCDR_20' ) start [2025-03-09 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641975', 'tblTempVendorCDR_20' ) end [2025-03-09 11:47:17] Production.INFO: ProcessCDR(1,14641975,1,1,2) [2025-03-09 11:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641975', 'tblTempUsageDetail_20' ) start [2025-03-09 11:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641975', 'tblTempUsageDetail_20' ) end [2025-03-09 11:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:47:22] Production.INFO: ==14155== Releasing lock... [2025-03-09 11:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:48:05 [end_date_ymd] => 2025-03-09 11:48:05 [RateCDR] => 1 ) [2025-03-09 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:48:05' and `end` < '2025-03-09 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:48:17] Production.INFO: count ==399 [2025-03-09 11:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:48:05 - End Time 2025-03-09 11:48:05 [2025-03-09 11:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641980', 'tblTempUsageDetail_20' ) start [2025-03-09 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641980', 'tblTempUsageDetail_20' ) end [2025-03-09 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641980', 'tblTempVendorCDR_20' ) start [2025-03-09 11:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641980', 'tblTempVendorCDR_20' ) end [2025-03-09 11:48:17] Production.INFO: ProcessCDR(1,14641980,1,1,2) [2025-03-09 11:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641980', 'tblTempUsageDetail_20' ) start [2025-03-09 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641980', 'tblTempUsageDetail_20' ) end [2025-03-09 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:48:22] Production.INFO: ==14229== Releasing lock... [2025-03-09 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:49:04 [end_date_ymd] => 2025-03-09 11:49:04 [RateCDR] => 1 ) [2025-03-09 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-09 08:49:04' and `end` < '2025-03-09 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-09 11:49:16] Production.INFO: count ==401 [2025-03-09 11:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:49:04 - End Time 2025-03-09 11:49:04 [2025-03-09 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641985', 'tblTempUsageDetail_20' ) start [2025-03-09 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641985', 'tblTempUsageDetail_20' ) end [2025-03-09 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641985', 'tblTempVendorCDR_20' ) start [2025-03-09 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641985', 'tblTempVendorCDR_20' ) end [2025-03-09 11:49:17] Production.INFO: ProcessCDR(1,14641985,1,1,2) [2025-03-09 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641985', 'tblTempUsageDetail_20' ) start [2025-03-09 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641985', 'tblTempUsageDetail_20' ) end [2025-03-09 11:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:49:21] Production.INFO: ==14303== Releasing lock... [2025-03-09 11:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:49:21] Production.INFO: 31 MB #Memory Used# [2025-03-09 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:50:06 [end_date_ymd] => 2025-03-09 11:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 08:50:06' and `end` < '2025-03-09 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-09 11:50:18] Production.INFO: count ==404 [2025-03-09 11:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:50:06 - End Time 2025-03-09 11:50:06 [2025-03-09 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641991', 'tblTempUsageDetail_20' ) start [2025-03-09 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641991', 'tblTempUsageDetail_20' ) end [2025-03-09 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641991', 'tblTempVendorCDR_20' ) start [2025-03-09 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641991', 'tblTempVendorCDR_20' ) end [2025-03-09 11:50:18] Production.INFO: ProcessCDR(1,14641991,1,1,2) [2025-03-09 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641991', 'tblTempUsageDetail_20' ) start [2025-03-09 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641991', 'tblTempUsageDetail_20' ) end [2025-03-09 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:50:23] Production.INFO: ==14379== Releasing lock... [2025-03-09 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:50:23] Production.INFO: 31 MB #Memory Used# [2025-03-09 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:51:05 [end_date_ymd] => 2025-03-09 11:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:51:05' and `end` < '2025-03-09 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-09 11:51:17] Production.INFO: count ==405 [2025-03-09 11:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:51:05 - End Time 2025-03-09 11:51:05 [2025-03-09 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641996', 'tblTempUsageDetail_20' ) start [2025-03-09 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14641996', 'tblTempUsageDetail_20' ) end [2025-03-09 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641996', 'tblTempVendorCDR_20' ) start [2025-03-09 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14641996', 'tblTempVendorCDR_20' ) end [2025-03-09 11:51:17] Production.INFO: ProcessCDR(1,14641996,1,1,2) [2025-03-09 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14641996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14641996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14641996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14641996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641996', 'tblTempUsageDetail_20' ) start [2025-03-09 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14641996', 'tblTempUsageDetail_20' ) end [2025-03-09 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:51:22] Production.INFO: ==14452== Releasing lock... [2025-03-09 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:52:05 [end_date_ymd] => 2025-03-09 11:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:52:05' and `end` < '2025-03-09 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-09 11:52:17] Production.INFO: count ==405 [2025-03-09 11:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:52:05 - End Time 2025-03-09 11:52:05 [2025-03-09 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642001', 'tblTempUsageDetail_20' ) start [2025-03-09 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642001', 'tblTempUsageDetail_20' ) end [2025-03-09 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642001', 'tblTempVendorCDR_20' ) start [2025-03-09 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642001', 'tblTempVendorCDR_20' ) end [2025-03-09 11:52:18] Production.INFO: ProcessCDR(1,14642001,1,1,2) [2025-03-09 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642001', 'tblTempUsageDetail_20' ) start [2025-03-09 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642001', 'tblTempUsageDetail_20' ) end [2025-03-09 11:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:52:21] Production.INFO: ==14525== Releasing lock... [2025-03-09 11:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-09 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:53:05 [end_date_ymd] => 2025-03-09 11:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:53:05' and `end` < '2025-03-09 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-09 11:53:17] Production.INFO: count ==408 [2025-03-09 11:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:53:05 - End Time 2025-03-09 11:53:05 [2025-03-09 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642006', 'tblTempUsageDetail_20' ) start [2025-03-09 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642006', 'tblTempUsageDetail_20' ) end [2025-03-09 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642006', 'tblTempVendorCDR_20' ) start [2025-03-09 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642006', 'tblTempVendorCDR_20' ) end [2025-03-09 11:53:17] Production.INFO: ProcessCDR(1,14642006,1,1,2) [2025-03-09 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642006', 'tblTempUsageDetail_20' ) start [2025-03-09 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642006', 'tblTempUsageDetail_20' ) end [2025-03-09 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:53:22] Production.INFO: ==14597== Releasing lock... [2025-03-09 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:54:05 [end_date_ymd] => 2025-03-09 11:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:54:05' and `end` < '2025-03-09 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-09 11:54:17] Production.INFO: count ==409 [2025-03-09 11:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:54:05 - End Time 2025-03-09 11:54:05 [2025-03-09 11:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642011', 'tblTempUsageDetail_20' ) start [2025-03-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642011', 'tblTempUsageDetail_20' ) end [2025-03-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642011', 'tblTempVendorCDR_20' ) start [2025-03-09 11:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642011', 'tblTempVendorCDR_20' ) end [2025-03-09 11:54:17] Production.INFO: ProcessCDR(1,14642011,1,1,2) [2025-03-09 11:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642011', 'tblTempUsageDetail_20' ) start [2025-03-09 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642011', 'tblTempUsageDetail_20' ) end [2025-03-09 11:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:54:22] Production.INFO: ==14671== Releasing lock... [2025-03-09 11:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:54:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:55:05 [end_date_ymd] => 2025-03-09 11:55:05 [RateCDR] => 1 ) [2025-03-09 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:55:05' and `end` < '2025-03-09 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:55:17] Production.INFO: count ==411 [2025-03-09 11:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:55:05 - End Time 2025-03-09 11:55:05 [2025-03-09 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642016', 'tblTempUsageDetail_20' ) start [2025-03-09 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642016', 'tblTempUsageDetail_20' ) end [2025-03-09 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642016', 'tblTempVendorCDR_20' ) start [2025-03-09 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642016', 'tblTempVendorCDR_20' ) end [2025-03-09 11:55:18] Production.INFO: ProcessCDR(1,14642016,1,1,2) [2025-03-09 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642016', 'tblTempUsageDetail_20' ) start [2025-03-09 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642016', 'tblTempUsageDetail_20' ) end [2025-03-09 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:55:22] Production.INFO: ==14749== Releasing lock... [2025-03-09 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:55:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:56:05 [end_date_ymd] => 2025-03-09 11:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:56:05' and `end` < '2025-03-09 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-09 11:56:18] Production.INFO: count ==415 [2025-03-09 11:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 08:56:05 - End Time 2025-03-09 11:56:05 [2025-03-09 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642021', 'tblTempUsageDetail_20' ) start [2025-03-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642021', 'tblTempUsageDetail_20' ) end [2025-03-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642021', 'tblTempVendorCDR_20' ) start [2025-03-09 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642021', 'tblTempVendorCDR_20' ) end [2025-03-09 11:56:18] Production.INFO: ProcessCDR(1,14642021,1,1,2) [2025-03-09 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642021', 'tblTempUsageDetail_20' ) start [2025-03-09 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642021', 'tblTempUsageDetail_20' ) end [2025-03-09 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:56:22] Production.INFO: ==14821== Releasing lock... [2025-03-09 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:57:05 [end_date_ymd] => 2025-03-09 11:57:05 [RateCDR] => 1 ) [2025-03-09 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 08:57:05' and `end` < '2025-03-09 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 11:57:17] Production.INFO: count ==416 [2025-03-09 11:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:57:05 - End Time 2025-03-09 11:57:05 [2025-03-09 11:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642026', 'tblTempUsageDetail_20' ) start [2025-03-09 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642026', 'tblTempUsageDetail_20' ) end [2025-03-09 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642026', 'tblTempVendorCDR_20' ) start [2025-03-09 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642026', 'tblTempVendorCDR_20' ) end [2025-03-09 11:57:17] Production.INFO: ProcessCDR(1,14642026,1,1,2) [2025-03-09 11:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642026', 'tblTempUsageDetail_20' ) start [2025-03-09 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642026', 'tblTempUsageDetail_20' ) end [2025-03-09 11:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:57:21] Production.INFO: ==14892== Releasing lock... [2025-03-09 11:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:57:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:58:05 [end_date_ymd] => 2025-03-09 11:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:58:05' and `end` < '2025-03-09 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-09 11:58:17] Production.INFO: count ==416 [2025-03-09 11:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:58:05 - End Time 2025-03-09 11:58:05 [2025-03-09 11:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642031', 'tblTempUsageDetail_20' ) start [2025-03-09 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642031', 'tblTempUsageDetail_20' ) end [2025-03-09 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642031', 'tblTempVendorCDR_20' ) start [2025-03-09 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642031', 'tblTempVendorCDR_20' ) end [2025-03-09 11:58:17] Production.INFO: ProcessCDR(1,14642031,1,1,2) [2025-03-09 11:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642031', 'tblTempUsageDetail_20' ) start [2025-03-09 11:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642031', 'tblTempUsageDetail_20' ) end [2025-03-09 11:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:58:20] Production.INFO: ==14965== Releasing lock... [2025-03-09 11:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:58:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 08:59:05 [end_date_ymd] => 2025-03-09 11:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 08:59:05' and `end` < '2025-03-09 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-09 11:59:17] Production.INFO: count ==415 [2025-03-09 11:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 08:59:05 - End Time 2025-03-09 11:59:05 [2025-03-09 11:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642036', 'tblTempUsageDetail_20' ) start [2025-03-09 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642036', 'tblTempUsageDetail_20' ) end [2025-03-09 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642036', 'tblTempVendorCDR_20' ) start [2025-03-09 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642036', 'tblTempVendorCDR_20' ) end [2025-03-09 11:59:17] Production.INFO: ProcessCDR(1,14642036,1,1,2) [2025-03-09 11:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642036', 'tblTempUsageDetail_20' ) start [2025-03-09 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642036', 'tblTempUsageDetail_20' ) end [2025-03-09 11:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 11:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 11:59:22] Production.INFO: ==15035== Releasing lock... [2025-03-09 11:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 11:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:00:06 [end_date_ymd] => 2025-03-09 12:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 09:00:06' and `end` < '2025-03-09 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-09 12:00:18] Production.INFO: count ==419 [2025-03-09 12:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:00:06 - End Time 2025-03-09 12:00:06 [2025-03-09 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642042', 'tblTempUsageDetail_20' ) start [2025-03-09 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642042', 'tblTempUsageDetail_20' ) end [2025-03-09 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642042', 'tblTempVendorCDR_20' ) start [2025-03-09 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642042', 'tblTempVendorCDR_20' ) end [2025-03-09 12:00:18] Production.INFO: ProcessCDR(1,14642042,1,1,2) [2025-03-09 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642042', 'tblTempUsageDetail_20' ) start [2025-03-09 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642042', 'tblTempUsageDetail_20' ) end [2025-03-09 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:00:23] Production.INFO: ==15107== Releasing lock... [2025-03-09 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-09 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:01:05 [end_date_ymd] => 2025-03-09 12:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:01:05' and `end` < '2025-03-09 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-09 12:01:17] Production.INFO: count ==427 [2025-03-09 12:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:01:05 - End Time 2025-03-09 12:01:05 [2025-03-09 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642047', 'tblTempUsageDetail_20' ) start [2025-03-09 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642047', 'tblTempUsageDetail_20' ) end [2025-03-09 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642047', 'tblTempVendorCDR_20' ) start [2025-03-09 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642047', 'tblTempVendorCDR_20' ) end [2025-03-09 12:01:18] Production.INFO: ProcessCDR(1,14642047,1,1,2) [2025-03-09 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642047', 'tblTempUsageDetail_20' ) start [2025-03-09 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642047', 'tblTempUsageDetail_20' ) end [2025-03-09 12:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:01:21] Production.INFO: ==15237== Releasing lock... [2025-03-09 12:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-09 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:02:05 [end_date_ymd] => 2025-03-09 12:02:05 [RateCDR] => 1 ) [2025-03-09 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:02:05' and `end` < '2025-03-09 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:02:17] Production.INFO: count ==428 [2025-03-09 12:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:02:05 - End Time 2025-03-09 12:02:05 [2025-03-09 12:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642052', 'tblTempUsageDetail_20' ) start [2025-03-09 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642052', 'tblTempUsageDetail_20' ) end [2025-03-09 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642052', 'tblTempVendorCDR_20' ) start [2025-03-09 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642052', 'tblTempVendorCDR_20' ) end [2025-03-09 12:02:17] Production.INFO: ProcessCDR(1,14642052,1,1,2) [2025-03-09 12:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642052', 'tblTempUsageDetail_20' ) start [2025-03-09 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642052', 'tblTempUsageDetail_20' ) end [2025-03-09 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:02:22] Production.INFO: ==15308== Releasing lock... [2025-03-09 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:02:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:03:05 [end_date_ymd] => 2025-03-09 12:03:05 [RateCDR] => 1 ) [2025-03-09 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:03:05' and `end` < '2025-03-09 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:03:17] Production.INFO: count ==428 [2025-03-09 12:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:03:05 - End Time 2025-03-09 12:03:05 [2025-03-09 12:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642057', 'tblTempUsageDetail_20' ) start [2025-03-09 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642057', 'tblTempUsageDetail_20' ) end [2025-03-09 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642057', 'tblTempVendorCDR_20' ) start [2025-03-09 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642057', 'tblTempVendorCDR_20' ) end [2025-03-09 12:03:17] Production.INFO: ProcessCDR(1,14642057,1,1,2) [2025-03-09 12:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642057', 'tblTempUsageDetail_20' ) start [2025-03-09 12:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642057', 'tblTempUsageDetail_20' ) end [2025-03-09 12:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:03:20] Production.INFO: ==15382== Releasing lock... [2025-03-09 12:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:03:20] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:04:05 [end_date_ymd] => 2025-03-09 12:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:04:05' and `end` < '2025-03-09 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-09 12:04:17] Production.INFO: count ==429 [2025-03-09 12:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:04:05 - End Time 2025-03-09 12:04:05 [2025-03-09 12:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642062', 'tblTempUsageDetail_20' ) start [2025-03-09 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642062', 'tblTempUsageDetail_20' ) end [2025-03-09 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642062', 'tblTempVendorCDR_20' ) start [2025-03-09 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642062', 'tblTempVendorCDR_20' ) end [2025-03-09 12:04:17] Production.INFO: ProcessCDR(1,14642062,1,1,2) [2025-03-09 12:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642062', 'tblTempUsageDetail_20' ) start [2025-03-09 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642062', 'tblTempUsageDetail_20' ) end [2025-03-09 12:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:04:22] Production.INFO: ==15453== Releasing lock... [2025-03-09 12:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:04:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:05:05 [end_date_ymd] => 2025-03-09 12:05:05 [RateCDR] => 1 ) [2025-03-09 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:05:05' and `end` < '2025-03-09 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:05:17] Production.INFO: count ==430 [2025-03-09 12:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:05:05 - End Time 2025-03-09 12:05:05 [2025-03-09 12:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642067', 'tblTempUsageDetail_20' ) start [2025-03-09 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642067', 'tblTempUsageDetail_20' ) end [2025-03-09 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642067', 'tblTempVendorCDR_20' ) start [2025-03-09 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642067', 'tblTempVendorCDR_20' ) end [2025-03-09 12:05:17] Production.INFO: ProcessCDR(1,14642067,1,1,2) [2025-03-09 12:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642067', 'tblTempUsageDetail_20' ) start [2025-03-09 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642067', 'tblTempUsageDetail_20' ) end [2025-03-09 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:05:22] Production.INFO: ==15524== Releasing lock... [2025-03-09 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:06:06 [end_date_ymd] => 2025-03-09 12:06:06 [RateCDR] => 1 ) [2025-03-09 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:06:06' and `end` < '2025-03-09 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:06:18] Production.INFO: count ==431 [2025-03-09 12:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:06:06 - End Time 2025-03-09 12:06:06 [2025-03-09 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642072', 'tblTempUsageDetail_20' ) start [2025-03-09 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642072', 'tblTempUsageDetail_20' ) end [2025-03-09 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642072', 'tblTempVendorCDR_20' ) start [2025-03-09 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642072', 'tblTempVendorCDR_20' ) end [2025-03-09 12:06:18] Production.INFO: ProcessCDR(1,14642072,1,1,2) [2025-03-09 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642072', 'tblTempUsageDetail_20' ) start [2025-03-09 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642072', 'tblTempUsageDetail_20' ) end [2025-03-09 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:06:22] Production.INFO: ==15596== Releasing lock... [2025-03-09 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-09 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:07:05 [end_date_ymd] => 2025-03-09 12:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:07:05' and `end` < '2025-03-09 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-09 12:07:17] Production.INFO: count ==443 [2025-03-09 12:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:07:05 - End Time 2025-03-09 12:07:05 [2025-03-09 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642077', 'tblTempUsageDetail_20' ) start [2025-03-09 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642077', 'tblTempUsageDetail_20' ) end [2025-03-09 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642077', 'tblTempVendorCDR_20' ) start [2025-03-09 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642077', 'tblTempVendorCDR_20' ) end [2025-03-09 12:07:17] Production.INFO: ProcessCDR(1,14642077,1,1,2) [2025-03-09 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642077', 'tblTempUsageDetail_20' ) start [2025-03-09 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642077', 'tblTempUsageDetail_20' ) end [2025-03-09 12:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:07:22] Production.INFO: ==15666== Releasing lock... [2025-03-09 12:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:07:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:08:05 [end_date_ymd] => 2025-03-09 12:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:08:05' and `end` < '2025-03-09 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-09 12:08:18] Production.INFO: count ==444 [2025-03-09 12:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:08:05 - End Time 2025-03-09 12:08:05 [2025-03-09 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642082', 'tblTempUsageDetail_20' ) start [2025-03-09 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642082', 'tblTempUsageDetail_20' ) end [2025-03-09 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642082', 'tblTempVendorCDR_20' ) start [2025-03-09 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642082', 'tblTempVendorCDR_20' ) end [2025-03-09 12:08:18] Production.INFO: ProcessCDR(1,14642082,1,1,2) [2025-03-09 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642082', 'tblTempUsageDetail_20' ) start [2025-03-09 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642082', 'tblTempUsageDetail_20' ) end [2025-03-09 12:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:08:23] Production.INFO: ==15742== Releasing lock... [2025-03-09 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:08:23] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:09:05 [end_date_ymd] => 2025-03-09 12:09:05 [RateCDR] => 1 ) [2025-03-09 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:09:05' and `end` < '2025-03-09 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:09:17] Production.INFO: count ==444 [2025-03-09 12:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:09:05 - End Time 2025-03-09 12:09:05 [2025-03-09 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642087', 'tblTempUsageDetail_20' ) start [2025-03-09 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642087', 'tblTempUsageDetail_20' ) end [2025-03-09 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642087', 'tblTempVendorCDR_20' ) start [2025-03-09 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642087', 'tblTempVendorCDR_20' ) end [2025-03-09 12:09:17] Production.INFO: ProcessCDR(1,14642087,1,1,2) [2025-03-09 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642087', 'tblTempUsageDetail_20' ) start [2025-03-09 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642087', 'tblTempUsageDetail_20' ) end [2025-03-09 12:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:09:20] Production.INFO: ==15812== Releasing lock... [2025-03-09 12:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:09:20] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:10:06 [end_date_ymd] => 2025-03-09 12:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 09:10:06' and `end` < '2025-03-09 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-09 12:10:19] Production.INFO: count ==453 [2025-03-09 12:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 09:10:06 - End Time 2025-03-09 12:10:06 [2025-03-09 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642093', 'tblTempUsageDetail_20' ) start [2025-03-09 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642093', 'tblTempUsageDetail_20' ) end [2025-03-09 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642093', 'tblTempVendorCDR_20' ) start [2025-03-09 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642093', 'tblTempVendorCDR_20' ) end [2025-03-09 12:10:19] Production.INFO: ProcessCDR(1,14642093,1,1,2) [2025-03-09 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642093', 'tblTempUsageDetail_20' ) start [2025-03-09 12:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642093', 'tblTempUsageDetail_20' ) end [2025-03-09 12:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:10:24] Production.INFO: ==15885== Releasing lock... [2025-03-09 12:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:10:24] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:11:05 [end_date_ymd] => 2025-03-09 12:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:11:05' and `end` < '2025-03-09 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-09 12:11:17] Production.INFO: count ==486 [2025-03-09 12:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:11:05 - End Time 2025-03-09 12:11:05 [2025-03-09 12:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642098', 'tblTempUsageDetail_20' ) start [2025-03-09 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642098', 'tblTempUsageDetail_20' ) end [2025-03-09 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642098', 'tblTempVendorCDR_20' ) start [2025-03-09 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642098', 'tblTempVendorCDR_20' ) end [2025-03-09 12:11:17] Production.INFO: ProcessCDR(1,14642098,1,1,2) [2025-03-09 12:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642098', 'tblTempUsageDetail_20' ) start [2025-03-09 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642098', 'tblTempUsageDetail_20' ) end [2025-03-09 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:11:22] Production.INFO: ==15959== Releasing lock... [2025-03-09 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:11:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:12:05 [end_date_ymd] => 2025-03-09 12:12:05 [RateCDR] => 1 ) [2025-03-09 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:12:05' and `end` < '2025-03-09 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:12:17] Production.INFO: count ==488 [2025-03-09 12:12:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:12:05 - End Time 2025-03-09 12:12:05 [2025-03-09 12:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642103', 'tblTempUsageDetail_20' ) start [2025-03-09 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642103', 'tblTempUsageDetail_20' ) end [2025-03-09 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642103', 'tblTempVendorCDR_20' ) start [2025-03-09 12:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642103', 'tblTempVendorCDR_20' ) end [2025-03-09 12:12:17] Production.INFO: ProcessCDR(1,14642103,1,1,2) [2025-03-09 12:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642103', 'tblTempUsageDetail_20' ) start [2025-03-09 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642103', 'tblTempUsageDetail_20' ) end [2025-03-09 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:12:22] Production.INFO: ==16032== Releasing lock... [2025-03-09 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:12:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:13:05 [end_date_ymd] => 2025-03-09 12:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:13:05' and `end` < '2025-03-09 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-09 12:13:17] Production.INFO: count ==489 [2025-03-09 12:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:13:05 - End Time 2025-03-09 12:13:05 [2025-03-09 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642108', 'tblTempUsageDetail_20' ) start [2025-03-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642108', 'tblTempUsageDetail_20' ) end [2025-03-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642108', 'tblTempVendorCDR_20' ) start [2025-03-09 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642108', 'tblTempVendorCDR_20' ) end [2025-03-09 12:13:18] Production.INFO: ProcessCDR(1,14642108,1,1,2) [2025-03-09 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642108', 'tblTempUsageDetail_20' ) start [2025-03-09 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642108', 'tblTempUsageDetail_20' ) end [2025-03-09 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:13:21] Production.INFO: ==16102== Releasing lock... [2025-03-09 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:14:05 [end_date_ymd] => 2025-03-09 12:14:05 [RateCDR] => 1 ) [2025-03-09 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:14:05' and `end` < '2025-03-09 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:14:17] Production.INFO: count ==489 [2025-03-09 12:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:14:05 - End Time 2025-03-09 12:14:05 [2025-03-09 12:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642113', 'tblTempUsageDetail_20' ) start [2025-03-09 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642113', 'tblTempUsageDetail_20' ) end [2025-03-09 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642113', 'tblTempVendorCDR_20' ) start [2025-03-09 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642113', 'tblTempVendorCDR_20' ) end [2025-03-09 12:14:17] Production.INFO: ProcessCDR(1,14642113,1,1,2) [2025-03-09 12:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642113', 'tblTempUsageDetail_20' ) start [2025-03-09 12:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642113', 'tblTempUsageDetail_20' ) end [2025-03-09 12:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:14:20] Production.INFO: ==16173== Releasing lock... [2025-03-09 12:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:14:20] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:15:05 [end_date_ymd] => 2025-03-09 12:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:15:05' and `end` < '2025-03-09 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-09 12:15:17] Production.INFO: count ==489 [2025-03-09 12:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:15:05 - End Time 2025-03-09 12:15:05 [2025-03-09 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642118', 'tblTempUsageDetail_20' ) start [2025-03-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642118', 'tblTempUsageDetail_20' ) end [2025-03-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642118', 'tblTempVendorCDR_20' ) start [2025-03-09 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642118', 'tblTempVendorCDR_20' ) end [2025-03-09 12:15:17] Production.INFO: ProcessCDR(1,14642118,1,1,2) [2025-03-09 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642118', 'tblTempUsageDetail_20' ) start [2025-03-09 12:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642118', 'tblTempUsageDetail_20' ) end [2025-03-09 12:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:15:20] Production.INFO: ==16245== Releasing lock... [2025-03-09 12:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:15:20] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:16:05 [end_date_ymd] => 2025-03-09 12:16:05 [RateCDR] => 1 ) [2025-03-09 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:16:05' and `end` < '2025-03-09 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:16:17] Production.INFO: count ==490 [2025-03-09 12:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:16:05 - End Time 2025-03-09 12:16:05 [2025-03-09 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642123', 'tblTempUsageDetail_20' ) start [2025-03-09 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642123', 'tblTempUsageDetail_20' ) end [2025-03-09 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642123', 'tblTempVendorCDR_20' ) start [2025-03-09 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642123', 'tblTempVendorCDR_20' ) end [2025-03-09 12:16:17] Production.INFO: ProcessCDR(1,14642123,1,1,2) [2025-03-09 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642123', 'tblTempUsageDetail_20' ) start [2025-03-09 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642123', 'tblTempUsageDetail_20' ) end [2025-03-09 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:16:22] Production.INFO: ==16315== Releasing lock... [2025-03-09 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:16:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:17:05 [end_date_ymd] => 2025-03-09 12:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:17:05' and `end` < '2025-03-09 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-09 12:17:17] Production.INFO: count ==490 [2025-03-09 12:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:17:05 - End Time 2025-03-09 12:17:05 [2025-03-09 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642128', 'tblTempUsageDetail_20' ) start [2025-03-09 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642128', 'tblTempUsageDetail_20' ) end [2025-03-09 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642128', 'tblTempVendorCDR_20' ) start [2025-03-09 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642128', 'tblTempVendorCDR_20' ) end [2025-03-09 12:17:18] Production.INFO: ProcessCDR(1,14642128,1,1,2) [2025-03-09 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642128', 'tblTempUsageDetail_20' ) start [2025-03-09 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642128', 'tblTempUsageDetail_20' ) end [2025-03-09 12:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:17:21] Production.INFO: ==16426== Releasing lock... [2025-03-09 12:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:18:05 [end_date_ymd] => 2025-03-09 12:18:05 [RateCDR] => 1 ) [2025-03-09 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:18:05' and `end` < '2025-03-09 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:18:17] Production.INFO: count ==490 [2025-03-09 12:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:18:05 - End Time 2025-03-09 12:18:05 [2025-03-09 12:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642133', 'tblTempUsageDetail_20' ) start [2025-03-09 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642133', 'tblTempUsageDetail_20' ) end [2025-03-09 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642133', 'tblTempVendorCDR_20' ) start [2025-03-09 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642133', 'tblTempVendorCDR_20' ) end [2025-03-09 12:18:17] Production.INFO: ProcessCDR(1,14642133,1,1,2) [2025-03-09 12:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642133', 'tblTempUsageDetail_20' ) start [2025-03-09 12:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642133', 'tblTempUsageDetail_20' ) end [2025-03-09 12:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:18:20] Production.INFO: ==16500== Releasing lock... [2025-03-09 12:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:18:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:19:05 [end_date_ymd] => 2025-03-09 12:19:05 [RateCDR] => 1 ) [2025-03-09 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:19:05' and `end` < '2025-03-09 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:19:17] Production.INFO: count ==499 [2025-03-09 12:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:19:05 - End Time 2025-03-09 12:19:05 [2025-03-09 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642138', 'tblTempUsageDetail_20' ) start [2025-03-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642138', 'tblTempUsageDetail_20' ) end [2025-03-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642138', 'tblTempVendorCDR_20' ) start [2025-03-09 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642138', 'tblTempVendorCDR_20' ) end [2025-03-09 12:19:18] Production.INFO: ProcessCDR(1,14642138,1,1,2) [2025-03-09 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642138', 'tblTempUsageDetail_20' ) start [2025-03-09 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642138', 'tblTempUsageDetail_20' ) end [2025-03-09 12:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:19:21] Production.INFO: ==16574== Releasing lock... [2025-03-09 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:20:06 [end_date_ymd] => 2025-03-09 12:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 09:20:06' and `end` < '2025-03-09 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-09 12:20:18] Production.INFO: count ==510 [2025-03-09 12:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:20:06 - End Time 2025-03-09 12:20:06 [2025-03-09 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642144', 'tblTempUsageDetail_20' ) start [2025-03-09 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642144', 'tblTempUsageDetail_20' ) end [2025-03-09 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642144', 'tblTempVendorCDR_20' ) start [2025-03-09 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642144', 'tblTempVendorCDR_20' ) end [2025-03-09 12:20:18] Production.INFO: ProcessCDR(1,14642144,1,1,2) [2025-03-09 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642144', 'tblTempUsageDetail_20' ) start [2025-03-09 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642144', 'tblTempUsageDetail_20' ) end [2025-03-09 12:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:20:23] Production.INFO: ==16652== Releasing lock... [2025-03-09 12:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:20:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:21:06 [end_date_ymd] => 2025-03-09 12:21:06 [RateCDR] => 1 ) [2025-03-09 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-09 09:21:06' and `end` < '2025-03-09 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-09 12:21:18] Production.INFO: count ==513 [2025-03-09 12:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:21:06 - End Time 2025-03-09 12:21:06 [2025-03-09 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642149', 'tblTempUsageDetail_20' ) start [2025-03-09 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642149', 'tblTempUsageDetail_20' ) end [2025-03-09 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642149', 'tblTempVendorCDR_20' ) start [2025-03-09 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642149', 'tblTempVendorCDR_20' ) end [2025-03-09 12:21:18] Production.INFO: ProcessCDR(1,14642149,1,1,2) [2025-03-09 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642149', 'tblTempUsageDetail_20' ) start [2025-03-09 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642149', 'tblTempUsageDetail_20' ) end [2025-03-09 12:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:21:21] Production.INFO: ==16725== Releasing lock... [2025-03-09 12:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:22:05 [end_date_ymd] => 2025-03-09 12:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:22:05' and `end` < '2025-03-09 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-09 12:22:17] Production.INFO: count ==519 [2025-03-09 12:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:22:05 - End Time 2025-03-09 12:22:05 [2025-03-09 12:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642154', 'tblTempUsageDetail_20' ) start [2025-03-09 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642154', 'tblTempUsageDetail_20' ) end [2025-03-09 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642154', 'tblTempVendorCDR_20' ) start [2025-03-09 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642154', 'tblTempVendorCDR_20' ) end [2025-03-09 12:22:17] Production.INFO: ProcessCDR(1,14642154,1,1,2) [2025-03-09 12:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642154', 'tblTempUsageDetail_20' ) start [2025-03-09 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642154', 'tblTempUsageDetail_20' ) end [2025-03-09 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:22:22] Production.INFO: ==16796== Releasing lock... [2025-03-09 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:22:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:23:05 [end_date_ymd] => 2025-03-09 12:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:23:05' and `end` < '2025-03-09 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-09 12:23:18] Production.INFO: count ==519 [2025-03-09 12:23:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:23:05 - End Time 2025-03-09 12:23:05 [2025-03-09 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642159', 'tblTempUsageDetail_20' ) start [2025-03-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642159', 'tblTempUsageDetail_20' ) end [2025-03-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642159', 'tblTempVendorCDR_20' ) start [2025-03-09 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642159', 'tblTempVendorCDR_20' ) end [2025-03-09 12:23:18] Production.INFO: ProcessCDR(1,14642159,1,1,2) [2025-03-09 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642159', 'tblTempUsageDetail_20' ) start [2025-03-09 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642159', 'tblTempUsageDetail_20' ) end [2025-03-09 12:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:23:21] Production.INFO: ==16874== Releasing lock... [2025-03-09 12:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:24:04 [end_date_ymd] => 2025-03-09 12:24:04 [RateCDR] => 1 ) [2025-03-09 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:24:04' and `end` < '2025-03-09 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:24:16] Production.INFO: count ==520 [2025-03-09 12:24:16] Production.ERROR: pbx CDR StartTime 2025-03-09 09:24:04 - End Time 2025-03-09 12:24:04 [2025-03-09 12:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642164', 'tblTempUsageDetail_20' ) start [2025-03-09 12:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642164', 'tblTempUsageDetail_20' ) end [2025-03-09 12:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642164', 'tblTempVendorCDR_20' ) start [2025-03-09 12:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642164', 'tblTempVendorCDR_20' ) end [2025-03-09 12:24:16] Production.INFO: ProcessCDR(1,14642164,1,1,2) [2025-03-09 12:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642164', 'tblTempUsageDetail_20' ) start [2025-03-09 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642164', 'tblTempUsageDetail_20' ) end [2025-03-09 12:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:24:21] Production.INFO: ==16946== Releasing lock... [2025-03-09 12:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:25:05 [end_date_ymd] => 2025-03-09 12:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:25:05' and `end` < '2025-03-09 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-09 12:25:17] Production.INFO: count ==523 [2025-03-09 12:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:25:05 - End Time 2025-03-09 12:25:05 [2025-03-09 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642169', 'tblTempUsageDetail_20' ) start [2025-03-09 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642169', 'tblTempUsageDetail_20' ) end [2025-03-09 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642169', 'tblTempVendorCDR_20' ) start [2025-03-09 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642169', 'tblTempVendorCDR_20' ) end [2025-03-09 12:25:17] Production.INFO: ProcessCDR(1,14642169,1,1,2) [2025-03-09 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642169', 'tblTempUsageDetail_20' ) start [2025-03-09 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642169', 'tblTempUsageDetail_20' ) end [2025-03-09 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:25:21] Production.INFO: ==17017== Releasing lock... [2025-03-09 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:26:05 [end_date_ymd] => 2025-03-09 12:26:05 [RateCDR] => 1 ) [2025-03-09 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:26:05' and `end` < '2025-03-09 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:26:17] Production.INFO: count ==523 [2025-03-09 12:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:26:05 - End Time 2025-03-09 12:26:05 [2025-03-09 12:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642174', 'tblTempUsageDetail_20' ) start [2025-03-09 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642174', 'tblTempUsageDetail_20' ) end [2025-03-09 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642174', 'tblTempVendorCDR_20' ) start [2025-03-09 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642174', 'tblTempVendorCDR_20' ) end [2025-03-09 12:26:17] Production.INFO: ProcessCDR(1,14642174,1,1,2) [2025-03-09 12:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642174', 'tblTempUsageDetail_20' ) start [2025-03-09 12:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642174', 'tblTempUsageDetail_20' ) end [2025-03-09 12:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:26:20] Production.INFO: ==17090== Releasing lock... [2025-03-09 12:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:26:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:27:05 [end_date_ymd] => 2025-03-09 12:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:27:05' and `end` < '2025-03-09 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-09 12:27:17] Production.INFO: count ==523 [2025-03-09 12:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:27:05 - End Time 2025-03-09 12:27:05 [2025-03-09 12:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642179', 'tblTempUsageDetail_20' ) start [2025-03-09 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642179', 'tblTempUsageDetail_20' ) end [2025-03-09 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642179', 'tblTempVendorCDR_20' ) start [2025-03-09 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642179', 'tblTempVendorCDR_20' ) end [2025-03-09 12:27:17] Production.INFO: ProcessCDR(1,14642179,1,1,2) [2025-03-09 12:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642179', 'tblTempUsageDetail_20' ) start [2025-03-09 12:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642179', 'tblTempUsageDetail_20' ) end [2025-03-09 12:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:27:20] Production.INFO: ==17173== Releasing lock... [2025-03-09 12:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:27:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:28:06 [end_date_ymd] => 2025-03-09 12:28:06 [RateCDR] => 1 ) [2025-03-09 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:28:06' and `end` < '2025-03-09 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:28:18] Production.INFO: count ==524 [2025-03-09 12:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:28:06 - End Time 2025-03-09 12:28:06 [2025-03-09 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642184', 'tblTempUsageDetail_20' ) start [2025-03-09 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642184', 'tblTempUsageDetail_20' ) end [2025-03-09 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642184', 'tblTempVendorCDR_20' ) start [2025-03-09 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642184', 'tblTempVendorCDR_20' ) end [2025-03-09 12:28:18] Production.INFO: ProcessCDR(1,14642184,1,1,2) [2025-03-09 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642184', 'tblTempUsageDetail_20' ) start [2025-03-09 12:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642184', 'tblTempUsageDetail_20' ) end [2025-03-09 12:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:28:21] Production.INFO: ==17259== Releasing lock... [2025-03-09 12:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:29:05 [end_date_ymd] => 2025-03-09 12:29:05 [RateCDR] => 1 ) [2025-03-09 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:29:05' and `end` < '2025-03-09 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:29:17] Production.INFO: count ==524 [2025-03-09 12:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:29:05 - End Time 2025-03-09 12:29:05 [2025-03-09 12:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642189', 'tblTempUsageDetail_20' ) start [2025-03-09 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642189', 'tblTempUsageDetail_20' ) end [2025-03-09 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642189', 'tblTempVendorCDR_20' ) start [2025-03-09 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642189', 'tblTempVendorCDR_20' ) end [2025-03-09 12:29:17] Production.INFO: ProcessCDR(1,14642189,1,1,2) [2025-03-09 12:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642189', 'tblTempUsageDetail_20' ) start [2025-03-09 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642189', 'tblTempUsageDetail_20' ) end [2025-03-09 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:29:21] Production.INFO: ==17354== Releasing lock... [2025-03-09 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:30:06 [end_date_ymd] => 2025-03-09 12:30:06 [RateCDR] => 1 ) [2025-03-09 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:30:06' and `end` < '2025-03-09 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:30:18] Production.INFO: count ==524 [2025-03-09 12:30:19] Production.ERROR: pbx CDR StartTime 2025-03-09 09:30:06 - End Time 2025-03-09 12:30:06 [2025-03-09 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642195', 'tblTempUsageDetail_20' ) start [2025-03-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642195', 'tblTempUsageDetail_20' ) end [2025-03-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642195', 'tblTempVendorCDR_20' ) start [2025-03-09 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642195', 'tblTempVendorCDR_20' ) end [2025-03-09 12:30:19] Production.INFO: ProcessCDR(1,14642195,1,1,2) [2025-03-09 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642195', 'tblTempUsageDetail_20' ) start [2025-03-09 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642195', 'tblTempUsageDetail_20' ) end [2025-03-09 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:30:22] Production.INFO: ==17457== Releasing lock... [2025-03-09 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-09 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:31:05 [end_date_ymd] => 2025-03-09 12:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:31:05' and `end` < '2025-03-09 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-09 12:31:17] Production.INFO: count ==530 [2025-03-09 12:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:31:05 - End Time 2025-03-09 12:31:05 [2025-03-09 12:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642200', 'tblTempUsageDetail_20' ) start [2025-03-09 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642200', 'tblTempUsageDetail_20' ) end [2025-03-09 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642200', 'tblTempVendorCDR_20' ) start [2025-03-09 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642200', 'tblTempVendorCDR_20' ) end [2025-03-09 12:31:17] Production.INFO: ProcessCDR(1,14642200,1,1,2) [2025-03-09 12:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642200', 'tblTempUsageDetail_20' ) start [2025-03-09 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642200', 'tblTempUsageDetail_20' ) end [2025-03-09 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:31:22] Production.INFO: ==17559== Releasing lock... [2025-03-09 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:31:22] Production.INFO: 32 MB #Memory Used# [2025-03-09 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:32:06 [end_date_ymd] => 2025-03-09 12:32:06 [RateCDR] => 1 ) [2025-03-09 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:32:06' and `end` < '2025-03-09 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:32:18] Production.INFO: count ==532 [2025-03-09 12:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:32:06 - End Time 2025-03-09 12:32:06 [2025-03-09 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642205', 'tblTempUsageDetail_20' ) start [2025-03-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642205', 'tblTempUsageDetail_20' ) end [2025-03-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642205', 'tblTempVendorCDR_20' ) start [2025-03-09 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642205', 'tblTempVendorCDR_20' ) end [2025-03-09 12:32:18] Production.INFO: ProcessCDR(1,14642205,1,1,2) [2025-03-09 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642205', 'tblTempUsageDetail_20' ) start [2025-03-09 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642205', 'tblTempUsageDetail_20' ) end [2025-03-09 12:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:32:23] Production.INFO: ==17704== Releasing lock... [2025-03-09 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:32:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:33:05 [end_date_ymd] => 2025-03-09 12:33:05 [RateCDR] => 1 ) [2025-03-09 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:33:05' and `end` < '2025-03-09 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:33:17] Production.INFO: count ==532 [2025-03-09 12:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:33:05 - End Time 2025-03-09 12:33:05 [2025-03-09 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642210', 'tblTempUsageDetail_20' ) start [2025-03-09 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642210', 'tblTempUsageDetail_20' ) end [2025-03-09 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642210', 'tblTempVendorCDR_20' ) start [2025-03-09 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642210', 'tblTempVendorCDR_20' ) end [2025-03-09 12:33:17] Production.INFO: ProcessCDR(1,14642210,1,1,2) [2025-03-09 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642210', 'tblTempUsageDetail_20' ) start [2025-03-09 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642210', 'tblTempUsageDetail_20' ) end [2025-03-09 12:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:33:21] Production.INFO: ==17812== Releasing lock... [2025-03-09 12:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-09 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:34:06 [end_date_ymd] => 2025-03-09 12:34:06 [RateCDR] => 1 ) [2025-03-09 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:34:06' and `end` < '2025-03-09 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:34:18] Production.INFO: count ==536 [2025-03-09 12:34:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:34:06 - End Time 2025-03-09 12:34:06 [2025-03-09 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642215', 'tblTempUsageDetail_20' ) start [2025-03-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642215', 'tblTempUsageDetail_20' ) end [2025-03-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642215', 'tblTempVendorCDR_20' ) start [2025-03-09 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642215', 'tblTempVendorCDR_20' ) end [2025-03-09 12:34:18] Production.INFO: ProcessCDR(1,14642215,1,1,2) [2025-03-09 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642215', 'tblTempUsageDetail_20' ) start [2025-03-09 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642215', 'tblTempUsageDetail_20' ) end [2025-03-09 12:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:34:21] Production.INFO: ==17922== Releasing lock... [2025-03-09 12:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:34:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:35:05 [end_date_ymd] => 2025-03-09 12:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:35:05' and `end` < '2025-03-09 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-09 12:35:17] Production.INFO: count ==550 [2025-03-09 12:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:35:05 - End Time 2025-03-09 12:35:05 [2025-03-09 12:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642220', 'tblTempUsageDetail_20' ) start [2025-03-09 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642220', 'tblTempUsageDetail_20' ) end [2025-03-09 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642220', 'tblTempVendorCDR_20' ) start [2025-03-09 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642220', 'tblTempVendorCDR_20' ) end [2025-03-09 12:35:17] Production.INFO: ProcessCDR(1,14642220,1,1,2) [2025-03-09 12:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642220', 'tblTempUsageDetail_20' ) start [2025-03-09 12:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642220', 'tblTempUsageDetail_20' ) end [2025-03-09 12:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:35:20] Production.INFO: ==18022== Releasing lock... [2025-03-09 12:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:35:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:36:05 [end_date_ymd] => 2025-03-09 12:36:05 [RateCDR] => 1 ) [2025-03-09 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:36:05' and `end` < '2025-03-09 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:36:17] Production.INFO: count ==549 [2025-03-09 12:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:36:05 - End Time 2025-03-09 12:36:05 [2025-03-09 12:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642225', 'tblTempUsageDetail_20' ) start [2025-03-09 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642225', 'tblTempUsageDetail_20' ) end [2025-03-09 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642225', 'tblTempVendorCDR_20' ) start [2025-03-09 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642225', 'tblTempVendorCDR_20' ) end [2025-03-09 12:36:17] Production.INFO: ProcessCDR(1,14642225,1,1,2) [2025-03-09 12:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642225', 'tblTempUsageDetail_20' ) start [2025-03-09 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642225', 'tblTempUsageDetail_20' ) end [2025-03-09 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:36:22] Production.INFO: ==18131== Releasing lock... [2025-03-09 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:37:05 [end_date_ymd] => 2025-03-09 12:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:37:05' and `end` < '2025-03-09 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-09 12:37:17] Production.INFO: count ==549 [2025-03-09 12:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:37:05 - End Time 2025-03-09 12:37:05 [2025-03-09 12:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642230', 'tblTempUsageDetail_20' ) start [2025-03-09 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642230', 'tblTempUsageDetail_20' ) end [2025-03-09 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642230', 'tblTempVendorCDR_20' ) start [2025-03-09 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642230', 'tblTempVendorCDR_20' ) end [2025-03-09 12:37:17] Production.INFO: ProcessCDR(1,14642230,1,1,2) [2025-03-09 12:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642230', 'tblTempUsageDetail_20' ) start [2025-03-09 12:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642230', 'tblTempUsageDetail_20' ) end [2025-03-09 12:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:37:20] Production.INFO: ==18243== Releasing lock... [2025-03-09 12:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:37:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:38:05 [end_date_ymd] => 2025-03-09 12:38:05 [RateCDR] => 1 ) [2025-03-09 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:38:05' and `end` < '2025-03-09 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:38:17] Production.INFO: count ==549 [2025-03-09 12:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:38:05 - End Time 2025-03-09 12:38:05 [2025-03-09 12:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642235', 'tblTempUsageDetail_20' ) start [2025-03-09 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642235', 'tblTempUsageDetail_20' ) end [2025-03-09 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642235', 'tblTempVendorCDR_20' ) start [2025-03-09 12:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642235', 'tblTempVendorCDR_20' ) end [2025-03-09 12:38:17] Production.INFO: ProcessCDR(1,14642235,1,1,2) [2025-03-09 12:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642235', 'tblTempUsageDetail_20' ) start [2025-03-09 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642235', 'tblTempUsageDetail_20' ) end [2025-03-09 12:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:38:21] Production.INFO: ==18359== Releasing lock... [2025-03-09 12:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:39:05 [end_date_ymd] => 2025-03-09 12:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:39:05' and `end` < '2025-03-09 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-09 12:39:17] Production.INFO: count ==550 [2025-03-09 12:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:39:05 - End Time 2025-03-09 12:39:05 [2025-03-09 12:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642240', 'tblTempUsageDetail_20' ) start [2025-03-09 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642240', 'tblTempUsageDetail_20' ) end [2025-03-09 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642240', 'tblTempVendorCDR_20' ) start [2025-03-09 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642240', 'tblTempVendorCDR_20' ) end [2025-03-09 12:39:17] Production.INFO: ProcessCDR(1,14642240,1,1,2) [2025-03-09 12:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642240', 'tblTempUsageDetail_20' ) start [2025-03-09 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642240', 'tblTempUsageDetail_20' ) end [2025-03-09 12:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:39:22] Production.INFO: ==18473== Releasing lock... [2025-03-09 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:40:06 [end_date_ymd] => 2025-03-09 12:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 09:40:06' and `end` < '2025-03-09 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-09 12:40:18] Production.INFO: count ==558 [2025-03-09 12:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:40:06 - End Time 2025-03-09 12:40:06 [2025-03-09 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642246', 'tblTempUsageDetail_20' ) start [2025-03-09 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642246', 'tblTempUsageDetail_20' ) end [2025-03-09 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642246', 'tblTempVendorCDR_20' ) start [2025-03-09 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642246', 'tblTempVendorCDR_20' ) end [2025-03-09 12:40:18] Production.INFO: ProcessCDR(1,14642246,1,1,2) [2025-03-09 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642246', 'tblTempUsageDetail_20' ) start [2025-03-09 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642246', 'tblTempUsageDetail_20' ) end [2025-03-09 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:40:22] Production.INFO: ==18582== Releasing lock... [2025-03-09 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:41:05 [end_date_ymd] => 2025-03-09 12:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:41:05' and `end` < '2025-03-09 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-09 12:41:17] Production.INFO: count ==572 [2025-03-09 12:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:41:05 - End Time 2025-03-09 12:41:05 [2025-03-09 12:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642251', 'tblTempUsageDetail_20' ) start [2025-03-09 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642251', 'tblTempUsageDetail_20' ) end [2025-03-09 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642251', 'tblTempVendorCDR_20' ) start [2025-03-09 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642251', 'tblTempVendorCDR_20' ) end [2025-03-09 12:41:17] Production.INFO: ProcessCDR(1,14642251,1,1,2) [2025-03-09 12:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642251', 'tblTempUsageDetail_20' ) start [2025-03-09 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642251', 'tblTempUsageDetail_20' ) end [2025-03-09 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:41:22] Production.INFO: ==18677== Releasing lock... [2025-03-09 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:42:05 [end_date_ymd] => 2025-03-09 12:42:05 [RateCDR] => 1 ) [2025-03-09 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:42:05' and `end` < '2025-03-09 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:42:18] Production.INFO: count ==576 [2025-03-09 12:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:42:05 - End Time 2025-03-09 12:42:05 [2025-03-09 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642256', 'tblTempUsageDetail_20' ) start [2025-03-09 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642256', 'tblTempUsageDetail_20' ) end [2025-03-09 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642256', 'tblTempVendorCDR_20' ) start [2025-03-09 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642256', 'tblTempVendorCDR_20' ) end [2025-03-09 12:42:18] Production.INFO: ProcessCDR(1,14642256,1,1,2) [2025-03-09 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642256', 'tblTempUsageDetail_20' ) start [2025-03-09 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642256', 'tblTempUsageDetail_20' ) end [2025-03-09 12:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:42:23] Production.INFO: ==18779== Releasing lock... [2025-03-09 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:42:23] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:43:05 [end_date_ymd] => 2025-03-09 12:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:43:05' and `end` < '2025-03-09 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-09 12:43:17] Production.INFO: count ==578 [2025-03-09 12:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:43:05 - End Time 2025-03-09 12:43:05 [2025-03-09 12:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642261', 'tblTempUsageDetail_20' ) start [2025-03-09 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642261', 'tblTempUsageDetail_20' ) end [2025-03-09 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642261', 'tblTempVendorCDR_20' ) start [2025-03-09 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642261', 'tblTempVendorCDR_20' ) end [2025-03-09 12:43:17] Production.INFO: ProcessCDR(1,14642261,1,1,2) [2025-03-09 12:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642261', 'tblTempUsageDetail_20' ) start [2025-03-09 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642261', 'tblTempUsageDetail_20' ) end [2025-03-09 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:43:21] Production.INFO: ==18877== Releasing lock... [2025-03-09 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:43:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:44:05 [end_date_ymd] => 2025-03-09 12:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:44:05' and `end` < '2025-03-09 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-09 12:44:17] Production.INFO: count ==579 [2025-03-09 12:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:44:05 - End Time 2025-03-09 12:44:05 [2025-03-09 12:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642266', 'tblTempUsageDetail_20' ) start [2025-03-09 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642266', 'tblTempUsageDetail_20' ) end [2025-03-09 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642266', 'tblTempVendorCDR_20' ) start [2025-03-09 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642266', 'tblTempVendorCDR_20' ) end [2025-03-09 12:44:17] Production.INFO: ProcessCDR(1,14642266,1,1,2) [2025-03-09 12:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642266', 'tblTempUsageDetail_20' ) start [2025-03-09 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642266', 'tblTempUsageDetail_20' ) end [2025-03-09 12:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:44:22] Production.INFO: ==18978== Releasing lock... [2025-03-09 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:45:05 [end_date_ymd] => 2025-03-09 12:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:45:05' and `end` < '2025-03-09 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-09 12:45:17] Production.INFO: count ==583 [2025-03-09 12:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:45:05 - End Time 2025-03-09 12:45:05 [2025-03-09 12:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642267', 'tblTempUsageDetail_20' ) start [2025-03-09 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642267', 'tblTempUsageDetail_20' ) end [2025-03-09 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642267', 'tblTempVendorCDR_20' ) start [2025-03-09 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642267', 'tblTempVendorCDR_20' ) end [2025-03-09 12:45:17] Production.INFO: ProcessCDR(1,14642267,1,1,2) [2025-03-09 12:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642267', 'tblTempUsageDetail_20' ) start [2025-03-09 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642267', 'tblTempUsageDetail_20' ) end [2025-03-09 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:45:22] Production.INFO: ==19085== Releasing lock... [2025-03-09 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 12:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:46:04 [end_date_ymd] => 2025-03-09 12:46:04 [RateCDR] => 1 ) [2025-03-09 12:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:46:04' and `end` < '2025-03-09 12:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:46:16] Production.INFO: count ==580 [2025-03-09 12:46:16] Production.ERROR: pbx CDR StartTime 2025-03-09 09:46:04 - End Time 2025-03-09 12:46:04 [2025-03-09 12:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642276', 'tblTempUsageDetail_20' ) start [2025-03-09 12:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642276', 'tblTempUsageDetail_20' ) end [2025-03-09 12:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642276', 'tblTempVendorCDR_20' ) start [2025-03-09 12:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642276', 'tblTempVendorCDR_20' ) end [2025-03-09 12:46:16] Production.INFO: ProcessCDR(1,14642276,1,1,2) [2025-03-09 12:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642276', 'tblTempUsageDetail_20' ) start [2025-03-09 12:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642276', 'tblTempUsageDetail_20' ) end [2025-03-09 12:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:46:20] Production.INFO: ==19184== Releasing lock... [2025-03-09 12:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:46:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:47:05 [end_date_ymd] => 2025-03-09 12:47:05 [RateCDR] => 1 ) [2025-03-09 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:47:05' and `end` < '2025-03-09 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:47:17] Production.INFO: count ==578 [2025-03-09 12:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:47:05 - End Time 2025-03-09 12:47:05 [2025-03-09 12:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642281', 'tblTempUsageDetail_20' ) start [2025-03-09 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642281', 'tblTempUsageDetail_20' ) end [2025-03-09 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642281', 'tblTempVendorCDR_20' ) start [2025-03-09 12:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642281', 'tblTempVendorCDR_20' ) end [2025-03-09 12:47:17] Production.INFO: ProcessCDR(1,14642281,1,1,2) [2025-03-09 12:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642281', 'tblTempUsageDetail_20' ) start [2025-03-09 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642281', 'tblTempUsageDetail_20' ) end [2025-03-09 12:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:47:22] Production.INFO: ==19288== Releasing lock... [2025-03-09 12:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:48:05 [end_date_ymd] => 2025-03-09 12:48:05 [RateCDR] => 1 ) [2025-03-09 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:48:05' and `end` < '2025-03-09 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:48:17] Production.INFO: count ==582 [2025-03-09 12:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:48:05 - End Time 2025-03-09 12:48:05 [2025-03-09 12:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642286', 'tblTempUsageDetail_20' ) start [2025-03-09 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642286', 'tblTempUsageDetail_20' ) end [2025-03-09 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642286', 'tblTempVendorCDR_20' ) start [2025-03-09 12:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642286', 'tblTempVendorCDR_20' ) end [2025-03-09 12:48:17] Production.INFO: ProcessCDR(1,14642286,1,1,2) [2025-03-09 12:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642286', 'tblTempUsageDetail_20' ) start [2025-03-09 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642286', 'tblTempUsageDetail_20' ) end [2025-03-09 12:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:48:21] Production.INFO: ==19425== Releasing lock... [2025-03-09 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:49:05 [end_date_ymd] => 2025-03-09 12:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:49:05' and `end` < '2025-03-09 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-09 12:49:18] Production.INFO: count ==589 [2025-03-09 12:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:49:05 - End Time 2025-03-09 12:49:05 [2025-03-09 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642291', 'tblTempUsageDetail_20' ) start [2025-03-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642291', 'tblTempUsageDetail_20' ) end [2025-03-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642291', 'tblTempVendorCDR_20' ) start [2025-03-09 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642291', 'tblTempVendorCDR_20' ) end [2025-03-09 12:49:18] Production.INFO: ProcessCDR(1,14642291,1,1,2) [2025-03-09 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642291', 'tblTempUsageDetail_20' ) start [2025-03-09 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642291', 'tblTempUsageDetail_20' ) end [2025-03-09 12:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:49:23] Production.INFO: ==19525== Releasing lock... [2025-03-09 12:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:50:06 [end_date_ymd] => 2025-03-09 12:50:06 [RateCDR] => 1 ) [2025-03-09 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:50:06' and `end` < '2025-03-09 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:50:18] Production.INFO: count ==594 [2025-03-09 12:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:50:06 - End Time 2025-03-09 12:50:06 [2025-03-09 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642297', 'tblTempUsageDetail_20' ) start [2025-03-09 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642297', 'tblTempUsageDetail_20' ) end [2025-03-09 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642297', 'tblTempVendorCDR_20' ) start [2025-03-09 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642297', 'tblTempVendorCDR_20' ) end [2025-03-09 12:50:18] Production.INFO: ProcessCDR(1,14642297,1,1,2) [2025-03-09 12:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642297', 'tblTempUsageDetail_20' ) start [2025-03-09 12:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642297', 'tblTempUsageDetail_20' ) end [2025-03-09 12:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:50:21] Production.INFO: ==19621== Releasing lock... [2025-03-09 12:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:50:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:51:05 [end_date_ymd] => 2025-03-09 12:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:51:05' and `end` < '2025-03-09 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-09 12:51:17] Production.INFO: count ==595 [2025-03-09 12:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:51:05 - End Time 2025-03-09 12:51:05 [2025-03-09 12:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642302', 'tblTempUsageDetail_20' ) start [2025-03-09 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642302', 'tblTempUsageDetail_20' ) end [2025-03-09 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642302', 'tblTempVendorCDR_20' ) start [2025-03-09 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642302', 'tblTempVendorCDR_20' ) end [2025-03-09 12:51:17] Production.INFO: ProcessCDR(1,14642302,1,1,2) [2025-03-09 12:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642302', 'tblTempUsageDetail_20' ) start [2025-03-09 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642302', 'tblTempUsageDetail_20' ) end [2025-03-09 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:51:21] Production.INFO: ==19705== Releasing lock... [2025-03-09 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:51:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:52:05 [end_date_ymd] => 2025-03-09 12:52:05 [RateCDR] => 1 ) [2025-03-09 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:52:05' and `end` < '2025-03-09 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:52:17] Production.INFO: count ==597 [2025-03-09 12:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:52:05 - End Time 2025-03-09 12:52:05 [2025-03-09 12:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642307', 'tblTempUsageDetail_20' ) start [2025-03-09 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642307', 'tblTempUsageDetail_20' ) end [2025-03-09 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642307', 'tblTempVendorCDR_20' ) start [2025-03-09 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642307', 'tblTempVendorCDR_20' ) end [2025-03-09 12:52:17] Production.INFO: ProcessCDR(1,14642307,1,1,2) [2025-03-09 12:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642307', 'tblTempUsageDetail_20' ) start [2025-03-09 12:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642307', 'tblTempUsageDetail_20' ) end [2025-03-09 12:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:52:20] Production.INFO: ==19781== Releasing lock... [2025-03-09 12:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:52:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:53:05 [end_date_ymd] => 2025-03-09 12:53:05 [RateCDR] => 1 ) [2025-03-09 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:53:05' and `end` < '2025-03-09 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:53:17] Production.INFO: count ==601 [2025-03-09 12:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:53:05 - End Time 2025-03-09 12:53:05 [2025-03-09 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642312', 'tblTempUsageDetail_20' ) start [2025-03-09 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642312', 'tblTempUsageDetail_20' ) end [2025-03-09 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642312', 'tblTempVendorCDR_20' ) start [2025-03-09 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642312', 'tblTempVendorCDR_20' ) end [2025-03-09 12:53:18] Production.INFO: ProcessCDR(1,14642312,1,1,2) [2025-03-09 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642312', 'tblTempUsageDetail_20' ) start [2025-03-09 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642312', 'tblTempUsageDetail_20' ) end [2025-03-09 12:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:53:21] Production.INFO: ==19859== Releasing lock... [2025-03-09 12:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:54:05 [end_date_ymd] => 2025-03-09 12:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:54:05' and `end` < '2025-03-09 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-09 12:54:17] Production.INFO: count ==603 [2025-03-09 12:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:54:05 - End Time 2025-03-09 12:54:05 [2025-03-09 12:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642317', 'tblTempUsageDetail_20' ) start [2025-03-09 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642317', 'tblTempUsageDetail_20' ) end [2025-03-09 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642317', 'tblTempVendorCDR_20' ) start [2025-03-09 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642317', 'tblTempVendorCDR_20' ) end [2025-03-09 12:54:17] Production.INFO: ProcessCDR(1,14642317,1,1,2) [2025-03-09 12:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642317', 'tblTempUsageDetail_20' ) start [2025-03-09 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642317', 'tblTempUsageDetail_20' ) end [2025-03-09 12:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:54:22] Production.INFO: ==19936== Releasing lock... [2025-03-09 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:55:05 [end_date_ymd] => 2025-03-09 12:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:55:05' and `end` < '2025-03-09 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-09 12:55:17] Production.INFO: count ==603 [2025-03-09 12:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:55:05 - End Time 2025-03-09 12:55:05 [2025-03-09 12:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642322', 'tblTempUsageDetail_20' ) start [2025-03-09 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642322', 'tblTempUsageDetail_20' ) end [2025-03-09 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642322', 'tblTempVendorCDR_20' ) start [2025-03-09 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642322', 'tblTempVendorCDR_20' ) end [2025-03-09 12:55:17] Production.INFO: ProcessCDR(1,14642322,1,1,2) [2025-03-09 12:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642322', 'tblTempUsageDetail_20' ) start [2025-03-09 12:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642322', 'tblTempUsageDetail_20' ) end [2025-03-09 12:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:55:21] Production.INFO: ==20012== Releasing lock... [2025-03-09 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:56:06 [end_date_ymd] => 2025-03-09 12:56:06 [RateCDR] => 1 ) [2025-03-09 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-09 09:56:06' and `end` < '2025-03-09 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-09 12:56:18] Production.INFO: count ==607 [2025-03-09 12:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 09:56:06 - End Time 2025-03-09 12:56:06 [2025-03-09 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642327', 'tblTempUsageDetail_20' ) start [2025-03-09 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642327', 'tblTempUsageDetail_20' ) end [2025-03-09 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642327', 'tblTempVendorCDR_20' ) start [2025-03-09 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642327', 'tblTempVendorCDR_20' ) end [2025-03-09 12:56:18] Production.INFO: ProcessCDR(1,14642327,1,1,2) [2025-03-09 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642327', 'tblTempUsageDetail_20' ) start [2025-03-09 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642327', 'tblTempUsageDetail_20' ) end [2025-03-09 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:56:23] Production.INFO: ==20090== Releasing lock... [2025-03-09 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:57:04 [end_date_ymd] => 2025-03-09 12:57:04 [RateCDR] => 1 ) [2025-03-09 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:57:04' and `end` < '2025-03-09 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:57:17] Production.INFO: count ==610 [2025-03-09 12:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:57:04 - End Time 2025-03-09 12:57:04 [2025-03-09 12:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642332', 'tblTempUsageDetail_20' ) start [2025-03-09 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642332', 'tblTempUsageDetail_20' ) end [2025-03-09 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642332', 'tblTempVendorCDR_20' ) start [2025-03-09 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642332', 'tblTempVendorCDR_20' ) end [2025-03-09 12:57:17] Production.INFO: ProcessCDR(1,14642332,1,1,2) [2025-03-09 12:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642332', 'tblTempUsageDetail_20' ) start [2025-03-09 12:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642332', 'tblTempUsageDetail_20' ) end [2025-03-09 12:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:57:20] Production.INFO: ==20169== Releasing lock... [2025-03-09 12:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:57:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:58:05 [end_date_ymd] => 2025-03-09 12:58:05 [RateCDR] => 1 ) [2025-03-09 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 09:58:05' and `end` < '2025-03-09 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 12:58:17] Production.INFO: count ==610 [2025-03-09 12:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:58:05 - End Time 2025-03-09 12:58:05 [2025-03-09 12:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642337', 'tblTempUsageDetail_20' ) start [2025-03-09 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642337', 'tblTempUsageDetail_20' ) end [2025-03-09 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642337', 'tblTempVendorCDR_20' ) start [2025-03-09 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642337', 'tblTempVendorCDR_20' ) end [2025-03-09 12:58:18] Production.INFO: ProcessCDR(1,14642337,1,1,2) [2025-03-09 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642337', 'tblTempUsageDetail_20' ) start [2025-03-09 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642337', 'tblTempUsageDetail_20' ) end [2025-03-09 12:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:58:21] Production.INFO: ==20246== Releasing lock... [2025-03-09 12:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 09:59:05 [end_date_ymd] => 2025-03-09 12:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 09:59:05' and `end` < '2025-03-09 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-09 12:59:17] Production.INFO: count ==610 [2025-03-09 12:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 09:59:05 - End Time 2025-03-09 12:59:05 [2025-03-09 12:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642342', 'tblTempUsageDetail_20' ) start [2025-03-09 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642342', 'tblTempUsageDetail_20' ) end [2025-03-09 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642342', 'tblTempVendorCDR_20' ) start [2025-03-09 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642342', 'tblTempVendorCDR_20' ) end [2025-03-09 12:59:17] Production.INFO: ProcessCDR(1,14642342,1,1,2) [2025-03-09 12:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 12:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 12:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642342', 'tblTempUsageDetail_20' ) start [2025-03-09 12:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642342', 'tblTempUsageDetail_20' ) end [2025-03-09 12:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 12:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 12:59:20] Production.INFO: ==20328== Releasing lock... [2025-03-09 12:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 12:59:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:00:06 [end_date_ymd] => 2025-03-09 13:00:06 [RateCDR] => 1 ) [2025-03-09 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:00:06' and `end` < '2025-03-09 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:00:18] Production.INFO: count ==611 [2025-03-09 13:00:19] Production.ERROR: pbx CDR StartTime 2025-03-09 10:00:06 - End Time 2025-03-09 13:00:06 [2025-03-09 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642348', 'tblTempUsageDetail_20' ) start [2025-03-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642348', 'tblTempUsageDetail_20' ) end [2025-03-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642348', 'tblTempVendorCDR_20' ) start [2025-03-09 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642348', 'tblTempVendorCDR_20' ) end [2025-03-09 13:00:19] Production.INFO: ProcessCDR(1,14642348,1,1,2) [2025-03-09 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642348', 'tblTempUsageDetail_20' ) start [2025-03-09 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642348', 'tblTempUsageDetail_20' ) end [2025-03-09 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:00:23] Production.INFO: ==20406== Releasing lock... [2025-03-09 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:00:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:01:05 [end_date_ymd] => 2025-03-09 13:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:01:05' and `end` < '2025-03-09 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-09 13:01:17] Production.INFO: count ==631 [2025-03-09 13:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:01:05 - End Time 2025-03-09 13:01:05 [2025-03-09 13:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642353', 'tblTempUsageDetail_20' ) start [2025-03-09 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642353', 'tblTempUsageDetail_20' ) end [2025-03-09 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642353', 'tblTempVendorCDR_20' ) start [2025-03-09 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642353', 'tblTempVendorCDR_20' ) end [2025-03-09 13:01:17] Production.INFO: ProcessCDR(1,14642353,1,1,2) [2025-03-09 13:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642353', 'tblTempUsageDetail_20' ) start [2025-03-09 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642353', 'tblTempUsageDetail_20' ) end [2025-03-09 13:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:01:22] Production.INFO: ==20499== Releasing lock... [2025-03-09 13:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:01:22] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:02:05 [end_date_ymd] => 2025-03-09 13:02:05 [RateCDR] => 1 ) [2025-03-09 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:02:05' and `end` < '2025-03-09 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:02:18] Production.INFO: count ==631 [2025-03-09 13:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:02:05 - End Time 2025-03-09 13:02:05 [2025-03-09 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642358', 'tblTempUsageDetail_20' ) start [2025-03-09 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642358', 'tblTempUsageDetail_20' ) end [2025-03-09 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642358', 'tblTempVendorCDR_20' ) start [2025-03-09 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642358', 'tblTempVendorCDR_20' ) end [2025-03-09 13:02:18] Production.INFO: ProcessCDR(1,14642358,1,1,2) [2025-03-09 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642358', 'tblTempUsageDetail_20' ) start [2025-03-09 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642358', 'tblTempUsageDetail_20' ) end [2025-03-09 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:02:23] Production.INFO: ==20573== Releasing lock... [2025-03-09 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:02:23] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:03:05 [end_date_ymd] => 2025-03-09 13:03:05 [RateCDR] => 1 ) [2025-03-09 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:03:05' and `end` < '2025-03-09 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:03:17] Production.INFO: count ==635 [2025-03-09 13:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:03:05 - End Time 2025-03-09 13:03:05 [2025-03-09 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642363', 'tblTempUsageDetail_20' ) start [2025-03-09 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642363', 'tblTempUsageDetail_20' ) end [2025-03-09 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642363', 'tblTempVendorCDR_20' ) start [2025-03-09 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642363', 'tblTempVendorCDR_20' ) end [2025-03-09 13:03:18] Production.INFO: ProcessCDR(1,14642363,1,1,2) [2025-03-09 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642363', 'tblTempUsageDetail_20' ) start [2025-03-09 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642363', 'tblTempUsageDetail_20' ) end [2025-03-09 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:03:23] Production.INFO: ==20686== Releasing lock... [2025-03-09 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:03:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:04:06 [end_date_ymd] => 2025-03-09 13:04:06 [RateCDR] => 1 ) [2025-03-09 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-09 10:04:06' and `end` < '2025-03-09 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-09 13:04:18] Production.INFO: count ==642 [2025-03-09 13:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:04:06 - End Time 2025-03-09 13:04:06 [2025-03-09 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642368', 'tblTempUsageDetail_20' ) start [2025-03-09 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642368', 'tblTempUsageDetail_20' ) end [2025-03-09 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642368', 'tblTempVendorCDR_20' ) start [2025-03-09 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642368', 'tblTempVendorCDR_20' ) end [2025-03-09 13:04:18] Production.INFO: ProcessCDR(1,14642368,1,1,2) [2025-03-09 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642368', 'tblTempUsageDetail_20' ) start [2025-03-09 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642368', 'tblTempUsageDetail_20' ) end [2025-03-09 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:04:23] Production.INFO: ==20764== Releasing lock... [2025-03-09 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:04:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:05:05 [end_date_ymd] => 2025-03-09 13:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:05:05' and `end` < '2025-03-09 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-09 13:05:17] Production.INFO: count ==661 [2025-03-09 13:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:05:05 - End Time 2025-03-09 13:05:05 [2025-03-09 13:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642373', 'tblTempUsageDetail_20' ) start [2025-03-09 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642373', 'tblTempUsageDetail_20' ) end [2025-03-09 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642373', 'tblTempVendorCDR_20' ) start [2025-03-09 13:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642373', 'tblTempVendorCDR_20' ) end [2025-03-09 13:05:17] Production.INFO: ProcessCDR(1,14642373,1,1,2) [2025-03-09 13:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642373', 'tblTempUsageDetail_20' ) start [2025-03-09 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642373', 'tblTempUsageDetail_20' ) end [2025-03-09 13:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:05:22] Production.INFO: ==20840== Releasing lock... [2025-03-09 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:05:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:06:05 [end_date_ymd] => 2025-03-09 13:06:05 [RateCDR] => 1 ) [2025-03-09 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:06:05' and `end` < '2025-03-09 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:06:17] Production.INFO: count ==662 [2025-03-09 13:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:06:05 - End Time 2025-03-09 13:06:05 [2025-03-09 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642378', 'tblTempUsageDetail_20' ) start [2025-03-09 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642378', 'tblTempUsageDetail_20' ) end [2025-03-09 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642378', 'tblTempVendorCDR_20' ) start [2025-03-09 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642378', 'tblTempVendorCDR_20' ) end [2025-03-09 13:06:18] Production.INFO: ProcessCDR(1,14642378,1,1,2) [2025-03-09 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642378', 'tblTempUsageDetail_20' ) start [2025-03-09 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642378', 'tblTempUsageDetail_20' ) end [2025-03-09 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:06:23] Production.INFO: ==20914== Releasing lock... [2025-03-09 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:07:05 [end_date_ymd] => 2025-03-09 13:07:05 [RateCDR] => 1 ) [2025-03-09 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:07:05' and `end` < '2025-03-09 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:07:17] Production.INFO: count ==679 [2025-03-09 13:07:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:07:05 - End Time 2025-03-09 13:07:05 [2025-03-09 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642383', 'tblTempUsageDetail_20' ) start [2025-03-09 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642383', 'tblTempUsageDetail_20' ) end [2025-03-09 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642383', 'tblTempVendorCDR_20' ) start [2025-03-09 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642383', 'tblTempVendorCDR_20' ) end [2025-03-09 13:07:18] Production.INFO: ProcessCDR(1,14642383,1,1,2) [2025-03-09 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642383', 'tblTempUsageDetail_20' ) start [2025-03-09 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642383', 'tblTempUsageDetail_20' ) end [2025-03-09 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:07:23] Production.INFO: ==20992== Releasing lock... [2025-03-09 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:07:23] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:08:05 [end_date_ymd] => 2025-03-09 13:08:05 [RateCDR] => 1 ) [2025-03-09 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:08:05' and `end` < '2025-03-09 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:08:18] Production.INFO: count ==682 [2025-03-09 13:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:08:05 - End Time 2025-03-09 13:08:05 [2025-03-09 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642388', 'tblTempUsageDetail_20' ) start [2025-03-09 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642388', 'tblTempUsageDetail_20' ) end [2025-03-09 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642388', 'tblTempVendorCDR_20' ) start [2025-03-09 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642388', 'tblTempVendorCDR_20' ) end [2025-03-09 13:08:18] Production.INFO: ProcessCDR(1,14642388,1,1,2) [2025-03-09 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642388', 'tblTempUsageDetail_20' ) start [2025-03-09 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642388', 'tblTempUsageDetail_20' ) end [2025-03-09 13:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:08:21] Production.INFO: ==21066== Releasing lock... [2025-03-09 13:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:09:05 [end_date_ymd] => 2025-03-09 13:09:05 [RateCDR] => 1 ) [2025-03-09 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:09:05' and `end` < '2025-03-09 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:09:17] Production.INFO: count ==677 [2025-03-09 13:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:09:05 - End Time 2025-03-09 13:09:05 [2025-03-09 13:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642393', 'tblTempUsageDetail_20' ) start [2025-03-09 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642393', 'tblTempUsageDetail_20' ) end [2025-03-09 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642393', 'tblTempVendorCDR_20' ) start [2025-03-09 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642393', 'tblTempVendorCDR_20' ) end [2025-03-09 13:09:17] Production.INFO: ProcessCDR(1,14642393,1,1,2) [2025-03-09 13:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642393', 'tblTempUsageDetail_20' ) start [2025-03-09 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642393', 'tblTempUsageDetail_20' ) end [2025-03-09 13:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:09:22] Production.INFO: ==21144== Releasing lock... [2025-03-09 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:10:06 [end_date_ymd] => 2025-03-09 13:10:06 [RateCDR] => 1 ) [2025-03-09 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:10:06' and `end` < '2025-03-09 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:10:19] Production.INFO: count ==677 [2025-03-09 13:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 10:10:06 - End Time 2025-03-09 13:10:06 [2025-03-09 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642399', 'tblTempUsageDetail_20' ) start [2025-03-09 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642399', 'tblTempUsageDetail_20' ) end [2025-03-09 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642399', 'tblTempVendorCDR_20' ) start [2025-03-09 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642399', 'tblTempVendorCDR_20' ) end [2025-03-09 13:10:19] Production.INFO: ProcessCDR(1,14642399,1,1,2) [2025-03-09 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642399', 'tblTempUsageDetail_20' ) start [2025-03-09 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642399', 'tblTempUsageDetail_20' ) end [2025-03-09 13:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:10:22] Production.INFO: ==21219== Releasing lock... [2025-03-09 13:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:11:05 [end_date_ymd] => 2025-03-09 13:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:11:05' and `end` < '2025-03-09 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-09 13:11:17] Production.INFO: count ==720 [2025-03-09 13:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:11:05 - End Time 2025-03-09 13:11:05 [2025-03-09 13:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642404', 'tblTempUsageDetail_20' ) start [2025-03-09 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642404', 'tblTempUsageDetail_20' ) end [2025-03-09 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642404', 'tblTempVendorCDR_20' ) start [2025-03-09 13:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642404', 'tblTempVendorCDR_20' ) end [2025-03-09 13:11:17] Production.INFO: ProcessCDR(1,14642404,1,1,2) [2025-03-09 13:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642404', 'tblTempUsageDetail_20' ) start [2025-03-09 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642404', 'tblTempUsageDetail_20' ) end [2025-03-09 13:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:11:23] Production.INFO: ==21292== Releasing lock... [2025-03-09 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:11:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:12:06 [end_date_ymd] => 2025-03-09 13:12:06 [RateCDR] => 1 ) [2025-03-09 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:12:06' and `end` < '2025-03-09 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:12:18] Production.INFO: count ==724 [2025-03-09 13:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:12:06 - End Time 2025-03-09 13:12:06 [2025-03-09 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642409', 'tblTempUsageDetail_20' ) start [2025-03-09 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642409', 'tblTempUsageDetail_20' ) end [2025-03-09 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642409', 'tblTempVendorCDR_20' ) start [2025-03-09 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642409', 'tblTempVendorCDR_20' ) end [2025-03-09 13:12:18] Production.INFO: ProcessCDR(1,14642409,1,1,2) [2025-03-09 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642409', 'tblTempUsageDetail_20' ) start [2025-03-09 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642409', 'tblTempUsageDetail_20' ) end [2025-03-09 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:12:23] Production.INFO: ==21364== Releasing lock... [2025-03-09 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:12:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:13:05 [end_date_ymd] => 2025-03-09 13:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:13:05' and `end` < '2025-03-09 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-09 13:13:17] Production.INFO: count ==729 [2025-03-09 13:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:13:05 - End Time 2025-03-09 13:13:05 [2025-03-09 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642414', 'tblTempUsageDetail_20' ) start [2025-03-09 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642414', 'tblTempUsageDetail_20' ) end [2025-03-09 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642414', 'tblTempVendorCDR_20' ) start [2025-03-09 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642414', 'tblTempVendorCDR_20' ) end [2025-03-09 13:13:18] Production.INFO: ProcessCDR(1,14642414,1,1,2) [2025-03-09 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642414', 'tblTempUsageDetail_20' ) start [2025-03-09 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642414', 'tblTempUsageDetail_20' ) end [2025-03-09 13:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:13:21] Production.INFO: ==21436== Releasing lock... [2025-03-09 13:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:13:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:14:05 [end_date_ymd] => 2025-03-09 13:14:05 [RateCDR] => 1 ) [2025-03-09 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:14:05' and `end` < '2025-03-09 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:14:17] Production.INFO: count ==731 [2025-03-09 13:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:14:05 - End Time 2025-03-09 13:14:05 [2025-03-09 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642419', 'tblTempUsageDetail_20' ) start [2025-03-09 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642419', 'tblTempUsageDetail_20' ) end [2025-03-09 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642419', 'tblTempVendorCDR_20' ) start [2025-03-09 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642419', 'tblTempVendorCDR_20' ) end [2025-03-09 13:14:18] Production.INFO: ProcessCDR(1,14642419,1,1,2) [2025-03-09 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642419', 'tblTempUsageDetail_20' ) start [2025-03-09 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642419', 'tblTempUsageDetail_20' ) end [2025-03-09 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:14:23] Production.INFO: ==21507== Releasing lock... [2025-03-09 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:14:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:15:06 [end_date_ymd] => 2025-03-09 13:15:06 [RateCDR] => 1 ) [2025-03-09 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:15:06' and `end` < '2025-03-09 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:15:18] Production.INFO: count ==724 [2025-03-09 13:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:15:06 - End Time 2025-03-09 13:15:06 [2025-03-09 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642424', 'tblTempUsageDetail_20' ) start [2025-03-09 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642424', 'tblTempUsageDetail_20' ) end [2025-03-09 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642424', 'tblTempVendorCDR_20' ) start [2025-03-09 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642424', 'tblTempVendorCDR_20' ) end [2025-03-09 13:15:18] Production.INFO: ProcessCDR(1,14642424,1,1,2) [2025-03-09 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642424', 'tblTempUsageDetail_20' ) start [2025-03-09 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642424', 'tblTempUsageDetail_20' ) end [2025-03-09 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:15:22] Production.INFO: ==21579== Releasing lock... [2025-03-09 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:15:22] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:16:06 [end_date_ymd] => 2025-03-09 13:16:06 [RateCDR] => 1 ) [2025-03-09 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-09 10:16:06' and `end` < '2025-03-09 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-09 13:16:18] Production.INFO: count ==716 [2025-03-09 13:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:16:06 - End Time 2025-03-09 13:16:06 [2025-03-09 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642429', 'tblTempUsageDetail_20' ) start [2025-03-09 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642429', 'tblTempUsageDetail_20' ) end [2025-03-09 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642429', 'tblTempVendorCDR_20' ) start [2025-03-09 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642429', 'tblTempVendorCDR_20' ) end [2025-03-09 13:16:18] Production.INFO: ProcessCDR(1,14642429,1,1,2) [2025-03-09 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642429', 'tblTempUsageDetail_20' ) start [2025-03-09 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642429', 'tblTempUsageDetail_20' ) end [2025-03-09 13:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:16:24] Production.INFO: ==21651== Releasing lock... [2025-03-09 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:16:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:17:06 [end_date_ymd] => 2025-03-09 13:17:06 [RateCDR] => 1 ) [2025-03-09 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-09 10:17:06' and `end` < '2025-03-09 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-09 13:17:18] Production.INFO: count ==717 [2025-03-09 13:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:17:06 - End Time 2025-03-09 13:17:06 [2025-03-09 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642434', 'tblTempUsageDetail_20' ) start [2025-03-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642434', 'tblTempUsageDetail_20' ) end [2025-03-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642434', 'tblTempVendorCDR_20' ) start [2025-03-09 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642434', 'tblTempVendorCDR_20' ) end [2025-03-09 13:17:18] Production.INFO: ProcessCDR(1,14642434,1,1,2) [2025-03-09 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642434', 'tblTempUsageDetail_20' ) start [2025-03-09 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642434', 'tblTempUsageDetail_20' ) end [2025-03-09 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:17:23] Production.INFO: ==21722== Releasing lock... [2025-03-09 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:18:06 [end_date_ymd] => 2025-03-09 13:18:06 [RateCDR] => 1 ) [2025-03-09 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-09 10:18:06' and `end` < '2025-03-09 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-09 13:18:18] Production.INFO: count ==718 [2025-03-09 13:18:19] Production.ERROR: pbx CDR StartTime 2025-03-09 10:18:06 - End Time 2025-03-09 13:18:06 [2025-03-09 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642439', 'tblTempUsageDetail_20' ) start [2025-03-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642439', 'tblTempUsageDetail_20' ) end [2025-03-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642439', 'tblTempVendorCDR_20' ) start [2025-03-09 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642439', 'tblTempVendorCDR_20' ) end [2025-03-09 13:18:19] Production.INFO: ProcessCDR(1,14642439,1,1,2) [2025-03-09 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642439', 'tblTempUsageDetail_20' ) start [2025-03-09 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642439', 'tblTempUsageDetail_20' ) end [2025-03-09 13:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:18:24] Production.INFO: ==21822== Releasing lock... [2025-03-09 13:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:18:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:19:05 [end_date_ymd] => 2025-03-09 13:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:19:05' and `end` < '2025-03-09 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-09 13:19:17] Production.INFO: count ==719 [2025-03-09 13:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:19:05 - End Time 2025-03-09 13:19:05 [2025-03-09 13:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642444', 'tblTempUsageDetail_20' ) start [2025-03-09 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642444', 'tblTempUsageDetail_20' ) end [2025-03-09 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642444', 'tblTempVendorCDR_20' ) start [2025-03-09 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642444', 'tblTempVendorCDR_20' ) end [2025-03-09 13:19:17] Production.INFO: ProcessCDR(1,14642444,1,1,2) [2025-03-09 13:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642444', 'tblTempUsageDetail_20' ) start [2025-03-09 13:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642444', 'tblTempUsageDetail_20' ) end [2025-03-09 13:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:19:22] Production.INFO: ==21933== Releasing lock... [2025-03-09 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:20:06 [end_date_ymd] => 2025-03-09 13:20:06 [RateCDR] => 1 ) [2025-03-09 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:20:06' and `end` < '2025-03-09 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:20:18] Production.INFO: count ==719 [2025-03-09 13:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:20:06 - End Time 2025-03-09 13:20:06 [2025-03-09 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642449', 'tblTempUsageDetail_20' ) start [2025-03-09 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642449', 'tblTempUsageDetail_20' ) end [2025-03-09 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642449', 'tblTempVendorCDR_20' ) start [2025-03-09 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642449', 'tblTempVendorCDR_20' ) end [2025-03-09 13:20:18] Production.INFO: ProcessCDR(1,14642449,1,1,2) [2025-03-09 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642449', 'tblTempUsageDetail_20' ) start [2025-03-09 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642449', 'tblTempUsageDetail_20' ) end [2025-03-09 13:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:20:23] Production.INFO: ==22006== Releasing lock... [2025-03-09 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:21:05 [end_date_ymd] => 2025-03-09 13:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:21:05' and `end` < '2025-03-09 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-09 13:21:17] Production.INFO: count ==734 [2025-03-09 13:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:21:05 - End Time 2025-03-09 13:21:05 [2025-03-09 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642455', 'tblTempUsageDetail_20' ) start [2025-03-09 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642455', 'tblTempUsageDetail_20' ) end [2025-03-09 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642455', 'tblTempVendorCDR_20' ) start [2025-03-09 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642455', 'tblTempVendorCDR_20' ) end [2025-03-09 13:21:18] Production.INFO: ProcessCDR(1,14642455,1,1,2) [2025-03-09 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642455', 'tblTempUsageDetail_20' ) start [2025-03-09 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642455', 'tblTempUsageDetail_20' ) end [2025-03-09 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:21:23] Production.INFO: ==22080== Releasing lock... [2025-03-09 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:21:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:22:05 [end_date_ymd] => 2025-03-09 13:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:22:05' and `end` < '2025-03-09 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-09 13:22:17] Production.INFO: count ==739 [2025-03-09 13:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:22:05 - End Time 2025-03-09 13:22:05 [2025-03-09 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642460', 'tblTempUsageDetail_20' ) start [2025-03-09 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642460', 'tblTempUsageDetail_20' ) end [2025-03-09 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642460', 'tblTempVendorCDR_20' ) start [2025-03-09 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642460', 'tblTempVendorCDR_20' ) end [2025-03-09 13:22:18] Production.INFO: ProcessCDR(1,14642460,1,1,2) [2025-03-09 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642460', 'tblTempUsageDetail_20' ) start [2025-03-09 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642460', 'tblTempUsageDetail_20' ) end [2025-03-09 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:22:23] Production.INFO: ==22151== Releasing lock... [2025-03-09 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:22:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:23:05 [end_date_ymd] => 2025-03-09 13:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:23:05' and `end` < '2025-03-09 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-09 13:23:17] Production.INFO: count ==740 [2025-03-09 13:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:23:05 - End Time 2025-03-09 13:23:05 [2025-03-09 13:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642465', 'tblTempUsageDetail_20' ) start [2025-03-09 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642465', 'tblTempUsageDetail_20' ) end [2025-03-09 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642465', 'tblTempVendorCDR_20' ) start [2025-03-09 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642465', 'tblTempVendorCDR_20' ) end [2025-03-09 13:23:17] Production.INFO: ProcessCDR(1,14642465,1,1,2) [2025-03-09 13:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642465', 'tblTempUsageDetail_20' ) start [2025-03-09 13:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642465', 'tblTempUsageDetail_20' ) end [2025-03-09 13:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:23:21] Production.INFO: ==22225== Releasing lock... [2025-03-09 13:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:23:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:24:05 [end_date_ymd] => 2025-03-09 13:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:24:05' and `end` < '2025-03-09 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-09 13:24:17] Production.INFO: count ==739 [2025-03-09 13:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:24:05 - End Time 2025-03-09 13:24:05 [2025-03-09 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642470', 'tblTempUsageDetail_20' ) start [2025-03-09 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642470', 'tblTempUsageDetail_20' ) end [2025-03-09 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642470', 'tblTempVendorCDR_20' ) start [2025-03-09 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642470', 'tblTempVendorCDR_20' ) end [2025-03-09 13:24:18] Production.INFO: ProcessCDR(1,14642470,1,1,2) [2025-03-09 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642470', 'tblTempUsageDetail_20' ) start [2025-03-09 13:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642470', 'tblTempUsageDetail_20' ) end [2025-03-09 13:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:24:21] Production.INFO: ==22295== Releasing lock... [2025-03-09 13:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:24:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:25:05 [end_date_ymd] => 2025-03-09 13:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:25:05' and `end` < '2025-03-09 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-09 13:25:17] Production.INFO: count ==745 [2025-03-09 13:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:25:05 - End Time 2025-03-09 13:25:05 [2025-03-09 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642475', 'tblTempUsageDetail_20' ) start [2025-03-09 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642475', 'tblTempUsageDetail_20' ) end [2025-03-09 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642475', 'tblTempVendorCDR_20' ) start [2025-03-09 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642475', 'tblTempVendorCDR_20' ) end [2025-03-09 13:25:17] Production.INFO: ProcessCDR(1,14642475,1,1,2) [2025-03-09 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642475', 'tblTempUsageDetail_20' ) start [2025-03-09 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642475', 'tblTempUsageDetail_20' ) end [2025-03-09 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:25:22] Production.INFO: ==22365== Releasing lock... [2025-03-09 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:25:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:26:05 [end_date_ymd] => 2025-03-09 13:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:26:05' and `end` < '2025-03-09 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-09 13:26:17] Production.INFO: count ==745 [2025-03-09 13:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:26:05 - End Time 2025-03-09 13:26:05 [2025-03-09 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642480', 'tblTempUsageDetail_20' ) start [2025-03-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642480', 'tblTempUsageDetail_20' ) end [2025-03-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642480', 'tblTempVendorCDR_20' ) start [2025-03-09 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642480', 'tblTempVendorCDR_20' ) end [2025-03-09 13:26:18] Production.INFO: ProcessCDR(1,14642480,1,1,2) [2025-03-09 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642480', 'tblTempUsageDetail_20' ) start [2025-03-09 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642480', 'tblTempUsageDetail_20' ) end [2025-03-09 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:26:22] Production.INFO: ==22439== Releasing lock... [2025-03-09 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:26:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:27:05 [end_date_ymd] => 2025-03-09 13:27:05 [RateCDR] => 1 ) [2025-03-09 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:27:05' and `end` < '2025-03-09 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:27:17] Production.INFO: count ==747 [2025-03-09 13:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:27:05 - End Time 2025-03-09 13:27:05 [2025-03-09 13:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642485', 'tblTempUsageDetail_20' ) start [2025-03-09 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642485', 'tblTempUsageDetail_20' ) end [2025-03-09 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642485', 'tblTempVendorCDR_20' ) start [2025-03-09 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642485', 'tblTempVendorCDR_20' ) end [2025-03-09 13:27:17] Production.INFO: ProcessCDR(1,14642485,1,1,2) [2025-03-09 13:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642485', 'tblTempUsageDetail_20' ) start [2025-03-09 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642485', 'tblTempUsageDetail_20' ) end [2025-03-09 13:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:27:21] Production.INFO: ==22513== Releasing lock... [2025-03-09 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:28:05 [end_date_ymd] => 2025-03-09 13:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:28:05' and `end` < '2025-03-09 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-09 13:28:17] Production.INFO: count ==750 [2025-03-09 13:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:28:05 - End Time 2025-03-09 13:28:05 [2025-03-09 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642490', 'tblTempUsageDetail_20' ) start [2025-03-09 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642490', 'tblTempUsageDetail_20' ) end [2025-03-09 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642490', 'tblTempVendorCDR_20' ) start [2025-03-09 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642490', 'tblTempVendorCDR_20' ) end [2025-03-09 13:28:18] Production.INFO: ProcessCDR(1,14642490,1,1,2) [2025-03-09 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642490', 'tblTempUsageDetail_20' ) start [2025-03-09 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642490', 'tblTempUsageDetail_20' ) end [2025-03-09 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:28:23] Production.INFO: ==22582== Releasing lock... [2025-03-09 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:28:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:29:05 [end_date_ymd] => 2025-03-09 13:29:05 [RateCDR] => 1 ) [2025-03-09 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:29:05' and `end` < '2025-03-09 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:29:17] Production.INFO: count ==755 [2025-03-09 13:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:29:05 - End Time 2025-03-09 13:29:05 [2025-03-09 13:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642495', 'tblTempUsageDetail_20' ) start [2025-03-09 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642495', 'tblTempUsageDetail_20' ) end [2025-03-09 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642495', 'tblTempVendorCDR_20' ) start [2025-03-09 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642495', 'tblTempVendorCDR_20' ) end [2025-03-09 13:29:17] Production.INFO: ProcessCDR(1,14642495,1,1,2) [2025-03-09 13:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642495', 'tblTempUsageDetail_20' ) start [2025-03-09 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642495', 'tblTempUsageDetail_20' ) end [2025-03-09 13:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:29:22] Production.INFO: ==22652== Releasing lock... [2025-03-09 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:29:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:30:05 [end_date_ymd] => 2025-03-09 13:30:05 [RateCDR] => 1 ) [2025-03-09 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:30:05' and `end` < '2025-03-09 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:30:18] Production.INFO: count ==752 [2025-03-09 13:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:30:05 - End Time 2025-03-09 13:30:05 [2025-03-09 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642500', 'tblTempUsageDetail_20' ) start [2025-03-09 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642500', 'tblTempUsageDetail_20' ) end [2025-03-09 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642500', 'tblTempVendorCDR_20' ) start [2025-03-09 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642500', 'tblTempVendorCDR_20' ) end [2025-03-09 13:30:18] Production.INFO: ProcessCDR(1,14642500,1,1,2) [2025-03-09 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642500', 'tblTempUsageDetail_20' ) start [2025-03-09 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642500', 'tblTempUsageDetail_20' ) end [2025-03-09 13:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:30:23] Production.INFO: ==22731== Releasing lock... [2025-03-09 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:30:23] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:31:05 [end_date_ymd] => 2025-03-09 13:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:31:05' and `end` < '2025-03-09 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-09 13:31:17] Production.INFO: count ==799 [2025-03-09 13:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:31:05 - End Time 2025-03-09 13:31:05 [2025-03-09 13:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642506', 'tblTempUsageDetail_20' ) start [2025-03-09 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642506', 'tblTempUsageDetail_20' ) end [2025-03-09 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642506', 'tblTempVendorCDR_20' ) start [2025-03-09 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642506', 'tblTempVendorCDR_20' ) end [2025-03-09 13:31:17] Production.INFO: ProcessCDR(1,14642506,1,1,2) [2025-03-09 13:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642506', 'tblTempUsageDetail_20' ) start [2025-03-09 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642506', 'tblTempUsageDetail_20' ) end [2025-03-09 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:31:22] Production.INFO: ==22803== Releasing lock... [2025-03-09 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:32:04 [end_date_ymd] => 2025-03-09 13:32:04 [RateCDR] => 1 ) [2025-03-09 13:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:32:04' and `end` < '2025-03-09 13:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:32:17] Production.INFO: count ==809 [2025-03-09 13:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:32:04 - End Time 2025-03-09 13:32:04 [2025-03-09 13:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642510', 'tblTempUsageDetail_20' ) start [2025-03-09 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642510', 'tblTempUsageDetail_20' ) end [2025-03-09 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642510', 'tblTempVendorCDR_20' ) start [2025-03-09 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642510', 'tblTempVendorCDR_20' ) end [2025-03-09 13:32:17] Production.INFO: ProcessCDR(1,14642510,1,1,2) [2025-03-09 13:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642510', 'tblTempUsageDetail_20' ) start [2025-03-09 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642510', 'tblTempUsageDetail_20' ) end [2025-03-09 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:32:22] Production.INFO: ==22878== Releasing lock... [2025-03-09 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:33:06 [end_date_ymd] => 2025-03-09 13:33:06 [RateCDR] => 1 ) [2025-03-09 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:33:06' and `end` < '2025-03-09 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:33:18] Production.INFO: count ==812 [2025-03-09 13:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:33:06 - End Time 2025-03-09 13:33:06 [2025-03-09 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642516', 'tblTempUsageDetail_20' ) start [2025-03-09 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642516', 'tblTempUsageDetail_20' ) end [2025-03-09 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642516', 'tblTempVendorCDR_20' ) start [2025-03-09 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642516', 'tblTempVendorCDR_20' ) end [2025-03-09 13:33:18] Production.INFO: ProcessCDR(1,14642516,1,1,2) [2025-03-09 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642516', 'tblTempUsageDetail_20' ) start [2025-03-09 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642516', 'tblTempUsageDetail_20' ) end [2025-03-09 13:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:33:21] Production.INFO: ==22954== Releasing lock... [2025-03-09 13:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:34:05 [end_date_ymd] => 2025-03-09 13:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:34:05' and `end` < '2025-03-09 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-09 13:34:17] Production.INFO: count ==814 [2025-03-09 13:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:34:05 - End Time 2025-03-09 13:34:05 [2025-03-09 13:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642521', 'tblTempUsageDetail_20' ) start [2025-03-09 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642521', 'tblTempUsageDetail_20' ) end [2025-03-09 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642521', 'tblTempVendorCDR_20' ) start [2025-03-09 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642521', 'tblTempVendorCDR_20' ) end [2025-03-09 13:34:17] Production.INFO: ProcessCDR(1,14642521,1,1,2) [2025-03-09 13:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642521', 'tblTempUsageDetail_20' ) start [2025-03-09 13:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642521', 'tblTempUsageDetail_20' ) end [2025-03-09 13:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:34:20] Production.INFO: ==23065== Releasing lock... [2025-03-09 13:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:34:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:35:05 [end_date_ymd] => 2025-03-09 13:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:35:05' and `end` < '2025-03-09 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-09 13:35:17] Production.INFO: count ==817 [2025-03-09 13:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:35:05 - End Time 2025-03-09 13:35:05 [2025-03-09 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642526', 'tblTempUsageDetail_20' ) start [2025-03-09 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642526', 'tblTempUsageDetail_20' ) end [2025-03-09 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642526', 'tblTempVendorCDR_20' ) start [2025-03-09 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642526', 'tblTempVendorCDR_20' ) end [2025-03-09 13:35:18] Production.INFO: ProcessCDR(1,14642526,1,1,2) [2025-03-09 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642526', 'tblTempUsageDetail_20' ) start [2025-03-09 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642526', 'tblTempUsageDetail_20' ) end [2025-03-09 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:35:23] Production.INFO: ==23135== Releasing lock... [2025-03-09 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:35:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:36:05 [end_date_ymd] => 2025-03-09 13:36:05 [RateCDR] => 1 ) [2025-03-09 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:36:05' and `end` < '2025-03-09 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:36:17] Production.INFO: count ==820 [2025-03-09 13:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:36:05 - End Time 2025-03-09 13:36:05 [2025-03-09 13:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642531', 'tblTempUsageDetail_20' ) start [2025-03-09 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642531', 'tblTempUsageDetail_20' ) end [2025-03-09 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642531', 'tblTempVendorCDR_20' ) start [2025-03-09 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642531', 'tblTempVendorCDR_20' ) end [2025-03-09 13:36:17] Production.INFO: ProcessCDR(1,14642531,1,1,2) [2025-03-09 13:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642531', 'tblTempUsageDetail_20' ) start [2025-03-09 13:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642531', 'tblTempUsageDetail_20' ) end [2025-03-09 13:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:36:20] Production.INFO: ==23207== Releasing lock... [2025-03-09 13:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:36:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:37:05 [end_date_ymd] => 2025-03-09 13:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:37:05' and `end` < '2025-03-09 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-09 13:37:17] Production.INFO: count ==816 [2025-03-09 13:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:37:05 - End Time 2025-03-09 13:37:05 [2025-03-09 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642536', 'tblTempUsageDetail_20' ) start [2025-03-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642536', 'tblTempUsageDetail_20' ) end [2025-03-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642536', 'tblTempVendorCDR_20' ) start [2025-03-09 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642536', 'tblTempVendorCDR_20' ) end [2025-03-09 13:37:18] Production.INFO: ProcessCDR(1,14642536,1,1,2) [2025-03-09 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642536', 'tblTempUsageDetail_20' ) start [2025-03-09 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642536', 'tblTempUsageDetail_20' ) end [2025-03-09 13:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:37:21] Production.INFO: ==23284== Releasing lock... [2025-03-09 13:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:37:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:38:05 [end_date_ymd] => 2025-03-09 13:38:05 [RateCDR] => 1 ) [2025-03-09 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:38:05' and `end` < '2025-03-09 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:38:17] Production.INFO: count ==817 [2025-03-09 13:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:38:05 - End Time 2025-03-09 13:38:05 [2025-03-09 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642541', 'tblTempUsageDetail_20' ) start [2025-03-09 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642541', 'tblTempUsageDetail_20' ) end [2025-03-09 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642541', 'tblTempVendorCDR_20' ) start [2025-03-09 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642541', 'tblTempVendorCDR_20' ) end [2025-03-09 13:38:18] Production.INFO: ProcessCDR(1,14642541,1,1,2) [2025-03-09 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642541', 'tblTempUsageDetail_20' ) start [2025-03-09 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642541', 'tblTempUsageDetail_20' ) end [2025-03-09 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:38:22] Production.INFO: ==23374== Releasing lock... [2025-03-09 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:39:05 [end_date_ymd] => 2025-03-09 13:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:39:05' and `end` < '2025-03-09 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-09 13:39:17] Production.INFO: count ==821 [2025-03-09 13:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:39:05 - End Time 2025-03-09 13:39:05 [2025-03-09 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642546', 'tblTempUsageDetail_20' ) start [2025-03-09 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642546', 'tblTempUsageDetail_20' ) end [2025-03-09 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642546', 'tblTempVendorCDR_20' ) start [2025-03-09 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642546', 'tblTempVendorCDR_20' ) end [2025-03-09 13:39:18] Production.INFO: ProcessCDR(1,14642546,1,1,2) [2025-03-09 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642546', 'tblTempUsageDetail_20' ) start [2025-03-09 13:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642546', 'tblTempUsageDetail_20' ) end [2025-03-09 13:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:39:21] Production.INFO: ==23463== Releasing lock... [2025-03-09 13:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:39:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:40:05 [end_date_ymd] => 2025-03-09 13:40:05 [RateCDR] => 1 ) [2025-03-09 13: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-09 10:40:05' and `end` < '2025-03-09 13: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-09 13:40:17] Production.INFO: count ==824 [2025-03-09 13:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:40:05 - End Time 2025-03-09 13:40:05 [2025-03-09 13:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642552', 'tblTempUsageDetail_20' ) start [2025-03-09 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642552', 'tblTempUsageDetail_20' ) end [2025-03-09 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642552', 'tblTempVendorCDR_20' ) start [2025-03-09 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642552', 'tblTempVendorCDR_20' ) end [2025-03-09 13:40:18] Production.INFO: ProcessCDR(1,14642552,1,1,2) [2025-03-09 13:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642552', 'tblTempUsageDetail_20' ) start [2025-03-09 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642552', 'tblTempUsageDetail_20' ) end [2025-03-09 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:40:23] Production.INFO: ==23537== Releasing lock... [2025-03-09 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:40:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:41:05 [end_date_ymd] => 2025-03-09 13:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:41:05' and `end` < '2025-03-09 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-09 13:41:17] Production.INFO: count ==819 [2025-03-09 13:41:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:41:05 - End Time 2025-03-09 13:41:05 [2025-03-09 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642557', 'tblTempUsageDetail_20' ) start [2025-03-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642557', 'tblTempUsageDetail_20' ) end [2025-03-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642557', 'tblTempVendorCDR_20' ) start [2025-03-09 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642557', 'tblTempVendorCDR_20' ) end [2025-03-09 13:41:18] Production.INFO: ProcessCDR(1,14642557,1,1,2) [2025-03-09 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642557', 'tblTempUsageDetail_20' ) start [2025-03-09 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642557', 'tblTempUsageDetail_20' ) end [2025-03-09 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:41:21] Production.INFO: ==23613== Releasing lock... [2025-03-09 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:41:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:42:05 [end_date_ymd] => 2025-03-09 13:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:42:05' and `end` < '2025-03-09 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-09 13:42:17] Production.INFO: count ==820 [2025-03-09 13:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:42:05 - End Time 2025-03-09 13:42:05 [2025-03-09 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642562', 'tblTempUsageDetail_20' ) start [2025-03-09 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642562', 'tblTempUsageDetail_20' ) end [2025-03-09 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642562', 'tblTempVendorCDR_20' ) start [2025-03-09 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642562', 'tblTempVendorCDR_20' ) end [2025-03-09 13:42:18] Production.INFO: ProcessCDR(1,14642562,1,1,2) [2025-03-09 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642562', 'tblTempUsageDetail_20' ) start [2025-03-09 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642562', 'tblTempUsageDetail_20' ) end [2025-03-09 13:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:42:21] Production.INFO: ==23683== Releasing lock... [2025-03-09 13:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:42:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:43:05 [end_date_ymd] => 2025-03-09 13:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:43:05' and `end` < '2025-03-09 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-09 13:43:17] Production.INFO: count ==820 [2025-03-09 13:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:43:05 - End Time 2025-03-09 13:43:05 [2025-03-09 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642567', 'tblTempUsageDetail_20' ) start [2025-03-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642567', 'tblTempUsageDetail_20' ) end [2025-03-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642567', 'tblTempVendorCDR_20' ) start [2025-03-09 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642567', 'tblTempVendorCDR_20' ) end [2025-03-09 13:43:18] Production.INFO: ProcessCDR(1,14642567,1,1,2) [2025-03-09 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642567', 'tblTempUsageDetail_20' ) start [2025-03-09 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642567', 'tblTempUsageDetail_20' ) end [2025-03-09 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:43:21] Production.INFO: ==23754== Releasing lock... [2025-03-09 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:44:05 [end_date_ymd] => 2025-03-09 13:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:44:05' and `end` < '2025-03-09 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-09 13:44:17] Production.INFO: count ==823 [2025-03-09 13:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:44:05 - End Time 2025-03-09 13:44:05 [2025-03-09 13:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642572', 'tblTempUsageDetail_20' ) start [2025-03-09 13:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642572', 'tblTempUsageDetail_20' ) end [2025-03-09 13:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642572', 'tblTempVendorCDR_20' ) start [2025-03-09 13:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642572', 'tblTempVendorCDR_20' ) end [2025-03-09 13:44:17] Production.INFO: ProcessCDR(1,14642572,1,1,2) [2025-03-09 13:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642572', 'tblTempUsageDetail_20' ) start [2025-03-09 13:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642572', 'tblTempUsageDetail_20' ) end [2025-03-09 13:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:44:20] Production.INFO: ==23825== Releasing lock... [2025-03-09 13:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:44:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:45:05 [end_date_ymd] => 2025-03-09 13:45:05 [RateCDR] => 1 ) [2025-03-09 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:45:05' and `end` < '2025-03-09 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:45:17] Production.INFO: count ==823 [2025-03-09 13:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:45:05 - End Time 2025-03-09 13:45:05 [2025-03-09 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642577', 'tblTempUsageDetail_20' ) start [2025-03-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642577', 'tblTempUsageDetail_20' ) end [2025-03-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642577', 'tblTempVendorCDR_20' ) start [2025-03-09 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642577', 'tblTempVendorCDR_20' ) end [2025-03-09 13:45:18] Production.INFO: ProcessCDR(1,14642577,1,1,2) [2025-03-09 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642577', 'tblTempUsageDetail_20' ) start [2025-03-09 13:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642577', 'tblTempUsageDetail_20' ) end [2025-03-09 13:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:45:21] Production.INFO: ==23900== Releasing lock... [2025-03-09 13:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:46:06 [end_date_ymd] => 2025-03-09 13:46:06 [RateCDR] => 1 ) [2025-03-09 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:46:06' and `end` < '2025-03-09 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:46:18] Production.INFO: count ==824 [2025-03-09 13:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:46:06 - End Time 2025-03-09 13:46:06 [2025-03-09 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642582', 'tblTempUsageDetail_20' ) start [2025-03-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642582', 'tblTempUsageDetail_20' ) end [2025-03-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642582', 'tblTempVendorCDR_20' ) start [2025-03-09 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642582', 'tblTempVendorCDR_20' ) end [2025-03-09 13:46:18] Production.INFO: ProcessCDR(1,14642582,1,1,2) [2025-03-09 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642582', 'tblTempUsageDetail_20' ) start [2025-03-09 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642582', 'tblTempUsageDetail_20' ) end [2025-03-09 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:46:23] Production.INFO: ==23970== Releasing lock... [2025-03-09 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:46:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:47:05 [end_date_ymd] => 2025-03-09 13:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:47:05' and `end` < '2025-03-09 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-09 13:47:17] Production.INFO: count ==827 [2025-03-09 13:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:47:05 - End Time 2025-03-09 13:47:05 [2025-03-09 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642587', 'tblTempUsageDetail_20' ) start [2025-03-09 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642587', 'tblTempUsageDetail_20' ) end [2025-03-09 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642587', 'tblTempVendorCDR_20' ) start [2025-03-09 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642587', 'tblTempVendorCDR_20' ) end [2025-03-09 13:47:18] Production.INFO: ProcessCDR(1,14642587,1,1,2) [2025-03-09 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642587', 'tblTempUsageDetail_20' ) start [2025-03-09 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642587', 'tblTempUsageDetail_20' ) end [2025-03-09 13:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:47:21] Production.INFO: ==24043== Releasing lock... [2025-03-09 13:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:47:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:48:05 [end_date_ymd] => 2025-03-09 13:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:48:05' and `end` < '2025-03-09 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-09 13:48:17] Production.INFO: count ==827 [2025-03-09 13:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:48:05 - End Time 2025-03-09 13:48:05 [2025-03-09 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642592', 'tblTempUsageDetail_20' ) start [2025-03-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642592', 'tblTempUsageDetail_20' ) end [2025-03-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642592', 'tblTempVendorCDR_20' ) start [2025-03-09 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642592', 'tblTempVendorCDR_20' ) end [2025-03-09 13:48:18] Production.INFO: ProcessCDR(1,14642592,1,1,2) [2025-03-09 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642592', 'tblTempUsageDetail_20' ) start [2025-03-09 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642592', 'tblTempUsageDetail_20' ) end [2025-03-09 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:48:23] Production.INFO: ==24113== Releasing lock... [2025-03-09 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:48:23] Production.INFO: 35 MB #Memory Used# [2025-03-09 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:49:05 [end_date_ymd] => 2025-03-09 13:49:05 [RateCDR] => 1 ) [2025-03-09 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 10:49:05' and `end` < '2025-03-09 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:49:17] Production.INFO: count ==824 [2025-03-09 13:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:49:05 - End Time 2025-03-09 13:49:05 [2025-03-09 13:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642597', 'tblTempUsageDetail_20' ) start [2025-03-09 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642597', 'tblTempUsageDetail_20' ) end [2025-03-09 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642597', 'tblTempVendorCDR_20' ) start [2025-03-09 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642597', 'tblTempVendorCDR_20' ) end [2025-03-09 13:49:17] Production.INFO: ProcessCDR(1,14642597,1,1,2) [2025-03-09 13:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642597', 'tblTempUsageDetail_20' ) start [2025-03-09 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642597', 'tblTempUsageDetail_20' ) end [2025-03-09 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:49:22] Production.INFO: ==24224== Releasing lock... [2025-03-09 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:49:22] Production.INFO: 34 MB #Memory Used# [2025-03-09 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:50:06 [end_date_ymd] => 2025-03-09 13:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 10:50:06' and `end` < '2025-03-09 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-09 13:50:18] Production.INFO: count ==826 [2025-03-09 13:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:50:06 - End Time 2025-03-09 13:50:06 [2025-03-09 13:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642603', 'tblTempUsageDetail_20' ) start [2025-03-09 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642603', 'tblTempUsageDetail_20' ) end [2025-03-09 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642603', 'tblTempVendorCDR_20' ) start [2025-03-09 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642603', 'tblTempVendorCDR_20' ) end [2025-03-09 13:50:19] Production.INFO: ProcessCDR(1,14642603,1,1,2) [2025-03-09 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642603', 'tblTempUsageDetail_20' ) start [2025-03-09 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642603', 'tblTempUsageDetail_20' ) end [2025-03-09 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:50:22] Production.INFO: ==24298== Releasing lock... [2025-03-09 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:51:04 [end_date_ymd] => 2025-03-09 13:51:04 [RateCDR] => 1 ) [2025-03-09 13: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-09 10:51:04' and `end` < '2025-03-09 13: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-09 13:51:17] Production.INFO: count ==814 [2025-03-09 13:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:51:04 - End Time 2025-03-09 13:51:04 [2025-03-09 13:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642608', 'tblTempUsageDetail_20' ) start [2025-03-09 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642608', 'tblTempUsageDetail_20' ) end [2025-03-09 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642608', 'tblTempVendorCDR_20' ) start [2025-03-09 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642608', 'tblTempVendorCDR_20' ) end [2025-03-09 13:51:17] Production.INFO: ProcessCDR(1,14642608,1,1,2) [2025-03-09 13:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642608', 'tblTempUsageDetail_20' ) start [2025-03-09 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642608', 'tblTempUsageDetail_20' ) end [2025-03-09 13:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:51:21] Production.INFO: ==24372== Releasing lock... [2025-03-09 13:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:51:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:52:05 [end_date_ymd] => 2025-03-09 13:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:52:05' and `end` < '2025-03-09 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-09 13:52:18] Production.INFO: count ==816 [2025-03-09 13:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:52:05 - End Time 2025-03-09 13:52:05 [2025-03-09 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642613', 'tblTempUsageDetail_20' ) start [2025-03-09 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642613', 'tblTempUsageDetail_20' ) end [2025-03-09 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642613', 'tblTempVendorCDR_20' ) start [2025-03-09 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642613', 'tblTempVendorCDR_20' ) end [2025-03-09 13:52:18] Production.INFO: ProcessCDR(1,14642613,1,1,2) [2025-03-09 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642613', 'tblTempUsageDetail_20' ) start [2025-03-09 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642613', 'tblTempUsageDetail_20' ) end [2025-03-09 13:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:52:21] Production.INFO: ==24443== Releasing lock... [2025-03-09 13:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:52:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:53:04 [end_date_ymd] => 2025-03-09 13:53:04 [RateCDR] => 1 ) [2025-03-09 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-09 10:53:04' and `end` < '2025-03-09 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 13:53:17] Production.INFO: count ==816 [2025-03-09 13:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:53:04 - End Time 2025-03-09 13:53:04 [2025-03-09 13:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642618', 'tblTempUsageDetail_20' ) start [2025-03-09 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642618', 'tblTempUsageDetail_20' ) end [2025-03-09 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642618', 'tblTempVendorCDR_20' ) start [2025-03-09 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642618', 'tblTempVendorCDR_20' ) end [2025-03-09 13:53:17] Production.INFO: ProcessCDR(1,14642618,1,1,2) [2025-03-09 13:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642618', 'tblTempUsageDetail_20' ) start [2025-03-09 13:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642618', 'tblTempUsageDetail_20' ) end [2025-03-09 13:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:53:20] Production.INFO: ==24515== Releasing lock... [2025-03-09 13:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:53:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:54:05 [end_date_ymd] => 2025-03-09 13:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:54:05' and `end` < '2025-03-09 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-09 13:54:17] Production.INFO: count ==816 [2025-03-09 13:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:54:05 - End Time 2025-03-09 13:54:05 [2025-03-09 13:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642623', 'tblTempUsageDetail_20' ) start [2025-03-09 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642623', 'tblTempUsageDetail_20' ) end [2025-03-09 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642623', 'tblTempVendorCDR_20' ) start [2025-03-09 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642623', 'tblTempVendorCDR_20' ) end [2025-03-09 13:54:17] Production.INFO: ProcessCDR(1,14642623,1,1,2) [2025-03-09 13:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642623', 'tblTempUsageDetail_20' ) start [2025-03-09 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642623', 'tblTempUsageDetail_20' ) end [2025-03-09 13:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:54:21] Production.INFO: ==24589== Releasing lock... [2025-03-09 13:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:54:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:55:04 [end_date_ymd] => 2025-03-09 13:55:04 [RateCDR] => 1 ) [2025-03-09 13: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-09 10:55:04' and `end` < '2025-03-09 13: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-09 13:55:16] Production.INFO: count ==816 [2025-03-09 13:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:55:04 - End Time 2025-03-09 13:55:04 [2025-03-09 13:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642628', 'tblTempUsageDetail_20' ) start [2025-03-09 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642628', 'tblTempUsageDetail_20' ) end [2025-03-09 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642628', 'tblTempVendorCDR_20' ) start [2025-03-09 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642628', 'tblTempVendorCDR_20' ) end [2025-03-09 13:55:17] Production.INFO: ProcessCDR(1,14642628,1,1,2) [2025-03-09 13:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642628', 'tblTempUsageDetail_20' ) start [2025-03-09 13:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642628', 'tblTempUsageDetail_20' ) end [2025-03-09 13:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:55:20] Production.INFO: ==24658== Releasing lock... [2025-03-09 13:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:55:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:56:05 [end_date_ymd] => 2025-03-09 13:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:56:05' and `end` < '2025-03-09 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-09 13:56:17] Production.INFO: count ==816 [2025-03-09 13:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:56:05 - End Time 2025-03-09 13:56:05 [2025-03-09 13:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642633', 'tblTempUsageDetail_20' ) start [2025-03-09 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642633', 'tblTempUsageDetail_20' ) end [2025-03-09 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642633', 'tblTempVendorCDR_20' ) start [2025-03-09 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642633', 'tblTempVendorCDR_20' ) end [2025-03-09 13:56:17] Production.INFO: ProcessCDR(1,14642633,1,1,2) [2025-03-09 13:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642633', 'tblTempUsageDetail_20' ) start [2025-03-09 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642633', 'tblTempUsageDetail_20' ) end [2025-03-09 13:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:56:21] Production.INFO: ==24731== Releasing lock... [2025-03-09 13:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:56:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:57:05 [end_date_ymd] => 2025-03-09 13:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:57:05' and `end` < '2025-03-09 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-09 13:57:17] Production.INFO: count ==815 [2025-03-09 13:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 10:57:05 - End Time 2025-03-09 13:57:05 [2025-03-09 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642638', 'tblTempUsageDetail_20' ) start [2025-03-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642638', 'tblTempUsageDetail_20' ) end [2025-03-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642638', 'tblTempVendorCDR_20' ) start [2025-03-09 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642638', 'tblTempVendorCDR_20' ) end [2025-03-09 13:57:18] Production.INFO: ProcessCDR(1,14642638,1,1,2) [2025-03-09 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642638', 'tblTempUsageDetail_20' ) start [2025-03-09 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642638', 'tblTempUsageDetail_20' ) end [2025-03-09 13:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:57:21] Production.INFO: ==24808== Releasing lock... [2025-03-09 13:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:58:05 [end_date_ymd] => 2025-03-09 13:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:58:05' and `end` < '2025-03-09 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-09 13:58:17] Production.INFO: count ==824 [2025-03-09 13:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:58:05 - End Time 2025-03-09 13:58:05 [2025-03-09 13:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642643', 'tblTempUsageDetail_20' ) start [2025-03-09 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642643', 'tblTempUsageDetail_20' ) end [2025-03-09 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642643', 'tblTempVendorCDR_20' ) start [2025-03-09 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642643', 'tblTempVendorCDR_20' ) end [2025-03-09 13:58:17] Production.INFO: ProcessCDR(1,14642643,1,1,2) [2025-03-09 13:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642643', 'tblTempUsageDetail_20' ) start [2025-03-09 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642643', 'tblTempUsageDetail_20' ) end [2025-03-09 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:58:22] Production.INFO: ==24878== Releasing lock... [2025-03-09 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 10:59:05 [end_date_ymd] => 2025-03-09 13:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 10:59:05' and `end` < '2025-03-09 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-09 13:59:17] Production.INFO: count ==822 [2025-03-09 13:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 10:59:05 - End Time 2025-03-09 13:59:05 [2025-03-09 13:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642648', 'tblTempUsageDetail_20' ) start [2025-03-09 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642648', 'tblTempUsageDetail_20' ) end [2025-03-09 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642648', 'tblTempVendorCDR_20' ) start [2025-03-09 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642648', 'tblTempVendorCDR_20' ) end [2025-03-09 13:59:17] Production.INFO: ProcessCDR(1,14642648,1,1,2) [2025-03-09 13:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642648', 'tblTempUsageDetail_20' ) start [2025-03-09 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642648', 'tblTempUsageDetail_20' ) end [2025-03-09 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 13:59:22] Production.INFO: ==24954== Releasing lock... [2025-03-09 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 13:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:00:06 [end_date_ymd] => 2025-03-09 14:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:00:06' and `end` < '2025-03-09 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-09 14:00:18] Production.INFO: count ==824 [2025-03-09 14:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:00:06 - End Time 2025-03-09 14:00:06 [2025-03-09 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642653', 'tblTempUsageDetail_20' ) start [2025-03-09 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642653', 'tblTempUsageDetail_20' ) end [2025-03-09 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642653', 'tblTempVendorCDR_20' ) start [2025-03-09 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642653', 'tblTempVendorCDR_20' ) end [2025-03-09 14:00:18] Production.INFO: ProcessCDR(1,14642653,1,1,2) [2025-03-09 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642653', 'tblTempUsageDetail_20' ) start [2025-03-09 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642653', 'tblTempUsageDetail_20' ) end [2025-03-09 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:00:23] Production.INFO: ==25029== Releasing lock... [2025-03-09 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:00:23] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:01:05 [end_date_ymd] => 2025-03-09 14:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:01:05' and `end` < '2025-03-09 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-09 14:01:17] Production.INFO: count ==829 [2025-03-09 14:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:01:05 - End Time 2025-03-09 14:01:05 [2025-03-09 14:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642659', 'tblTempUsageDetail_20' ) start [2025-03-09 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642659', 'tblTempUsageDetail_20' ) end [2025-03-09 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642659', 'tblTempVendorCDR_20' ) start [2025-03-09 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642659', 'tblTempVendorCDR_20' ) end [2025-03-09 14:01:17] Production.INFO: ProcessCDR(1,14642659,1,1,2) [2025-03-09 14:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642659', 'tblTempUsageDetail_20' ) start [2025-03-09 14:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642659', 'tblTempUsageDetail_20' ) end [2025-03-09 14:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:01:20] Production.INFO: ==25114== Releasing lock... [2025-03-09 14:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:01:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:02:05 [end_date_ymd] => 2025-03-09 14:02:05 [RateCDR] => 1 ) [2025-03-09 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:02:05' and `end` < '2025-03-09 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:02:17] Production.INFO: count ==824 [2025-03-09 14:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:02:05 - End Time 2025-03-09 14:02:05 [2025-03-09 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642664', 'tblTempUsageDetail_20' ) start [2025-03-09 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642664', 'tblTempUsageDetail_20' ) end [2025-03-09 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642664', 'tblTempVendorCDR_20' ) start [2025-03-09 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642664', 'tblTempVendorCDR_20' ) end [2025-03-09 14:02:18] Production.INFO: ProcessCDR(1,14642664,1,1,2) [2025-03-09 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642664', 'tblTempUsageDetail_20' ) start [2025-03-09 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642664', 'tblTempUsageDetail_20' ) end [2025-03-09 14:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:02:21] Production.INFO: ==25186== Releasing lock... [2025-03-09 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:02:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:03:05 [end_date_ymd] => 2025-03-09 14:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:03:05' and `end` < '2025-03-09 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-09 14:03:17] Production.INFO: count ==824 [2025-03-09 14:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:03:05 - End Time 2025-03-09 14:03:05 [2025-03-09 14:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642669', 'tblTempUsageDetail_20' ) start [2025-03-09 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642669', 'tblTempUsageDetail_20' ) end [2025-03-09 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642669', 'tblTempVendorCDR_20' ) start [2025-03-09 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642669', 'tblTempVendorCDR_20' ) end [2025-03-09 14:03:17] Production.INFO: ProcessCDR(1,14642669,1,1,2) [2025-03-09 14:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642669', 'tblTempUsageDetail_20' ) start [2025-03-09 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642669', 'tblTempUsageDetail_20' ) end [2025-03-09 14:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:03:21] Production.INFO: ==25259== Releasing lock... [2025-03-09 14:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:04:05 [end_date_ymd] => 2025-03-09 14:04:05 [RateCDR] => 1 ) [2025-03-09 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:04:05' and `end` < '2025-03-09 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:04:17] Production.INFO: count ==826 [2025-03-09 14:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:04:05 - End Time 2025-03-09 14:04:05 [2025-03-09 14:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642674', 'tblTempUsageDetail_20' ) start [2025-03-09 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642674', 'tblTempUsageDetail_20' ) end [2025-03-09 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642674', 'tblTempVendorCDR_20' ) start [2025-03-09 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642674', 'tblTempVendorCDR_20' ) end [2025-03-09 14:04:17] Production.INFO: ProcessCDR(1,14642674,1,1,2) [2025-03-09 14:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642674', 'tblTempUsageDetail_20' ) start [2025-03-09 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642674', 'tblTempUsageDetail_20' ) end [2025-03-09 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:04:23] Production.INFO: ==25358== Releasing lock... [2025-03-09 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:04:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:05:05 [end_date_ymd] => 2025-03-09 14:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:05:05' and `end` < '2025-03-09 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-09 14:05:18] Production.INFO: count ==826 [2025-03-09 14:05:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:05:05 - End Time 2025-03-09 14:05:05 [2025-03-09 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642679', 'tblTempUsageDetail_20' ) start [2025-03-09 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642679', 'tblTempUsageDetail_20' ) end [2025-03-09 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642679', 'tblTempVendorCDR_20' ) start [2025-03-09 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642679', 'tblTempVendorCDR_20' ) end [2025-03-09 14:05:18] Production.INFO: ProcessCDR(1,14642679,1,1,2) [2025-03-09 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642679', 'tblTempUsageDetail_20' ) start [2025-03-09 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642679', 'tblTempUsageDetail_20' ) end [2025-03-09 14:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:05:21] Production.INFO: ==25468== Releasing lock... [2025-03-09 14:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:06:05 [end_date_ymd] => 2025-03-09 14:06:05 [RateCDR] => 1 ) [2025-03-09 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:06:05' and `end` < '2025-03-09 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:06:17] Production.INFO: count ==826 [2025-03-09 14:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:06:05 - End Time 2025-03-09 14:06:05 [2025-03-09 14:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642684', 'tblTempUsageDetail_20' ) start [2025-03-09 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642684', 'tblTempUsageDetail_20' ) end [2025-03-09 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642684', 'tblTempVendorCDR_20' ) start [2025-03-09 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642684', 'tblTempVendorCDR_20' ) end [2025-03-09 14:06:17] Production.INFO: ProcessCDR(1,14642684,1,1,2) [2025-03-09 14:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642684', 'tblTempUsageDetail_20' ) start [2025-03-09 14:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642684', 'tblTempUsageDetail_20' ) end [2025-03-09 14:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:06:20] Production.INFO: ==25538== Releasing lock... [2025-03-09 14:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:06:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:07:05 [end_date_ymd] => 2025-03-09 14:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:07:05' and `end` < '2025-03-09 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-09 14:07:18] Production.INFO: count ==830 [2025-03-09 14:07:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:07:05 - End Time 2025-03-09 14:07:05 [2025-03-09 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642689', 'tblTempUsageDetail_20' ) start [2025-03-09 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642689', 'tblTempUsageDetail_20' ) end [2025-03-09 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642689', 'tblTempVendorCDR_20' ) start [2025-03-09 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642689', 'tblTempVendorCDR_20' ) end [2025-03-09 14:07:18] Production.INFO: ProcessCDR(1,14642689,1,1,2) [2025-03-09 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642689', 'tblTempUsageDetail_20' ) start [2025-03-09 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642689', 'tblTempUsageDetail_20' ) end [2025-03-09 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:07:23] Production.INFO: ==25612== Releasing lock... [2025-03-09 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:07:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:08:05 [end_date_ymd] => 2025-03-09 14:08:05 [RateCDR] => 1 ) [2025-03-09 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:08:05' and `end` < '2025-03-09 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:08:18] Production.INFO: count ==831 [2025-03-09 14:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:08:05 - End Time 2025-03-09 14:08:05 [2025-03-09 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642694', 'tblTempUsageDetail_20' ) start [2025-03-09 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642694', 'tblTempUsageDetail_20' ) end [2025-03-09 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642694', 'tblTempVendorCDR_20' ) start [2025-03-09 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642694', 'tblTempVendorCDR_20' ) end [2025-03-09 14:08:18] Production.INFO: ProcessCDR(1,14642694,1,1,2) [2025-03-09 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642694', 'tblTempUsageDetail_20' ) start [2025-03-09 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642694', 'tblTempUsageDetail_20' ) end [2025-03-09 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:08:22] Production.INFO: ==25694== Releasing lock... [2025-03-09 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:09:05 [end_date_ymd] => 2025-03-09 14:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:09:05' and `end` < '2025-03-09 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-09 14:09:18] Production.INFO: count ==838 [2025-03-09 14:09:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:09:05 - End Time 2025-03-09 14:09:05 [2025-03-09 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642699', 'tblTempUsageDetail_20' ) start [2025-03-09 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642699', 'tblTempUsageDetail_20' ) end [2025-03-09 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642699', 'tblTempVendorCDR_20' ) start [2025-03-09 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642699', 'tblTempVendorCDR_20' ) end [2025-03-09 14:09:18] Production.INFO: ProcessCDR(1,14642699,1,1,2) [2025-03-09 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642699', 'tblTempUsageDetail_20' ) start [2025-03-09 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642699', 'tblTempUsageDetail_20' ) end [2025-03-09 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:09:23] Production.INFO: ==25770== Releasing lock... [2025-03-09 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:09:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:10:06 [end_date_ymd] => 2025-03-09 14:10:06 [RateCDR] => 1 ) [2025-03-09 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:10:06' and `end` < '2025-03-09 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:10:18] Production.INFO: count ==840 [2025-03-09 14:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:10:06 - End Time 2025-03-09 14:10:06 [2025-03-09 14:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642705', 'tblTempUsageDetail_20' ) start [2025-03-09 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642705', 'tblTempUsageDetail_20' ) end [2025-03-09 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642705', 'tblTempVendorCDR_20' ) start [2025-03-09 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642705', 'tblTempVendorCDR_20' ) end [2025-03-09 14:10:18] Production.INFO: ProcessCDR(1,14642705,1,1,2) [2025-03-09 14:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642705', 'tblTempUsageDetail_20' ) start [2025-03-09 14:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642705', 'tblTempUsageDetail_20' ) end [2025-03-09 14:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:10:22] Production.INFO: ==25842== Releasing lock... [2025-03-09 14:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:10:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:11:05 [end_date_ymd] => 2025-03-09 14:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:11:05' and `end` < '2025-03-09 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-09 14:11:17] Production.INFO: count ==862 [2025-03-09 14:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:11:05 - End Time 2025-03-09 14:11:05 [2025-03-09 14:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642710', 'tblTempUsageDetail_20' ) start [2025-03-09 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642710', 'tblTempUsageDetail_20' ) end [2025-03-09 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642710', 'tblTempVendorCDR_20' ) start [2025-03-09 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642710', 'tblTempVendorCDR_20' ) end [2025-03-09 14:11:17] Production.INFO: ProcessCDR(1,14642710,1,1,2) [2025-03-09 14:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642710', 'tblTempUsageDetail_20' ) start [2025-03-09 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642710', 'tblTempUsageDetail_20' ) end [2025-03-09 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:11:21] Production.INFO: ==25918== Releasing lock... [2025-03-09 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:11:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:12:05 [end_date_ymd] => 2025-03-09 14:12:05 [RateCDR] => 1 ) [2025-03-09 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:12:05' and `end` < '2025-03-09 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:12:17] Production.INFO: count ==860 [2025-03-09 14:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:12:05 - End Time 2025-03-09 14:12:05 [2025-03-09 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642715', 'tblTempUsageDetail_20' ) start [2025-03-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642715', 'tblTempUsageDetail_20' ) end [2025-03-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642715', 'tblTempVendorCDR_20' ) start [2025-03-09 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642715', 'tblTempVendorCDR_20' ) end [2025-03-09 14:12:18] Production.INFO: ProcessCDR(1,14642715,1,1,2) [2025-03-09 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642715', 'tblTempUsageDetail_20' ) start [2025-03-09 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642715', 'tblTempUsageDetail_20' ) end [2025-03-09 14:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:12:22] Production.INFO: ==25997== Releasing lock... [2025-03-09 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:13:05 [end_date_ymd] => 2025-03-09 14:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:13:05' and `end` < '2025-03-09 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-09 14:13:17] Production.INFO: count ==859 [2025-03-09 14:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:13:05 - End Time 2025-03-09 14:13:05 [2025-03-09 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642720', 'tblTempUsageDetail_20' ) start [2025-03-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642720', 'tblTempUsageDetail_20' ) end [2025-03-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642720', 'tblTempVendorCDR_20' ) start [2025-03-09 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642720', 'tblTempVendorCDR_20' ) end [2025-03-09 14:13:18] Production.INFO: ProcessCDR(1,14642720,1,1,2) [2025-03-09 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642720', 'tblTempUsageDetail_20' ) start [2025-03-09 14:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642720', 'tblTempUsageDetail_20' ) end [2025-03-09 14:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:13:21] Production.INFO: ==26070== Releasing lock... [2025-03-09 14:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:13:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:14:04 [end_date_ymd] => 2025-03-09 14:14:04 [RateCDR] => 1 ) [2025-03-09 14: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-09 11:14:04' and `end` < '2025-03-09 14: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-09 14:14:17] Production.INFO: count ==864 [2025-03-09 14:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:14:04 - End Time 2025-03-09 14:14:04 [2025-03-09 14:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642725', 'tblTempUsageDetail_20' ) start [2025-03-09 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642725', 'tblTempUsageDetail_20' ) end [2025-03-09 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642725', 'tblTempVendorCDR_20' ) start [2025-03-09 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642725', 'tblTempVendorCDR_20' ) end [2025-03-09 14:14:17] Production.INFO: ProcessCDR(1,14642725,1,1,2) [2025-03-09 14:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642725', 'tblTempUsageDetail_20' ) start [2025-03-09 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642725', 'tblTempUsageDetail_20' ) end [2025-03-09 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:14:22] Production.INFO: ==26139== Releasing lock... [2025-03-09 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:14:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:15:05 [end_date_ymd] => 2025-03-09 14:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:15:05' and `end` < '2025-03-09 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-09 14:15:17] Production.INFO: count ==864 [2025-03-09 14:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:15:05 - End Time 2025-03-09 14:15:05 [2025-03-09 14:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642730', 'tblTempUsageDetail_20' ) start [2025-03-09 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642730', 'tblTempUsageDetail_20' ) end [2025-03-09 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642730', 'tblTempVendorCDR_20' ) start [2025-03-09 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642730', 'tblTempVendorCDR_20' ) end [2025-03-09 14:15:17] Production.INFO: ProcessCDR(1,14642730,1,1,2) [2025-03-09 14:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642730', 'tblTempUsageDetail_20' ) start [2025-03-09 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642730', 'tblTempUsageDetail_20' ) end [2025-03-09 14:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:15:22] Production.INFO: ==26210== Releasing lock... [2025-03-09 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:16:05 [end_date_ymd] => 2025-03-09 14:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:16:05' and `end` < '2025-03-09 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-09 14:16:17] Production.INFO: count ==865 [2025-03-09 14:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:16:05 - End Time 2025-03-09 14:16:05 [2025-03-09 14:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642735', 'tblTempUsageDetail_20' ) start [2025-03-09 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642735', 'tblTempUsageDetail_20' ) end [2025-03-09 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642735', 'tblTempVendorCDR_20' ) start [2025-03-09 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642735', 'tblTempVendorCDR_20' ) end [2025-03-09 14:16:17] Production.INFO: ProcessCDR(1,14642735,1,1,2) [2025-03-09 14:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642735', 'tblTempUsageDetail_20' ) start [2025-03-09 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642735', 'tblTempUsageDetail_20' ) end [2025-03-09 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:16:22] Production.INFO: ==26287== Releasing lock... [2025-03-09 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:16:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:17:05 [end_date_ymd] => 2025-03-09 14:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:17:05' and `end` < '2025-03-09 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-09 14:17:17] Production.INFO: count ==865 [2025-03-09 14:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:17:05 - End Time 2025-03-09 14:17:05 [2025-03-09 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642740', 'tblTempUsageDetail_20' ) start [2025-03-09 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642740', 'tblTempUsageDetail_20' ) end [2025-03-09 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642740', 'tblTempVendorCDR_20' ) start [2025-03-09 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642740', 'tblTempVendorCDR_20' ) end [2025-03-09 14:17:17] Production.INFO: ProcessCDR(1,14642740,1,1,2) [2025-03-09 14:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642740', 'tblTempUsageDetail_20' ) start [2025-03-09 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642740', 'tblTempUsageDetail_20' ) end [2025-03-09 14:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:17:22] Production.INFO: ==26363== Releasing lock... [2025-03-09 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:17:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:18:06 [end_date_ymd] => 2025-03-09 14:18:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:18:06' and `end` < '2025-03-09 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-09 14:18:18] Production.INFO: count ==866 [2025-03-09 14:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:18:06 - End Time 2025-03-09 14:18:06 [2025-03-09 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642745', 'tblTempUsageDetail_20' ) start [2025-03-09 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642745', 'tblTempUsageDetail_20' ) end [2025-03-09 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642745', 'tblTempVendorCDR_20' ) start [2025-03-09 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642745', 'tblTempVendorCDR_20' ) end [2025-03-09 14:18:18] Production.INFO: ProcessCDR(1,14642745,1,1,2) [2025-03-09 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642745', 'tblTempUsageDetail_20' ) start [2025-03-09 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642745', 'tblTempUsageDetail_20' ) end [2025-03-09 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:18:23] Production.INFO: ==26434== Releasing lock... [2025-03-09 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:18:23] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:19:04 [end_date_ymd] => 2025-03-09 14:19:04 [RateCDR] => 1 ) [2025-03-09 14:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:19:04' and `end` < '2025-03-09 14:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:19:16] Production.INFO: count ==866 [2025-03-09 14:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:19:04 - End Time 2025-03-09 14:19:04 [2025-03-09 14:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642750', 'tblTempUsageDetail_20' ) start [2025-03-09 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642750', 'tblTempUsageDetail_20' ) end [2025-03-09 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642750', 'tblTempVendorCDR_20' ) start [2025-03-09 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642750', 'tblTempVendorCDR_20' ) end [2025-03-09 14:19:17] Production.INFO: ProcessCDR(1,14642750,1,1,2) [2025-03-09 14:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642750', 'tblTempUsageDetail_20' ) start [2025-03-09 14:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642750', 'tblTempUsageDetail_20' ) end [2025-03-09 14:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:19:20] Production.INFO: ==26505== Releasing lock... [2025-03-09 14:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:19:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:20:06 [end_date_ymd] => 2025-03-09 14:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:20:06' and `end` < '2025-03-09 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-09 14:20:18] Production.INFO: count ==864 [2025-03-09 14:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:20:06 - End Time 2025-03-09 14:20:06 [2025-03-09 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642756', 'tblTempUsageDetail_20' ) start [2025-03-09 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642756', 'tblTempUsageDetail_20' ) end [2025-03-09 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642756', 'tblTempVendorCDR_20' ) start [2025-03-09 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642756', 'tblTempVendorCDR_20' ) end [2025-03-09 14:20:18] Production.INFO: ProcessCDR(1,14642756,1,1,2) [2025-03-09 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642756', 'tblTempUsageDetail_20' ) start [2025-03-09 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642756', 'tblTempUsageDetail_20' ) end [2025-03-09 14:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:20:21] Production.INFO: ==26616== Releasing lock... [2025-03-09 14:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:20:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:21:04 [end_date_ymd] => 2025-03-09 14:21:04 [RateCDR] => 1 ) [2025-03-09 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:21:04' and `end` < '2025-03-09 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:21:17] Production.INFO: count ==861 [2025-03-09 14:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:21:04 - End Time 2025-03-09 14:21:04 [2025-03-09 14:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642761', 'tblTempUsageDetail_20' ) start [2025-03-09 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642761', 'tblTempUsageDetail_20' ) end [2025-03-09 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642761', 'tblTempVendorCDR_20' ) start [2025-03-09 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642761', 'tblTempVendorCDR_20' ) end [2025-03-09 14:21:17] Production.INFO: ProcessCDR(1,14642761,1,1,2) [2025-03-09 14:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642761', 'tblTempUsageDetail_20' ) start [2025-03-09 14:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642761', 'tblTempUsageDetail_20' ) end [2025-03-09 14:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:21:20] Production.INFO: ==26689== Releasing lock... [2025-03-09 14:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:21:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:22:05 [end_date_ymd] => 2025-03-09 14:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:22:05' and `end` < '2025-03-09 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-09 14:22:18] Production.INFO: count ==860 [2025-03-09 14:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:22:05 - End Time 2025-03-09 14:22:05 [2025-03-09 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642766', 'tblTempUsageDetail_20' ) start [2025-03-09 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642766', 'tblTempUsageDetail_20' ) end [2025-03-09 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642766', 'tblTempVendorCDR_20' ) start [2025-03-09 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642766', 'tblTempVendorCDR_20' ) end [2025-03-09 14:22:18] Production.INFO: ProcessCDR(1,14642766,1,1,2) [2025-03-09 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642766', 'tblTempUsageDetail_20' ) start [2025-03-09 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642766', 'tblTempUsageDetail_20' ) end [2025-03-09 14:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:22:21] Production.INFO: ==26761== Releasing lock... [2025-03-09 14:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:22:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:23:04 [end_date_ymd] => 2025-03-09 14:23:04 [RateCDR] => 1 ) [2025-03-09 14:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:23:04' and `end` < '2025-03-09 14:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:23:17] Production.INFO: count ==861 [2025-03-09 14:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:23:04 - End Time 2025-03-09 14:23:04 [2025-03-09 14:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642771', 'tblTempUsageDetail_20' ) start [2025-03-09 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642771', 'tblTempUsageDetail_20' ) end [2025-03-09 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642771', 'tblTempVendorCDR_20' ) start [2025-03-09 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642771', 'tblTempVendorCDR_20' ) end [2025-03-09 14:23:17] Production.INFO: ProcessCDR(1,14642771,1,1,2) [2025-03-09 14:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642771', 'tblTempUsageDetail_20' ) start [2025-03-09 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642771', 'tblTempUsageDetail_20' ) end [2025-03-09 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:23:22] Production.INFO: ==26834== Releasing lock... [2025-03-09 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:24:06 [end_date_ymd] => 2025-03-09 14:24:06 [RateCDR] => 1 ) [2025-03-09 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:24:06' and `end` < '2025-03-09 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:24:18] Production.INFO: count ==860 [2025-03-09 14:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:24:06 - End Time 2025-03-09 14:24:06 [2025-03-09 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642776', 'tblTempUsageDetail_20' ) start [2025-03-09 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642776', 'tblTempUsageDetail_20' ) end [2025-03-09 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642776', 'tblTempVendorCDR_20' ) start [2025-03-09 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642776', 'tblTempVendorCDR_20' ) end [2025-03-09 14:24:18] Production.INFO: ProcessCDR(1,14642776,1,1,2) [2025-03-09 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642776', 'tblTempUsageDetail_20' ) start [2025-03-09 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642776', 'tblTempUsageDetail_20' ) end [2025-03-09 14:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:24:21] Production.INFO: ==26907== Releasing lock... [2025-03-09 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:25:05 [end_date_ymd] => 2025-03-09 14:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:25:05' and `end` < '2025-03-09 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-09 14:25:17] Production.INFO: count ==861 [2025-03-09 14:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:25:05 - End Time 2025-03-09 14:25:05 [2025-03-09 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642781', 'tblTempUsageDetail_20' ) start [2025-03-09 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642781', 'tblTempUsageDetail_20' ) end [2025-03-09 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642781', 'tblTempVendorCDR_20' ) start [2025-03-09 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642781', 'tblTempVendorCDR_20' ) end [2025-03-09 14:25:17] Production.INFO: ProcessCDR(1,14642781,1,1,2) [2025-03-09 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642781', 'tblTempUsageDetail_20' ) start [2025-03-09 14:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642781', 'tblTempUsageDetail_20' ) end [2025-03-09 14:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:25:20] Production.INFO: ==26979== Releasing lock... [2025-03-09 14:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:25:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:26:05 [end_date_ymd] => 2025-03-09 14:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:26:05' and `end` < '2025-03-09 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-09 14:26:17] Production.INFO: count ==858 [2025-03-09 14:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:26:05 - End Time 2025-03-09 14:26:05 [2025-03-09 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642786', 'tblTempUsageDetail_20' ) start [2025-03-09 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642786', 'tblTempUsageDetail_20' ) end [2025-03-09 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642786', 'tblTempVendorCDR_20' ) start [2025-03-09 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642786', 'tblTempVendorCDR_20' ) end [2025-03-09 14:26:17] Production.INFO: ProcessCDR(1,14642786,1,1,2) [2025-03-09 14:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642786', 'tblTempUsageDetail_20' ) start [2025-03-09 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642786', 'tblTempUsageDetail_20' ) end [2025-03-09 14:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:26:20] Production.INFO: ==27057== Releasing lock... [2025-03-09 14:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:26:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:27:05 [end_date_ymd] => 2025-03-09 14:27:05 [RateCDR] => 1 ) [2025-03-09 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:27:05' and `end` < '2025-03-09 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:27:17] Production.INFO: count ==857 [2025-03-09 14:27:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:27:05 - End Time 2025-03-09 14:27:05 [2025-03-09 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642791', 'tblTempUsageDetail_20' ) start [2025-03-09 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642791', 'tblTempUsageDetail_20' ) end [2025-03-09 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642791', 'tblTempVendorCDR_20' ) start [2025-03-09 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642791', 'tblTempVendorCDR_20' ) end [2025-03-09 14:27:18] Production.INFO: ProcessCDR(1,14642791,1,1,2) [2025-03-09 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642791', 'tblTempUsageDetail_20' ) start [2025-03-09 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642791', 'tblTempUsageDetail_20' ) end [2025-03-09 14:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:27:21] Production.INFO: ==27130== Releasing lock... [2025-03-09 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:27:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:28:05 [end_date_ymd] => 2025-03-09 14:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:28:05' and `end` < '2025-03-09 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-09 14:28:17] Production.INFO: count ==857 [2025-03-09 14:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:28:05 - End Time 2025-03-09 14:28:05 [2025-03-09 14:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642796', 'tblTempUsageDetail_20' ) start [2025-03-09 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642796', 'tblTempUsageDetail_20' ) end [2025-03-09 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642796', 'tblTempVendorCDR_20' ) start [2025-03-09 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642796', 'tblTempVendorCDR_20' ) end [2025-03-09 14:28:17] Production.INFO: ProcessCDR(1,14642796,1,1,2) [2025-03-09 14:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642796', 'tblTempUsageDetail_20' ) start [2025-03-09 14:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642796', 'tblTempUsageDetail_20' ) end [2025-03-09 14:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:28:20] Production.INFO: ==27200== Releasing lock... [2025-03-09 14:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:28:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:29:06 [end_date_ymd] => 2025-03-09 14:29:06 [RateCDR] => 1 ) [2025-03-09 14: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-09 11:29:06' and `end` < '2025-03-09 14: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-09 14:29:18] Production.INFO: count ==845 [2025-03-09 14:29:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:29:06 - End Time 2025-03-09 14:29:06 [2025-03-09 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642801', 'tblTempUsageDetail_20' ) start [2025-03-09 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642801', 'tblTempUsageDetail_20' ) end [2025-03-09 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642801', 'tblTempVendorCDR_20' ) start [2025-03-09 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642801', 'tblTempVendorCDR_20' ) end [2025-03-09 14:29:18] Production.INFO: ProcessCDR(1,14642801,1,1,2) [2025-03-09 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642801', 'tblTempUsageDetail_20' ) start [2025-03-09 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642801', 'tblTempUsageDetail_20' ) end [2025-03-09 14:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:29:21] Production.INFO: ==27270== Releasing lock... [2025-03-09 14:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:29:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:30:06 [end_date_ymd] => 2025-03-09 14:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:30:06' and `end` < '2025-03-09 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-09 14:30:18] Production.INFO: count ==837 [2025-03-09 14:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:30:06 - End Time 2025-03-09 14:30:06 [2025-03-09 14:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642807', 'tblTempUsageDetail_20' ) start [2025-03-09 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642807', 'tblTempUsageDetail_20' ) end [2025-03-09 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642807', 'tblTempVendorCDR_20' ) start [2025-03-09 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642807', 'tblTempVendorCDR_20' ) end [2025-03-09 14:30:18] Production.INFO: ProcessCDR(1,14642807,1,1,2) [2025-03-09 14:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642807', 'tblTempUsageDetail_20' ) start [2025-03-09 14:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642807', 'tblTempUsageDetail_20' ) end [2025-03-09 14:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:30:21] Production.INFO: ==27346== Releasing lock... [2025-03-09 14:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:30:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:31:05 [end_date_ymd] => 2025-03-09 14:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:31:05' and `end` < '2025-03-09 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-09 14:31:17] Production.INFO: count ==831 [2025-03-09 14:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:31:05 - End Time 2025-03-09 14:31:05 [2025-03-09 14:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642812', 'tblTempUsageDetail_20' ) start [2025-03-09 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642812', 'tblTempUsageDetail_20' ) end [2025-03-09 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642812', 'tblTempVendorCDR_20' ) start [2025-03-09 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642812', 'tblTempVendorCDR_20' ) end [2025-03-09 14:31:17] Production.INFO: ProcessCDR(1,14642812,1,1,2) [2025-03-09 14:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642812', 'tblTempUsageDetail_20' ) start [2025-03-09 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642812', 'tblTempUsageDetail_20' ) end [2025-03-09 14:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:31:21] Production.INFO: ==27418== Releasing lock... [2025-03-09 14:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:31:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:32:05 [end_date_ymd] => 2025-03-09 14:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:32:05' and `end` < '2025-03-09 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-09 14:32:17] Production.INFO: count ==832 [2025-03-09 14:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:32:05 - End Time 2025-03-09 14:32:05 [2025-03-09 14:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642817', 'tblTempUsageDetail_20' ) start [2025-03-09 14:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642817', 'tblTempUsageDetail_20' ) end [2025-03-09 14:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642817', 'tblTempVendorCDR_20' ) start [2025-03-09 14:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642817', 'tblTempVendorCDR_20' ) end [2025-03-09 14:32:17] Production.INFO: ProcessCDR(1,14642817,1,1,2) [2025-03-09 14:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642817', 'tblTempUsageDetail_20' ) start [2025-03-09 14:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642817', 'tblTempUsageDetail_20' ) end [2025-03-09 14:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:32:20] Production.INFO: ==27493== Releasing lock... [2025-03-09 14:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:32:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:33:05 [end_date_ymd] => 2025-03-09 14:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:33:05' and `end` < '2025-03-09 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-09 14:33:17] Production.INFO: count ==831 [2025-03-09 14:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:33:05 - End Time 2025-03-09 14:33:05 [2025-03-09 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642822', 'tblTempUsageDetail_20' ) start [2025-03-09 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642822', 'tblTempUsageDetail_20' ) end [2025-03-09 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642822', 'tblTempVendorCDR_20' ) start [2025-03-09 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642822', 'tblTempVendorCDR_20' ) end [2025-03-09 14:33:18] Production.INFO: ProcessCDR(1,14642822,1,1,2) [2025-03-09 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642822', 'tblTempUsageDetail_20' ) start [2025-03-09 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642822', 'tblTempUsageDetail_20' ) end [2025-03-09 14:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:33:21] Production.INFO: ==27564== Releasing lock... [2025-03-09 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:34:05 [end_date_ymd] => 2025-03-09 14:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:34:05' and `end` < '2025-03-09 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-09 14:34:17] Production.INFO: count ==830 [2025-03-09 14:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:34:05 - End Time 2025-03-09 14:34:05 [2025-03-09 14:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642827', 'tblTempUsageDetail_20' ) start [2025-03-09 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642827', 'tblTempUsageDetail_20' ) end [2025-03-09 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642827', 'tblTempVendorCDR_20' ) start [2025-03-09 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642827', 'tblTempVendorCDR_20' ) end [2025-03-09 14:34:17] Production.INFO: ProcessCDR(1,14642827,1,1,2) [2025-03-09 14:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642827', 'tblTempUsageDetail_20' ) start [2025-03-09 14:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642827', 'tblTempUsageDetail_20' ) end [2025-03-09 14:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:34:20] Production.INFO: ==27635== Releasing lock... [2025-03-09 14:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:34:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:35:05 [end_date_ymd] => 2025-03-09 14:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:35:05' and `end` < '2025-03-09 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-09 14:35:17] Production.INFO: count ==828 [2025-03-09 14:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:35:05 - End Time 2025-03-09 14:35:05 [2025-03-09 14:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642832', 'tblTempUsageDetail_20' ) start [2025-03-09 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642832', 'tblTempUsageDetail_20' ) end [2025-03-09 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642832', 'tblTempVendorCDR_20' ) start [2025-03-09 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642832', 'tblTempVendorCDR_20' ) end [2025-03-09 14:35:17] Production.INFO: ProcessCDR(1,14642832,1,1,2) [2025-03-09 14:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642832', 'tblTempUsageDetail_20' ) start [2025-03-09 14:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642832', 'tblTempUsageDetail_20' ) end [2025-03-09 14:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:35:20] Production.INFO: ==27706== Releasing lock... [2025-03-09 14:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:35:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:36:05 [end_date_ymd] => 2025-03-09 14:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:36:05' and `end` < '2025-03-09 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-09 14:36:17] Production.INFO: count ==829 [2025-03-09 14:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:36:05 - End Time 2025-03-09 14:36:05 [2025-03-09 14:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642837', 'tblTempUsageDetail_20' ) start [2025-03-09 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642837', 'tblTempUsageDetail_20' ) end [2025-03-09 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642837', 'tblTempVendorCDR_20' ) start [2025-03-09 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642837', 'tblTempVendorCDR_20' ) end [2025-03-09 14:36:17] Production.INFO: ProcessCDR(1,14642837,1,1,2) [2025-03-09 14:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642837', 'tblTempUsageDetail_20' ) start [2025-03-09 14:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642837', 'tblTempUsageDetail_20' ) end [2025-03-09 14:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:36:20] Production.INFO: ==27820== Releasing lock... [2025-03-09 14:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:36:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:37:05 [end_date_ymd] => 2025-03-09 14:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:37:05' and `end` < '2025-03-09 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-09 14:37:17] Production.INFO: count ==828 [2025-03-09 14:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:37:05 - End Time 2025-03-09 14:37:05 [2025-03-09 14:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642842', 'tblTempUsageDetail_20' ) start [2025-03-09 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642842', 'tblTempUsageDetail_20' ) end [2025-03-09 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642842', 'tblTempVendorCDR_20' ) start [2025-03-09 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642842', 'tblTempVendorCDR_20' ) end [2025-03-09 14:37:17] Production.INFO: ProcessCDR(1,14642842,1,1,2) [2025-03-09 14:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642842', 'tblTempUsageDetail_20' ) start [2025-03-09 14:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642842', 'tblTempUsageDetail_20' ) end [2025-03-09 14:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:37:20] Production.INFO: ==27894== Releasing lock... [2025-03-09 14:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:37:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:38:04 [end_date_ymd] => 2025-03-09 14:38:04 [RateCDR] => 1 ) [2025-03-09 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:38:04' and `end` < '2025-03-09 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:38:17] Production.INFO: count ==826 [2025-03-09 14:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:38:04 - End Time 2025-03-09 14:38:04 [2025-03-09 14:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642847', 'tblTempUsageDetail_20' ) start [2025-03-09 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642847', 'tblTempUsageDetail_20' ) end [2025-03-09 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642847', 'tblTempVendorCDR_20' ) start [2025-03-09 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642847', 'tblTempVendorCDR_20' ) end [2025-03-09 14:38:17] Production.INFO: ProcessCDR(1,14642847,1,1,2) [2025-03-09 14:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642847', 'tblTempUsageDetail_20' ) start [2025-03-09 14:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642847', 'tblTempUsageDetail_20' ) end [2025-03-09 14:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:38:20] Production.INFO: ==27964== Releasing lock... [2025-03-09 14:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:38:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:39:05 [end_date_ymd] => 2025-03-09 14:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:39:05' and `end` < '2025-03-09 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-09 14:39:17] Production.INFO: count ==824 [2025-03-09 14:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:39:05 - End Time 2025-03-09 14:39:05 [2025-03-09 14:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642852', 'tblTempUsageDetail_20' ) start [2025-03-09 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642852', 'tblTempUsageDetail_20' ) end [2025-03-09 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642852', 'tblTempVendorCDR_20' ) start [2025-03-09 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642852', 'tblTempVendorCDR_20' ) end [2025-03-09 14:39:17] Production.INFO: ProcessCDR(1,14642852,1,1,2) [2025-03-09 14:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642852', 'tblTempUsageDetail_20' ) start [2025-03-09 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642852', 'tblTempUsageDetail_20' ) end [2025-03-09 14:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:39:22] Production.INFO: ==28039== Releasing lock... [2025-03-09 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:40:06 [end_date_ymd] => 2025-03-09 14:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:40:06' and `end` < '2025-03-09 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-09 14:40:18] Production.INFO: count ==815 [2025-03-09 14:40:19] Production.ERROR: pbx CDR StartTime 2025-03-09 11:40:06 - End Time 2025-03-09 14:40:06 [2025-03-09 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642858', 'tblTempUsageDetail_20' ) start [2025-03-09 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642858', 'tblTempUsageDetail_20' ) end [2025-03-09 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642858', 'tblTempVendorCDR_20' ) start [2025-03-09 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642858', 'tblTempVendorCDR_20' ) end [2025-03-09 14:40:19] Production.INFO: ProcessCDR(1,14642858,1,1,2) [2025-03-09 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642858', 'tblTempUsageDetail_20' ) start [2025-03-09 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642858', 'tblTempUsageDetail_20' ) end [2025-03-09 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:40:22] Production.INFO: ==28117== Releasing lock... [2025-03-09 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:40:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:41:04 [end_date_ymd] => 2025-03-09 14:41:04 [RateCDR] => 1 ) [2025-03-09 14: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-09 11:41:04' and `end` < '2025-03-09 14: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-09 14:41:16] Production.INFO: count ==823 [2025-03-09 14:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:41:04 - End Time 2025-03-09 14:41:04 [2025-03-09 14:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642863', 'tblTempUsageDetail_20' ) start [2025-03-09 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642863', 'tblTempUsageDetail_20' ) end [2025-03-09 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642863', 'tblTempVendorCDR_20' ) start [2025-03-09 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642863', 'tblTempVendorCDR_20' ) end [2025-03-09 14:41:17] Production.INFO: ProcessCDR(1,14642863,1,1,2) [2025-03-09 14:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642863', 'tblTempUsageDetail_20' ) start [2025-03-09 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642863', 'tblTempUsageDetail_20' ) end [2025-03-09 14:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:41:21] Production.INFO: ==28190== Releasing lock... [2025-03-09 14:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:42:05 [end_date_ymd] => 2025-03-09 14:42:05 [RateCDR] => 1 ) [2025-03-09 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:42:05' and `end` < '2025-03-09 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:42:17] Production.INFO: count ==822 [2025-03-09 14:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:42:05 - End Time 2025-03-09 14:42:05 [2025-03-09 14:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642868', 'tblTempUsageDetail_20' ) start [2025-03-09 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642868', 'tblTempUsageDetail_20' ) end [2025-03-09 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642868', 'tblTempVendorCDR_20' ) start [2025-03-09 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642868', 'tblTempVendorCDR_20' ) end [2025-03-09 14:42:17] Production.INFO: ProcessCDR(1,14642868,1,1,2) [2025-03-09 14:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642868', 'tblTempUsageDetail_20' ) start [2025-03-09 14:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642868', 'tblTempUsageDetail_20' ) end [2025-03-09 14:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:42:21] Production.INFO: ==28264== Releasing lock... [2025-03-09 14:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:42:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:43:05 [end_date_ymd] => 2025-03-09 14:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:43:05' and `end` < '2025-03-09 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-09 14:43:17] Production.INFO: count ==819 [2025-03-09 14:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:43:05 - End Time 2025-03-09 14:43:05 [2025-03-09 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642873', 'tblTempUsageDetail_20' ) start [2025-03-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642873', 'tblTempUsageDetail_20' ) end [2025-03-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642873', 'tblTempVendorCDR_20' ) start [2025-03-09 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642873', 'tblTempVendorCDR_20' ) end [2025-03-09 14:43:18] Production.INFO: ProcessCDR(1,14642873,1,1,2) [2025-03-09 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642873', 'tblTempUsageDetail_20' ) start [2025-03-09 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642873', 'tblTempUsageDetail_20' ) end [2025-03-09 14:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:43:21] Production.INFO: ==28336== Releasing lock... [2025-03-09 14:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:44:05 [end_date_ymd] => 2025-03-09 14:44:05 [RateCDR] => 1 ) [2025-03-09 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:44:05' and `end` < '2025-03-09 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:44:18] Production.INFO: count ==803 [2025-03-09 14:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:44:05 - End Time 2025-03-09 14:44:05 [2025-03-09 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642878', 'tblTempUsageDetail_20' ) start [2025-03-09 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642878', 'tblTempUsageDetail_20' ) end [2025-03-09 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642878', 'tblTempVendorCDR_20' ) start [2025-03-09 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642878', 'tblTempVendorCDR_20' ) end [2025-03-09 14:44:18] Production.INFO: ProcessCDR(1,14642878,1,1,2) [2025-03-09 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642878', 'tblTempUsageDetail_20' ) start [2025-03-09 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642878', 'tblTempUsageDetail_20' ) end [2025-03-09 14:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:44:21] Production.INFO: ==28410== Releasing lock... [2025-03-09 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:44:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:45:05 [end_date_ymd] => 2025-03-09 14:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:45:05' and `end` < '2025-03-09 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-09 14:45:17] Production.INFO: count ==804 [2025-03-09 14:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:45:05 - End Time 2025-03-09 14:45:05 [2025-03-09 14:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642883', 'tblTempUsageDetail_20' ) start [2025-03-09 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642883', 'tblTempUsageDetail_20' ) end [2025-03-09 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642883', 'tblTempVendorCDR_20' ) start [2025-03-09 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642883', 'tblTempVendorCDR_20' ) end [2025-03-09 14:45:17] Production.INFO: ProcessCDR(1,14642883,1,1,2) [2025-03-09 14:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642883', 'tblTempUsageDetail_20' ) start [2025-03-09 14:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642883', 'tblTempUsageDetail_20' ) end [2025-03-09 14:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:45:20] Production.INFO: ==28480== Releasing lock... [2025-03-09 14:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:45:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:46:05 [end_date_ymd] => 2025-03-09 14:46:05 [RateCDR] => 1 ) [2025-03-09 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:46:05' and `end` < '2025-03-09 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:46:17] Production.INFO: count ==801 [2025-03-09 14:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:46:05 - End Time 2025-03-09 14:46:05 [2025-03-09 14:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642888', 'tblTempUsageDetail_20' ) start [2025-03-09 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642888', 'tblTempUsageDetail_20' ) end [2025-03-09 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642888', 'tblTempVendorCDR_20' ) start [2025-03-09 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642888', 'tblTempVendorCDR_20' ) end [2025-03-09 14:46:17] Production.INFO: ProcessCDR(1,14642888,1,1,2) [2025-03-09 14:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642888', 'tblTempUsageDetail_20' ) start [2025-03-09 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642888', 'tblTempUsageDetail_20' ) end [2025-03-09 14:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:46:21] Production.INFO: ==28552== Releasing lock... [2025-03-09 14:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:47:06 [end_date_ymd] => 2025-03-09 14:47:06 [RateCDR] => 1 ) [2025-03-09 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:47:06' and `end` < '2025-03-09 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:47:18] Production.INFO: count ==798 [2025-03-09 14:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:47:06 - End Time 2025-03-09 14:47:06 [2025-03-09 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642893', 'tblTempUsageDetail_20' ) start [2025-03-09 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642893', 'tblTempUsageDetail_20' ) end [2025-03-09 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642893', 'tblTempVendorCDR_20' ) start [2025-03-09 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642893', 'tblTempVendorCDR_20' ) end [2025-03-09 14:47:18] Production.INFO: ProcessCDR(1,14642893,1,1,2) [2025-03-09 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642893', 'tblTempUsageDetail_20' ) start [2025-03-09 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642893', 'tblTempUsageDetail_20' ) end [2025-03-09 14:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:47:21] Production.INFO: ==28624== Releasing lock... [2025-03-09 14:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:48:05 [end_date_ymd] => 2025-03-09 14:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:48:05' and `end` < '2025-03-09 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-09 14:48:17] Production.INFO: count ==800 [2025-03-09 14:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:48:05 - End Time 2025-03-09 14:48:05 [2025-03-09 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642898', 'tblTempUsageDetail_20' ) start [2025-03-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642898', 'tblTempUsageDetail_20' ) end [2025-03-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642898', 'tblTempVendorCDR_20' ) start [2025-03-09 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642898', 'tblTempVendorCDR_20' ) end [2025-03-09 14:48:18] Production.INFO: ProcessCDR(1,14642898,1,1,2) [2025-03-09 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642898', 'tblTempUsageDetail_20' ) start [2025-03-09 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642898', 'tblTempUsageDetail_20' ) end [2025-03-09 14:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:48:21] Production.INFO: ==28694== Releasing lock... [2025-03-09 14:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:48:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:49:05 [end_date_ymd] => 2025-03-09 14:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:49:05' and `end` < '2025-03-09 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-09 14:49:17] Production.INFO: count ==801 [2025-03-09 14:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:49:05 - End Time 2025-03-09 14:49:05 [2025-03-09 14:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642903', 'tblTempUsageDetail_20' ) start [2025-03-09 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642903', 'tblTempUsageDetail_20' ) end [2025-03-09 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642903', 'tblTempVendorCDR_20' ) start [2025-03-09 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642903', 'tblTempVendorCDR_20' ) end [2025-03-09 14:49:18] Production.INFO: ProcessCDR(1,14642903,1,1,2) [2025-03-09 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642903', 'tblTempUsageDetail_20' ) start [2025-03-09 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642903', 'tblTempUsageDetail_20' ) end [2025-03-09 14:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:49:21] Production.INFO: ==28772== Releasing lock... [2025-03-09 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:50:06 [end_date_ymd] => 2025-03-09 14:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:50:06' and `end` < '2025-03-09 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-09 14:50:18] Production.INFO: count ==812 [2025-03-09 14:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:50:06 - End Time 2025-03-09 14:50:06 [2025-03-09 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642909', 'tblTempUsageDetail_20' ) start [2025-03-09 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642909', 'tblTempUsageDetail_20' ) end [2025-03-09 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642909', 'tblTempVendorCDR_20' ) start [2025-03-09 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642909', 'tblTempVendorCDR_20' ) end [2025-03-09 14:50:18] Production.INFO: ProcessCDR(1,14642909,1,1,2) [2025-03-09 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642909', 'tblTempUsageDetail_20' ) start [2025-03-09 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642909', 'tblTempUsageDetail_20' ) end [2025-03-09 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:50:22] Production.INFO: ==28844== Releasing lock... [2025-03-09 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:51:05 [end_date_ymd] => 2025-03-09 14:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:51:05' and `end` < '2025-03-09 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-09 14:51:18] Production.INFO: count ==835 [2025-03-09 14:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:51:05 - End Time 2025-03-09 14:51:05 [2025-03-09 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642914', 'tblTempUsageDetail_20' ) start [2025-03-09 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642914', 'tblTempUsageDetail_20' ) end [2025-03-09 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642914', 'tblTempVendorCDR_20' ) start [2025-03-09 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642914', 'tblTempVendorCDR_20' ) end [2025-03-09 14:51:18] Production.INFO: ProcessCDR(1,14642914,1,1,2) [2025-03-09 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642914', 'tblTempUsageDetail_20' ) start [2025-03-09 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642914', 'tblTempUsageDetail_20' ) end [2025-03-09 14:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:51:21] Production.INFO: ==28957== Releasing lock... [2025-03-09 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:52:05 [end_date_ymd] => 2025-03-09 14:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:52:05' and `end` < '2025-03-09 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-09 14:52:17] Production.INFO: count ==837 [2025-03-09 14:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:52:05 - End Time 2025-03-09 14:52:05 [2025-03-09 14:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642919', 'tblTempUsageDetail_20' ) start [2025-03-09 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642919', 'tblTempUsageDetail_20' ) end [2025-03-09 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642919', 'tblTempVendorCDR_20' ) start [2025-03-09 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642919', 'tblTempVendorCDR_20' ) end [2025-03-09 14:52:17] Production.INFO: ProcessCDR(1,14642919,1,1,2) [2025-03-09 14:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642919', 'tblTempUsageDetail_20' ) start [2025-03-09 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642919', 'tblTempUsageDetail_20' ) end [2025-03-09 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:52:22] Production.INFO: ==29030== Releasing lock... [2025-03-09 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:53:06 [end_date_ymd] => 2025-03-09 14:53:06 [RateCDR] => 1 ) [2025-03-09 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-09 11:53:06' and `end` < '2025-03-09 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-09 14:53:18] Production.INFO: count ==836 [2025-03-09 14:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:53:06 - End Time 2025-03-09 14:53:06 [2025-03-09 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642924', 'tblTempUsageDetail_20' ) start [2025-03-09 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642924', 'tblTempUsageDetail_20' ) end [2025-03-09 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642924', 'tblTempVendorCDR_20' ) start [2025-03-09 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642924', 'tblTempVendorCDR_20' ) end [2025-03-09 14:53:18] Production.INFO: ProcessCDR(1,14642924,1,1,2) [2025-03-09 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642924', 'tblTempUsageDetail_20' ) start [2025-03-09 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642924', 'tblTempUsageDetail_20' ) end [2025-03-09 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:53:23] Production.INFO: ==29120== Releasing lock... [2025-03-09 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:53:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:54:05 [end_date_ymd] => 2025-03-09 14:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:54:05' and `end` < '2025-03-09 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-09 14:54:17] Production.INFO: count ==837 [2025-03-09 14:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:54:05 - End Time 2025-03-09 14:54:05 [2025-03-09 14:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642929', 'tblTempUsageDetail_20' ) start [2025-03-09 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642929', 'tblTempUsageDetail_20' ) end [2025-03-09 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642929', 'tblTempVendorCDR_20' ) start [2025-03-09 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642929', 'tblTempVendorCDR_20' ) end [2025-03-09 14:54:17] Production.INFO: ProcessCDR(1,14642929,1,1,2) [2025-03-09 14:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642929', 'tblTempUsageDetail_20' ) start [2025-03-09 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642929', 'tblTempUsageDetail_20' ) end [2025-03-09 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:54:22] Production.INFO: ==29202== Releasing lock... [2025-03-09 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:55:05 [end_date_ymd] => 2025-03-09 14:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:55:05' and `end` < '2025-03-09 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-09 14:55:17] Production.INFO: count ==836 [2025-03-09 14:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:55:05 - End Time 2025-03-09 14:55:05 [2025-03-09 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642934', 'tblTempUsageDetail_20' ) start [2025-03-09 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642934', 'tblTempUsageDetail_20' ) end [2025-03-09 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642934', 'tblTempVendorCDR_20' ) start [2025-03-09 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642934', 'tblTempVendorCDR_20' ) end [2025-03-09 14:55:18] Production.INFO: ProcessCDR(1,14642934,1,1,2) [2025-03-09 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642934', 'tblTempUsageDetail_20' ) start [2025-03-09 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642934', 'tblTempUsageDetail_20' ) end [2025-03-09 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:55:22] Production.INFO: ==29289== Releasing lock... [2025-03-09 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:56:05 [end_date_ymd] => 2025-03-09 14:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:56:05' and `end` < '2025-03-09 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-09 14:56:17] Production.INFO: count ==833 [2025-03-09 14:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:56:05 - End Time 2025-03-09 14:56:05 [2025-03-09 14:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642939', 'tblTempUsageDetail_20' ) start [2025-03-09 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642939', 'tblTempUsageDetail_20' ) end [2025-03-09 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642939', 'tblTempVendorCDR_20' ) start [2025-03-09 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642939', 'tblTempVendorCDR_20' ) end [2025-03-09 14:56:17] Production.INFO: ProcessCDR(1,14642939,1,1,2) [2025-03-09 14:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642939', 'tblTempUsageDetail_20' ) start [2025-03-09 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642939', 'tblTempUsageDetail_20' ) end [2025-03-09 14:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:56:22] Production.INFO: ==29365== Releasing lock... [2025-03-09 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:57:05 [end_date_ymd] => 2025-03-09 14:57:05 [RateCDR] => 1 ) [2025-03-09 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 11:57:05' and `end` < '2025-03-09 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 14:57:17] Production.INFO: count ==850 [2025-03-09 14:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 11:57:05 - End Time 2025-03-09 14:57:05 [2025-03-09 14:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642944', 'tblTempUsageDetail_20' ) start [2025-03-09 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642944', 'tblTempUsageDetail_20' ) end [2025-03-09 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642944', 'tblTempVendorCDR_20' ) start [2025-03-09 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642944', 'tblTempVendorCDR_20' ) end [2025-03-09 14:57:18] Production.INFO: ProcessCDR(1,14642944,1,1,2) [2025-03-09 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642944', 'tblTempUsageDetail_20' ) start [2025-03-09 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642944', 'tblTempUsageDetail_20' ) end [2025-03-09 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:57:23] Production.INFO: ==29440== Releasing lock... [2025-03-09 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:57:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:58:05 [end_date_ymd] => 2025-03-09 14:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:58:05' and `end` < '2025-03-09 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-09 14:58:18] Production.INFO: count ==852 [2025-03-09 14:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:58:05 - End Time 2025-03-09 14:58:05 [2025-03-09 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642949', 'tblTempUsageDetail_20' ) start [2025-03-09 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642949', 'tblTempUsageDetail_20' ) end [2025-03-09 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642949', 'tblTempVendorCDR_20' ) start [2025-03-09 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642949', 'tblTempVendorCDR_20' ) end [2025-03-09 14:58:18] Production.INFO: ProcessCDR(1,14642949,1,1,2) [2025-03-09 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642949', 'tblTempUsageDetail_20' ) start [2025-03-09 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642949', 'tblTempUsageDetail_20' ) end [2025-03-09 14:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:58:21] Production.INFO: ==29519== Releasing lock... [2025-03-09 14:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:58:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 11:59:05 [end_date_ymd] => 2025-03-09 14:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 11:59:05' and `end` < '2025-03-09 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-09 14:59:17] Production.INFO: count ==852 [2025-03-09 14:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 11:59:05 - End Time 2025-03-09 14:59:05 [2025-03-09 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642954', 'tblTempUsageDetail_20' ) start [2025-03-09 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642954', 'tblTempUsageDetail_20' ) end [2025-03-09 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642954', 'tblTempVendorCDR_20' ) start [2025-03-09 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642954', 'tblTempVendorCDR_20' ) end [2025-03-09 14:59:18] Production.INFO: ProcessCDR(1,14642954,1,1,2) [2025-03-09 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642954', 'tblTempUsageDetail_20' ) start [2025-03-09 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642954', 'tblTempUsageDetail_20' ) end [2025-03-09 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 14:59:22] Production.INFO: ==29594== Releasing lock... [2025-03-09 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 14:59:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:00:06 [end_date_ymd] => 2025-03-09 15:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:00:06' and `end` < '2025-03-09 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-09 15:00:18] Production.INFO: count ==851 [2025-03-09 15:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:00:06 - End Time 2025-03-09 15:00:06 [2025-03-09 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642960', 'tblTempUsageDetail_20' ) start [2025-03-09 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642960', 'tblTempUsageDetail_20' ) end [2025-03-09 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642960', 'tblTempVendorCDR_20' ) start [2025-03-09 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642960', 'tblTempVendorCDR_20' ) end [2025-03-09 15:00:18] Production.INFO: ProcessCDR(1,14642960,1,1,2) [2025-03-09 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642960', 'tblTempUsageDetail_20' ) start [2025-03-09 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642960', 'tblTempUsageDetail_20' ) end [2025-03-09 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:00:23] Production.INFO: ==29667== Releasing lock... [2025-03-09 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:00:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:01:05 [end_date_ymd] => 2025-03-09 15:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:01:05' and `end` < '2025-03-09 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-09 15:01:17] Production.INFO: count ==879 [2025-03-09 15:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:01:05 - End Time 2025-03-09 15:01:05 [2025-03-09 15:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642965', 'tblTempUsageDetail_20' ) start [2025-03-09 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642965', 'tblTempUsageDetail_20' ) end [2025-03-09 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642965', 'tblTempVendorCDR_20' ) start [2025-03-09 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642965', 'tblTempVendorCDR_20' ) end [2025-03-09 15:01:17] Production.INFO: ProcessCDR(1,14642965,1,1,2) [2025-03-09 15:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642965', 'tblTempUsageDetail_20' ) start [2025-03-09 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642965', 'tblTempUsageDetail_20' ) end [2025-03-09 15:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:01:21] Production.INFO: ==29831== Releasing lock... [2025-03-09 15:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:02:05 [end_date_ymd] => 2025-03-09 15:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:02:05' and `end` < '2025-03-09 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-09 15:02:17] Production.INFO: count ==878 [2025-03-09 15:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:02:05 - End Time 2025-03-09 15:02:05 [2025-03-09 15:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642967', 'tblTempUsageDetail_20' ) start [2025-03-09 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642967', 'tblTempUsageDetail_20' ) end [2025-03-09 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642967', 'tblTempVendorCDR_20' ) start [2025-03-09 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642967', 'tblTempVendorCDR_20' ) end [2025-03-09 15:02:17] Production.INFO: ProcessCDR(1,14642967,1,1,2) [2025-03-09 15:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642967', 'tblTempUsageDetail_20' ) start [2025-03-09 15:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642967', 'tblTempUsageDetail_20' ) end [2025-03-09 15:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:02:20] Production.INFO: ==29906== Releasing lock... [2025-03-09 15:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:02:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:03:04 [end_date_ymd] => 2025-03-09 15:03:04 [RateCDR] => 1 ) [2025-03-09 15:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:03:04' and `end` < '2025-03-09 15:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:03:17] Production.INFO: count ==879 [2025-03-09 15:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:03:04 - End Time 2025-03-09 15:03:04 [2025-03-09 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642975', 'tblTempUsageDetail_20' ) start [2025-03-09 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642975', 'tblTempUsageDetail_20' ) end [2025-03-09 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642975', 'tblTempVendorCDR_20' ) start [2025-03-09 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642975', 'tblTempVendorCDR_20' ) end [2025-03-09 15:03:17] Production.INFO: ProcessCDR(1,14642975,1,1,2) [2025-03-09 15:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642975', 'tblTempUsageDetail_20' ) start [2025-03-09 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642975', 'tblTempUsageDetail_20' ) end [2025-03-09 15:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:03:21] Production.INFO: ==29977== Releasing lock... [2025-03-09 15:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:03:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:04:05 [end_date_ymd] => 2025-03-09 15:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:04:05' and `end` < '2025-03-09 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-09 15:04:17] Production.INFO: count ==882 [2025-03-09 15:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:04:05 - End Time 2025-03-09 15:04:05 [2025-03-09 15:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642980', 'tblTempUsageDetail_20' ) start [2025-03-09 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642980', 'tblTempUsageDetail_20' ) end [2025-03-09 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642980', 'tblTempVendorCDR_20' ) start [2025-03-09 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642980', 'tblTempVendorCDR_20' ) end [2025-03-09 15:04:17] Production.INFO: ProcessCDR(1,14642980,1,1,2) [2025-03-09 15:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642980', 'tblTempUsageDetail_20' ) start [2025-03-09 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642980', 'tblTempUsageDetail_20' ) end [2025-03-09 15:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:04:22] Production.INFO: ==30050== Releasing lock... [2025-03-09 15:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:05:05 [end_date_ymd] => 2025-03-09 15:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:05:05' and `end` < '2025-03-09 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-09 15:05:17] Production.INFO: count ==881 [2025-03-09 15:05:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:05:05 - End Time 2025-03-09 15:05:05 [2025-03-09 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642985', 'tblTempUsageDetail_20' ) start [2025-03-09 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642985', 'tblTempUsageDetail_20' ) end [2025-03-09 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642985', 'tblTempVendorCDR_20' ) start [2025-03-09 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642985', 'tblTempVendorCDR_20' ) end [2025-03-09 15:05:18] Production.INFO: ProcessCDR(1,14642985,1,1,2) [2025-03-09 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642985', 'tblTempUsageDetail_20' ) start [2025-03-09 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642985', 'tblTempUsageDetail_20' ) end [2025-03-09 15:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:05:21] Production.INFO: ==30201== Releasing lock... [2025-03-09 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:05:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:06:05 [end_date_ymd] => 2025-03-09 15:06:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:06:05' and `end` < '2025-03-09 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-09 15:06:17] Production.INFO: count ==890 [2025-03-09 15:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:06:05 - End Time 2025-03-09 15:06:05 [2025-03-09 15:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642990', 'tblTempUsageDetail_20' ) start [2025-03-09 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642990', 'tblTempUsageDetail_20' ) end [2025-03-09 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642990', 'tblTempVendorCDR_20' ) start [2025-03-09 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642990', 'tblTempVendorCDR_20' ) end [2025-03-09 15:06:17] Production.INFO: ProcessCDR(1,14642990,1,1,2) [2025-03-09 15:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642990', 'tblTempUsageDetail_20' ) start [2025-03-09 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642990', 'tblTempUsageDetail_20' ) end [2025-03-09 15:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:06:21] Production.INFO: ==30278== Releasing lock... [2025-03-09 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:06:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:07:04 [end_date_ymd] => 2025-03-09 15:07:04 [RateCDR] => 1 ) [2025-03-09 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:07:04' and `end` < '2025-03-09 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:07:16] Production.INFO: count ==879 [2025-03-09 15:07:16] Production.ERROR: pbx CDR StartTime 2025-03-09 12:07:04 - End Time 2025-03-09 15:07:04 [2025-03-09 15:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642995', 'tblTempUsageDetail_20' ) start [2025-03-09 15:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14642995', 'tblTempUsageDetail_20' ) end [2025-03-09 15:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642995', 'tblTempVendorCDR_20' ) start [2025-03-09 15:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14642995', 'tblTempVendorCDR_20' ) end [2025-03-09 15:07:16] Production.INFO: ProcessCDR(1,14642995,1,1,2) [2025-03-09 15:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14642995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14642995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14642995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14642995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642995', 'tblTempUsageDetail_20' ) start [2025-03-09 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14642995', 'tblTempUsageDetail_20' ) end [2025-03-09 15:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:07:21] Production.INFO: ==30390== Releasing lock... [2025-03-09 15:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:07:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:08:05 [end_date_ymd] => 2025-03-09 15:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:08:05' and `end` < '2025-03-09 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-09 15:08:17] Production.INFO: count ==878 [2025-03-09 15:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:08:05 - End Time 2025-03-09 15:08:05 [2025-03-09 15:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643000', 'tblTempUsageDetail_20' ) start [2025-03-09 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643000', 'tblTempUsageDetail_20' ) end [2025-03-09 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643000', 'tblTempVendorCDR_20' ) start [2025-03-09 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643000', 'tblTempVendorCDR_20' ) end [2025-03-09 15:08:17] Production.INFO: ProcessCDR(1,14643000,1,1,2) [2025-03-09 15:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643000', 'tblTempUsageDetail_20' ) start [2025-03-09 15:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643000', 'tblTempUsageDetail_20' ) end [2025-03-09 15:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:08:21] Production.INFO: ==30574== Releasing lock... [2025-03-09 15:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:08:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:09:05 [end_date_ymd] => 2025-03-09 15:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:09:05' and `end` < '2025-03-09 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-09 15:09:17] Production.INFO: count ==878 [2025-03-09 15:09:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:09:05 - End Time 2025-03-09 15:09:05 [2025-03-09 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643005', 'tblTempUsageDetail_20' ) start [2025-03-09 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643005', 'tblTempUsageDetail_20' ) end [2025-03-09 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643005', 'tblTempVendorCDR_20' ) start [2025-03-09 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643005', 'tblTempVendorCDR_20' ) end [2025-03-09 15:09:18] Production.INFO: ProcessCDR(1,14643005,1,1,2) [2025-03-09 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643005', 'tblTempUsageDetail_20' ) start [2025-03-09 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643005', 'tblTempUsageDetail_20' ) end [2025-03-09 15:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:09:21] Production.INFO: ==30647== Releasing lock... [2025-03-09 15:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:09:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:10:06 [end_date_ymd] => 2025-03-09 15:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:10:06' and `end` < '2025-03-09 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-09 15:10:18] Production.INFO: count ==879 [2025-03-09 15:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:10:06 - End Time 2025-03-09 15:10:06 [2025-03-09 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643010', 'tblTempUsageDetail_20' ) start [2025-03-09 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643010', 'tblTempUsageDetail_20' ) end [2025-03-09 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643010', 'tblTempVendorCDR_20' ) start [2025-03-09 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643010', 'tblTempVendorCDR_20' ) end [2025-03-09 15:10:18] Production.INFO: ProcessCDR(1,14643010,1,1,2) [2025-03-09 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643010', 'tblTempUsageDetail_20' ) start [2025-03-09 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643010', 'tblTempUsageDetail_20' ) end [2025-03-09 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:10:23] Production.INFO: ==30727== Releasing lock... [2025-03-09 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:10:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:11:06 [end_date_ymd] => 2025-03-09 15:11:06 [RateCDR] => 1 ) [2025-03-09 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:11:06' and `end` < '2025-03-09 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:11:18] Production.INFO: count ==867 [2025-03-09 15:11:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:11:06 - End Time 2025-03-09 15:11:06 [2025-03-09 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643016', 'tblTempUsageDetail_20' ) start [2025-03-09 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643016', 'tblTempUsageDetail_20' ) end [2025-03-09 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643016', 'tblTempVendorCDR_20' ) start [2025-03-09 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643016', 'tblTempVendorCDR_20' ) end [2025-03-09 15:11:18] Production.INFO: ProcessCDR(1,14643016,1,1,2) [2025-03-09 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643016', 'tblTempUsageDetail_20' ) start [2025-03-09 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643016', 'tblTempUsageDetail_20' ) end [2025-03-09 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:11:23] Production.INFO: ==30803== Releasing lock... [2025-03-09 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:11:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:12:05 [end_date_ymd] => 2025-03-09 15:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:12:05' and `end` < '2025-03-09 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-09 15:12:17] Production.INFO: count ==866 [2025-03-09 15:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:12:05 - End Time 2025-03-09 15:12:05 [2025-03-09 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643021', 'tblTempUsageDetail_20' ) start [2025-03-09 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643021', 'tblTempUsageDetail_20' ) end [2025-03-09 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643021', 'tblTempVendorCDR_20' ) start [2025-03-09 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643021', 'tblTempVendorCDR_20' ) end [2025-03-09 15:12:18] Production.INFO: ProcessCDR(1,14643021,1,1,2) [2025-03-09 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643021', 'tblTempUsageDetail_20' ) start [2025-03-09 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643021', 'tblTempUsageDetail_20' ) end [2025-03-09 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:12:22] Production.INFO: ==30971== Releasing lock... [2025-03-09 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:13:05 [end_date_ymd] => 2025-03-09 15:13:05 [RateCDR] => 1 ) [2025-03-09 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:13:05' and `end` < '2025-03-09 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:13:17] Production.INFO: count ==871 [2025-03-09 15:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:13:05 - End Time 2025-03-09 15:13:05 [2025-03-09 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643026', 'tblTempUsageDetail_20' ) start [2025-03-09 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643026', 'tblTempUsageDetail_20' ) end [2025-03-09 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643026', 'tblTempVendorCDR_20' ) start [2025-03-09 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643026', 'tblTempVendorCDR_20' ) end [2025-03-09 15:13:18] Production.INFO: ProcessCDR(1,14643026,1,1,2) [2025-03-09 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643026', 'tblTempUsageDetail_20' ) start [2025-03-09 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643026', 'tblTempUsageDetail_20' ) end [2025-03-09 15:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:13:22] Production.INFO: ==31084== Releasing lock... [2025-03-09 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:13:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:14:05 [end_date_ymd] => 2025-03-09 15:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:14:05' and `end` < '2025-03-09 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-09 15:14:17] Production.INFO: count ==874 [2025-03-09 15:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:14:05 - End Time 2025-03-09 15:14:05 [2025-03-09 15:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643031', 'tblTempUsageDetail_20' ) start [2025-03-09 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643031', 'tblTempUsageDetail_20' ) end [2025-03-09 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643031', 'tblTempVendorCDR_20' ) start [2025-03-09 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643031', 'tblTempVendorCDR_20' ) end [2025-03-09 15:14:17] Production.INFO: ProcessCDR(1,14643031,1,1,2) [2025-03-09 15:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643031', 'tblTempUsageDetail_20' ) start [2025-03-09 15:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643031', 'tblTempUsageDetail_20' ) end [2025-03-09 15:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:14:20] Production.INFO: ==31193== Releasing lock... [2025-03-09 15:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:14:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:15:06 [end_date_ymd] => 2025-03-09 15:15:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:15:06' and `end` < '2025-03-09 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-09 15:15:18] Production.INFO: count ==874 [2025-03-09 15:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:15:06 - End Time 2025-03-09 15:15:06 [2025-03-09 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643036', 'tblTempUsageDetail_20' ) start [2025-03-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643036', 'tblTempUsageDetail_20' ) end [2025-03-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643036', 'tblTempVendorCDR_20' ) start [2025-03-09 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643036', 'tblTempVendorCDR_20' ) end [2025-03-09 15:15:18] Production.INFO: ProcessCDR(1,14643036,1,1,2) [2025-03-09 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643036', 'tblTempUsageDetail_20' ) start [2025-03-09 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643036', 'tblTempUsageDetail_20' ) end [2025-03-09 15:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:15:21] Production.INFO: ==31378== Releasing lock... [2025-03-09 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:16:05 [end_date_ymd] => 2025-03-09 15:16:05 [RateCDR] => 1 ) [2025-03-09 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:16:05' and `end` < '2025-03-09 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:16:17] Production.INFO: count ==875 [2025-03-09 15:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:16:05 - End Time 2025-03-09 15:16:05 [2025-03-09 15:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643041', 'tblTempUsageDetail_20' ) start [2025-03-09 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643041', 'tblTempUsageDetail_20' ) end [2025-03-09 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643041', 'tblTempVendorCDR_20' ) start [2025-03-09 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643041', 'tblTempVendorCDR_20' ) end [2025-03-09 15:16:17] Production.INFO: ProcessCDR(1,14643041,1,1,2) [2025-03-09 15:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643041', 'tblTempUsageDetail_20' ) start [2025-03-09 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643041', 'tblTempUsageDetail_20' ) end [2025-03-09 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:16:22] Production.INFO: ==31487== Releasing lock... [2025-03-09 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:16:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:17:05 [end_date_ymd] => 2025-03-09 15:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:17:05' and `end` < '2025-03-09 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-09 15:17:17] Production.INFO: count ==877 [2025-03-09 15:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:17:05 - End Time 2025-03-09 15:17:05 [2025-03-09 15:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643046', 'tblTempUsageDetail_20' ) start [2025-03-09 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643046', 'tblTempUsageDetail_20' ) end [2025-03-09 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643046', 'tblTempVendorCDR_20' ) start [2025-03-09 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643046', 'tblTempVendorCDR_20' ) end [2025-03-09 15:17:17] Production.INFO: ProcessCDR(1,14643046,1,1,2) [2025-03-09 15:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643046', 'tblTempUsageDetail_20' ) start [2025-03-09 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643046', 'tblTempUsageDetail_20' ) end [2025-03-09 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:17:22] Production.INFO: ==31596== Releasing lock... [2025-03-09 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:17:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:18:06 [end_date_ymd] => 2025-03-09 15:18:06 [RateCDR] => 1 ) [2025-03-09 15: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-09 12:18:06' and `end` < '2025-03-09 15: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-09 15:18:18] Production.INFO: count ==878 [2025-03-09 15:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:18:06 - End Time 2025-03-09 15:18:06 [2025-03-09 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643051', 'tblTempUsageDetail_20' ) start [2025-03-09 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643051', 'tblTempUsageDetail_20' ) end [2025-03-09 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643051', 'tblTempVendorCDR_20' ) start [2025-03-09 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643051', 'tblTempVendorCDR_20' ) end [2025-03-09 15:18:18] Production.INFO: ProcessCDR(1,14643051,1,1,2) [2025-03-09 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643051', 'tblTempUsageDetail_20' ) start [2025-03-09 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643051', 'tblTempUsageDetail_20' ) end [2025-03-09 15:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:18:23] Production.INFO: ==31700== Releasing lock... [2025-03-09 15:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:18:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:19:05 [end_date_ymd] => 2025-03-09 15:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:19:05' and `end` < '2025-03-09 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-09 15:19:17] Production.INFO: count ==867 [2025-03-09 15:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:19:05 - End Time 2025-03-09 15:19:05 [2025-03-09 15:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643056', 'tblTempUsageDetail_20' ) start [2025-03-09 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643056', 'tblTempUsageDetail_20' ) end [2025-03-09 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643056', 'tblTempVendorCDR_20' ) start [2025-03-09 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643056', 'tblTempVendorCDR_20' ) end [2025-03-09 15:19:17] Production.INFO: ProcessCDR(1,14643056,1,1,2) [2025-03-09 15:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643056', 'tblTempUsageDetail_20' ) start [2025-03-09 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643056', 'tblTempUsageDetail_20' ) end [2025-03-09 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:19:22] Production.INFO: ==31807== Releasing lock... [2025-03-09 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:19:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:20:06 [end_date_ymd] => 2025-03-09 15:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:20:06' and `end` < '2025-03-09 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-09 15:20:18] Production.INFO: count ==865 [2025-03-09 15:20:19] Production.ERROR: pbx CDR StartTime 2025-03-09 12:20:06 - End Time 2025-03-09 15:20:06 [2025-03-09 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643062', 'tblTempUsageDetail_20' ) start [2025-03-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643062', 'tblTempUsageDetail_20' ) end [2025-03-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643062', 'tblTempVendorCDR_20' ) start [2025-03-09 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643062', 'tblTempVendorCDR_20' ) end [2025-03-09 15:20:19] Production.INFO: ProcessCDR(1,14643062,1,1,2) [2025-03-09 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643062', 'tblTempUsageDetail_20' ) start [2025-03-09 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643062', 'tblTempUsageDetail_20' ) end [2025-03-09 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:20:24] Production.INFO: ==31917== Releasing lock... [2025-03-09 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:20:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:21:05 [end_date_ymd] => 2025-03-09 15:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:21:05' and `end` < '2025-03-09 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-09 15:21:17] Production.INFO: count ==898 [2025-03-09 15:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:21:05 - End Time 2025-03-09 15:21:05 [2025-03-09 15:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643067', 'tblTempUsageDetail_20' ) start [2025-03-09 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643067', 'tblTempUsageDetail_20' ) end [2025-03-09 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643067', 'tblTempVendorCDR_20' ) start [2025-03-09 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643067', 'tblTempVendorCDR_20' ) end [2025-03-09 15:21:17] Production.INFO: ProcessCDR(1,14643067,1,1,2) [2025-03-09 15:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643067', 'tblTempUsageDetail_20' ) start [2025-03-09 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643067', 'tblTempUsageDetail_20' ) end [2025-03-09 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:21:22] Production.INFO: ==32022== Releasing lock... [2025-03-09 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:21:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:22:05 [end_date_ymd] => 2025-03-09 15:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:22:05' and `end` < '2025-03-09 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-09 15:22:18] Production.INFO: count ==895 [2025-03-09 15:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:22:05 - End Time 2025-03-09 15:22:05 [2025-03-09 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643072', 'tblTempUsageDetail_20' ) start [2025-03-09 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643072', 'tblTempUsageDetail_20' ) end [2025-03-09 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643072', 'tblTempVendorCDR_20' ) start [2025-03-09 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643072', 'tblTempVendorCDR_20' ) end [2025-03-09 15:22:18] Production.INFO: ProcessCDR(1,14643072,1,1,2) [2025-03-09 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643072', 'tblTempUsageDetail_20' ) start [2025-03-09 15:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643072', 'tblTempUsageDetail_20' ) end [2025-03-09 15:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:22:21] Production.INFO: ==32172== Releasing lock... [2025-03-09 15:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:22:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:23:05 [end_date_ymd] => 2025-03-09 15:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:23:05' and `end` < '2025-03-09 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-09 15:23:17] Production.INFO: count ==893 [2025-03-09 15:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:23:05 - End Time 2025-03-09 15:23:05 [2025-03-09 15:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643077', 'tblTempUsageDetail_20' ) start [2025-03-09 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643077', 'tblTempUsageDetail_20' ) end [2025-03-09 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643077', 'tblTempVendorCDR_20' ) start [2025-03-09 15:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643077', 'tblTempVendorCDR_20' ) end [2025-03-09 15:23:17] Production.INFO: ProcessCDR(1,14643077,1,1,2) [2025-03-09 15:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643077', 'tblTempUsageDetail_20' ) start [2025-03-09 15:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643077', 'tblTempUsageDetail_20' ) end [2025-03-09 15:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:23:20] Production.INFO: ==32277== Releasing lock... [2025-03-09 15:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:23:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:24:05 [end_date_ymd] => 2025-03-09 15:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:24:05' and `end` < '2025-03-09 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-09 15:24:17] Production.INFO: count ==893 [2025-03-09 15:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:24:05 - End Time 2025-03-09 15:24:05 [2025-03-09 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643082', 'tblTempUsageDetail_20' ) start [2025-03-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643082', 'tblTempUsageDetail_20' ) end [2025-03-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643082', 'tblTempVendorCDR_20' ) start [2025-03-09 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643082', 'tblTempVendorCDR_20' ) end [2025-03-09 15:24:18] Production.INFO: ProcessCDR(1,14643082,1,1,2) [2025-03-09 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643082', 'tblTempUsageDetail_20' ) start [2025-03-09 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643082', 'tblTempUsageDetail_20' ) end [2025-03-09 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:24:23] Production.INFO: ==32381== Releasing lock... [2025-03-09 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:24:23] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:25:05 [end_date_ymd] => 2025-03-09 15:25:05 [RateCDR] => 1 ) [2025-03-09 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:25:05' and `end` < '2025-03-09 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:25:17] Production.INFO: count ==895 [2025-03-09 15:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:25:05 - End Time 2025-03-09 15:25:05 [2025-03-09 15:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643087', 'tblTempUsageDetail_20' ) start [2025-03-09 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643087', 'tblTempUsageDetail_20' ) end [2025-03-09 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643087', 'tblTempVendorCDR_20' ) start [2025-03-09 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643087', 'tblTempVendorCDR_20' ) end [2025-03-09 15:25:17] Production.INFO: ProcessCDR(1,14643087,1,1,2) [2025-03-09 15:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643087', 'tblTempUsageDetail_20' ) start [2025-03-09 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643087', 'tblTempUsageDetail_20' ) end [2025-03-09 15:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:25:21] Production.INFO: ==32483== Releasing lock... [2025-03-09 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:25:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:26:05 [end_date_ymd] => 2025-03-09 15:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:26:05' and `end` < '2025-03-09 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-09 15:26:17] Production.INFO: count ==896 [2025-03-09 15:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:26:05 - End Time 2025-03-09 15:26:05 [2025-03-09 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643092', 'tblTempUsageDetail_20' ) start [2025-03-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643092', 'tblTempUsageDetail_20' ) end [2025-03-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643092', 'tblTempVendorCDR_20' ) start [2025-03-09 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643092', 'tblTempVendorCDR_20' ) end [2025-03-09 15:26:18] Production.INFO: ProcessCDR(1,14643092,1,1,2) [2025-03-09 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643092', 'tblTempUsageDetail_20' ) start [2025-03-09 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643092', 'tblTempUsageDetail_20' ) end [2025-03-09 15:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:26:22] Production.INFO: ==32586== Releasing lock... [2025-03-09 15:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:26:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:27:04 [end_date_ymd] => 2025-03-09 15:27:04 [RateCDR] => 1 ) [2025-03-09 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-09 12:27:04' and `end` < '2025-03-09 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-09 15:27:17] Production.INFO: count ==899 [2025-03-09 15:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:27:04 - End Time 2025-03-09 15:27:04 [2025-03-09 15:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643097', 'tblTempUsageDetail_20' ) start [2025-03-09 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643097', 'tblTempUsageDetail_20' ) end [2025-03-09 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643097', 'tblTempVendorCDR_20' ) start [2025-03-09 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643097', 'tblTempVendorCDR_20' ) end [2025-03-09 15:27:17] Production.INFO: ProcessCDR(1,14643097,1,1,2) [2025-03-09 15:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643097', 'tblTempUsageDetail_20' ) start [2025-03-09 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643097', 'tblTempUsageDetail_20' ) end [2025-03-09 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:27:22] Production.INFO: ==32688== Releasing lock... [2025-03-09 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:27:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:28:05 [end_date_ymd] => 2025-03-09 15:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:28:05' and `end` < '2025-03-09 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-09 15:28:17] Production.INFO: count ==899 [2025-03-09 15:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:28:05 - End Time 2025-03-09 15:28:05 [2025-03-09 15:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643102', 'tblTempUsageDetail_20' ) start [2025-03-09 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643102', 'tblTempUsageDetail_20' ) end [2025-03-09 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643102', 'tblTempVendorCDR_20' ) start [2025-03-09 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643102', 'tblTempVendorCDR_20' ) end [2025-03-09 15:28:17] Production.INFO: ProcessCDR(1,14643102,1,1,2) [2025-03-09 15:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643102', 'tblTempUsageDetail_20' ) start [2025-03-09 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643102', 'tblTempUsageDetail_20' ) end [2025-03-09 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:28:22] Production.INFO: ==32760== Releasing lock... [2025-03-09 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:28:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:29:04 [end_date_ymd] => 2025-03-09 15:29:04 [RateCDR] => 1 ) [2025-03-09 15:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:29:04' and `end` < '2025-03-09 15:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:29:16] Production.INFO: count ==902 [2025-03-09 15:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:29:04 - End Time 2025-03-09 15:29:04 [2025-03-09 15:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643107', 'tblTempUsageDetail_20' ) start [2025-03-09 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643107', 'tblTempUsageDetail_20' ) end [2025-03-09 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643107', 'tblTempVendorCDR_20' ) start [2025-03-09 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643107', 'tblTempVendorCDR_20' ) end [2025-03-09 15:29:17] Production.INFO: ProcessCDR(1,14643107,1,1,2) [2025-03-09 15:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643107', 'tblTempUsageDetail_20' ) start [2025-03-09 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643107', 'tblTempUsageDetail_20' ) end [2025-03-09 15:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:29:21] Production.INFO: ==382== Releasing lock... [2025-03-09 15:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:29:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:30:06 [end_date_ymd] => 2025-03-09 15:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:30:06' and `end` < '2025-03-09 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-09 15:30:18] Production.INFO: count ==926 [2025-03-09 15:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:30:06 - End Time 2025-03-09 15:30:06 [2025-03-09 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643113', 'tblTempUsageDetail_20' ) start [2025-03-09 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643113', 'tblTempUsageDetail_20' ) end [2025-03-09 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643113', 'tblTempVendorCDR_20' ) start [2025-03-09 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643113', 'tblTempVendorCDR_20' ) end [2025-03-09 15:30:18] Production.INFO: ProcessCDR(1,14643113,1,1,2) [2025-03-09 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643113', 'tblTempUsageDetail_20' ) start [2025-03-09 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643113', 'tblTempUsageDetail_20' ) end [2025-03-09 15:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:30:23] Production.INFO: ==458== Releasing lock... [2025-03-09 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:30:23] Production.INFO: 35 MB #Memory Used# [2025-03-09 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:31:06 [end_date_ymd] => 2025-03-09 15:31:06 [RateCDR] => 1 ) [2025-03-09 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:31:06' and `end` < '2025-03-09 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:31:18] Production.INFO: count ==967 [2025-03-09 15:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:31:06 - End Time 2025-03-09 15:31:06 [2025-03-09 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643118', 'tblTempUsageDetail_20' ) start [2025-03-09 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643118', 'tblTempUsageDetail_20' ) end [2025-03-09 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643118', 'tblTempVendorCDR_20' ) start [2025-03-09 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643118', 'tblTempVendorCDR_20' ) end [2025-03-09 15:31:18] Production.INFO: ProcessCDR(1,14643118,1,1,2) [2025-03-09 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643118', 'tblTempUsageDetail_20' ) start [2025-03-09 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643118', 'tblTempUsageDetail_20' ) end [2025-03-09 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:31:23] Production.INFO: ==533== Releasing lock... [2025-03-09 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:31:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:32:05 [end_date_ymd] => 2025-03-09 15:32:05 [RateCDR] => 1 ) [2025-03-09 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:32:05' and `end` < '2025-03-09 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:32:17] Production.INFO: count ==966 [2025-03-09 15:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:32:05 - End Time 2025-03-09 15:32:05 [2025-03-09 15:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643123', 'tblTempUsageDetail_20' ) start [2025-03-09 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643123', 'tblTempUsageDetail_20' ) end [2025-03-09 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643123', 'tblTempVendorCDR_20' ) start [2025-03-09 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643123', 'tblTempVendorCDR_20' ) end [2025-03-09 15:32:17] Production.INFO: ProcessCDR(1,14643123,1,1,2) [2025-03-09 15:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643123', 'tblTempUsageDetail_20' ) start [2025-03-09 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643123', 'tblTempUsageDetail_20' ) end [2025-03-09 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:32:22] Production.INFO: ==612== Releasing lock... [2025-03-09 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:33:05 [end_date_ymd] => 2025-03-09 15:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:33:05' and `end` < '2025-03-09 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-09 15:33:18] Production.INFO: count ==972 [2025-03-09 15:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:33:05 - End Time 2025-03-09 15:33:05 [2025-03-09 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643128', 'tblTempUsageDetail_20' ) start [2025-03-09 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643128', 'tblTempUsageDetail_20' ) end [2025-03-09 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643128', 'tblTempVendorCDR_20' ) start [2025-03-09 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643128', 'tblTempVendorCDR_20' ) end [2025-03-09 15:33:18] Production.INFO: ProcessCDR(1,14643128,1,1,2) [2025-03-09 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643128', 'tblTempUsageDetail_20' ) start [2025-03-09 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643128', 'tblTempUsageDetail_20' ) end [2025-03-09 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:33:23] Production.INFO: ==715== Releasing lock... [2025-03-09 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:33:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:34:05 [end_date_ymd] => 2025-03-09 15:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:34:05' and `end` < '2025-03-09 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-09 15:34:17] Production.INFO: count ==957 [2025-03-09 15:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:34:05 - End Time 2025-03-09 15:34:05 [2025-03-09 15:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643133', 'tblTempUsageDetail_20' ) start [2025-03-09 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643133', 'tblTempUsageDetail_20' ) end [2025-03-09 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643133', 'tblTempVendorCDR_20' ) start [2025-03-09 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643133', 'tblTempVendorCDR_20' ) end [2025-03-09 15:34:17] Production.INFO: ProcessCDR(1,14643133,1,1,2) [2025-03-09 15:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643133', 'tblTempUsageDetail_20' ) start [2025-03-09 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643133', 'tblTempUsageDetail_20' ) end [2025-03-09 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:34:22] Production.INFO: ==795== Releasing lock... [2025-03-09 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:35:05 [end_date_ymd] => 2025-03-09 15:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:35:05' and `end` < '2025-03-09 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-09 15:35:17] Production.INFO: count ==958 [2025-03-09 15:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:35:05 - End Time 2025-03-09 15:35:05 [2025-03-09 15:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643138', 'tblTempUsageDetail_20' ) start [2025-03-09 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643138', 'tblTempUsageDetail_20' ) end [2025-03-09 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643138', 'tblTempVendorCDR_20' ) start [2025-03-09 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643138', 'tblTempVendorCDR_20' ) end [2025-03-09 15:35:17] Production.INFO: ProcessCDR(1,14643138,1,1,2) [2025-03-09 15:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643138', 'tblTempUsageDetail_20' ) start [2025-03-09 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643138', 'tblTempUsageDetail_20' ) end [2025-03-09 15:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:35:21] Production.INFO: ==876== Releasing lock... [2025-03-09 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:35:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:36:05 [end_date_ymd] => 2025-03-09 15:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:36:05' and `end` < '2025-03-09 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-09 15:36:17] Production.INFO: count ==963 [2025-03-09 15:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:36:05 - End Time 2025-03-09 15:36:05 [2025-03-09 15:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643143', 'tblTempUsageDetail_20' ) start [2025-03-09 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643143', 'tblTempUsageDetail_20' ) end [2025-03-09 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643143', 'tblTempVendorCDR_20' ) start [2025-03-09 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643143', 'tblTempVendorCDR_20' ) end [2025-03-09 15:36:17] Production.INFO: ProcessCDR(1,14643143,1,1,2) [2025-03-09 15:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643143', 'tblTempUsageDetail_20' ) start [2025-03-09 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643143', 'tblTempUsageDetail_20' ) end [2025-03-09 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:36:22] Production.INFO: ==947== Releasing lock... [2025-03-09 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:36:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:37:05 [end_date_ymd] => 2025-03-09 15:37:05 [RateCDR] => 1 ) [2025-03-09 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:37:05' and `end` < '2025-03-09 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:37:17] Production.INFO: count ==964 [2025-03-09 15:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:37:05 - End Time 2025-03-09 15:37:05 [2025-03-09 15:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643148', 'tblTempUsageDetail_20' ) start [2025-03-09 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643148', 'tblTempUsageDetail_20' ) end [2025-03-09 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643148', 'tblTempVendorCDR_20' ) start [2025-03-09 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643148', 'tblTempVendorCDR_20' ) end [2025-03-09 15:37:17] Production.INFO: ProcessCDR(1,14643148,1,1,2) [2025-03-09 15:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643148', 'tblTempUsageDetail_20' ) start [2025-03-09 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643148', 'tblTempUsageDetail_20' ) end [2025-03-09 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:37:22] Production.INFO: ==1021== Releasing lock... [2025-03-09 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:37:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:38:05 [end_date_ymd] => 2025-03-09 15:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:38:05' and `end` < '2025-03-09 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-09 15:38:17] Production.INFO: count ==966 [2025-03-09 15:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:38:05 - End Time 2025-03-09 15:38:05 [2025-03-09 15:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643153', 'tblTempUsageDetail_20' ) start [2025-03-09 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643153', 'tblTempUsageDetail_20' ) end [2025-03-09 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643153', 'tblTempVendorCDR_20' ) start [2025-03-09 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643153', 'tblTempVendorCDR_20' ) end [2025-03-09 15:38:17] Production.INFO: ProcessCDR(1,14643153,1,1,2) [2025-03-09 15:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643153', 'tblTempUsageDetail_20' ) start [2025-03-09 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643153', 'tblTempUsageDetail_20' ) end [2025-03-09 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:38:22] Production.INFO: ==1135== Releasing lock... [2025-03-09 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:38:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:39:05 [end_date_ymd] => 2025-03-09 15:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:39:05' and `end` < '2025-03-09 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-09 15:39:17] Production.INFO: count ==966 [2025-03-09 15:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:39:05 - End Time 2025-03-09 15:39:05 [2025-03-09 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643158', 'tblTempUsageDetail_20' ) start [2025-03-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643158', 'tblTempUsageDetail_20' ) end [2025-03-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643158', 'tblTempVendorCDR_20' ) start [2025-03-09 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643158', 'tblTempVendorCDR_20' ) end [2025-03-09 15:39:18] Production.INFO: ProcessCDR(1,14643158,1,1,2) [2025-03-09 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643158', 'tblTempUsageDetail_20' ) start [2025-03-09 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643158', 'tblTempUsageDetail_20' ) end [2025-03-09 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:39:22] Production.INFO: ==1212== Releasing lock... [2025-03-09 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:40:06 [end_date_ymd] => 2025-03-09 15:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:40:06' and `end` < '2025-03-09 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-09 15:40:18] Production.INFO: count ==967 [2025-03-09 15:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:40:06 - End Time 2025-03-09 15:40:06 [2025-03-09 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643164', 'tblTempUsageDetail_20' ) start [2025-03-09 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643164', 'tblTempUsageDetail_20' ) end [2025-03-09 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643164', 'tblTempVendorCDR_20' ) start [2025-03-09 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643164', 'tblTempVendorCDR_20' ) end [2025-03-09 15:40:19] Production.INFO: ProcessCDR(1,14643164,1,1,2) [2025-03-09 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643164', 'tblTempUsageDetail_20' ) start [2025-03-09 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643164', 'tblTempUsageDetail_20' ) end [2025-03-09 15:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:40:23] Production.INFO: ==1298== Releasing lock... [2025-03-09 15:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:41:05 [end_date_ymd] => 2025-03-09 15:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:41:05' and `end` < '2025-03-09 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-09 15:41:17] Production.INFO: count ==982 [2025-03-09 15:41:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:41:05 - End Time 2025-03-09 15:41:05 [2025-03-09 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643169', 'tblTempUsageDetail_20' ) start [2025-03-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643169', 'tblTempUsageDetail_20' ) end [2025-03-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643169', 'tblTempVendorCDR_20' ) start [2025-03-09 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643169', 'tblTempVendorCDR_20' ) end [2025-03-09 15:41:18] Production.INFO: ProcessCDR(1,14643169,1,1,2) [2025-03-09 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643169', 'tblTempUsageDetail_20' ) start [2025-03-09 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643169', 'tblTempUsageDetail_20' ) end [2025-03-09 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:41:22] Production.INFO: ==1372== Releasing lock... [2025-03-09 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:41:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:42:05 [end_date_ymd] => 2025-03-09 15:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:42:05' and `end` < '2025-03-09 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-09 15:42:18] Production.INFO: count ==981 [2025-03-09 15:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:42:05 - End Time 2025-03-09 15:42:05 [2025-03-09 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643174', 'tblTempUsageDetail_20' ) start [2025-03-09 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643174', 'tblTempUsageDetail_20' ) end [2025-03-09 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643174', 'tblTempVendorCDR_20' ) start [2025-03-09 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643174', 'tblTempVendorCDR_20' ) end [2025-03-09 15:42:18] Production.INFO: ProcessCDR(1,14643174,1,1,2) [2025-03-09 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643174', 'tblTempUsageDetail_20' ) start [2025-03-09 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643174', 'tblTempUsageDetail_20' ) end [2025-03-09 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:42:23] Production.INFO: ==1445== Releasing lock... [2025-03-09 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:42:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:43:04 [end_date_ymd] => 2025-03-09 15:43:04 [RateCDR] => 1 ) [2025-03-09 15:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:43:04' and `end` < '2025-03-09 15:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:43:17] Production.INFO: count ==981 [2025-03-09 15:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:43:04 - End Time 2025-03-09 15:43:04 [2025-03-09 15:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643179', 'tblTempUsageDetail_20' ) start [2025-03-09 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643179', 'tblTempUsageDetail_20' ) end [2025-03-09 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643179', 'tblTempVendorCDR_20' ) start [2025-03-09 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643179', 'tblTempVendorCDR_20' ) end [2025-03-09 15:43:17] Production.INFO: ProcessCDR(1,14643179,1,1,2) [2025-03-09 15:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643179', 'tblTempUsageDetail_20' ) start [2025-03-09 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643179', 'tblTempUsageDetail_20' ) end [2025-03-09 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:43:22] Production.INFO: ==1546== Releasing lock... [2025-03-09 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:43:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:44:05 [end_date_ymd] => 2025-03-09 15:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:44:05' and `end` < '2025-03-09 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-09 15:44:17] Production.INFO: count ==981 [2025-03-09 15:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:44:05 - End Time 2025-03-09 15:44:05 [2025-03-09 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643184', 'tblTempUsageDetail_20' ) start [2025-03-09 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643184', 'tblTempUsageDetail_20' ) end [2025-03-09 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643184', 'tblTempVendorCDR_20' ) start [2025-03-09 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643184', 'tblTempVendorCDR_20' ) end [2025-03-09 15:44:18] Production.INFO: ProcessCDR(1,14643184,1,1,2) [2025-03-09 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643184', 'tblTempUsageDetail_20' ) start [2025-03-09 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643184', 'tblTempUsageDetail_20' ) end [2025-03-09 15:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:44:22] Production.INFO: ==1623== Releasing lock... [2025-03-09 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:44:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:45:05 [end_date_ymd] => 2025-03-09 15:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:45:05' and `end` < '2025-03-09 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-09 15:45:17] Production.INFO: count ==979 [2025-03-09 15:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:45:05 - End Time 2025-03-09 15:45:05 [2025-03-09 15:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643189', 'tblTempUsageDetail_20' ) start [2025-03-09 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643189', 'tblTempUsageDetail_20' ) end [2025-03-09 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643189', 'tblTempVendorCDR_20' ) start [2025-03-09 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643189', 'tblTempVendorCDR_20' ) end [2025-03-09 15:45:17] Production.INFO: ProcessCDR(1,14643189,1,1,2) [2025-03-09 15:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643189', 'tblTempUsageDetail_20' ) start [2025-03-09 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643189', 'tblTempUsageDetail_20' ) end [2025-03-09 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:45:22] Production.INFO: ==1695== Releasing lock... [2025-03-09 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:45:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:46:05 [end_date_ymd] => 2025-03-09 15:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:46:05' and `end` < '2025-03-09 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-09 15:46:17] Production.INFO: count ==981 [2025-03-09 15:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:46:05 - End Time 2025-03-09 15:46:05 [2025-03-09 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643194', 'tblTempUsageDetail_20' ) start [2025-03-09 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643194', 'tblTempUsageDetail_20' ) end [2025-03-09 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643194', 'tblTempVendorCDR_20' ) start [2025-03-09 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643194', 'tblTempVendorCDR_20' ) end [2025-03-09 15:46:18] Production.INFO: ProcessCDR(1,14643194,1,1,2) [2025-03-09 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643194', 'tblTempUsageDetail_20' ) start [2025-03-09 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643194', 'tblTempUsageDetail_20' ) end [2025-03-09 15:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:46:22] Production.INFO: ==1771== Releasing lock... [2025-03-09 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:47:05 [end_date_ymd] => 2025-03-09 15:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:47:05' and `end` < '2025-03-09 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-09 15:47:17] Production.INFO: count ==987 [2025-03-09 15:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:47:05 - End Time 2025-03-09 15:47:05 [2025-03-09 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643199', 'tblTempUsageDetail_20' ) start [2025-03-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643199', 'tblTempUsageDetail_20' ) end [2025-03-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643199', 'tblTempVendorCDR_20' ) start [2025-03-09 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643199', 'tblTempVendorCDR_20' ) end [2025-03-09 15:47:18] Production.INFO: ProcessCDR(1,14643199,1,1,2) [2025-03-09 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643199', 'tblTempUsageDetail_20' ) start [2025-03-09 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643199', 'tblTempUsageDetail_20' ) end [2025-03-09 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:47:22] Production.INFO: ==1852== Releasing lock... [2025-03-09 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:48:05 [end_date_ymd] => 2025-03-09 15:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:48:05' and `end` < '2025-03-09 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-09 15:48:17] Production.INFO: count ==990 [2025-03-09 15:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:48:05 - End Time 2025-03-09 15:48:05 [2025-03-09 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643204', 'tblTempUsageDetail_20' ) start [2025-03-09 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643204', 'tblTempUsageDetail_20' ) end [2025-03-09 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643204', 'tblTempVendorCDR_20' ) start [2025-03-09 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643204', 'tblTempVendorCDR_20' ) end [2025-03-09 15:48:18] Production.INFO: ProcessCDR(1,14643204,1,1,2) [2025-03-09 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643204', 'tblTempUsageDetail_20' ) start [2025-03-09 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643204', 'tblTempUsageDetail_20' ) end [2025-03-09 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:48:22] Production.INFO: ==1930== Releasing lock... [2025-03-09 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:48:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:49:05 [end_date_ymd] => 2025-03-09 15:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:49:05' and `end` < '2025-03-09 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-09 15:49:17] Production.INFO: count ==980 [2025-03-09 15:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:49:05 - End Time 2025-03-09 15:49:05 [2025-03-09 15:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643209', 'tblTempUsageDetail_20' ) start [2025-03-09 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643209', 'tblTempUsageDetail_20' ) end [2025-03-09 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643209', 'tblTempVendorCDR_20' ) start [2025-03-09 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643209', 'tblTempVendorCDR_20' ) end [2025-03-09 15:49:17] Production.INFO: ProcessCDR(1,14643209,1,1,2) [2025-03-09 15:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643209', 'tblTempUsageDetail_20' ) start [2025-03-09 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643209', 'tblTempUsageDetail_20' ) end [2025-03-09 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:49:21] Production.INFO: ==2004== Releasing lock... [2025-03-09 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:49:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:50:06 [end_date_ymd] => 2025-03-09 15:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 12:50:06' and `end` < '2025-03-09 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-09 15:50:18] Production.INFO: count ==982 [2025-03-09 15:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:50:06 - End Time 2025-03-09 15:50:06 [2025-03-09 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643215', 'tblTempUsageDetail_20' ) start [2025-03-09 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643215', 'tblTempUsageDetail_20' ) end [2025-03-09 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643215', 'tblTempVendorCDR_20' ) start [2025-03-09 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643215', 'tblTempVendorCDR_20' ) end [2025-03-09 15:50:18] Production.INFO: ProcessCDR(1,14643215,1,1,2) [2025-03-09 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643215', 'tblTempUsageDetail_20' ) start [2025-03-09 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643215', 'tblTempUsageDetail_20' ) end [2025-03-09 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:50:23] Production.INFO: ==2076== Releasing lock... [2025-03-09 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:50:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:51:05 [end_date_ymd] => 2025-03-09 15:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:51:05' and `end` < '2025-03-09 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-09 15:51:17] Production.INFO: count ==985 [2025-03-09 15:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:51:05 - End Time 2025-03-09 15:51:05 [2025-03-09 15:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643220', 'tblTempUsageDetail_20' ) start [2025-03-09 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643220', 'tblTempUsageDetail_20' ) end [2025-03-09 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643220', 'tblTempVendorCDR_20' ) start [2025-03-09 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643220', 'tblTempVendorCDR_20' ) end [2025-03-09 15:51:17] Production.INFO: ProcessCDR(1,14643220,1,1,2) [2025-03-09 15:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643220', 'tblTempUsageDetail_20' ) start [2025-03-09 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643220', 'tblTempUsageDetail_20' ) end [2025-03-09 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:51:22] Production.INFO: ==2150== Releasing lock... [2025-03-09 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:51:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:52:05 [end_date_ymd] => 2025-03-09 15:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:52:05' and `end` < '2025-03-09 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-09 15:52:17] Production.INFO: count ==989 [2025-03-09 15:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:52:05 - End Time 2025-03-09 15:52:05 [2025-03-09 15:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643225', 'tblTempUsageDetail_20' ) start [2025-03-09 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643225', 'tblTempUsageDetail_20' ) end [2025-03-09 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643225', 'tblTempVendorCDR_20' ) start [2025-03-09 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643225', 'tblTempVendorCDR_20' ) end [2025-03-09 15:52:17] Production.INFO: ProcessCDR(1,14643225,1,1,2) [2025-03-09 15:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643225', 'tblTempUsageDetail_20' ) start [2025-03-09 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643225', 'tblTempUsageDetail_20' ) end [2025-03-09 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:52:22] Production.INFO: ==2222== Releasing lock... [2025-03-09 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:52:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:53:05 [end_date_ymd] => 2025-03-09 15:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:53:05' and `end` < '2025-03-09 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-09 15:53:17] Production.INFO: count ==989 [2025-03-09 15:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:53:05 - End Time 2025-03-09 15:53:05 [2025-03-09 15:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643229', 'tblTempUsageDetail_20' ) start [2025-03-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643229', 'tblTempUsageDetail_20' ) end [2025-03-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643229', 'tblTempVendorCDR_20' ) start [2025-03-09 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643229', 'tblTempVendorCDR_20' ) end [2025-03-09 15:53:18] Production.INFO: ProcessCDR(1,14643229,1,1,2) [2025-03-09 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643229', 'tblTempUsageDetail_20' ) start [2025-03-09 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643229', 'tblTempUsageDetail_20' ) end [2025-03-09 15:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:53:21] Production.INFO: ==2338== Releasing lock... [2025-03-09 15:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:53:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:54:05 [end_date_ymd] => 2025-03-09 15:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:54:05' and `end` < '2025-03-09 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-09 15:54:17] Production.INFO: count ==992 [2025-03-09 15:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:54:05 - End Time 2025-03-09 15:54:05 [2025-03-09 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643235', 'tblTempUsageDetail_20' ) start [2025-03-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643235', 'tblTempUsageDetail_20' ) end [2025-03-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643235', 'tblTempVendorCDR_20' ) start [2025-03-09 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643235', 'tblTempVendorCDR_20' ) end [2025-03-09 15:54:18] Production.INFO: ProcessCDR(1,14643235,1,1,2) [2025-03-09 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643235', 'tblTempUsageDetail_20' ) start [2025-03-09 15:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643235', 'tblTempUsageDetail_20' ) end [2025-03-09 15:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:54:21] Production.INFO: ==2412== Releasing lock... [2025-03-09 15:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:55:05 [end_date_ymd] => 2025-03-09 15:55:05 [RateCDR] => 1 ) [2025-03-09 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 12:55:05' and `end` < '2025-03-09 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 15:55:18] Production.INFO: count ==994 [2025-03-09 15:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:55:05 - End Time 2025-03-09 15:55:05 [2025-03-09 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643240', 'tblTempUsageDetail_20' ) start [2025-03-09 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643240', 'tblTempUsageDetail_20' ) end [2025-03-09 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643240', 'tblTempVendorCDR_20' ) start [2025-03-09 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643240', 'tblTempVendorCDR_20' ) end [2025-03-09 15:55:18] Production.INFO: ProcessCDR(1,14643240,1,1,2) [2025-03-09 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643240', 'tblTempUsageDetail_20' ) start [2025-03-09 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643240', 'tblTempUsageDetail_20' ) end [2025-03-09 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:55:21] Production.INFO: ==2485== Releasing lock... [2025-03-09 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:55:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:56:05 [end_date_ymd] => 2025-03-09 15:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:56:05' and `end` < '2025-03-09 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-09 15:56:17] Production.INFO: count ==992 [2025-03-09 15:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:56:05 - End Time 2025-03-09 15:56:05 [2025-03-09 15:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643245', 'tblTempUsageDetail_20' ) start [2025-03-09 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643245', 'tblTempUsageDetail_20' ) end [2025-03-09 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643245', 'tblTempVendorCDR_20' ) start [2025-03-09 15:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643245', 'tblTempVendorCDR_20' ) end [2025-03-09 15:56:18] Production.INFO: ProcessCDR(1,14643245,1,1,2) [2025-03-09 15:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643245', 'tblTempUsageDetail_20' ) start [2025-03-09 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643245', 'tblTempUsageDetail_20' ) end [2025-03-09 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:56:22] Production.INFO: ==2559== Releasing lock... [2025-03-09 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:56:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:57:06 [end_date_ymd] => 2025-03-09 15:57:06 [RateCDR] => 1 ) [2025-03-09 15: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-09 12:57:06' and `end` < '2025-03-09 15: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-09 15:57:18] Production.INFO: count ==998 [2025-03-09 15:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:57:06 - End Time 2025-03-09 15:57:06 [2025-03-09 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643250', 'tblTempUsageDetail_20' ) start [2025-03-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643250', 'tblTempUsageDetail_20' ) end [2025-03-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643250', 'tblTempVendorCDR_20' ) start [2025-03-09 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643250', 'tblTempVendorCDR_20' ) end [2025-03-09 15:57:18] Production.INFO: ProcessCDR(1,14643250,1,1,2) [2025-03-09 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643250', 'tblTempUsageDetail_20' ) start [2025-03-09 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643250', 'tblTempUsageDetail_20' ) end [2025-03-09 15:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:57:21] Production.INFO: ==2629== Releasing lock... [2025-03-09 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:57:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:58:05 [end_date_ymd] => 2025-03-09 15:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:58:05' and `end` < '2025-03-09 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-09 15:58:17] Production.INFO: count ==998 [2025-03-09 15:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 12:58:05 - End Time 2025-03-09 15:58:05 [2025-03-09 15:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643255', 'tblTempUsageDetail_20' ) start [2025-03-09 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643255', 'tblTempUsageDetail_20' ) end [2025-03-09 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643255', 'tblTempVendorCDR_20' ) start [2025-03-09 15:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643255', 'tblTempVendorCDR_20' ) end [2025-03-09 15:58:17] Production.INFO: ProcessCDR(1,14643255,1,1,2) [2025-03-09 15:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643255', 'tblTempUsageDetail_20' ) start [2025-03-09 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643255', 'tblTempUsageDetail_20' ) end [2025-03-09 15:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:58:21] Production.INFO: ==2698== Releasing lock... [2025-03-09 15:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:58:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 12:59:05 [end_date_ymd] => 2025-03-09 15:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 12:59:05' and `end` < '2025-03-09 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-09 15:59:18] Production.INFO: count ==998 [2025-03-09 15:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 12:59:05 - End Time 2025-03-09 15:59:05 [2025-03-09 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643260', 'tblTempUsageDetail_20' ) start [2025-03-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643260', 'tblTempUsageDetail_20' ) end [2025-03-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643260', 'tblTempVendorCDR_20' ) start [2025-03-09 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643260', 'tblTempVendorCDR_20' ) end [2025-03-09 15:59:18] Production.INFO: ProcessCDR(1,14643260,1,1,2) [2025-03-09 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643260', 'tblTempUsageDetail_20' ) start [2025-03-09 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643260', 'tblTempUsageDetail_20' ) end [2025-03-09 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 15:59:21] Production.INFO: ==2770== Releasing lock... [2025-03-09 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 15:59:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:00:06 [end_date_ymd] => 2025-03-09 16:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 13:00:06' and `end` < '2025-03-09 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-09 16:00:18] Production.INFO: count ==1000 [2025-03-09 16:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:00:06 - End Time 2025-03-09 16:00:06 [2025-03-09 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643266', 'tblTempUsageDetail_20' ) start [2025-03-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643266', 'tblTempUsageDetail_20' ) end [2025-03-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643266', 'tblTempVendorCDR_20' ) start [2025-03-09 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643266', 'tblTempVendorCDR_20' ) end [2025-03-09 16:00:18] Production.INFO: ProcessCDR(1,14643266,1,1,2) [2025-03-09 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643266', 'tblTempUsageDetail_20' ) start [2025-03-09 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643266', 'tblTempUsageDetail_20' ) end [2025-03-09 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:00:23] Production.INFO: ==2849== Releasing lock... [2025-03-09 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:00:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:01:04 [end_date_ymd] => 2025-03-09 16:01:04 [RateCDR] => 1 ) [2025-03-09 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:01:04' and `end` < '2025-03-09 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:01:16] Production.INFO: count ==1012 [2025-03-09 16:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:01:04 - End Time 2025-03-09 16:01:04 [2025-03-09 16:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643271', 'tblTempUsageDetail_20' ) start [2025-03-09 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643271', 'tblTempUsageDetail_20' ) end [2025-03-09 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643271', 'tblTempVendorCDR_20' ) start [2025-03-09 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643271', 'tblTempVendorCDR_20' ) end [2025-03-09 16:01:17] Production.INFO: ProcessCDR(1,14643271,1,1,2) [2025-03-09 16:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643271', 'tblTempUsageDetail_20' ) start [2025-03-09 16:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643271', 'tblTempUsageDetail_20' ) end [2025-03-09 16:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:01:20] Production.INFO: ==2939== Releasing lock... [2025-03-09 16:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:01:20] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:02:05 [end_date_ymd] => 2025-03-09 16:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:02:05' and `end` < '2025-03-09 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-09 16:02:18] Production.INFO: count ==1011 [2025-03-09 16:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:02:05 - End Time 2025-03-09 16:02:05 [2025-03-09 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643276', 'tblTempUsageDetail_20' ) start [2025-03-09 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643276', 'tblTempUsageDetail_20' ) end [2025-03-09 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643276', 'tblTempVendorCDR_20' ) start [2025-03-09 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643276', 'tblTempVendorCDR_20' ) end [2025-03-09 16:02:18] Production.INFO: ProcessCDR(1,14643276,1,1,2) [2025-03-09 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643276', 'tblTempUsageDetail_20' ) start [2025-03-09 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643276', 'tblTempUsageDetail_20' ) end [2025-03-09 16:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:02:21] Production.INFO: ==3011== Releasing lock... [2025-03-09 16:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:02:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:03:05 [end_date_ymd] => 2025-03-09 16:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:03:05' and `end` < '2025-03-09 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-09 16:03:18] Production.INFO: count ==1006 [2025-03-09 16:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:03:05 - End Time 2025-03-09 16:03:05 [2025-03-09 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643281', 'tblTempUsageDetail_20' ) start [2025-03-09 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643281', 'tblTempUsageDetail_20' ) end [2025-03-09 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643281', 'tblTempVendorCDR_20' ) start [2025-03-09 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643281', 'tblTempVendorCDR_20' ) end [2025-03-09 16:03:18] Production.INFO: ProcessCDR(1,14643281,1,1,2) [2025-03-09 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643281', 'tblTempUsageDetail_20' ) start [2025-03-09 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643281', 'tblTempUsageDetail_20' ) end [2025-03-09 16:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:03:21] Production.INFO: ==3085== Releasing lock... [2025-03-09 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:03:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:04:05 [end_date_ymd] => 2025-03-09 16:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:04:05' and `end` < '2025-03-09 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-09 16:04:17] Production.INFO: count ==989 [2025-03-09 16:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:04:05 - End Time 2025-03-09 16:04:05 [2025-03-09 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643286', 'tblTempUsageDetail_20' ) start [2025-03-09 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643286', 'tblTempUsageDetail_20' ) end [2025-03-09 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643286', 'tblTempVendorCDR_20' ) start [2025-03-09 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643286', 'tblTempVendorCDR_20' ) end [2025-03-09 16:04:18] Production.INFO: ProcessCDR(1,14643286,1,1,2) [2025-03-09 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643286', 'tblTempUsageDetail_20' ) start [2025-03-09 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643286', 'tblTempUsageDetail_20' ) end [2025-03-09 16:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:04:21] Production.INFO: ==3159== Releasing lock... [2025-03-09 16:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:04:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:05:05 [end_date_ymd] => 2025-03-09 16:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:05:05' and `end` < '2025-03-09 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-09 16:05:17] Production.INFO: count ==978 [2025-03-09 16:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:05:05 - End Time 2025-03-09 16:05:05 [2025-03-09 16:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643291', 'tblTempUsageDetail_20' ) start [2025-03-09 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643291', 'tblTempUsageDetail_20' ) end [2025-03-09 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643291', 'tblTempVendorCDR_20' ) start [2025-03-09 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643291', 'tblTempVendorCDR_20' ) end [2025-03-09 16:05:17] Production.INFO: ProcessCDR(1,14643291,1,1,2) [2025-03-09 16:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643291', 'tblTempUsageDetail_20' ) start [2025-03-09 16:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643291', 'tblTempUsageDetail_20' ) end [2025-03-09 16:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:05:20] Production.INFO: ==3235== Releasing lock... [2025-03-09 16:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:05:20] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:06:05 [end_date_ymd] => 2025-03-09 16:06:05 [RateCDR] => 1 ) [2025-03-09 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:06:05' and `end` < '2025-03-09 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:06:17] Production.INFO: count ==969 [2025-03-09 16:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:06:05 - End Time 2025-03-09 16:06:05 [2025-03-09 16:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643296', 'tblTempUsageDetail_20' ) start [2025-03-09 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643296', 'tblTempUsageDetail_20' ) end [2025-03-09 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643296', 'tblTempVendorCDR_20' ) start [2025-03-09 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643296', 'tblTempVendorCDR_20' ) end [2025-03-09 16:06:17] Production.INFO: ProcessCDR(1,14643296,1,1,2) [2025-03-09 16:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643296', 'tblTempUsageDetail_20' ) start [2025-03-09 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643296', 'tblTempUsageDetail_20' ) end [2025-03-09 16:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:06:21] Production.INFO: ==3306== Releasing lock... [2025-03-09 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:06:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:07:05 [end_date_ymd] => 2025-03-09 16:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:07:05' and `end` < '2025-03-09 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-09 16:07:17] Production.INFO: count ==964 [2025-03-09 16:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:07:05 - End Time 2025-03-09 16:07:05 [2025-03-09 16:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643301', 'tblTempUsageDetail_20' ) start [2025-03-09 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643301', 'tblTempUsageDetail_20' ) end [2025-03-09 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643301', 'tblTempVendorCDR_20' ) start [2025-03-09 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643301', 'tblTempVendorCDR_20' ) end [2025-03-09 16:07:17] Production.INFO: ProcessCDR(1,14643301,1,1,2) [2025-03-09 16:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643301', 'tblTempUsageDetail_20' ) start [2025-03-09 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643301', 'tblTempUsageDetail_20' ) end [2025-03-09 16:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:07:22] Production.INFO: ==3376== Releasing lock... [2025-03-09 16:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:07:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:08:05 [end_date_ymd] => 2025-03-09 16:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:08:05' and `end` < '2025-03-09 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-09 16:08:17] Production.INFO: count ==959 [2025-03-09 16:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:08:05 - End Time 2025-03-09 16:08:05 [2025-03-09 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643306', 'tblTempUsageDetail_20' ) start [2025-03-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643306', 'tblTempUsageDetail_20' ) end [2025-03-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643306', 'tblTempVendorCDR_20' ) start [2025-03-09 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643306', 'tblTempVendorCDR_20' ) end [2025-03-09 16:08:18] Production.INFO: ProcessCDR(1,14643306,1,1,2) [2025-03-09 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643306', 'tblTempUsageDetail_20' ) start [2025-03-09 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643306', 'tblTempUsageDetail_20' ) end [2025-03-09 16:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:08:22] Production.INFO: ==3487== Releasing lock... [2025-03-09 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:08:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:09:04 [end_date_ymd] => 2025-03-09 16:09:04 [RateCDR] => 1 ) [2025-03-09 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:09:04' and `end` < '2025-03-09 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:09:16] Production.INFO: count ==955 [2025-03-09 16:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:09:04 - End Time 2025-03-09 16:09:04 [2025-03-09 16:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643311', 'tblTempUsageDetail_20' ) start [2025-03-09 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643311', 'tblTempUsageDetail_20' ) end [2025-03-09 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643311', 'tblTempVendorCDR_20' ) start [2025-03-09 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643311', 'tblTempVendorCDR_20' ) end [2025-03-09 16:09:17] Production.INFO: ProcessCDR(1,14643311,1,1,2) [2025-03-09 16:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643311', 'tblTempUsageDetail_20' ) start [2025-03-09 16:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643311', 'tblTempUsageDetail_20' ) end [2025-03-09 16:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:09:20] Production.INFO: ==3556== Releasing lock... [2025-03-09 16:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:09:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:10:06 [end_date_ymd] => 2025-03-09 16:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 13:10:06' and `end` < '2025-03-09 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-09 16:10:18] Production.INFO: count ==956 [2025-03-09 16:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:10:06 - End Time 2025-03-09 16:10:06 [2025-03-09 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643316', 'tblTempUsageDetail_20' ) start [2025-03-09 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643316', 'tblTempUsageDetail_20' ) end [2025-03-09 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643316', 'tblTempVendorCDR_20' ) start [2025-03-09 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643316', 'tblTempVendorCDR_20' ) end [2025-03-09 16:10:18] Production.INFO: ProcessCDR(1,14643316,1,1,2) [2025-03-09 16:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643316', 'tblTempUsageDetail_20' ) start [2025-03-09 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643316', 'tblTempUsageDetail_20' ) end [2025-03-09 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:10:23] Production.INFO: ==3627== Releasing lock... [2025-03-09 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:10:23] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:11:04 [end_date_ymd] => 2025-03-09 16:11:04 [RateCDR] => 1 ) [2025-03-09 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:11:04' and `end` < '2025-03-09 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:11:16] Production.INFO: count ==950 [2025-03-09 16:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:11:04 - End Time 2025-03-09 16:11:04 [2025-03-09 16:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643322', 'tblTempUsageDetail_20' ) start [2025-03-09 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643322', 'tblTempUsageDetail_20' ) end [2025-03-09 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643322', 'tblTempVendorCDR_20' ) start [2025-03-09 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643322', 'tblTempVendorCDR_20' ) end [2025-03-09 16:11:17] Production.INFO: ProcessCDR(1,14643322,1,1,2) [2025-03-09 16:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643322', 'tblTempUsageDetail_20' ) start [2025-03-09 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643322', 'tblTempUsageDetail_20' ) end [2025-03-09 16:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:11:22] Production.INFO: ==3703== Releasing lock... [2025-03-09 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:11:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:12:05 [end_date_ymd] => 2025-03-09 16:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:12:05' and `end` < '2025-03-09 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-09 16:12:17] Production.INFO: count ==947 [2025-03-09 16:12:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:12:05 - End Time 2025-03-09 16:12:05 [2025-03-09 16:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643327', 'tblTempUsageDetail_20' ) start [2025-03-09 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643327', 'tblTempUsageDetail_20' ) end [2025-03-09 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643327', 'tblTempVendorCDR_20' ) start [2025-03-09 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643327', 'tblTempVendorCDR_20' ) end [2025-03-09 16:12:17] Production.INFO: ProcessCDR(1,14643327,1,1,2) [2025-03-09 16:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643327', 'tblTempUsageDetail_20' ) start [2025-03-09 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643327', 'tblTempUsageDetail_20' ) end [2025-03-09 16:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:12:21] Production.INFO: ==3782== Releasing lock... [2025-03-09 16:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:13:04 [end_date_ymd] => 2025-03-09 16:13:04 [RateCDR] => 1 ) [2025-03-09 16:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:13:04' and `end` < '2025-03-09 16:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:13:17] Production.INFO: count ==943 [2025-03-09 16:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:13:04 - End Time 2025-03-09 16:13:04 [2025-03-09 16:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643332', 'tblTempUsageDetail_20' ) start [2025-03-09 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643332', 'tblTempUsageDetail_20' ) end [2025-03-09 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643332', 'tblTempVendorCDR_20' ) start [2025-03-09 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643332', 'tblTempVendorCDR_20' ) end [2025-03-09 16:13:17] Production.INFO: ProcessCDR(1,14643332,1,1,2) [2025-03-09 16:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643332', 'tblTempUsageDetail_20' ) start [2025-03-09 16:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643332', 'tblTempUsageDetail_20' ) end [2025-03-09 16:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:13:20] Production.INFO: ==3852== Releasing lock... [2025-03-09 16:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:13:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:14:05 [end_date_ymd] => 2025-03-09 16:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:14:05' and `end` < '2025-03-09 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-09 16:14:17] Production.INFO: count ==945 [2025-03-09 16:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:14:05 - End Time 2025-03-09 16:14:05 [2025-03-09 16:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643337', 'tblTempUsageDetail_20' ) start [2025-03-09 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643337', 'tblTempUsageDetail_20' ) end [2025-03-09 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643337', 'tblTempVendorCDR_20' ) start [2025-03-09 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643337', 'tblTempVendorCDR_20' ) end [2025-03-09 16:14:17] Production.INFO: ProcessCDR(1,14643337,1,1,2) [2025-03-09 16:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643337', 'tblTempUsageDetail_20' ) start [2025-03-09 16:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643337', 'tblTempUsageDetail_20' ) end [2025-03-09 16:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:14:22] Production.INFO: ==3931== Releasing lock... [2025-03-09 16:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:15:05 [end_date_ymd] => 2025-03-09 16:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:15:05' and `end` < '2025-03-09 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-09 16:15:17] Production.INFO: count ==950 [2025-03-09 16:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:15:05 - End Time 2025-03-09 16:15:05 [2025-03-09 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643342', 'tblTempUsageDetail_20' ) start [2025-03-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643342', 'tblTempUsageDetail_20' ) end [2025-03-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643342', 'tblTempVendorCDR_20' ) start [2025-03-09 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643342', 'tblTempVendorCDR_20' ) end [2025-03-09 16:15:18] Production.INFO: ProcessCDR(1,14643342,1,1,2) [2025-03-09 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643342', 'tblTempUsageDetail_20' ) start [2025-03-09 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643342', 'tblTempUsageDetail_20' ) end [2025-03-09 16:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:15:21] Production.INFO: ==4003== Releasing lock... [2025-03-09 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:15:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:16:05 [end_date_ymd] => 2025-03-09 16:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:16:05' and `end` < '2025-03-09 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-09 16:16:17] Production.INFO: count ==948 [2025-03-09 16:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:16:05 - End Time 2025-03-09 16:16:05 [2025-03-09 16:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643347', 'tblTempUsageDetail_20' ) start [2025-03-09 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643347', 'tblTempUsageDetail_20' ) end [2025-03-09 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643347', 'tblTempVendorCDR_20' ) start [2025-03-09 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643347', 'tblTempVendorCDR_20' ) end [2025-03-09 16:16:17] Production.INFO: ProcessCDR(1,14643347,1,1,2) [2025-03-09 16:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643347', 'tblTempUsageDetail_20' ) start [2025-03-09 16:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643347', 'tblTempUsageDetail_20' ) end [2025-03-09 16:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:16:20] Production.INFO: ==4077== Releasing lock... [2025-03-09 16:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:16:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:17:06 [end_date_ymd] => 2025-03-09 16:17:06 [RateCDR] => 1 ) [2025-03-09 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:17:06' and `end` < '2025-03-09 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:17:18] Production.INFO: count ==947 [2025-03-09 16:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:17:06 - End Time 2025-03-09 16:17:06 [2025-03-09 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643352', 'tblTempUsageDetail_20' ) start [2025-03-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643352', 'tblTempUsageDetail_20' ) end [2025-03-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643352', 'tblTempVendorCDR_20' ) start [2025-03-09 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643352', 'tblTempVendorCDR_20' ) end [2025-03-09 16:17:18] Production.INFO: ProcessCDR(1,14643352,1,1,2) [2025-03-09 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643352', 'tblTempUsageDetail_20' ) start [2025-03-09 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643352', 'tblTempUsageDetail_20' ) end [2025-03-09 16:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:17:21] Production.INFO: ==4148== Releasing lock... [2025-03-09 16:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:17:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:18:05 [end_date_ymd] => 2025-03-09 16:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:18:05' and `end` < '2025-03-09 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-09 16:18:17] Production.INFO: count ==946 [2025-03-09 16:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:18:05 - End Time 2025-03-09 16:18:05 [2025-03-09 16:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643357', 'tblTempUsageDetail_20' ) start [2025-03-09 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643357', 'tblTempUsageDetail_20' ) end [2025-03-09 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643357', 'tblTempVendorCDR_20' ) start [2025-03-09 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643357', 'tblTempVendorCDR_20' ) end [2025-03-09 16:18:17] Production.INFO: ProcessCDR(1,14643357,1,1,2) [2025-03-09 16:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643357', 'tblTempUsageDetail_20' ) start [2025-03-09 16:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643357', 'tblTempUsageDetail_20' ) end [2025-03-09 16:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:18:20] Production.INFO: ==4220== Releasing lock... [2025-03-09 16:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:18:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:19:06 [end_date_ymd] => 2025-03-09 16:19:06 [RateCDR] => 1 ) [2025-03-09 16: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-09 13:19:06' and `end` < '2025-03-09 16: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-09 16:19:18] Production.INFO: count ==947 [2025-03-09 16:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:19:06 - End Time 2025-03-09 16:19:06 [2025-03-09 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643362', 'tblTempUsageDetail_20' ) start [2025-03-09 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643362', 'tblTempUsageDetail_20' ) end [2025-03-09 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643362', 'tblTempVendorCDR_20' ) start [2025-03-09 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643362', 'tblTempVendorCDR_20' ) end [2025-03-09 16:19:18] Production.INFO: ProcessCDR(1,14643362,1,1,2) [2025-03-09 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643362', 'tblTempUsageDetail_20' ) start [2025-03-09 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643362', 'tblTempUsageDetail_20' ) end [2025-03-09 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:19:22] Production.INFO: ==4292== Releasing lock... [2025-03-09 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:19:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:20:06 [end_date_ymd] => 2025-03-09 16:20:06 [RateCDR] => 1 ) [2025-03-09 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:20:06' and `end` < '2025-03-09 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:20:18] Production.INFO: count ==950 [2025-03-09 16:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:20:06 - End Time 2025-03-09 16:20:06 [2025-03-09 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643368', 'tblTempUsageDetail_20' ) start [2025-03-09 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643368', 'tblTempUsageDetail_20' ) end [2025-03-09 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643368', 'tblTempVendorCDR_20' ) start [2025-03-09 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643368', 'tblTempVendorCDR_20' ) end [2025-03-09 16:20:18] Production.INFO: ProcessCDR(1,14643368,1,1,2) [2025-03-09 16:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643368', 'tblTempUsageDetail_20' ) start [2025-03-09 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643368', 'tblTempUsageDetail_20' ) end [2025-03-09 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:20:23] Production.INFO: ==4365== Releasing lock... [2025-03-09 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:20:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:21:05 [end_date_ymd] => 2025-03-09 16:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:21:05' and `end` < '2025-03-09 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-09 16:21:17] Production.INFO: count ==988 [2025-03-09 16:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:21:05 - End Time 2025-03-09 16:21:05 [2025-03-09 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643373', 'tblTempUsageDetail_20' ) start [2025-03-09 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643373', 'tblTempUsageDetail_20' ) end [2025-03-09 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643373', 'tblTempVendorCDR_20' ) start [2025-03-09 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643373', 'tblTempVendorCDR_20' ) end [2025-03-09 16:21:18] Production.INFO: ProcessCDR(1,14643373,1,1,2) [2025-03-09 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643373', 'tblTempUsageDetail_20' ) start [2025-03-09 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643373', 'tblTempUsageDetail_20' ) end [2025-03-09 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:21:23] Production.INFO: ==4439== Releasing lock... [2025-03-09 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:21:23] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:22:04 [end_date_ymd] => 2025-03-09 16:22:04 [RateCDR] => 1 ) [2025-03-09 16: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-09 13:22:04' and `end` < '2025-03-09 16: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-09 16:22:17] Production.INFO: count ==978 [2025-03-09 16:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:22:04 - End Time 2025-03-09 16:22:04 [2025-03-09 16:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643378', 'tblTempUsageDetail_20' ) start [2025-03-09 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643378', 'tblTempUsageDetail_20' ) end [2025-03-09 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643378', 'tblTempVendorCDR_20' ) start [2025-03-09 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643378', 'tblTempVendorCDR_20' ) end [2025-03-09 16:22:17] Production.INFO: ProcessCDR(1,14643378,1,1,2) [2025-03-09 16:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643378', 'tblTempUsageDetail_20' ) start [2025-03-09 16:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643378', 'tblTempUsageDetail_20' ) end [2025-03-09 16:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:22:20] Production.INFO: ==4511== Releasing lock... [2025-03-09 16:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:22:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:23:05 [end_date_ymd] => 2025-03-09 16:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:23:05' and `end` < '2025-03-09 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-09 16:23:17] Production.INFO: count ==980 [2025-03-09 16:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:23:05 - End Time 2025-03-09 16:23:05 [2025-03-09 16:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643383', 'tblTempUsageDetail_20' ) start [2025-03-09 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643383', 'tblTempUsageDetail_20' ) end [2025-03-09 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643383', 'tblTempVendorCDR_20' ) start [2025-03-09 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643383', 'tblTempVendorCDR_20' ) end [2025-03-09 16:23:17] Production.INFO: ProcessCDR(1,14643383,1,1,2) [2025-03-09 16:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643383', 'tblTempUsageDetail_20' ) start [2025-03-09 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643383', 'tblTempUsageDetail_20' ) end [2025-03-09 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:23:22] Production.INFO: ==4590== Releasing lock... [2025-03-09 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:23:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:24:04 [end_date_ymd] => 2025-03-09 16:24:04 [RateCDR] => 1 ) [2025-03-09 16: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-09 13:24:04' and `end` < '2025-03-09 16: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-09 16:24:16] Production.INFO: count ==986 [2025-03-09 16:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:24:04 - End Time 2025-03-09 16:24:04 [2025-03-09 16:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643388', 'tblTempUsageDetail_20' ) start [2025-03-09 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643388', 'tblTempUsageDetail_20' ) end [2025-03-09 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643388', 'tblTempVendorCDR_20' ) start [2025-03-09 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643388', 'tblTempVendorCDR_20' ) end [2025-03-09 16:24:17] Production.INFO: ProcessCDR(1,14643388,1,1,2) [2025-03-09 16:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643388', 'tblTempUsageDetail_20' ) start [2025-03-09 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643388', 'tblTempUsageDetail_20' ) end [2025-03-09 16:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:24:21] Production.INFO: ==4703== Releasing lock... [2025-03-09 16:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:24:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:25:05 [end_date_ymd] => 2025-03-09 16:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:25:05' and `end` < '2025-03-09 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-09 16:25:17] Production.INFO: count ==988 [2025-03-09 16:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:25:05 - End Time 2025-03-09 16:25:05 [2025-03-09 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643393', 'tblTempUsageDetail_20' ) start [2025-03-09 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643393', 'tblTempUsageDetail_20' ) end [2025-03-09 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643393', 'tblTempVendorCDR_20' ) start [2025-03-09 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643393', 'tblTempVendorCDR_20' ) end [2025-03-09 16:25:17] Production.INFO: ProcessCDR(1,14643393,1,1,2) [2025-03-09 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643393', 'tblTempUsageDetail_20' ) start [2025-03-09 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643393', 'tblTempUsageDetail_20' ) end [2025-03-09 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:25:22] Production.INFO: ==4774== Releasing lock... [2025-03-09 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:25:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:26:05 [end_date_ymd] => 2025-03-09 16:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:26:05' and `end` < '2025-03-09 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-09 16:26:17] Production.INFO: count ==993 [2025-03-09 16:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:26:05 - End Time 2025-03-09 16:26:05 [2025-03-09 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643398', 'tblTempUsageDetail_20' ) start [2025-03-09 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643398', 'tblTempUsageDetail_20' ) end [2025-03-09 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643398', 'tblTempVendorCDR_20' ) start [2025-03-09 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643398', 'tblTempVendorCDR_20' ) end [2025-03-09 16:26:18] Production.INFO: ProcessCDR(1,14643398,1,1,2) [2025-03-09 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643398', 'tblTempUsageDetail_20' ) start [2025-03-09 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643398', 'tblTempUsageDetail_20' ) end [2025-03-09 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:26:22] Production.INFO: ==4849== Releasing lock... [2025-03-09 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:26:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:27:05 [end_date_ymd] => 2025-03-09 16:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:27:05' and `end` < '2025-03-09 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-09 16:27:17] Production.INFO: count ==989 [2025-03-09 16:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:27:05 - End Time 2025-03-09 16:27:05 [2025-03-09 16:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643403', 'tblTempUsageDetail_20' ) start [2025-03-09 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643403', 'tblTempUsageDetail_20' ) end [2025-03-09 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643403', 'tblTempVendorCDR_20' ) start [2025-03-09 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643403', 'tblTempVendorCDR_20' ) end [2025-03-09 16:27:17] Production.INFO: ProcessCDR(1,14643403,1,1,2) [2025-03-09 16:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643403', 'tblTempUsageDetail_20' ) start [2025-03-09 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643403', 'tblTempUsageDetail_20' ) end [2025-03-09 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:27:22] Production.INFO: ==4923== Releasing lock... [2025-03-09 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:27:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:28:05 [end_date_ymd] => 2025-03-09 16:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:28:05' and `end` < '2025-03-09 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-09 16:28:17] Production.INFO: count ==993 [2025-03-09 16:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:28:05 - End Time 2025-03-09 16:28:05 [2025-03-09 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643408', 'tblTempUsageDetail_20' ) start [2025-03-09 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643408', 'tblTempUsageDetail_20' ) end [2025-03-09 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643408', 'tblTempVendorCDR_20' ) start [2025-03-09 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643408', 'tblTempVendorCDR_20' ) end [2025-03-09 16:28:18] Production.INFO: ProcessCDR(1,14643408,1,1,2) [2025-03-09 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643408', 'tblTempUsageDetail_20' ) start [2025-03-09 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643408', 'tblTempUsageDetail_20' ) end [2025-03-09 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:28:23] Production.INFO: ==4998== Releasing lock... [2025-03-09 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:28:23] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:29:05 [end_date_ymd] => 2025-03-09 16:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:29:05' and `end` < '2025-03-09 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-09 16:29:17] Production.INFO: count ==991 [2025-03-09 16:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:29:05 - End Time 2025-03-09 16:29:05 [2025-03-09 16:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643413', 'tblTempUsageDetail_20' ) start [2025-03-09 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643413', 'tblTempUsageDetail_20' ) end [2025-03-09 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643413', 'tblTempVendorCDR_20' ) start [2025-03-09 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643413', 'tblTempVendorCDR_20' ) end [2025-03-09 16:29:17] Production.INFO: ProcessCDR(1,14643413,1,1,2) [2025-03-09 16:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643413', 'tblTempUsageDetail_20' ) start [2025-03-09 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643413', 'tblTempUsageDetail_20' ) end [2025-03-09 16:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:29:22] Production.INFO: ==5068== Releasing lock... [2025-03-09 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:29:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:30:06 [end_date_ymd] => 2025-03-09 16:30:06 [RateCDR] => 1 ) [2025-03-09 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:30:06' and `end` < '2025-03-09 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:30:18] Production.INFO: count ==997 [2025-03-09 16:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:30:06 - End Time 2025-03-09 16:30:06 [2025-03-09 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643419', 'tblTempUsageDetail_20' ) start [2025-03-09 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643419', 'tblTempUsageDetail_20' ) end [2025-03-09 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643419', 'tblTempVendorCDR_20' ) start [2025-03-09 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643419', 'tblTempVendorCDR_20' ) end [2025-03-09 16:30:18] Production.INFO: ProcessCDR(1,14643419,1,1,2) [2025-03-09 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643419', 'tblTempUsageDetail_20' ) start [2025-03-09 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643419', 'tblTempUsageDetail_20' ) end [2025-03-09 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:30:23] Production.INFO: ==5143== Releasing lock... [2025-03-09 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:30:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:31:05 [end_date_ymd] => 2025-03-09 16:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:31:05' and `end` < '2025-03-09 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-09 16:31:17] Production.INFO: count ==961 [2025-03-09 16:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:31:05 - End Time 2025-03-09 16:31:05 [2025-03-09 16:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643424', 'tblTempUsageDetail_20' ) start [2025-03-09 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643424', 'tblTempUsageDetail_20' ) end [2025-03-09 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643424', 'tblTempVendorCDR_20' ) start [2025-03-09 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643424', 'tblTempVendorCDR_20' ) end [2025-03-09 16:31:17] Production.INFO: ProcessCDR(1,14643424,1,1,2) [2025-03-09 16:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643424', 'tblTempUsageDetail_20' ) start [2025-03-09 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643424', 'tblTempUsageDetail_20' ) end [2025-03-09 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:31:22] Production.INFO: ==5217== Releasing lock... [2025-03-09 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:31:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:32:05 [end_date_ymd] => 2025-03-09 16:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:32:05' and `end` < '2025-03-09 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-09 16:32:17] Production.INFO: count ==954 [2025-03-09 16:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:32:05 - End Time 2025-03-09 16:32:05 [2025-03-09 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643429', 'tblTempUsageDetail_20' ) start [2025-03-09 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643429', 'tblTempUsageDetail_20' ) end [2025-03-09 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643429', 'tblTempVendorCDR_20' ) start [2025-03-09 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643429', 'tblTempVendorCDR_20' ) end [2025-03-09 16:32:18] Production.INFO: ProcessCDR(1,14643429,1,1,2) [2025-03-09 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643429', 'tblTempUsageDetail_20' ) start [2025-03-09 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643429', 'tblTempUsageDetail_20' ) end [2025-03-09 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:32:23] Production.INFO: ==5295== Releasing lock... [2025-03-09 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:32:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:33:05 [end_date_ymd] => 2025-03-09 16:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:33:05' and `end` < '2025-03-09 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-09 16:33:17] Production.INFO: count ==955 [2025-03-09 16:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:33:05 - End Time 2025-03-09 16:33:05 [2025-03-09 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643434', 'tblTempUsageDetail_20' ) start [2025-03-09 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643434', 'tblTempUsageDetail_20' ) end [2025-03-09 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643434', 'tblTempVendorCDR_20' ) start [2025-03-09 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643434', 'tblTempVendorCDR_20' ) end [2025-03-09 16:33:17] Production.INFO: ProcessCDR(1,14643434,1,1,2) [2025-03-09 16:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643434', 'tblTempUsageDetail_20' ) start [2025-03-09 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643434', 'tblTempUsageDetail_20' ) end [2025-03-09 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:33:22] Production.INFO: ==5368== Releasing lock... [2025-03-09 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:33:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:34:05 [end_date_ymd] => 2025-03-09 16:34:05 [RateCDR] => 1 ) [2025-03-09 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:34:05' and `end` < '2025-03-09 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:34:17] Production.INFO: count ==956 [2025-03-09 16:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:34:05 - End Time 2025-03-09 16:34:05 [2025-03-09 16:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643439', 'tblTempUsageDetail_20' ) start [2025-03-09 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643439', 'tblTempUsageDetail_20' ) end [2025-03-09 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643439', 'tblTempVendorCDR_20' ) start [2025-03-09 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643439', 'tblTempVendorCDR_20' ) end [2025-03-09 16:34:17] Production.INFO: ProcessCDR(1,14643439,1,1,2) [2025-03-09 16:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643439', 'tblTempUsageDetail_20' ) start [2025-03-09 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643439', 'tblTempUsageDetail_20' ) end [2025-03-09 16:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:34:21] Production.INFO: ==5440== Releasing lock... [2025-03-09 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:34:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:35:06 [end_date_ymd] => 2025-03-09 16:35:06 [RateCDR] => 1 ) [2025-03-09 16: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-09 13:35:06' and `end` < '2025-03-09 16: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-09 16:35:18] Production.INFO: count ==959 [2025-03-09 16:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:35:06 - End Time 2025-03-09 16:35:06 [2025-03-09 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643444', 'tblTempUsageDetail_20' ) start [2025-03-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643444', 'tblTempUsageDetail_20' ) end [2025-03-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643444', 'tblTempVendorCDR_20' ) start [2025-03-09 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643444', 'tblTempVendorCDR_20' ) end [2025-03-09 16:35:18] Production.INFO: ProcessCDR(1,14643444,1,1,2) [2025-03-09 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643444', 'tblTempUsageDetail_20' ) start [2025-03-09 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643444', 'tblTempUsageDetail_20' ) end [2025-03-09 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:35:23] Production.INFO: ==5509== Releasing lock... [2025-03-09 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:35:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:36:04 [end_date_ymd] => 2025-03-09 16:36:04 [RateCDR] => 1 ) [2025-03-09 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:36:04' and `end` < '2025-03-09 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:36:16] Production.INFO: count ==959 [2025-03-09 16:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:36:04 - End Time 2025-03-09 16:36:04 [2025-03-09 16:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643449', 'tblTempUsageDetail_20' ) start [2025-03-09 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643449', 'tblTempUsageDetail_20' ) end [2025-03-09 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643449', 'tblTempVendorCDR_20' ) start [2025-03-09 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643449', 'tblTempVendorCDR_20' ) end [2025-03-09 16:36:17] Production.INFO: ProcessCDR(1,14643449,1,1,2) [2025-03-09 16:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643449', 'tblTempUsageDetail_20' ) start [2025-03-09 16:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643449', 'tblTempUsageDetail_20' ) end [2025-03-09 16:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:36:22] Production.INFO: ==5584== Releasing lock... [2025-03-09 16:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:36:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:37:05 [end_date_ymd] => 2025-03-09 16:37:05 [RateCDR] => 1 ) [2025-03-09 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:37:05' and `end` < '2025-03-09 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:37:17] Production.INFO: count ==960 [2025-03-09 16:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:37:05 - End Time 2025-03-09 16:37:05 [2025-03-09 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643454', 'tblTempUsageDetail_20' ) start [2025-03-09 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643454', 'tblTempUsageDetail_20' ) end [2025-03-09 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643454', 'tblTempVendorCDR_20' ) start [2025-03-09 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643454', 'tblTempVendorCDR_20' ) end [2025-03-09 16:37:18] Production.INFO: ProcessCDR(1,14643454,1,1,2) [2025-03-09 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643454', 'tblTempUsageDetail_20' ) start [2025-03-09 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643454', 'tblTempUsageDetail_20' ) end [2025-03-09 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:37:23] Production.INFO: ==5656== Releasing lock... [2025-03-09 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:37:23] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:38:05 [end_date_ymd] => 2025-03-09 16:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:38:05' and `end` < '2025-03-09 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-09 16:38:17] Production.INFO: count ==957 [2025-03-09 16:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:38:05 - End Time 2025-03-09 16:38:05 [2025-03-09 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643459', 'tblTempUsageDetail_20' ) start [2025-03-09 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643459', 'tblTempUsageDetail_20' ) end [2025-03-09 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643459', 'tblTempVendorCDR_20' ) start [2025-03-09 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643459', 'tblTempVendorCDR_20' ) end [2025-03-09 16:38:17] Production.INFO: ProcessCDR(1,14643459,1,1,2) [2025-03-09 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643459', 'tblTempUsageDetail_20' ) start [2025-03-09 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643459', 'tblTempUsageDetail_20' ) end [2025-03-09 16:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:38:21] Production.INFO: ==5727== Releasing lock... [2025-03-09 16:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:38:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:39:05 [end_date_ymd] => 2025-03-09 16:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:39:05' and `end` < '2025-03-09 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-09 16:39:17] Production.INFO: count ==953 [2025-03-09 16:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:39:05 - End Time 2025-03-09 16:39:05 [2025-03-09 16:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643464', 'tblTempUsageDetail_20' ) start [2025-03-09 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643464', 'tblTempUsageDetail_20' ) end [2025-03-09 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643464', 'tblTempVendorCDR_20' ) start [2025-03-09 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643464', 'tblTempVendorCDR_20' ) end [2025-03-09 16:39:17] Production.INFO: ProcessCDR(1,14643464,1,1,2) [2025-03-09 16:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643464', 'tblTempUsageDetail_20' ) start [2025-03-09 16:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643464', 'tblTempUsageDetail_20' ) end [2025-03-09 16:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:39:20] Production.INFO: ==5836== Releasing lock... [2025-03-09 16:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:39:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:40:06 [end_date_ymd] => 2025-03-09 16:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 13:40:06' and `end` < '2025-03-09 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-09 16:40:18] Production.INFO: count ==955 [2025-03-09 16:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:40:06 - End Time 2025-03-09 16:40:06 [2025-03-09 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643469', 'tblTempUsageDetail_20' ) start [2025-03-09 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643469', 'tblTempUsageDetail_20' ) end [2025-03-09 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643469', 'tblTempVendorCDR_20' ) start [2025-03-09 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643469', 'tblTempVendorCDR_20' ) end [2025-03-09 16:40:18] Production.INFO: ProcessCDR(1,14643469,1,1,2) [2025-03-09 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643469', 'tblTempUsageDetail_20' ) start [2025-03-09 16:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643469', 'tblTempUsageDetail_20' ) end [2025-03-09 16:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:40:21] Production.INFO: ==5911== Releasing lock... [2025-03-09 16:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:40:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:41:05 [end_date_ymd] => 2025-03-09 16:41:05 [RateCDR] => 1 ) [2025-03-09 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:41:05' and `end` < '2025-03-09 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:41:17] Production.INFO: count ==1008 [2025-03-09 16:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:41:05 - End Time 2025-03-09 16:41:05 [2025-03-09 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643475', 'tblTempUsageDetail_20' ) start [2025-03-09 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643475', 'tblTempUsageDetail_20' ) end [2025-03-09 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643475', 'tblTempVendorCDR_20' ) start [2025-03-09 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643475', 'tblTempVendorCDR_20' ) end [2025-03-09 16:41:17] Production.INFO: ProcessCDR(1,14643475,1,1,2) [2025-03-09 16:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643475', 'tblTempUsageDetail_20' ) start [2025-03-09 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643475', 'tblTempUsageDetail_20' ) end [2025-03-09 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:41:22] Production.INFO: ==5989== Releasing lock... [2025-03-09 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:41:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:42:05 [end_date_ymd] => 2025-03-09 16:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:42:05' and `end` < '2025-03-09 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-09 16:42:17] Production.INFO: count ==1012 [2025-03-09 16:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:42:05 - End Time 2025-03-09 16:42:05 [2025-03-09 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643480', 'tblTempUsageDetail_20' ) start [2025-03-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643480', 'tblTempUsageDetail_20' ) end [2025-03-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643480', 'tblTempVendorCDR_20' ) start [2025-03-09 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643480', 'tblTempVendorCDR_20' ) end [2025-03-09 16:42:18] Production.INFO: ProcessCDR(1,14643480,1,1,2) [2025-03-09 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643480', 'tblTempUsageDetail_20' ) start [2025-03-09 16:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643480', 'tblTempUsageDetail_20' ) end [2025-03-09 16:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:42:22] Production.INFO: ==6065== Releasing lock... [2025-03-09 16:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:42:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:43:05 [end_date_ymd] => 2025-03-09 16:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:43:05' and `end` < '2025-03-09 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-09 16:43:17] Production.INFO: count ==1012 [2025-03-09 16:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:43:05 - End Time 2025-03-09 16:43:05 [2025-03-09 16:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643485', 'tblTempUsageDetail_20' ) start [2025-03-09 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643485', 'tblTempUsageDetail_20' ) end [2025-03-09 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643485', 'tblTempVendorCDR_20' ) start [2025-03-09 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643485', 'tblTempVendorCDR_20' ) end [2025-03-09 16:43:18] Production.INFO: ProcessCDR(1,14643485,1,1,2) [2025-03-09 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643485', 'tblTempUsageDetail_20' ) start [2025-03-09 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643485', 'tblTempUsageDetail_20' ) end [2025-03-09 16:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:43:21] Production.INFO: ==6136== Releasing lock... [2025-03-09 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:43:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:44:05 [end_date_ymd] => 2025-03-09 16:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:44:05' and `end` < '2025-03-09 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-09 16:44:18] Production.INFO: count ==1013 [2025-03-09 16:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:44:05 - End Time 2025-03-09 16:44:05 [2025-03-09 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643490', 'tblTempUsageDetail_20' ) start [2025-03-09 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643490', 'tblTempUsageDetail_20' ) end [2025-03-09 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643490', 'tblTempVendorCDR_20' ) start [2025-03-09 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643490', 'tblTempVendorCDR_20' ) end [2025-03-09 16:44:18] Production.INFO: ProcessCDR(1,14643490,1,1,2) [2025-03-09 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643490', 'tblTempUsageDetail_20' ) start [2025-03-09 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643490', 'tblTempUsageDetail_20' ) end [2025-03-09 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:44:23] Production.INFO: ==6209== Releasing lock... [2025-03-09 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:44:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:45:05 [end_date_ymd] => 2025-03-09 16:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:45:05' and `end` < '2025-03-09 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-09 16:45:17] Production.INFO: count ==1014 [2025-03-09 16:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:45:05 - End Time 2025-03-09 16:45:05 [2025-03-09 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643495', 'tblTempUsageDetail_20' ) start [2025-03-09 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643495', 'tblTempUsageDetail_20' ) end [2025-03-09 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643495', 'tblTempVendorCDR_20' ) start [2025-03-09 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643495', 'tblTempVendorCDR_20' ) end [2025-03-09 16:45:18] Production.INFO: ProcessCDR(1,14643495,1,1,2) [2025-03-09 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643495', 'tblTempUsageDetail_20' ) start [2025-03-09 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643495', 'tblTempUsageDetail_20' ) end [2025-03-09 16:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:45:23] Production.INFO: ==6279== Releasing lock... [2025-03-09 16:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:45:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:46:06 [end_date_ymd] => 2025-03-09 16:46:06 [RateCDR] => 1 ) [2025-03-09 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:46:06' and `end` < '2025-03-09 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:46:18] Production.INFO: count ==1014 [2025-03-09 16:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:46:06 - End Time 2025-03-09 16:46:06 [2025-03-09 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643500', 'tblTempUsageDetail_20' ) start [2025-03-09 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643500', 'tblTempUsageDetail_20' ) end [2025-03-09 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643500', 'tblTempVendorCDR_20' ) start [2025-03-09 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643500', 'tblTempVendorCDR_20' ) end [2025-03-09 16:46:18] Production.INFO: ProcessCDR(1,14643500,1,1,2) [2025-03-09 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643500', 'tblTempUsageDetail_20' ) start [2025-03-09 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643500', 'tblTempUsageDetail_20' ) end [2025-03-09 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:46:22] Production.INFO: ==6352== Releasing lock... [2025-03-09 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:47:05 [end_date_ymd] => 2025-03-09 16:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:47:05' and `end` < '2025-03-09 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-09 16:47:17] Production.INFO: count ==1012 [2025-03-09 16:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:47:05 - End Time 2025-03-09 16:47:05 [2025-03-09 16:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643505', 'tblTempUsageDetail_20' ) start [2025-03-09 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643505', 'tblTempUsageDetail_20' ) end [2025-03-09 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643505', 'tblTempVendorCDR_20' ) start [2025-03-09 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643505', 'tblTempVendorCDR_20' ) end [2025-03-09 16:47:17] Production.INFO: ProcessCDR(1,14643505,1,1,2) [2025-03-09 16:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643505', 'tblTempUsageDetail_20' ) start [2025-03-09 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643505', 'tblTempUsageDetail_20' ) end [2025-03-09 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:47:22] Production.INFO: ==6424== Releasing lock... [2025-03-09 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:48:05 [end_date_ymd] => 2025-03-09 16:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:48:05' and `end` < '2025-03-09 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-09 16:48:17] Production.INFO: count ==1011 [2025-03-09 16:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:48:05 - End Time 2025-03-09 16:48:05 [2025-03-09 16:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643510', 'tblTempUsageDetail_20' ) start [2025-03-09 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643510', 'tblTempUsageDetail_20' ) end [2025-03-09 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643510', 'tblTempVendorCDR_20' ) start [2025-03-09 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643510', 'tblTempVendorCDR_20' ) end [2025-03-09 16:48:17] Production.INFO: ProcessCDR(1,14643510,1,1,2) [2025-03-09 16:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643510', 'tblTempUsageDetail_20' ) start [2025-03-09 16:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643510', 'tblTempUsageDetail_20' ) end [2025-03-09 16:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:48:20] Production.INFO: ==6501== Releasing lock... [2025-03-09 16:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:48:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:49:04 [end_date_ymd] => 2025-03-09 16:49:04 [RateCDR] => 1 ) [2025-03-09 16: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-09 13:49:04' and `end` < '2025-03-09 16: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-09 16:49:16] Production.INFO: count ==1012 [2025-03-09 16:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:49:04 - End Time 2025-03-09 16:49:04 [2025-03-09 16:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643515', 'tblTempUsageDetail_20' ) start [2025-03-09 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643515', 'tblTempUsageDetail_20' ) end [2025-03-09 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643515', 'tblTempVendorCDR_20' ) start [2025-03-09 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643515', 'tblTempVendorCDR_20' ) end [2025-03-09 16:49:17] Production.INFO: ProcessCDR(1,14643515,1,1,2) [2025-03-09 16:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643515', 'tblTempUsageDetail_20' ) start [2025-03-09 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643515', 'tblTempUsageDetail_20' ) end [2025-03-09 16:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:49:22] Production.INFO: ==6573== Releasing lock... [2025-03-09 16:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:49:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:50:06 [end_date_ymd] => 2025-03-09 16:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 13:50:06' and `end` < '2025-03-09 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-09 16:50:18] Production.INFO: count ==1010 [2025-03-09 16:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:50:06 - End Time 2025-03-09 16:50:06 [2025-03-09 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643521', 'tblTempUsageDetail_20' ) start [2025-03-09 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643521', 'tblTempUsageDetail_20' ) end [2025-03-09 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643521', 'tblTempVendorCDR_20' ) start [2025-03-09 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643521', 'tblTempVendorCDR_20' ) end [2025-03-09 16:50:18] Production.INFO: ProcessCDR(1,14643521,1,1,2) [2025-03-09 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643521', 'tblTempUsageDetail_20' ) start [2025-03-09 16:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643521', 'tblTempUsageDetail_20' ) end [2025-03-09 16:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:50:21] Production.INFO: ==6648== Releasing lock... [2025-03-09 16:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:50:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:51:06 [end_date_ymd] => 2025-03-09 16:51:06 [RateCDR] => 1 ) [2025-03-09 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 13:51:06' and `end` < '2025-03-09 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 16:51:18] Production.INFO: count ==1019 [2025-03-09 16:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:51:06 - End Time 2025-03-09 16:51:06 [2025-03-09 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643526', 'tblTempUsageDetail_20' ) start [2025-03-09 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643526', 'tblTempUsageDetail_20' ) end [2025-03-09 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643526', 'tblTempVendorCDR_20' ) start [2025-03-09 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643526', 'tblTempVendorCDR_20' ) end [2025-03-09 16:51:18] Production.INFO: ProcessCDR(1,14643526,1,1,2) [2025-03-09 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643526', 'tblTempUsageDetail_20' ) start [2025-03-09 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643526', 'tblTempUsageDetail_20' ) end [2025-03-09 16:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:51:22] Production.INFO: ==6760== Releasing lock... [2025-03-09 16:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:51:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:52:05 [end_date_ymd] => 2025-03-09 16:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:52:05' and `end` < '2025-03-09 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-09 16:52:17] Production.INFO: count ==1016 [2025-03-09 16:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:52:05 - End Time 2025-03-09 16:52:05 [2025-03-09 16:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643531', 'tblTempUsageDetail_20' ) start [2025-03-09 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643531', 'tblTempUsageDetail_20' ) end [2025-03-09 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643531', 'tblTempVendorCDR_20' ) start [2025-03-09 16:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643531', 'tblTempVendorCDR_20' ) end [2025-03-09 16:52:17] Production.INFO: ProcessCDR(1,14643531,1,1,2) [2025-03-09 16:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643531', 'tblTempUsageDetail_20' ) start [2025-03-09 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643531', 'tblTempUsageDetail_20' ) end [2025-03-09 16:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:52:21] Production.INFO: ==6830== Releasing lock... [2025-03-09 16:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:52:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:53:05 [end_date_ymd] => 2025-03-09 16:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:53:05' and `end` < '2025-03-09 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-09 16:53:17] Production.INFO: count ==1023 [2025-03-09 16:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:53:05 - End Time 2025-03-09 16:53:05 [2025-03-09 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643536', 'tblTempUsageDetail_20' ) start [2025-03-09 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643536', 'tblTempUsageDetail_20' ) end [2025-03-09 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643536', 'tblTempVendorCDR_20' ) start [2025-03-09 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643536', 'tblTempVendorCDR_20' ) end [2025-03-09 16:53:18] Production.INFO: ProcessCDR(1,14643536,1,1,2) [2025-03-09 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643536', 'tblTempUsageDetail_20' ) start [2025-03-09 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643536', 'tblTempUsageDetail_20' ) end [2025-03-09 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:53:22] Production.INFO: ==6908== Releasing lock... [2025-03-09 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:53:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:54:05 [end_date_ymd] => 2025-03-09 16:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:54:05' and `end` < '2025-03-09 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-09 16:54:17] Production.INFO: count ==1020 [2025-03-09 16:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:54:05 - End Time 2025-03-09 16:54:05 [2025-03-09 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643541', 'tblTempUsageDetail_20' ) start [2025-03-09 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643541', 'tblTempUsageDetail_20' ) end [2025-03-09 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643541', 'tblTempVendorCDR_20' ) start [2025-03-09 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643541', 'tblTempVendorCDR_20' ) end [2025-03-09 16:54:18] Production.INFO: ProcessCDR(1,14643541,1,1,2) [2025-03-09 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643541', 'tblTempUsageDetail_20' ) start [2025-03-09 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643541', 'tblTempUsageDetail_20' ) end [2025-03-09 16:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:54:21] Production.INFO: ==6985== Releasing lock... [2025-03-09 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:54:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:55:06 [end_date_ymd] => 2025-03-09 16:55:06 [RateCDR] => 1 ) [2025-03-09 16: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-09 13:55:06' and `end` < '2025-03-09 16: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-09 16:55:18] Production.INFO: count ==1021 [2025-03-09 16:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 13:55:06 - End Time 2025-03-09 16:55:06 [2025-03-09 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643546', 'tblTempUsageDetail_20' ) start [2025-03-09 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643546', 'tblTempUsageDetail_20' ) end [2025-03-09 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643546', 'tblTempVendorCDR_20' ) start [2025-03-09 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643546', 'tblTempVendorCDR_20' ) end [2025-03-09 16:55:18] Production.INFO: ProcessCDR(1,14643546,1,1,2) [2025-03-09 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643546', 'tblTempUsageDetail_20' ) start [2025-03-09 16:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643546', 'tblTempUsageDetail_20' ) end [2025-03-09 16:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:55:21] Production.INFO: ==7094== Releasing lock... [2025-03-09 16:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:56:05 [end_date_ymd] => 2025-03-09 16:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:56:05' and `end` < '2025-03-09 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-09 16:56:17] Production.INFO: count ==1024 [2025-03-09 16:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:56:05 - End Time 2025-03-09 16:56:05 [2025-03-09 16:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643551', 'tblTempUsageDetail_20' ) start [2025-03-09 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643551', 'tblTempUsageDetail_20' ) end [2025-03-09 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643551', 'tblTempVendorCDR_20' ) start [2025-03-09 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643551', 'tblTempVendorCDR_20' ) end [2025-03-09 16:56:17] Production.INFO: ProcessCDR(1,14643551,1,1,2) [2025-03-09 16:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643551', 'tblTempUsageDetail_20' ) start [2025-03-09 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643551', 'tblTempUsageDetail_20' ) end [2025-03-09 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:56:22] Production.INFO: ==7171== Releasing lock... [2025-03-09 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:56:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:57:05 [end_date_ymd] => 2025-03-09 16:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:57:05' and `end` < '2025-03-09 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-09 16:57:17] Production.INFO: count ==1020 [2025-03-09 16:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:57:05 - End Time 2025-03-09 16:57:05 [2025-03-09 16:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643556', 'tblTempUsageDetail_20' ) start [2025-03-09 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643556', 'tblTempUsageDetail_20' ) end [2025-03-09 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643556', 'tblTempVendorCDR_20' ) start [2025-03-09 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643556', 'tblTempVendorCDR_20' ) end [2025-03-09 16:57:18] Production.INFO: ProcessCDR(1,14643556,1,1,2) [2025-03-09 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643556', 'tblTempUsageDetail_20' ) start [2025-03-09 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643556', 'tblTempUsageDetail_20' ) end [2025-03-09 16:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:57:22] Production.INFO: ==7241== Releasing lock... [2025-03-09 16:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:58:05 [end_date_ymd] => 2025-03-09 16:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:58:05' and `end` < '2025-03-09 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-09 16:58:17] Production.INFO: count ==1016 [2025-03-09 16:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:58:05 - End Time 2025-03-09 16:58:05 [2025-03-09 16:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643561', 'tblTempUsageDetail_20' ) start [2025-03-09 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643561', 'tblTempUsageDetail_20' ) end [2025-03-09 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643561', 'tblTempVendorCDR_20' ) start [2025-03-09 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643561', 'tblTempVendorCDR_20' ) end [2025-03-09 16:58:17] Production.INFO: ProcessCDR(1,14643561,1,1,2) [2025-03-09 16:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643561', 'tblTempUsageDetail_20' ) start [2025-03-09 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643561', 'tblTempUsageDetail_20' ) end [2025-03-09 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:58:22] Production.INFO: ==7311== Releasing lock... [2025-03-09 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:58:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 13:59:05 [end_date_ymd] => 2025-03-09 16:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 13:59:05' and `end` < '2025-03-09 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-09 16:59:17] Production.INFO: count ==1018 [2025-03-09 16:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 13:59:05 - End Time 2025-03-09 16:59:05 [2025-03-09 16:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 16:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643566', 'tblTempUsageDetail_20' ) start [2025-03-09 16:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643566', 'tblTempUsageDetail_20' ) end [2025-03-09 16:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643566', 'tblTempVendorCDR_20' ) start [2025-03-09 16:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643566', 'tblTempVendorCDR_20' ) end [2025-03-09 16:59:17] Production.INFO: ProcessCDR(1,14643566,1,1,2) [2025-03-09 16:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 16:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643566', 'tblTempUsageDetail_20' ) start [2025-03-09 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643566', 'tblTempUsageDetail_20' ) end [2025-03-09 16:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 16:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 16:59:21] Production.INFO: ==7382== Releasing lock... [2025-03-09 16:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 16:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:00:05 [end_date_ymd] => 2025-03-09 17:00:05 [RateCDR] => 1 ) [2025-03-09 17: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-09 14:00:05' and `end` < '2025-03-09 17: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-09 17:00:18] Production.INFO: count ==1016 [2025-03-09 17:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:00:05 - End Time 2025-03-09 17:00:05 [2025-03-09 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643571', 'tblTempUsageDetail_20' ) start [2025-03-09 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643571', 'tblTempUsageDetail_20' ) end [2025-03-09 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643571', 'tblTempVendorCDR_20' ) start [2025-03-09 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643571', 'tblTempVendorCDR_20' ) end [2025-03-09 17:00:18] Production.INFO: ProcessCDR(1,14643571,1,1,2) [2025-03-09 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643571', 'tblTempUsageDetail_20' ) start [2025-03-09 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643571', 'tblTempUsageDetail_20' ) end [2025-03-09 17:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:00:21] Production.INFO: ==7455== Releasing lock... [2025-03-09 17:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:00:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:01:05 [end_date_ymd] => 2025-03-09 17:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:01:05' and `end` < '2025-03-09 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-09 17:01:18] Production.INFO: count ==1061 [2025-03-09 17:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:01:05 - End Time 2025-03-09 17:01:05 [2025-03-09 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643577', 'tblTempUsageDetail_20' ) start [2025-03-09 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643577', 'tblTempUsageDetail_20' ) end [2025-03-09 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643577', 'tblTempVendorCDR_20' ) start [2025-03-09 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643577', 'tblTempVendorCDR_20' ) end [2025-03-09 17:01:18] Production.INFO: ProcessCDR(1,14643577,1,1,2) [2025-03-09 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643577', 'tblTempUsageDetail_20' ) start [2025-03-09 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643577', 'tblTempUsageDetail_20' ) end [2025-03-09 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:01:23] Production.INFO: ==7550== Releasing lock... [2025-03-09 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:01:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:02:05 [end_date_ymd] => 2025-03-09 17:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:02:05' and `end` < '2025-03-09 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-09 17:02:17] Production.INFO: count ==1062 [2025-03-09 17:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:02:05 - End Time 2025-03-09 17:02:05 [2025-03-09 17:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643582', 'tblTempUsageDetail_20' ) start [2025-03-09 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643582', 'tblTempUsageDetail_20' ) end [2025-03-09 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643582', 'tblTempVendorCDR_20' ) start [2025-03-09 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643582', 'tblTempVendorCDR_20' ) end [2025-03-09 17:02:17] Production.INFO: ProcessCDR(1,14643582,1,1,2) [2025-03-09 17:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643582', 'tblTempUsageDetail_20' ) start [2025-03-09 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643582', 'tblTempUsageDetail_20' ) end [2025-03-09 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:02:22] Production.INFO: ==7626== Releasing lock... [2025-03-09 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:02:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:03:05 [end_date_ymd] => 2025-03-09 17:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:03:05' and `end` < '2025-03-09 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-09 17:03:17] Production.INFO: count ==1065 [2025-03-09 17:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:03:05 - End Time 2025-03-09 17:03:05 [2025-03-09 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643587', 'tblTempUsageDetail_20' ) start [2025-03-09 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643587', 'tblTempUsageDetail_20' ) end [2025-03-09 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643587', 'tblTempVendorCDR_20' ) start [2025-03-09 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643587', 'tblTempVendorCDR_20' ) end [2025-03-09 17:03:18] Production.INFO: ProcessCDR(1,14643587,1,1,2) [2025-03-09 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643587', 'tblTempUsageDetail_20' ) start [2025-03-09 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643587', 'tblTempUsageDetail_20' ) end [2025-03-09 17:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:03:23] Production.INFO: ==7695== Releasing lock... [2025-03-09 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:03:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:04:06 [end_date_ymd] => 2025-03-09 17:04:06 [RateCDR] => 1 ) [2025-03-09 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-09 14:04:06' and `end` < '2025-03-09 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-09 17:04:18] Production.INFO: count ==1064 [2025-03-09 17:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:04:06 - End Time 2025-03-09 17:04:06 [2025-03-09 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643592', 'tblTempUsageDetail_20' ) start [2025-03-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643592', 'tblTempUsageDetail_20' ) end [2025-03-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643592', 'tblTempVendorCDR_20' ) start [2025-03-09 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643592', 'tblTempVendorCDR_20' ) end [2025-03-09 17:04:18] Production.INFO: ProcessCDR(1,14643592,1,1,2) [2025-03-09 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643592', 'tblTempUsageDetail_20' ) start [2025-03-09 17:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643592', 'tblTempUsageDetail_20' ) end [2025-03-09 17:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:04:21] Production.INFO: ==7767== Releasing lock... [2025-03-09 17:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:04:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:05:04 [end_date_ymd] => 2025-03-09 17:05:04 [RateCDR] => 1 ) [2025-03-09 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:05:04' and `end` < '2025-03-09 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:05:17] Production.INFO: count ==1066 [2025-03-09 17:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:05:04 - End Time 2025-03-09 17:05:04 [2025-03-09 17:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643597', 'tblTempUsageDetail_20' ) start [2025-03-09 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643597', 'tblTempUsageDetail_20' ) end [2025-03-09 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643597', 'tblTempVendorCDR_20' ) start [2025-03-09 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643597', 'tblTempVendorCDR_20' ) end [2025-03-09 17:05:17] Production.INFO: ProcessCDR(1,14643597,1,1,2) [2025-03-09 17:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643597', 'tblTempUsageDetail_20' ) start [2025-03-09 17:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643597', 'tblTempUsageDetail_20' ) end [2025-03-09 17:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:05:20] Production.INFO: ==7836== Releasing lock... [2025-03-09 17:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:05:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:06:05 [end_date_ymd] => 2025-03-09 17:06:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:06:05' and `end` < '2025-03-09 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-09 17:06:17] Production.INFO: count ==1065 [2025-03-09 17:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:06:05 - End Time 2025-03-09 17:06:05 [2025-03-09 17:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643602', 'tblTempUsageDetail_20' ) start [2025-03-09 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643602', 'tblTempUsageDetail_20' ) end [2025-03-09 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643602', 'tblTempVendorCDR_20' ) start [2025-03-09 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643602', 'tblTempVendorCDR_20' ) end [2025-03-09 17:06:17] Production.INFO: ProcessCDR(1,14643602,1,1,2) [2025-03-09 17:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643602', 'tblTempUsageDetail_20' ) start [2025-03-09 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643602', 'tblTempUsageDetail_20' ) end [2025-03-09 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:06:22] Production.INFO: ==7910== Releasing lock... [2025-03-09 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:06:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:07:05 [end_date_ymd] => 2025-03-09 17:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:07:05' and `end` < '2025-03-09 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-09 17:07:17] Production.INFO: count ==1067 [2025-03-09 17:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:07:05 - End Time 2025-03-09 17:07:05 [2025-03-09 17:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643607', 'tblTempUsageDetail_20' ) start [2025-03-09 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643607', 'tblTempUsageDetail_20' ) end [2025-03-09 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643607', 'tblTempVendorCDR_20' ) start [2025-03-09 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643607', 'tblTempVendorCDR_20' ) end [2025-03-09 17:07:17] Production.INFO: ProcessCDR(1,14643607,1,1,2) [2025-03-09 17:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643607', 'tblTempUsageDetail_20' ) start [2025-03-09 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643607', 'tblTempUsageDetail_20' ) end [2025-03-09 17:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:07:22] Production.INFO: ==7984== Releasing lock... [2025-03-09 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:07:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:08:05 [end_date_ymd] => 2025-03-09 17:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:08:05' and `end` < '2025-03-09 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-09 17:08:18] Production.INFO: count ==1068 [2025-03-09 17:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:08:05 - End Time 2025-03-09 17:08:05 [2025-03-09 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643612', 'tblTempUsageDetail_20' ) start [2025-03-09 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643612', 'tblTempUsageDetail_20' ) end [2025-03-09 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643612', 'tblTempVendorCDR_20' ) start [2025-03-09 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643612', 'tblTempVendorCDR_20' ) end [2025-03-09 17:08:18] Production.INFO: ProcessCDR(1,14643612,1,1,2) [2025-03-09 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643612', 'tblTempUsageDetail_20' ) start [2025-03-09 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643612', 'tblTempUsageDetail_20' ) end [2025-03-09 17:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:08:23] Production.INFO: ==8059== Releasing lock... [2025-03-09 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:09:05 [end_date_ymd] => 2025-03-09 17:09:05 [RateCDR] => 1 ) [2025-03-09 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:09:05' and `end` < '2025-03-09 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:09:17] Production.INFO: count ==1054 [2025-03-09 17:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:09:05 - End Time 2025-03-09 17:09:05 [2025-03-09 17:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643617', 'tblTempUsageDetail_20' ) start [2025-03-09 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643617', 'tblTempUsageDetail_20' ) end [2025-03-09 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643617', 'tblTempVendorCDR_20' ) start [2025-03-09 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643617', 'tblTempVendorCDR_20' ) end [2025-03-09 17:09:17] Production.INFO: ProcessCDR(1,14643617,1,1,2) [2025-03-09 17:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643617', 'tblTempUsageDetail_20' ) start [2025-03-09 17:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643617', 'tblTempUsageDetail_20' ) end [2025-03-09 17:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:09:21] Production.INFO: ==8133== Releasing lock... [2025-03-09 17:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:09:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:10:06 [end_date_ymd] => 2025-03-09 17:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 14:10:06' and `end` < '2025-03-09 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-09 17:10:18] Production.INFO: count ==1051 [2025-03-09 17:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:10:06 - End Time 2025-03-09 17:10:06 [2025-03-09 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643623', 'tblTempUsageDetail_20' ) start [2025-03-09 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643623', 'tblTempUsageDetail_20' ) end [2025-03-09 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643623', 'tblTempVendorCDR_20' ) start [2025-03-09 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643623', 'tblTempVendorCDR_20' ) end [2025-03-09 17:10:18] Production.INFO: ProcessCDR(1,14643623,1,1,2) [2025-03-09 17:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643623', 'tblTempUsageDetail_20' ) start [2025-03-09 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643623', 'tblTempUsageDetail_20' ) end [2025-03-09 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:10:23] Production.INFO: ==8251== Releasing lock... [2025-03-09 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:10:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:11:05 [end_date_ymd] => 2025-03-09 17:11:05 [RateCDR] => 1 ) [2025-03-09 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:11:05' and `end` < '2025-03-09 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:11:18] Production.INFO: count ==1077 [2025-03-09 17:11:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:11:05 - End Time 2025-03-09 17:11:05 [2025-03-09 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643628', 'tblTempUsageDetail_20' ) start [2025-03-09 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643628', 'tblTempUsageDetail_20' ) end [2025-03-09 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643628', 'tblTempVendorCDR_20' ) start [2025-03-09 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643628', 'tblTempVendorCDR_20' ) end [2025-03-09 17:11:18] Production.INFO: ProcessCDR(1,14643628,1,1,2) [2025-03-09 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643628', 'tblTempUsageDetail_20' ) start [2025-03-09 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643628', 'tblTempUsageDetail_20' ) end [2025-03-09 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:11:23] Production.INFO: ==8325== Releasing lock... [2025-03-09 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:11:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:12:05 [end_date_ymd] => 2025-03-09 17:12:05 [RateCDR] => 1 ) [2025-03-09 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:12:05' and `end` < '2025-03-09 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:12:17] Production.INFO: count ==1081 [2025-03-09 17:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:12:05 - End Time 2025-03-09 17:12:05 [2025-03-09 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643633', 'tblTempUsageDetail_20' ) start [2025-03-09 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643633', 'tblTempUsageDetail_20' ) end [2025-03-09 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643633', 'tblTempVendorCDR_20' ) start [2025-03-09 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643633', 'tblTempVendorCDR_20' ) end [2025-03-09 17:12:18] Production.INFO: ProcessCDR(1,14643633,1,1,2) [2025-03-09 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643633', 'tblTempUsageDetail_20' ) start [2025-03-09 17:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643633', 'tblTempUsageDetail_20' ) end [2025-03-09 17:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:12:23] Production.INFO: ==8398== Releasing lock... [2025-03-09 17:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:12:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:13:05 [end_date_ymd] => 2025-03-09 17:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:13:05' and `end` < '2025-03-09 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-09 17:13:17] Production.INFO: count ==1081 [2025-03-09 17:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:13:05 - End Time 2025-03-09 17:13:05 [2025-03-09 17:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643638', 'tblTempUsageDetail_20' ) start [2025-03-09 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643638', 'tblTempUsageDetail_20' ) end [2025-03-09 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643638', 'tblTempVendorCDR_20' ) start [2025-03-09 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643638', 'tblTempVendorCDR_20' ) end [2025-03-09 17:13:17] Production.INFO: ProcessCDR(1,14643638,1,1,2) [2025-03-09 17:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643638', 'tblTempUsageDetail_20' ) start [2025-03-09 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643638', 'tblTempUsageDetail_20' ) end [2025-03-09 17:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:13:21] Production.INFO: ==8470== Releasing lock... [2025-03-09 17:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:13:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:14:05 [end_date_ymd] => 2025-03-09 17:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:14:05' and `end` < '2025-03-09 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-09 17:14:17] Production.INFO: count ==1078 [2025-03-09 17:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:14:05 - End Time 2025-03-09 17:14:05 [2025-03-09 17:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643643', 'tblTempUsageDetail_20' ) start [2025-03-09 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643643', 'tblTempUsageDetail_20' ) end [2025-03-09 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643643', 'tblTempVendorCDR_20' ) start [2025-03-09 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643643', 'tblTempVendorCDR_20' ) end [2025-03-09 17:14:17] Production.INFO: ProcessCDR(1,14643643,1,1,2) [2025-03-09 17:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643643', 'tblTempUsageDetail_20' ) start [2025-03-09 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643643', 'tblTempUsageDetail_20' ) end [2025-03-09 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:14:22] Production.INFO: ==8539== Releasing lock... [2025-03-09 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:14:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:15:05 [end_date_ymd] => 2025-03-09 17:15:05 [RateCDR] => 1 ) [2025-03-09 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:15:05' and `end` < '2025-03-09 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:15:17] Production.INFO: count ==1078 [2025-03-09 17:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:15:05 - End Time 2025-03-09 17:15:05 [2025-03-09 17:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643648', 'tblTempUsageDetail_20' ) start [2025-03-09 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643648', 'tblTempUsageDetail_20' ) end [2025-03-09 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643648', 'tblTempVendorCDR_20' ) start [2025-03-09 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643648', 'tblTempVendorCDR_20' ) end [2025-03-09 17:15:17] Production.INFO: ProcessCDR(1,14643648,1,1,2) [2025-03-09 17:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643648', 'tblTempUsageDetail_20' ) start [2025-03-09 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643648', 'tblTempUsageDetail_20' ) end [2025-03-09 17:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:15:22] Production.INFO: ==8610== Releasing lock... [2025-03-09 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:15:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:16:06 [end_date_ymd] => 2025-03-09 17:16:06 [RateCDR] => 1 ) [2025-03-09 17: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-09 14:16:06' and `end` < '2025-03-09 17: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-09 17:16:18] Production.INFO: count ==1077 [2025-03-09 17:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:16:06 - End Time 2025-03-09 17:16:06 [2025-03-09 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643653', 'tblTempUsageDetail_20' ) start [2025-03-09 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643653', 'tblTempUsageDetail_20' ) end [2025-03-09 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643653', 'tblTempVendorCDR_20' ) start [2025-03-09 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643653', 'tblTempVendorCDR_20' ) end [2025-03-09 17:16:18] Production.INFO: ProcessCDR(1,14643653,1,1,2) [2025-03-09 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643653', 'tblTempUsageDetail_20' ) start [2025-03-09 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643653', 'tblTempUsageDetail_20' ) end [2025-03-09 17:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:16:21] Production.INFO: ==8683== Releasing lock... [2025-03-09 17:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:16:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:17:05 [end_date_ymd] => 2025-03-09 17:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:17:05' and `end` < '2025-03-09 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-09 17:17:17] Production.INFO: count ==1079 [2025-03-09 17:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:17:05 - End Time 2025-03-09 17:17:05 [2025-03-09 17:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643658', 'tblTempUsageDetail_20' ) start [2025-03-09 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643658', 'tblTempUsageDetail_20' ) end [2025-03-09 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643658', 'tblTempVendorCDR_20' ) start [2025-03-09 17:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643658', 'tblTempVendorCDR_20' ) end [2025-03-09 17:17:17] Production.INFO: ProcessCDR(1,14643658,1,1,2) [2025-03-09 17:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643658', 'tblTempUsageDetail_20' ) start [2025-03-09 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643658', 'tblTempUsageDetail_20' ) end [2025-03-09 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:17:22] Production.INFO: ==8754== Releasing lock... [2025-03-09 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:17:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:18:06 [end_date_ymd] => 2025-03-09 17:18:06 [RateCDR] => 1 ) [2025-03-09 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:18:06' and `end` < '2025-03-09 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:18:18] Production.INFO: count ==1089 [2025-03-09 17:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:18:06 - End Time 2025-03-09 17:18:06 [2025-03-09 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643663', 'tblTempUsageDetail_20' ) start [2025-03-09 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643663', 'tblTempUsageDetail_20' ) end [2025-03-09 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643663', 'tblTempVendorCDR_20' ) start [2025-03-09 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643663', 'tblTempVendorCDR_20' ) end [2025-03-09 17:18:18] Production.INFO: ProcessCDR(1,14643663,1,1,2) [2025-03-09 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643663', 'tblTempUsageDetail_20' ) start [2025-03-09 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643663', 'tblTempUsageDetail_20' ) end [2025-03-09 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:18:23] Production.INFO: ==8839== Releasing lock... [2025-03-09 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:18:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:19:05 [end_date_ymd] => 2025-03-09 17:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:19:05' and `end` < '2025-03-09 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-09 17:19:17] Production.INFO: count ==1091 [2025-03-09 17:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:19:05 - End Time 2025-03-09 17:19:05 [2025-03-09 17:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643668', 'tblTempUsageDetail_20' ) start [2025-03-09 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643668', 'tblTempUsageDetail_20' ) end [2025-03-09 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643668', 'tblTempVendorCDR_20' ) start [2025-03-09 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643668', 'tblTempVendorCDR_20' ) end [2025-03-09 17:19:17] Production.INFO: ProcessCDR(1,14643668,1,1,2) [2025-03-09 17:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643668', 'tblTempUsageDetail_20' ) start [2025-03-09 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643668', 'tblTempUsageDetail_20' ) end [2025-03-09 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:19:22] Production.INFO: ==8923== Releasing lock... [2025-03-09 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:20:06 [end_date_ymd] => 2025-03-09 17:20:06 [RateCDR] => 1 ) [2025-03-09 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:20:06' and `end` < '2025-03-09 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:20:18] Production.INFO: count ==1097 [2025-03-09 17:20:19] Production.ERROR: pbx CDR StartTime 2025-03-09 14:20:06 - End Time 2025-03-09 17:20:06 [2025-03-09 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643674', 'tblTempUsageDetail_20' ) start [2025-03-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643674', 'tblTempUsageDetail_20' ) end [2025-03-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643674', 'tblTempVendorCDR_20' ) start [2025-03-09 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643674', 'tblTempVendorCDR_20' ) end [2025-03-09 17:20:19] Production.INFO: ProcessCDR(1,14643674,1,1,2) [2025-03-09 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643674', 'tblTempUsageDetail_20' ) start [2025-03-09 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643674', 'tblTempUsageDetail_20' ) end [2025-03-09 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:20:24] Production.INFO: ==9009== Releasing lock... [2025-03-09 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:20:24] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:21:04 [end_date_ymd] => 2025-03-09 17:21:04 [RateCDR] => 1 ) [2025-03-09 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:21:04' and `end` < '2025-03-09 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:21:17] Production.INFO: count ==1132 [2025-03-09 17:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:21:04 - End Time 2025-03-09 17:21:04 [2025-03-09 17:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643679', 'tblTempUsageDetail_20' ) start [2025-03-09 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643679', 'tblTempUsageDetail_20' ) end [2025-03-09 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643679', 'tblTempVendorCDR_20' ) start [2025-03-09 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643679', 'tblTempVendorCDR_20' ) end [2025-03-09 17:21:17] Production.INFO: ProcessCDR(1,14643679,1,1,2) [2025-03-09 17:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643679', 'tblTempUsageDetail_20' ) start [2025-03-09 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643679', 'tblTempUsageDetail_20' ) end [2025-03-09 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:21:22] Production.INFO: ==9099== Releasing lock... [2025-03-09 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:21:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:22:05 [end_date_ymd] => 2025-03-09 17:22:05 [RateCDR] => 1 ) [2025-03-09 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:22:05' and `end` < '2025-03-09 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:22:17] Production.INFO: count ==1133 [2025-03-09 17:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:22:05 - End Time 2025-03-09 17:22:05 [2025-03-09 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643684', 'tblTempUsageDetail_20' ) start [2025-03-09 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643684', 'tblTempUsageDetail_20' ) end [2025-03-09 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643684', 'tblTempVendorCDR_20' ) start [2025-03-09 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643684', 'tblTempVendorCDR_20' ) end [2025-03-09 17:22:18] Production.INFO: ProcessCDR(1,14643684,1,1,2) [2025-03-09 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643684', 'tblTempUsageDetail_20' ) start [2025-03-09 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643684', 'tblTempUsageDetail_20' ) end [2025-03-09 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:22:22] Production.INFO: ==9172== Releasing lock... [2025-03-09 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:22:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:23:05 [end_date_ymd] => 2025-03-09 17:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:23:05' and `end` < '2025-03-09 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-09 17:23:17] Production.INFO: count ==1133 [2025-03-09 17:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:23:05 - End Time 2025-03-09 17:23:05 [2025-03-09 17:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643689', 'tblTempUsageDetail_20' ) start [2025-03-09 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643689', 'tblTempUsageDetail_20' ) end [2025-03-09 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643689', 'tblTempVendorCDR_20' ) start [2025-03-09 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643689', 'tblTempVendorCDR_20' ) end [2025-03-09 17:23:17] Production.INFO: ProcessCDR(1,14643689,1,1,2) [2025-03-09 17:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643689', 'tblTempUsageDetail_20' ) start [2025-03-09 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643689', 'tblTempUsageDetail_20' ) end [2025-03-09 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:23:22] Production.INFO: ==9251== Releasing lock... [2025-03-09 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:23:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:24:06 [end_date_ymd] => 2025-03-09 17:24:06 [RateCDR] => 1 ) [2025-03-09 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-09 14:24:06' and `end` < '2025-03-09 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-09 17:24:18] Production.INFO: count ==1142 [2025-03-09 17:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:24:06 - End Time 2025-03-09 17:24:06 [2025-03-09 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643694', 'tblTempUsageDetail_20' ) start [2025-03-09 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643694', 'tblTempUsageDetail_20' ) end [2025-03-09 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643694', 'tblTempVendorCDR_20' ) start [2025-03-09 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643694', 'tblTempVendorCDR_20' ) end [2025-03-09 17:24:18] Production.INFO: ProcessCDR(1,14643694,1,1,2) [2025-03-09 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643694', 'tblTempUsageDetail_20' ) start [2025-03-09 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643694', 'tblTempUsageDetail_20' ) end [2025-03-09 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:24:23] Production.INFO: ==9323== Releasing lock... [2025-03-09 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:24:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:25:05 [end_date_ymd] => 2025-03-09 17:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:25:05' and `end` < '2025-03-09 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-09 17:25:17] Production.INFO: count ==1147 [2025-03-09 17:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:25:05 - End Time 2025-03-09 17:25:05 [2025-03-09 17:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643699', 'tblTempUsageDetail_20' ) start [2025-03-09 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643699', 'tblTempUsageDetail_20' ) end [2025-03-09 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643699', 'tblTempVendorCDR_20' ) start [2025-03-09 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643699', 'tblTempVendorCDR_20' ) end [2025-03-09 17:25:17] Production.INFO: ProcessCDR(1,14643699,1,1,2) [2025-03-09 17:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643699', 'tblTempUsageDetail_20' ) start [2025-03-09 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643699', 'tblTempUsageDetail_20' ) end [2025-03-09 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:25:22] Production.INFO: ==9403== Releasing lock... [2025-03-09 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:25:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:26:05 [end_date_ymd] => 2025-03-09 17:26:05 [RateCDR] => 1 ) [2025-03-09 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:26:05' and `end` < '2025-03-09 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-09 17:26:17] Production.INFO: count ==1154 [2025-03-09 17:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:26:05 - End Time 2025-03-09 17:26:05 [2025-03-09 17:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643704', 'tblTempUsageDetail_20' ) start [2025-03-09 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643704', 'tblTempUsageDetail_20' ) end [2025-03-09 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643704', 'tblTempVendorCDR_20' ) start [2025-03-09 17:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643704', 'tblTempVendorCDR_20' ) end [2025-03-09 17:26:17] Production.INFO: ProcessCDR(1,14643704,1,1,2) [2025-03-09 17:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643704', 'tblTempUsageDetail_20' ) start [2025-03-09 17:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643704', 'tblTempUsageDetail_20' ) end [2025-03-09 17:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:26:22] Production.INFO: ==9529== Releasing lock... [2025-03-09 17:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:27:05 [end_date_ymd] => 2025-03-09 17:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:27:05' and `end` < '2025-03-09 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-09 17:27:18] Production.INFO: count ==1156 [2025-03-09 17:27:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:27:05 - End Time 2025-03-09 17:27:05 [2025-03-09 17:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643709', 'tblTempUsageDetail_20' ) start [2025-03-09 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643709', 'tblTempUsageDetail_20' ) end [2025-03-09 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643709', 'tblTempVendorCDR_20' ) start [2025-03-09 17:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643709', 'tblTempVendorCDR_20' ) end [2025-03-09 17:27:18] Production.INFO: ProcessCDR(1,14643709,1,1,2) [2025-03-09 17:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643709', 'tblTempUsageDetail_20' ) start [2025-03-09 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643709', 'tblTempUsageDetail_20' ) end [2025-03-09 17:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:27:23] Production.INFO: ==9602== Releasing lock... [2025-03-09 17:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:28:05 [end_date_ymd] => 2025-03-09 17:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:28:05' and `end` < '2025-03-09 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-09 17:28:17] Production.INFO: count ==1158 [2025-03-09 17:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:28:05 - End Time 2025-03-09 17:28:05 [2025-03-09 17:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643714', 'tblTempUsageDetail_20' ) start [2025-03-09 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643714', 'tblTempUsageDetail_20' ) end [2025-03-09 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643714', 'tblTempVendorCDR_20' ) start [2025-03-09 17:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643714', 'tblTempVendorCDR_20' ) end [2025-03-09 17:28:17] Production.INFO: ProcessCDR(1,14643714,1,1,2) [2025-03-09 17:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643714', 'tblTempUsageDetail_20' ) start [2025-03-09 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643714', 'tblTempUsageDetail_20' ) end [2025-03-09 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:28:22] Production.INFO: ==9671== Releasing lock... [2025-03-09 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:28:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:29:05 [end_date_ymd] => 2025-03-09 17:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:29:05' and `end` < '2025-03-09 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-09 17:29:18] Production.INFO: count ==1158 [2025-03-09 17:29:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:29:05 - End Time 2025-03-09 17:29:05 [2025-03-09 17:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643719', 'tblTempUsageDetail_20' ) start [2025-03-09 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643719', 'tblTempUsageDetail_20' ) end [2025-03-09 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643719', 'tblTempVendorCDR_20' ) start [2025-03-09 17:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643719', 'tblTempVendorCDR_20' ) end [2025-03-09 17:29:18] Production.INFO: ProcessCDR(1,14643719,1,1,2) [2025-03-09 17:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643719', 'tblTempUsageDetail_20' ) start [2025-03-09 17:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643719', 'tblTempUsageDetail_20' ) end [2025-03-09 17:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:29:21] Production.INFO: ==9745== Releasing lock... [2025-03-09 17:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 17:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:30:05 [end_date_ymd] => 2025-03-09 17:30:05 [RateCDR] => 1 ) [2025-03-09 17:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:30:05' and `end` < '2025-03-09 17:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:30:17] Production.INFO: count ==1170 [2025-03-09 17:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:30:05 - End Time 2025-03-09 17:30:05 [2025-03-09 17:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643724', 'tblTempUsageDetail_20' ) start [2025-03-09 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643724', 'tblTempUsageDetail_20' ) end [2025-03-09 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643724', 'tblTempVendorCDR_20' ) start [2025-03-09 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643724', 'tblTempVendorCDR_20' ) end [2025-03-09 17:30:18] Production.INFO: ProcessCDR(1,14643724,1,1,2) [2025-03-09 17:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643724', 'tblTempUsageDetail_20' ) start [2025-03-09 17:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643724', 'tblTempUsageDetail_20' ) end [2025-03-09 17:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:30:23] Production.INFO: ==9822== Releasing lock... [2025-03-09 17:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:30:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:31:05 [end_date_ymd] => 2025-03-09 17:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:31:05' and `end` < '2025-03-09 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-09 17:31:17] Production.INFO: count ==1200 [2025-03-09 17:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:31:05 - End Time 2025-03-09 17:31:05 [2025-03-09 17:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643730', 'tblTempUsageDetail_20' ) start [2025-03-09 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643730', 'tblTempUsageDetail_20' ) end [2025-03-09 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643730', 'tblTempVendorCDR_20' ) start [2025-03-09 17:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643730', 'tblTempVendorCDR_20' ) end [2025-03-09 17:31:18] Production.INFO: ProcessCDR(1,14643730,1,1,2) [2025-03-09 17:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643730', 'tblTempUsageDetail_20' ) start [2025-03-09 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643730', 'tblTempUsageDetail_20' ) end [2025-03-09 17:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:31:21] Production.INFO: ==9896== Releasing lock... [2025-03-09 17:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:31:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:32:05 [end_date_ymd] => 2025-03-09 17:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:32:05' and `end` < '2025-03-09 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-09 17:32:17] Production.INFO: count ==1197 [2025-03-09 17:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:32:05 - End Time 2025-03-09 17:32:05 [2025-03-09 17:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643735', 'tblTempUsageDetail_20' ) start [2025-03-09 17:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643735', 'tblTempUsageDetail_20' ) end [2025-03-09 17:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643735', 'tblTempVendorCDR_20' ) start [2025-03-09 17:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643735', 'tblTempVendorCDR_20' ) end [2025-03-09 17:32:17] Production.INFO: ProcessCDR(1,14643735,1,1,2) [2025-03-09 17:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643735', 'tblTempUsageDetail_20' ) start [2025-03-09 17:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643735', 'tblTempUsageDetail_20' ) end [2025-03-09 17:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:32:22] Production.INFO: ==9966== Releasing lock... [2025-03-09 17:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:32:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:33:05 [end_date_ymd] => 2025-03-09 17:33:05 [RateCDR] => 1 ) [2025-03-09 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:33:05' and `end` < '2025-03-09 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:33:17] Production.INFO: count ==1199 [2025-03-09 17:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:33:05 - End Time 2025-03-09 17:33:05 [2025-03-09 17:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643740', 'tblTempUsageDetail_20' ) start [2025-03-09 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643740', 'tblTempUsageDetail_20' ) end [2025-03-09 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643740', 'tblTempVendorCDR_20' ) start [2025-03-09 17:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643740', 'tblTempVendorCDR_20' ) end [2025-03-09 17:33:17] Production.INFO: ProcessCDR(1,14643740,1,1,2) [2025-03-09 17:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643740', 'tblTempUsageDetail_20' ) start [2025-03-09 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643740', 'tblTempUsageDetail_20' ) end [2025-03-09 17:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:33:22] Production.INFO: ==10037== Releasing lock... [2025-03-09 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:33:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:34:04 [end_date_ymd] => 2025-03-09 17:34:04 [RateCDR] => 1 ) [2025-03-09 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:34:04' and `end` < '2025-03-09 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:34:17] Production.INFO: count ==1199 [2025-03-09 17:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:34:04 - End Time 2025-03-09 17:34:04 [2025-03-09 17:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643745', 'tblTempUsageDetail_20' ) start [2025-03-09 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643745', 'tblTempUsageDetail_20' ) end [2025-03-09 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643745', 'tblTempVendorCDR_20' ) start [2025-03-09 17:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643745', 'tblTempVendorCDR_20' ) end [2025-03-09 17:34:17] Production.INFO: ProcessCDR(1,14643745,1,1,2) [2025-03-09 17:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643745', 'tblTempUsageDetail_20' ) start [2025-03-09 17:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643745', 'tblTempUsageDetail_20' ) end [2025-03-09 17:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:34:20] Production.INFO: ==10114== Releasing lock... [2025-03-09 17:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:34:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:35:05 [end_date_ymd] => 2025-03-09 17:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:35:05' and `end` < '2025-03-09 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-09 17:35:17] Production.INFO: count ==1197 [2025-03-09 17:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:35:05 - End Time 2025-03-09 17:35:05 [2025-03-09 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643750', 'tblTempUsageDetail_20' ) start [2025-03-09 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643750', 'tblTempUsageDetail_20' ) end [2025-03-09 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643750', 'tblTempVendorCDR_20' ) start [2025-03-09 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643750', 'tblTempVendorCDR_20' ) end [2025-03-09 17:35:18] Production.INFO: ProcessCDR(1,14643750,1,1,2) [2025-03-09 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643750', 'tblTempUsageDetail_20' ) start [2025-03-09 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643750', 'tblTempUsageDetail_20' ) end [2025-03-09 17:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:35:21] Production.INFO: ==10186== Releasing lock... [2025-03-09 17:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:35:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:36:05 [end_date_ymd] => 2025-03-09 17:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:36:05' and `end` < '2025-03-09 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-09 17:36:17] Production.INFO: count ==1197 [2025-03-09 17:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:36:05 - End Time 2025-03-09 17:36:05 [2025-03-09 17:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643755', 'tblTempUsageDetail_20' ) start [2025-03-09 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643755', 'tblTempUsageDetail_20' ) end [2025-03-09 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643755', 'tblTempVendorCDR_20' ) start [2025-03-09 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643755', 'tblTempVendorCDR_20' ) end [2025-03-09 17:36:17] Production.INFO: ProcessCDR(1,14643755,1,1,2) [2025-03-09 17:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643755', 'tblTempUsageDetail_20' ) start [2025-03-09 17:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643755', 'tblTempUsageDetail_20' ) end [2025-03-09 17:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:36:20] Production.INFO: ==10258== Releasing lock... [2025-03-09 17:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:36:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:37:05 [end_date_ymd] => 2025-03-09 17:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:37:05' and `end` < '2025-03-09 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-09 17:37:17] Production.INFO: count ==1197 [2025-03-09 17:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:37:05 - End Time 2025-03-09 17:37:05 [2025-03-09 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643760', 'tblTempUsageDetail_20' ) start [2025-03-09 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643760', 'tblTempUsageDetail_20' ) end [2025-03-09 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643760', 'tblTempVendorCDR_20' ) start [2025-03-09 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643760', 'tblTempVendorCDR_20' ) end [2025-03-09 17:37:18] Production.INFO: ProcessCDR(1,14643760,1,1,2) [2025-03-09 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643760', 'tblTempUsageDetail_20' ) start [2025-03-09 17:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643760', 'tblTempUsageDetail_20' ) end [2025-03-09 17:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:37:21] Production.INFO: ==10332== Releasing lock... [2025-03-09 17:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:37:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:38:05 [end_date_ymd] => 2025-03-09 17:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:38:05' and `end` < '2025-03-09 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-09 17:38:17] Production.INFO: count ==1197 [2025-03-09 17:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:38:05 - End Time 2025-03-09 17:38:05 [2025-03-09 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643765', 'tblTempUsageDetail_20' ) start [2025-03-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643765', 'tblTempUsageDetail_20' ) end [2025-03-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643765', 'tblTempVendorCDR_20' ) start [2025-03-09 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643765', 'tblTempVendorCDR_20' ) end [2025-03-09 17:38:18] Production.INFO: ProcessCDR(1,14643765,1,1,2) [2025-03-09 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643765', 'tblTempUsageDetail_20' ) start [2025-03-09 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643765', 'tblTempUsageDetail_20' ) end [2025-03-09 17:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:38:21] Production.INFO: ==10405== Releasing lock... [2025-03-09 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:38:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:39:05 [end_date_ymd] => 2025-03-09 17:39:05 [RateCDR] => 1 ) [2025-03-09 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:39:05' and `end` < '2025-03-09 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:39:17] Production.INFO: count ==1198 [2025-03-09 17:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:39:05 - End Time 2025-03-09 17:39:05 [2025-03-09 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643770', 'tblTempUsageDetail_20' ) start [2025-03-09 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643770', 'tblTempUsageDetail_20' ) end [2025-03-09 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643770', 'tblTempVendorCDR_20' ) start [2025-03-09 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643770', 'tblTempVendorCDR_20' ) end [2025-03-09 17:39:18] Production.INFO: ProcessCDR(1,14643770,1,1,2) [2025-03-09 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643770', 'tblTempUsageDetail_20' ) start [2025-03-09 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643770', 'tblTempUsageDetail_20' ) end [2025-03-09 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:39:21] Production.INFO: ==10543== Releasing lock... [2025-03-09 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:39:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:40:05 [end_date_ymd] => 2025-03-09 17:40:05 [RateCDR] => 1 ) [2025-03-09 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:40:05' and `end` < '2025-03-09 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:40:18] Production.INFO: count ==1196 [2025-03-09 17:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:40:05 - End Time 2025-03-09 17:40:05 [2025-03-09 17:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643776', 'tblTempUsageDetail_20' ) start [2025-03-09 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643776', 'tblTempUsageDetail_20' ) end [2025-03-09 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643776', 'tblTempVendorCDR_20' ) start [2025-03-09 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643776', 'tblTempVendorCDR_20' ) end [2025-03-09 17:40:18] Production.INFO: ProcessCDR(1,14643776,1,1,2) [2025-03-09 17:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643776', 'tblTempUsageDetail_20' ) start [2025-03-09 17:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643776', 'tblTempUsageDetail_20' ) end [2025-03-09 17:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:40:21] Production.INFO: ==10618== Releasing lock... [2025-03-09 17:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:40:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:41:05 [end_date_ymd] => 2025-03-09 17:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:41:05' and `end` < '2025-03-09 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-09 17:41:17] Production.INFO: count ==1224 [2025-03-09 17:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:41:05 - End Time 2025-03-09 17:41:05 [2025-03-09 17:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643781', 'tblTempUsageDetail_20' ) start [2025-03-09 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643781', 'tblTempUsageDetail_20' ) end [2025-03-09 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643781', 'tblTempVendorCDR_20' ) start [2025-03-09 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643781', 'tblTempVendorCDR_20' ) end [2025-03-09 17:41:17] Production.INFO: ProcessCDR(1,14643781,1,1,2) [2025-03-09 17:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643781', 'tblTempUsageDetail_20' ) start [2025-03-09 17:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643781', 'tblTempUsageDetail_20' ) end [2025-03-09 17:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:41:21] Production.INFO: ==10734== Releasing lock... [2025-03-09 17:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:41:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:42:06 [end_date_ymd] => 2025-03-09 17:42:06 [RateCDR] => 1 ) [2025-03-09 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:42:06' and `end` < '2025-03-09 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:42:18] Production.INFO: count ==1225 [2025-03-09 17:42:19] Production.ERROR: pbx CDR StartTime 2025-03-09 14:42:06 - End Time 2025-03-09 17:42:06 [2025-03-09 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643786', 'tblTempUsageDetail_20' ) start [2025-03-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643786', 'tblTempUsageDetail_20' ) end [2025-03-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643786', 'tblTempVendorCDR_20' ) start [2025-03-09 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643786', 'tblTempVendorCDR_20' ) end [2025-03-09 17:42:19] Production.INFO: ProcessCDR(1,14643786,1,1,2) [2025-03-09 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643786', 'tblTempUsageDetail_20' ) start [2025-03-09 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643786', 'tblTempUsageDetail_20' ) end [2025-03-09 17:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:42:22] Production.INFO: ==10808== Releasing lock... [2025-03-09 17:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:43:05 [end_date_ymd] => 2025-03-09 17:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:43:05' and `end` < '2025-03-09 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-09 17:43:17] Production.INFO: count ==1228 [2025-03-09 17:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:43:05 - End Time 2025-03-09 17:43:05 [2025-03-09 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643791', 'tblTempUsageDetail_20' ) start [2025-03-09 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643791', 'tblTempUsageDetail_20' ) end [2025-03-09 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643791', 'tblTempVendorCDR_20' ) start [2025-03-09 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643791', 'tblTempVendorCDR_20' ) end [2025-03-09 17:43:18] Production.INFO: ProcessCDR(1,14643791,1,1,2) [2025-03-09 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643791', 'tblTempUsageDetail_20' ) start [2025-03-09 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643791', 'tblTempUsageDetail_20' ) end [2025-03-09 17:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:43:21] Production.INFO: ==10878== Releasing lock... [2025-03-09 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:43:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:44:05 [end_date_ymd] => 2025-03-09 17:44:05 [RateCDR] => 1 ) [2025-03-09 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:44:05' and `end` < '2025-03-09 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-09 17:44:18] Production.INFO: count ==1231 [2025-03-09 17:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:44:05 - End Time 2025-03-09 17:44:05 [2025-03-09 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643796', 'tblTempUsageDetail_20' ) start [2025-03-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643796', 'tblTempUsageDetail_20' ) end [2025-03-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643796', 'tblTempVendorCDR_20' ) start [2025-03-09 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643796', 'tblTempVendorCDR_20' ) end [2025-03-09 17:44:18] Production.INFO: ProcessCDR(1,14643796,1,1,2) [2025-03-09 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643796', 'tblTempUsageDetail_20' ) start [2025-03-09 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643796', 'tblTempUsageDetail_20' ) end [2025-03-09 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:44:22] Production.INFO: ==10950== Releasing lock... [2025-03-09 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:44:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:45:05 [end_date_ymd] => 2025-03-09 17:45:05 [RateCDR] => 1 ) [2025-03-09 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:45:05' and `end` < '2025-03-09 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:45:17] Production.INFO: count ==1231 [2025-03-09 17:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:45:05 - End Time 2025-03-09 17:45:05 [2025-03-09 17:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643801', 'tblTempUsageDetail_20' ) start [2025-03-09 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643801', 'tblTempUsageDetail_20' ) end [2025-03-09 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643801', 'tblTempVendorCDR_20' ) start [2025-03-09 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643801', 'tblTempVendorCDR_20' ) end [2025-03-09 17:45:17] Production.INFO: ProcessCDR(1,14643801,1,1,2) [2025-03-09 17:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643801', 'tblTempUsageDetail_20' ) start [2025-03-09 17:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643801', 'tblTempUsageDetail_20' ) end [2025-03-09 17:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:45:20] Production.INFO: ==11022== Releasing lock... [2025-03-09 17:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:45:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:46:05 [end_date_ymd] => 2025-03-09 17:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:46:05' and `end` < '2025-03-09 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-09 17:46:17] Production.INFO: count ==1231 [2025-03-09 17:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:46:05 - End Time 2025-03-09 17:46:05 [2025-03-09 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643806', 'tblTempUsageDetail_20' ) start [2025-03-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643806', 'tblTempUsageDetail_20' ) end [2025-03-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643806', 'tblTempVendorCDR_20' ) start [2025-03-09 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643806', 'tblTempVendorCDR_20' ) end [2025-03-09 17:46:18] Production.INFO: ProcessCDR(1,14643806,1,1,2) [2025-03-09 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643806', 'tblTempUsageDetail_20' ) start [2025-03-09 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643806', 'tblTempUsageDetail_20' ) end [2025-03-09 17:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:46:21] Production.INFO: ==11095== Releasing lock... [2025-03-09 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:46:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:47:05 [end_date_ymd] => 2025-03-09 17:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:47:05' and `end` < '2025-03-09 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-09 17:47:17] Production.INFO: count ==1231 [2025-03-09 17:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:47:05 - End Time 2025-03-09 17:47:05 [2025-03-09 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643811', 'tblTempUsageDetail_20' ) start [2025-03-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643811', 'tblTempUsageDetail_20' ) end [2025-03-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643811', 'tblTempVendorCDR_20' ) start [2025-03-09 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643811', 'tblTempVendorCDR_20' ) end [2025-03-09 17:47:18] Production.INFO: ProcessCDR(1,14643811,1,1,2) [2025-03-09 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643811', 'tblTempUsageDetail_20' ) start [2025-03-09 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643811', 'tblTempUsageDetail_20' ) end [2025-03-09 17:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:47:21] Production.INFO: ==11167== Releasing lock... [2025-03-09 17:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:47:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:48:05 [end_date_ymd] => 2025-03-09 17:48:05 [RateCDR] => 1 ) [2025-03-09 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:48:05' and `end` < '2025-03-09 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:48:18] Production.INFO: count ==1230 [2025-03-09 17:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:48:05 - End Time 2025-03-09 17:48:05 [2025-03-09 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643816', 'tblTempUsageDetail_20' ) start [2025-03-09 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643816', 'tblTempUsageDetail_20' ) end [2025-03-09 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643816', 'tblTempVendorCDR_20' ) start [2025-03-09 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643816', 'tblTempVendorCDR_20' ) end [2025-03-09 17:48:18] Production.INFO: ProcessCDR(1,14643816,1,1,2) [2025-03-09 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643816', 'tblTempUsageDetail_20' ) start [2025-03-09 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643816', 'tblTempUsageDetail_20' ) end [2025-03-09 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:48:23] Production.INFO: ==11243== Releasing lock... [2025-03-09 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:48:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:49:05 [end_date_ymd] => 2025-03-09 17:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:49:05' and `end` < '2025-03-09 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-09 17:49:17] Production.INFO: count ==1231 [2025-03-09 17:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:49:05 - End Time 2025-03-09 17:49:05 [2025-03-09 17:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643821', 'tblTempUsageDetail_20' ) start [2025-03-09 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643821', 'tblTempUsageDetail_20' ) end [2025-03-09 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643821', 'tblTempVendorCDR_20' ) start [2025-03-09 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643821', 'tblTempVendorCDR_20' ) end [2025-03-09 17:49:17] Production.INFO: ProcessCDR(1,14643821,1,1,2) [2025-03-09 17:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643821', 'tblTempUsageDetail_20' ) start [2025-03-09 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643821', 'tblTempUsageDetail_20' ) end [2025-03-09 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:49:22] Production.INFO: ==11320== Releasing lock... [2025-03-09 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:49:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:50:07 [end_date_ymd] => 2025-03-09 17:50:07 [RateCDR] => 1 ) [2025-03-09 17: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-09 14:50:07' and `end` < '2025-03-09 17: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-09 17:50:19] Production.INFO: count ==1228 [2025-03-09 17:50:19] Production.ERROR: pbx CDR StartTime 2025-03-09 14:50:07 - End Time 2025-03-09 17:50:07 [2025-03-09 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643827', 'tblTempUsageDetail_20' ) start [2025-03-09 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643827', 'tblTempUsageDetail_20' ) end [2025-03-09 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643827', 'tblTempVendorCDR_20' ) start [2025-03-09 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643827', 'tblTempVendorCDR_20' ) end [2025-03-09 17:50:19] Production.INFO: ProcessCDR(1,14643827,1,1,2) [2025-03-09 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643827', 'tblTempUsageDetail_20' ) start [2025-03-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643827', 'tblTempUsageDetail_20' ) end [2025-03-09 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:50:24] Production.INFO: ==11396== Releasing lock... [2025-03-09 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:50:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:51:05 [end_date_ymd] => 2025-03-09 17:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:51:05' and `end` < '2025-03-09 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-09 17:51:17] Production.INFO: count ==1250 [2025-03-09 17:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:51:05 - End Time 2025-03-09 17:51:05 [2025-03-09 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643832', 'tblTempUsageDetail_20' ) start [2025-03-09 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643832', 'tblTempUsageDetail_20' ) end [2025-03-09 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643832', 'tblTempVendorCDR_20' ) start [2025-03-09 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643832', 'tblTempVendorCDR_20' ) end [2025-03-09 17:51:18] Production.INFO: ProcessCDR(1,14643832,1,1,2) [2025-03-09 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643832', 'tblTempUsageDetail_20' ) start [2025-03-09 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643832', 'tblTempUsageDetail_20' ) end [2025-03-09 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:51:22] Production.INFO: ==11470== Releasing lock... [2025-03-09 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:51:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:52:05 [end_date_ymd] => 2025-03-09 17:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:52:05' and `end` < '2025-03-09 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-09 17:52:17] Production.INFO: count ==1251 [2025-03-09 17:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:52:05 - End Time 2025-03-09 17:52:05 [2025-03-09 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643837', 'tblTempUsageDetail_20' ) start [2025-03-09 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643837', 'tblTempUsageDetail_20' ) end [2025-03-09 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643837', 'tblTempVendorCDR_20' ) start [2025-03-09 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643837', 'tblTempVendorCDR_20' ) end [2025-03-09 17:52:18] Production.INFO: ProcessCDR(1,14643837,1,1,2) [2025-03-09 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643837', 'tblTempUsageDetail_20' ) start [2025-03-09 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643837', 'tblTempUsageDetail_20' ) end [2025-03-09 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:52:23] Production.INFO: ==11541== Releasing lock... [2025-03-09 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:52:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:53:05 [end_date_ymd] => 2025-03-09 17:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:53:05' and `end` < '2025-03-09 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-09 17:53:17] Production.INFO: count ==1252 [2025-03-09 17:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:53:05 - End Time 2025-03-09 17:53:05 [2025-03-09 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643842', 'tblTempUsageDetail_20' ) start [2025-03-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643842', 'tblTempUsageDetail_20' ) end [2025-03-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643842', 'tblTempVendorCDR_20' ) start [2025-03-09 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643842', 'tblTempVendorCDR_20' ) end [2025-03-09 17:53:18] Production.INFO: ProcessCDR(1,14643842,1,1,2) [2025-03-09 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643842', 'tblTempUsageDetail_20' ) start [2025-03-09 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643842', 'tblTempUsageDetail_20' ) end [2025-03-09 17:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:53:21] Production.INFO: ==11614== Releasing lock... [2025-03-09 17:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:53:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:54:06 [end_date_ymd] => 2025-03-09 17:54:06 [RateCDR] => 1 ) [2025-03-09 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-09 14:54:06' and `end` < '2025-03-09 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-09 17:54:18] Production.INFO: count ==1250 [2025-03-09 17:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:54:06 - End Time 2025-03-09 17:54:06 [2025-03-09 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643847', 'tblTempUsageDetail_20' ) start [2025-03-09 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643847', 'tblTempUsageDetail_20' ) end [2025-03-09 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643847', 'tblTempVendorCDR_20' ) start [2025-03-09 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643847', 'tblTempVendorCDR_20' ) end [2025-03-09 17:54:18] Production.INFO: ProcessCDR(1,14643847,1,1,2) [2025-03-09 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643847', 'tblTempUsageDetail_20' ) start [2025-03-09 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643847', 'tblTempUsageDetail_20' ) end [2025-03-09 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:54:22] Production.INFO: ==11684== Releasing lock... [2025-03-09 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:54:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:55:05 [end_date_ymd] => 2025-03-09 17:55:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:55:05' and `end` < '2025-03-09 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-09 17:55:17] Production.INFO: count ==1246 [2025-03-09 17:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:55:05 - End Time 2025-03-09 17:55:05 [2025-03-09 17:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643852', 'tblTempUsageDetail_20' ) start [2025-03-09 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643852', 'tblTempUsageDetail_20' ) end [2025-03-09 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643852', 'tblTempVendorCDR_20' ) start [2025-03-09 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643852', 'tblTempVendorCDR_20' ) end [2025-03-09 17:55:17] Production.INFO: ProcessCDR(1,14643852,1,1,2) [2025-03-09 17:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643852', 'tblTempUsageDetail_20' ) start [2025-03-09 17:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643852', 'tblTempUsageDetail_20' ) end [2025-03-09 17:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:55:20] Production.INFO: ==11756== Releasing lock... [2025-03-09 17:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:55:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:56:05 [end_date_ymd] => 2025-03-09 17:56:05 [RateCDR] => 1 ) [2025-03-09 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:56:05' and `end` < '2025-03-09 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:56:17] Production.INFO: count ==1252 [2025-03-09 17:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:56:05 - End Time 2025-03-09 17:56:05 [2025-03-09 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643857', 'tblTempUsageDetail_20' ) start [2025-03-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643857', 'tblTempUsageDetail_20' ) end [2025-03-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643857', 'tblTempVendorCDR_20' ) start [2025-03-09 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643857', 'tblTempVendorCDR_20' ) end [2025-03-09 17:56:18] Production.INFO: ProcessCDR(1,14643857,1,1,2) [2025-03-09 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643857', 'tblTempUsageDetail_20' ) start [2025-03-09 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643857', 'tblTempUsageDetail_20' ) end [2025-03-09 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:56:22] Production.INFO: ==11876== Releasing lock... [2025-03-09 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:56:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:57:05 [end_date_ymd] => 2025-03-09 17:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:57:05' and `end` < '2025-03-09 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-09 17:57:17] Production.INFO: count ==1250 [2025-03-09 17:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 14:57:05 - End Time 2025-03-09 17:57:05 [2025-03-09 17:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643862', 'tblTempUsageDetail_20' ) start [2025-03-09 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643862', 'tblTempUsageDetail_20' ) end [2025-03-09 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643862', 'tblTempVendorCDR_20' ) start [2025-03-09 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643862', 'tblTempVendorCDR_20' ) end [2025-03-09 17:57:17] Production.INFO: ProcessCDR(1,14643862,1,1,2) [2025-03-09 17:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643862', 'tblTempUsageDetail_20' ) start [2025-03-09 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643862', 'tblTempUsageDetail_20' ) end [2025-03-09 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:57:22] Production.INFO: ==11945== Releasing lock... [2025-03-09 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:58:05 [end_date_ymd] => 2025-03-09 17:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 14:58:05' and `end` < '2025-03-09 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-09 17:58:18] Production.INFO: count ==1256 [2025-03-09 17:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:58:05 - End Time 2025-03-09 17:58:05 [2025-03-09 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643867', 'tblTempUsageDetail_20' ) start [2025-03-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643867', 'tblTempUsageDetail_20' ) end [2025-03-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643867', 'tblTempVendorCDR_20' ) start [2025-03-09 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643867', 'tblTempVendorCDR_20' ) end [2025-03-09 17:58:18] Production.INFO: ProcessCDR(1,14643867,1,1,2) [2025-03-09 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643867', 'tblTempUsageDetail_20' ) start [2025-03-09 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643867', 'tblTempUsageDetail_20' ) end [2025-03-09 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:58:22] Production.INFO: ==12016== Releasing lock... [2025-03-09 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:58:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 14:59:05 [end_date_ymd] => 2025-03-09 17:59:05 [RateCDR] => 1 ) [2025-03-09 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 14:59:05' and `end` < '2025-03-09 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 17:59:18] Production.INFO: count ==1249 [2025-03-09 17:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 14:59:05 - End Time 2025-03-09 17:59:05 [2025-03-09 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643872', 'tblTempUsageDetail_20' ) start [2025-03-09 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643872', 'tblTempUsageDetail_20' ) end [2025-03-09 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643872', 'tblTempVendorCDR_20' ) start [2025-03-09 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643872', 'tblTempVendorCDR_20' ) end [2025-03-09 17:59:18] Production.INFO: ProcessCDR(1,14643872,1,1,2) [2025-03-09 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643872', 'tblTempUsageDetail_20' ) start [2025-03-09 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643872', 'tblTempUsageDetail_20' ) end [2025-03-09 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 17:59:22] Production.INFO: ==12088== Releasing lock... [2025-03-09 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 17:59:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:00:05 [end_date_ymd] => 2025-03-09 18:00:05 [RateCDR] => 1 ) [2025-03-09 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:00:05' and `end` < '2025-03-09 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:00:17] Production.INFO: count ==1240 [2025-03-09 18:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:00:05 - End Time 2025-03-09 18:00:05 [2025-03-09 18:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643878', 'tblTempUsageDetail_20' ) start [2025-03-09 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643878', 'tblTempUsageDetail_20' ) end [2025-03-09 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643878', 'tblTempVendorCDR_20' ) start [2025-03-09 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643878', 'tblTempVendorCDR_20' ) end [2025-03-09 18:00:18] Production.INFO: ProcessCDR(1,14643878,1,1,2) [2025-03-09 18:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643878', 'tblTempUsageDetail_20' ) start [2025-03-09 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643878', 'tblTempUsageDetail_20' ) end [2025-03-09 18:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:00:23] Production.INFO: ==12165== Releasing lock... [2025-03-09 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:00:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:01:05 [end_date_ymd] => 2025-03-09 18:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:01:05' and `end` < '2025-03-09 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-09 18:01:18] Production.INFO: count ==1247 [2025-03-09 18:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:01:05 - End Time 2025-03-09 18:01:05 [2025-03-09 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643883', 'tblTempUsageDetail_20' ) start [2025-03-09 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643883', 'tblTempUsageDetail_20' ) end [2025-03-09 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643883', 'tblTempVendorCDR_20' ) start [2025-03-09 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643883', 'tblTempVendorCDR_20' ) end [2025-03-09 18:01:18] Production.INFO: ProcessCDR(1,14643883,1,1,2) [2025-03-09 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643883', 'tblTempUsageDetail_20' ) start [2025-03-09 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643883', 'tblTempUsageDetail_20' ) end [2025-03-09 18:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:01:21] Production.INFO: ==12253== Releasing lock... [2025-03-09 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:02:05 [end_date_ymd] => 2025-03-09 18:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:02:05' and `end` < '2025-03-09 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-09 18:02:17] Production.INFO: count ==1249 [2025-03-09 18:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:02:05 - End Time 2025-03-09 18:02:05 [2025-03-09 18:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643888', 'tblTempUsageDetail_20' ) start [2025-03-09 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643888', 'tblTempUsageDetail_20' ) end [2025-03-09 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643888', 'tblTempVendorCDR_20' ) start [2025-03-09 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643888', 'tblTempVendorCDR_20' ) end [2025-03-09 18:02:17] Production.INFO: ProcessCDR(1,14643888,1,1,2) [2025-03-09 18:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643888', 'tblTempUsageDetail_20' ) start [2025-03-09 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643888', 'tblTempUsageDetail_20' ) end [2025-03-09 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:02:22] Production.INFO: ==12324== Releasing lock... [2025-03-09 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:02:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:03:05 [end_date_ymd] => 2025-03-09 18:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:03:05' and `end` < '2025-03-09 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-09 18:03:17] Production.INFO: count ==1257 [2025-03-09 18:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:03:05 - End Time 2025-03-09 18:03:05 [2025-03-09 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643893', 'tblTempUsageDetail_20' ) start [2025-03-09 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643893', 'tblTempUsageDetail_20' ) end [2025-03-09 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643893', 'tblTempVendorCDR_20' ) start [2025-03-09 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643893', 'tblTempVendorCDR_20' ) end [2025-03-09 18:03:18] Production.INFO: ProcessCDR(1,14643893,1,1,2) [2025-03-09 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643893', 'tblTempUsageDetail_20' ) start [2025-03-09 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643893', 'tblTempUsageDetail_20' ) end [2025-03-09 18:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:03:22] Production.INFO: ==12396== Releasing lock... [2025-03-09 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:04:05 [end_date_ymd] => 2025-03-09 18:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:04:05' and `end` < '2025-03-09 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-09 18:04:17] Production.INFO: count ==1260 [2025-03-09 18:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:04:05 - End Time 2025-03-09 18:04:05 [2025-03-09 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643898', 'tblTempUsageDetail_20' ) start [2025-03-09 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643898', 'tblTempUsageDetail_20' ) end [2025-03-09 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643898', 'tblTempVendorCDR_20' ) start [2025-03-09 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643898', 'tblTempVendorCDR_20' ) end [2025-03-09 18:04:17] Production.INFO: ProcessCDR(1,14643898,1,1,2) [2025-03-09 18:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643898', 'tblTempUsageDetail_20' ) start [2025-03-09 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643898', 'tblTempUsageDetail_20' ) end [2025-03-09 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:04:22] Production.INFO: ==12466== Releasing lock... [2025-03-09 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:04:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:05:05 [end_date_ymd] => 2025-03-09 18:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:05:05' and `end` < '2025-03-09 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-09 18:05:17] Production.INFO: count ==1263 [2025-03-09 18:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:05:05 - End Time 2025-03-09 18:05:05 [2025-03-09 18:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643903', 'tblTempUsageDetail_20' ) start [2025-03-09 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643903', 'tblTempUsageDetail_20' ) end [2025-03-09 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643903', 'tblTempVendorCDR_20' ) start [2025-03-09 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643903', 'tblTempVendorCDR_20' ) end [2025-03-09 18:05:18] Production.INFO: ProcessCDR(1,14643903,1,1,2) [2025-03-09 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643903', 'tblTempUsageDetail_20' ) start [2025-03-09 18:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643903', 'tblTempUsageDetail_20' ) end [2025-03-09 18:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:05:21] Production.INFO: ==12541== Releasing lock... [2025-03-09 18:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:05:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:06:04 [end_date_ymd] => 2025-03-09 18:06:04 [RateCDR] => 1 ) [2025-03-09 18:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:06:04' and `end` < '2025-03-09 18:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:06:17] Production.INFO: count ==1256 [2025-03-09 18:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:06:04 - End Time 2025-03-09 18:06:04 [2025-03-09 18:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643908', 'tblTempUsageDetail_20' ) start [2025-03-09 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643908', 'tblTempUsageDetail_20' ) end [2025-03-09 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643908', 'tblTempVendorCDR_20' ) start [2025-03-09 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643908', 'tblTempVendorCDR_20' ) end [2025-03-09 18:06:17] Production.INFO: ProcessCDR(1,14643908,1,1,2) [2025-03-09 18:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643908', 'tblTempUsageDetail_20' ) start [2025-03-09 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643908', 'tblTempUsageDetail_20' ) end [2025-03-09 18:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:06:22] Production.INFO: ==12615== Releasing lock... [2025-03-09 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:07:05 [end_date_ymd] => 2025-03-09 18:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:07:05' and `end` < '2025-03-09 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-09 18:07:17] Production.INFO: count ==1255 [2025-03-09 18:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:07:05 - End Time 2025-03-09 18:07:05 [2025-03-09 18:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643913', 'tblTempUsageDetail_20' ) start [2025-03-09 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643913', 'tblTempUsageDetail_20' ) end [2025-03-09 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643913', 'tblTempVendorCDR_20' ) start [2025-03-09 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643913', 'tblTempVendorCDR_20' ) end [2025-03-09 18:07:18] Production.INFO: ProcessCDR(1,14643913,1,1,2) [2025-03-09 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643913', 'tblTempUsageDetail_20' ) start [2025-03-09 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643913', 'tblTempUsageDetail_20' ) end [2025-03-09 18:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:07:21] Production.INFO: ==12689== Releasing lock... [2025-03-09 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:08:05 [end_date_ymd] => 2025-03-09 18:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:08:05' and `end` < '2025-03-09 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-09 18:08:18] Production.INFO: count ==1259 [2025-03-09 18:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:08:05 - End Time 2025-03-09 18:08:05 [2025-03-09 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643918', 'tblTempUsageDetail_20' ) start [2025-03-09 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643918', 'tblTempUsageDetail_20' ) end [2025-03-09 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643918', 'tblTempVendorCDR_20' ) start [2025-03-09 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643918', 'tblTempVendorCDR_20' ) end [2025-03-09 18:08:18] Production.INFO: ProcessCDR(1,14643918,1,1,2) [2025-03-09 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643918', 'tblTempUsageDetail_20' ) start [2025-03-09 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643918', 'tblTempUsageDetail_20' ) end [2025-03-09 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:08:23] Production.INFO: ==12762== Releasing lock... [2025-03-09 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:08:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:09:05 [end_date_ymd] => 2025-03-09 18:09:05 [RateCDR] => 1 ) [2025-03-09 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:09:05' and `end` < '2025-03-09 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:09:17] Production.INFO: count ==1264 [2025-03-09 18:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:09:05 - End Time 2025-03-09 18:09:05 [2025-03-09 18:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643923', 'tblTempUsageDetail_20' ) start [2025-03-09 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643923', 'tblTempUsageDetail_20' ) end [2025-03-09 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643923', 'tblTempVendorCDR_20' ) start [2025-03-09 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643923', 'tblTempVendorCDR_20' ) end [2025-03-09 18:09:17] Production.INFO: ProcessCDR(1,14643923,1,1,2) [2025-03-09 18:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643923', 'tblTempUsageDetail_20' ) start [2025-03-09 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643923', 'tblTempUsageDetail_20' ) end [2025-03-09 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:09:21] Production.INFO: ==12838== Releasing lock... [2025-03-09 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:10:07 [end_date_ymd] => 2025-03-09 18:10:07 [RateCDR] => 1 ) [2025-03-09 18: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-09 15:10:07' and `end` < '2025-03-09 18: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-09 18:10:19] Production.INFO: count ==1262 [2025-03-09 18:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 15:10:07 - End Time 2025-03-09 18:10:07 [2025-03-09 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643929', 'tblTempUsageDetail_20' ) start [2025-03-09 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643929', 'tblTempUsageDetail_20' ) end [2025-03-09 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643929', 'tblTempVendorCDR_20' ) start [2025-03-09 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643929', 'tblTempVendorCDR_20' ) end [2025-03-09 18:10:19] Production.INFO: ProcessCDR(1,14643929,1,1,2) [2025-03-09 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643929', 'tblTempUsageDetail_20' ) start [2025-03-09 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643929', 'tblTempUsageDetail_20' ) end [2025-03-09 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:10:23] Production.INFO: ==12913== Releasing lock... [2025-03-09 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:11:05 [end_date_ymd] => 2025-03-09 18:11:05 [RateCDR] => 1 ) [2025-03-09 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:11:05' and `end` < '2025-03-09 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:11:17] Production.INFO: count ==1323 [2025-03-09 18:11:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:11:05 - End Time 2025-03-09 18:11:05 [2025-03-09 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643934', 'tblTempUsageDetail_20' ) start [2025-03-09 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643934', 'tblTempUsageDetail_20' ) end [2025-03-09 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643934', 'tblTempVendorCDR_20' ) start [2025-03-09 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643934', 'tblTempVendorCDR_20' ) end [2025-03-09 18:11:18] Production.INFO: ProcessCDR(1,14643934,1,1,2) [2025-03-09 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643934', 'tblTempUsageDetail_20' ) start [2025-03-09 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643934', 'tblTempUsageDetail_20' ) end [2025-03-09 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:11:23] Production.INFO: ==12985== Releasing lock... [2025-03-09 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:11:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:12:05 [end_date_ymd] => 2025-03-09 18:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:12:05' and `end` < '2025-03-09 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-09 18:12:18] Production.INFO: count ==1343 [2025-03-09 18:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:12:05 - End Time 2025-03-09 18:12:05 [2025-03-09 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643939', 'tblTempUsageDetail_20' ) start [2025-03-09 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643939', 'tblTempUsageDetail_20' ) end [2025-03-09 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643939', 'tblTempVendorCDR_20' ) start [2025-03-09 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643939', 'tblTempVendorCDR_20' ) end [2025-03-09 18:12:18] Production.INFO: ProcessCDR(1,14643939,1,1,2) [2025-03-09 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643939', 'tblTempUsageDetail_20' ) start [2025-03-09 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643939', 'tblTempUsageDetail_20' ) end [2025-03-09 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:12:23] Production.INFO: ==13096== Releasing lock... [2025-03-09 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:12:23] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:13:05 [end_date_ymd] => 2025-03-09 18:13:05 [RateCDR] => 1 ) [2025-03-09 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:13:05' and `end` < '2025-03-09 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:13:17] Production.INFO: count ==1350 [2025-03-09 18:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:13:05 - End Time 2025-03-09 18:13:05 [2025-03-09 18:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643944', 'tblTempUsageDetail_20' ) start [2025-03-09 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643944', 'tblTempUsageDetail_20' ) end [2025-03-09 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643944', 'tblTempVendorCDR_20' ) start [2025-03-09 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643944', 'tblTempVendorCDR_20' ) end [2025-03-09 18:13:17] Production.INFO: ProcessCDR(1,14643944,1,1,2) [2025-03-09 18:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643944', 'tblTempUsageDetail_20' ) start [2025-03-09 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643944', 'tblTempUsageDetail_20' ) end [2025-03-09 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:13:23] Production.INFO: ==13166== Releasing lock... [2025-03-09 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:13:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:14:05 [end_date_ymd] => 2025-03-09 18:14:05 [RateCDR] => 1 ) [2025-03-09 18: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-09 15:14:05' and `end` < '2025-03-09 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-09 18:14:18] Production.INFO: count ==1350 [2025-03-09 18:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:14:05 - End Time 2025-03-09 18:14:05 [2025-03-09 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643949', 'tblTempUsageDetail_20' ) start [2025-03-09 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643949', 'tblTempUsageDetail_20' ) end [2025-03-09 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643949', 'tblTempVendorCDR_20' ) start [2025-03-09 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643949', 'tblTempVendorCDR_20' ) end [2025-03-09 18:14:18] Production.INFO: ProcessCDR(1,14643949,1,1,2) [2025-03-09 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643949', 'tblTempUsageDetail_20' ) start [2025-03-09 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643949', 'tblTempUsageDetail_20' ) end [2025-03-09 18:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:14:21] Production.INFO: ==13242== Releasing lock... [2025-03-09 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:14:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:15:04 [end_date_ymd] => 2025-03-09 18:15:04 [RateCDR] => 1 ) [2025-03-09 18: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-09 15:15:04' and `end` < '2025-03-09 18: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-09 18:15:17] Production.INFO: count ==1352 [2025-03-09 18:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:15:04 - End Time 2025-03-09 18:15:04 [2025-03-09 18:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643954', 'tblTempUsageDetail_20' ) start [2025-03-09 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643954', 'tblTempUsageDetail_20' ) end [2025-03-09 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643954', 'tblTempVendorCDR_20' ) start [2025-03-09 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643954', 'tblTempVendorCDR_20' ) end [2025-03-09 18:15:17] Production.INFO: ProcessCDR(1,14643954,1,1,2) [2025-03-09 18:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643954', 'tblTempUsageDetail_20' ) start [2025-03-09 18:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643954', 'tblTempUsageDetail_20' ) end [2025-03-09 18:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:15:20] Production.INFO: ==13316== Releasing lock... [2025-03-09 18:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:15:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:16:05 [end_date_ymd] => 2025-03-09 18:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:16:05' and `end` < '2025-03-09 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-09 18:16:17] Production.INFO: count ==1353 [2025-03-09 18:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:16:05 - End Time 2025-03-09 18:16:05 [2025-03-09 18:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643959', 'tblTempUsageDetail_20' ) start [2025-03-09 18:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643959', 'tblTempUsageDetail_20' ) end [2025-03-09 18:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643959', 'tblTempVendorCDR_20' ) start [2025-03-09 18:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643959', 'tblTempVendorCDR_20' ) end [2025-03-09 18:16:17] Production.INFO: ProcessCDR(1,14643959,1,1,2) [2025-03-09 18:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643959', 'tblTempUsageDetail_20' ) start [2025-03-09 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643959', 'tblTempUsageDetail_20' ) end [2025-03-09 18:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:16:21] Production.INFO: ==13390== Releasing lock... [2025-03-09 18:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:16:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:17:05 [end_date_ymd] => 2025-03-09 18:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:17:05' and `end` < '2025-03-09 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-09 18:17:17] Production.INFO: count ==1351 [2025-03-09 18:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:17:05 - End Time 2025-03-09 18:17:05 [2025-03-09 18:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643964', 'tblTempUsageDetail_20' ) start [2025-03-09 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643964', 'tblTempUsageDetail_20' ) end [2025-03-09 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643964', 'tblTempVendorCDR_20' ) start [2025-03-09 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643964', 'tblTempVendorCDR_20' ) end [2025-03-09 18:17:17] Production.INFO: ProcessCDR(1,14643964,1,1,2) [2025-03-09 18:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643964', 'tblTempUsageDetail_20' ) start [2025-03-09 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643964', 'tblTempUsageDetail_20' ) end [2025-03-09 18:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:17:21] Production.INFO: ==13459== Releasing lock... [2025-03-09 18:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:17:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:18:05 [end_date_ymd] => 2025-03-09 18:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:18:05' and `end` < '2025-03-09 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-09 18:18:17] Production.INFO: count ==1350 [2025-03-09 18:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:18:05 - End Time 2025-03-09 18:18:05 [2025-03-09 18:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643969', 'tblTempUsageDetail_20' ) start [2025-03-09 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643969', 'tblTempUsageDetail_20' ) end [2025-03-09 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643969', 'tblTempVendorCDR_20' ) start [2025-03-09 18:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643969', 'tblTempVendorCDR_20' ) end [2025-03-09 18:18:17] Production.INFO: ProcessCDR(1,14643969,1,1,2) [2025-03-09 18:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643969', 'tblTempUsageDetail_20' ) start [2025-03-09 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643969', 'tblTempUsageDetail_20' ) end [2025-03-09 18:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:18:21] Production.INFO: ==13533== Releasing lock... [2025-03-09 18:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:18:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:19:05 [end_date_ymd] => 2025-03-09 18:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:19:05' and `end` < '2025-03-09 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-09 18:19:17] Production.INFO: count ==1351 [2025-03-09 18:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:19:05 - End Time 2025-03-09 18:19:05 [2025-03-09 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643974', 'tblTempUsageDetail_20' ) start [2025-03-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643974', 'tblTempUsageDetail_20' ) end [2025-03-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643974', 'tblTempVendorCDR_20' ) start [2025-03-09 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643974', 'tblTempVendorCDR_20' ) end [2025-03-09 18:19:18] Production.INFO: ProcessCDR(1,14643974,1,1,2) [2025-03-09 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643974', 'tblTempUsageDetail_20' ) start [2025-03-09 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643974', 'tblTempUsageDetail_20' ) end [2025-03-09 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:19:22] Production.INFO: ==13607== Releasing lock... [2025-03-09 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:19:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:20:05 [end_date_ymd] => 2025-03-09 18:20:05 [RateCDR] => 1 ) [2025-03-09 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:20:05' and `end` < '2025-03-09 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-09 18:20:18] Production.INFO: count ==1350 [2025-03-09 18:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:20:05 - End Time 2025-03-09 18:20:05 [2025-03-09 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643980', 'tblTempUsageDetail_20' ) start [2025-03-09 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643980', 'tblTempUsageDetail_20' ) end [2025-03-09 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643980', 'tblTempVendorCDR_20' ) start [2025-03-09 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643980', 'tblTempVendorCDR_20' ) end [2025-03-09 18:20:18] Production.INFO: ProcessCDR(1,14643980,1,1,2) [2025-03-09 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643980', 'tblTempUsageDetail_20' ) start [2025-03-09 18:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643980', 'tblTempUsageDetail_20' ) end [2025-03-09 18:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:20:21] Production.INFO: ==13680== Releasing lock... [2025-03-09 18:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:20:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:21:05 [end_date_ymd] => 2025-03-09 18:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:21:05' and `end` < '2025-03-09 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-09 18:21:17] Production.INFO: count ==1334 [2025-03-09 18:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:21:05 - End Time 2025-03-09 18:21:05 [2025-03-09 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643985', 'tblTempUsageDetail_20' ) start [2025-03-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643985', 'tblTempUsageDetail_20' ) end [2025-03-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643985', 'tblTempVendorCDR_20' ) start [2025-03-09 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643985', 'tblTempVendorCDR_20' ) end [2025-03-09 18:21:18] Production.INFO: ProcessCDR(1,14643985,1,1,2) [2025-03-09 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643985', 'tblTempUsageDetail_20' ) start [2025-03-09 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643985', 'tblTempUsageDetail_20' ) end [2025-03-09 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:21:21] Production.INFO: ==13751== Releasing lock... [2025-03-09 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:21:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:22:05 [end_date_ymd] => 2025-03-09 18:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:22:05' and `end` < '2025-03-09 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-09 18:22:17] Production.INFO: count ==1335 [2025-03-09 18:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:22:05 - End Time 2025-03-09 18:22:05 [2025-03-09 18:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643990', 'tblTempUsageDetail_20' ) start [2025-03-09 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643990', 'tblTempUsageDetail_20' ) end [2025-03-09 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643990', 'tblTempVendorCDR_20' ) start [2025-03-09 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643990', 'tblTempVendorCDR_20' ) end [2025-03-09 18:22:17] Production.INFO: ProcessCDR(1,14643990,1,1,2) [2025-03-09 18:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643990', 'tblTempUsageDetail_20' ) start [2025-03-09 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643990', 'tblTempUsageDetail_20' ) end [2025-03-09 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:22:22] Production.INFO: ==13822== Releasing lock... [2025-03-09 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:22:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:23:05 [end_date_ymd] => 2025-03-09 18:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:23:05' and `end` < '2025-03-09 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-09 18:23:17] Production.INFO: count ==1335 [2025-03-09 18:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:23:05 - End Time 2025-03-09 18:23:05 [2025-03-09 18:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643995', 'tblTempUsageDetail_20' ) start [2025-03-09 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14643995', 'tblTempUsageDetail_20' ) end [2025-03-09 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643995', 'tblTempVendorCDR_20' ) start [2025-03-09 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14643995', 'tblTempVendorCDR_20' ) end [2025-03-09 18:23:18] Production.INFO: ProcessCDR(1,14643995,1,1,2) [2025-03-09 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14643995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14643995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14643995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14643995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643995', 'tblTempUsageDetail_20' ) start [2025-03-09 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14643995', 'tblTempUsageDetail_20' ) end [2025-03-09 18:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:23:21] Production.INFO: ==13894== Releasing lock... [2025-03-09 18:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:23:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:24:05 [end_date_ymd] => 2025-03-09 18:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:24:05' and `end` < '2025-03-09 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-09 18:24:17] Production.INFO: count ==1336 [2025-03-09 18:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:24:05 - End Time 2025-03-09 18:24:05 [2025-03-09 18:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644000', 'tblTempUsageDetail_20' ) start [2025-03-09 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644000', 'tblTempUsageDetail_20' ) end [2025-03-09 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644000', 'tblTempVendorCDR_20' ) start [2025-03-09 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644000', 'tblTempVendorCDR_20' ) end [2025-03-09 18:24:17] Production.INFO: ProcessCDR(1,14644000,1,1,2) [2025-03-09 18:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644000', 'tblTempUsageDetail_20' ) start [2025-03-09 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644000', 'tblTempUsageDetail_20' ) end [2025-03-09 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:24:22] Production.INFO: ==13965== Releasing lock... [2025-03-09 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:24:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:25:05 [end_date_ymd] => 2025-03-09 18:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:25:05' and `end` < '2025-03-09 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-09 18:25:17] Production.INFO: count ==1337 [2025-03-09 18:25:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:25:05 - End Time 2025-03-09 18:25:05 [2025-03-09 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644005', 'tblTempUsageDetail_20' ) start [2025-03-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644005', 'tblTempUsageDetail_20' ) end [2025-03-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644005', 'tblTempVendorCDR_20' ) start [2025-03-09 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644005', 'tblTempVendorCDR_20' ) end [2025-03-09 18:25:18] Production.INFO: ProcessCDR(1,14644005,1,1,2) [2025-03-09 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644005', 'tblTempUsageDetail_20' ) start [2025-03-09 18:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644005', 'tblTempUsageDetail_20' ) end [2025-03-09 18:25:34] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:25:34] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:25:37] Production.INFO: ==14035== Releasing lock... [2025-03-09 18:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:25:37] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:26:16 [end_date_ymd] => 2025-03-09 18:26:16 [RateCDR] => 1 ) [2025-03-09 18:26:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:26:16' and `end` < '2025-03-09 18:26:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:26:28] Production.INFO: count ==1336 [2025-03-09 18:26:36] Production.ERROR: pbx CDR StartTime 2025-03-09 15:26:16 - End Time 2025-03-09 18:26:16 [2025-03-09 18:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644010', 'tblTempUsageDetail_20' ) start [2025-03-09 18:26:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644010', 'tblTempUsageDetail_20' ) end [2025-03-09 18:26:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644010', 'tblTempVendorCDR_20' ) start [2025-03-09 18:26:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644010', 'tblTempVendorCDR_20' ) end [2025-03-09 18:26:46] Production.INFO: ProcessCDR(1,14644010,1,1,2) [2025-03-09 18:26:46] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:26:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:26:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644010', 'tblTempUsageDetail_20' ) start [2025-03-09 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644010', 'tblTempUsageDetail_20' ) end [2025-03-09 18:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:27:27] Production.INFO: ==14110== Releasing lock... [2025-03-09 18:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:27:27] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 18:28:24] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:28:24 [end_date_ymd] => 2025-03-09 18:28:24 [RateCDR] => 1 ) [2025-03-09 18:28:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:28:24' and `end` < '2025-03-09 18:28:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:28:36] Production.INFO: count ==1335 [2025-03-09 18:28:42] Production.ERROR: pbx CDR StartTime 2025-03-09 15:28:24 - End Time 2025-03-09 18:28:24 [2025-03-09 18:28:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:28:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644017', 'tblTempUsageDetail_20' ) start [2025-03-09 18:28:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644017', 'tblTempUsageDetail_20' ) end [2025-03-09 18:28:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644017', 'tblTempVendorCDR_20' ) start [2025-03-09 18:28:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644017', 'tblTempVendorCDR_20' ) end [2025-03-09 18:28:42] Production.INFO: ProcessCDR(1,14644017,1,1,2) [2025-03-09 18:28:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:28:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:28:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:29:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644017', 'tblTempUsageDetail_20' ) start [2025-03-09 18:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644017', 'tblTempUsageDetail_20' ) end [2025-03-09 18:29:00] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:29:00] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:29:00] Production.INFO: ==14288== Releasing lock... [2025-03-09 18:29:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:29:00] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:29:20 [end_date_ymd] => 2025-03-09 18:29:20 [RateCDR] => 1 ) [2025-03-09 18:29:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:29:20' and `end` < '2025-03-09 18:29:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:29:32] Production.INFO: count ==1320 [2025-03-09 18:29:38] Production.ERROR: pbx CDR StartTime 2025-03-09 15:29:20 - End Time 2025-03-09 18:29:20 [2025-03-09 18:29:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644022', 'tblTempUsageDetail_20' ) start [2025-03-09 18:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644022', 'tblTempUsageDetail_20' ) end [2025-03-09 18:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644022', 'tblTempVendorCDR_20' ) start [2025-03-09 18:29:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644022', 'tblTempVendorCDR_20' ) end [2025-03-09 18:29:38] Production.INFO: ProcessCDR(1,14644022,1,1,2) [2025-03-09 18:29:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:29:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:29:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:29:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:29:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644022', 'tblTempUsageDetail_20' ) start [2025-03-09 18:29:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644022', 'tblTempUsageDetail_20' ) end [2025-03-09 18:29:56] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:29:56] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:29:56] Production.INFO: ==14355== Releasing lock... [2025-03-09 18:29:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:29:56] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:30:45] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:30:45 [end_date_ymd] => 2025-03-09 18:30:45 [RateCDR] => 1 ) [2025-03-09 18:30:45] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:30:45' and `end` < '2025-03-09 18:30:45' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:30:58] Production.INFO: count ==1299 [2025-03-09 18:31:24] Production.ERROR: pbx CDR StartTime 2025-03-09 15:30:45 - End Time 2025-03-09 18:30:45 [2025-03-09 18:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644027', 'tblTempUsageDetail_20' ) start [2025-03-09 18:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644027', 'tblTempUsageDetail_20' ) end [2025-03-09 18:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644027', 'tblTempVendorCDR_20' ) start [2025-03-09 18:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644027', 'tblTempVendorCDR_20' ) end [2025-03-09 18:31:25] Production.INFO: ProcessCDR(1,14644027,1,1,2) [2025-03-09 18:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:31:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:31:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644027', 'tblTempUsageDetail_20' ) start [2025-03-09 18:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644027', 'tblTempUsageDetail_20' ) end [2025-03-09 18:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:32:20] Production.INFO: ==14425== Releasing lock... [2025-03-09 18:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:32:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:33:37] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:33:37 [end_date_ymd] => 2025-03-09 18:33:37 [RateCDR] => 1 ) [2025-03-09 18:33:37] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:33:37' and `end` < '2025-03-09 18:33:37' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:33:49] Production.INFO: count ==1289 [2025-03-09 18:34:16] Production.ERROR: pbx CDR StartTime 2025-03-09 15:33:37 - End Time 2025-03-09 18:33:37 [2025-03-09 18:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644038', 'tblTempUsageDetail_20' ) start [2025-03-09 18:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644038', 'tblTempUsageDetail_20' ) end [2025-03-09 18:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644038', 'tblTempVendorCDR_20' ) start [2025-03-09 18:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644038', 'tblTempVendorCDR_20' ) end [2025-03-09 18:34:16] Production.INFO: ProcessCDR(1,14644038,1,1,2) [2025-03-09 18:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:34:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:34:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644038', 'tblTempUsageDetail_20' ) start [2025-03-09 18:34:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644038', 'tblTempUsageDetail_20' ) end [2025-03-09 18:34:55] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:34:55] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:34:55] Production.INFO: ==14623== Releasing lock... [2025-03-09 18:34:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:34:55] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:35:37] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:35:37 [end_date_ymd] => 2025-03-09 18:35:37 [RateCDR] => 1 ) [2025-03-09 18:35:37] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:35:37' and `end` < '2025-03-09 18:35:37' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:35:49] Production.INFO: count ==1289 [2025-03-09 18:36:15] Production.ERROR: pbx CDR StartTime 2025-03-09 15:35:37 - End Time 2025-03-09 18:35:37 [2025-03-09 18:36:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:36:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644045', 'tblTempUsageDetail_20' ) start [2025-03-09 18:36:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644045', 'tblTempUsageDetail_20' ) end [2025-03-09 18:36:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644045', 'tblTempVendorCDR_20' ) start [2025-03-09 18:36:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644045', 'tblTempVendorCDR_20' ) end [2025-03-09 18:36:15] Production.INFO: ProcessCDR(1,14644045,1,1,2) [2025-03-09 18:36:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:36:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:36:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644045', 'tblTempUsageDetail_20' ) start [2025-03-09 18:36:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644045', 'tblTempUsageDetail_20' ) end [2025-03-09 18:36:53] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:36:53] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:36:53] Production.INFO: ==14758== Releasing lock... [2025-03-09 18:36:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:36:53] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:37:05 [end_date_ymd] => 2025-03-09 18:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:37:05' and `end` < '2025-03-09 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-09 18:37:17] Production.INFO: count ==1288 [2025-03-09 18:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:37:05 - End Time 2025-03-09 18:37:05 [2025-03-09 18:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644053', 'tblTempUsageDetail_20' ) start [2025-03-09 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644053', 'tblTempUsageDetail_20' ) end [2025-03-09 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644053', 'tblTempVendorCDR_20' ) start [2025-03-09 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644053', 'tblTempVendorCDR_20' ) end [2025-03-09 18:37:17] Production.INFO: ProcessCDR(1,14644053,1,1,2) [2025-03-09 18:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644053', 'tblTempUsageDetail_20' ) start [2025-03-09 18:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644053', 'tblTempUsageDetail_20' ) end [2025-03-09 18:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:37:21] Production.INFO: ==14895== Releasing lock... [2025-03-09 18:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:37:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:38:05 [end_date_ymd] => 2025-03-09 18:38:05 [RateCDR] => 1 ) [2025-03-09 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:38:05' and `end` < '2025-03-09 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:38:17] Production.INFO: count ==1290 [2025-03-09 18:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:38:05 - End Time 2025-03-09 18:38:05 [2025-03-09 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644058', 'tblTempUsageDetail_20' ) start [2025-03-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644058', 'tblTempUsageDetail_20' ) end [2025-03-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644058', 'tblTempVendorCDR_20' ) start [2025-03-09 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644058', 'tblTempVendorCDR_20' ) end [2025-03-09 18:38:18] Production.INFO: ProcessCDR(1,14644058,1,1,2) [2025-03-09 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644058', 'tblTempUsageDetail_20' ) start [2025-03-09 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644058', 'tblTempUsageDetail_20' ) end [2025-03-09 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:38:22] Production.INFO: ==14969== Releasing lock... [2025-03-09 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:38:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:39:05 [end_date_ymd] => 2025-03-09 18:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:39:05' and `end` < '2025-03-09 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-09 18:39:17] Production.INFO: count ==1290 [2025-03-09 18:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:39:05 - End Time 2025-03-09 18:39:05 [2025-03-09 18:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644063', 'tblTempUsageDetail_20' ) start [2025-03-09 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644063', 'tblTempUsageDetail_20' ) end [2025-03-09 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644063', 'tblTempVendorCDR_20' ) start [2025-03-09 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644063', 'tblTempVendorCDR_20' ) end [2025-03-09 18:39:17] Production.INFO: ProcessCDR(1,14644063,1,1,2) [2025-03-09 18:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644063', 'tblTempUsageDetail_20' ) start [2025-03-09 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644063', 'tblTempUsageDetail_20' ) end [2025-03-09 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:39:22] Production.INFO: ==15038== Releasing lock... [2025-03-09 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:39:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:40:06 [end_date_ymd] => 2025-03-09 18:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 15:40:06' and `end` < '2025-03-09 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-09 18:40:18] Production.INFO: count ==1294 [2025-03-09 18:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:40:06 - End Time 2025-03-09 18:40:06 [2025-03-09 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644069', 'tblTempUsageDetail_20' ) start [2025-03-09 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644069', 'tblTempUsageDetail_20' ) end [2025-03-09 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644069', 'tblTempVendorCDR_20' ) start [2025-03-09 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644069', 'tblTempVendorCDR_20' ) end [2025-03-09 18:40:18] Production.INFO: ProcessCDR(1,14644069,1,1,2) [2025-03-09 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644069', 'tblTempUsageDetail_20' ) start [2025-03-09 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644069', 'tblTempUsageDetail_20' ) end [2025-03-09 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:40:23] Production.INFO: ==15116== Releasing lock... [2025-03-09 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:40:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:41:04 [end_date_ymd] => 2025-03-09 18:41:04 [RateCDR] => 1 ) [2025-03-09 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:41:04' and `end` < '2025-03-09 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:41:17] Production.INFO: count ==1286 [2025-03-09 18:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:41:04 - End Time 2025-03-09 18:41:04 [2025-03-09 18:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644074', 'tblTempUsageDetail_20' ) start [2025-03-09 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644074', 'tblTempUsageDetail_20' ) end [2025-03-09 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644074', 'tblTempVendorCDR_20' ) start [2025-03-09 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644074', 'tblTempVendorCDR_20' ) end [2025-03-09 18:41:17] Production.INFO: ProcessCDR(1,14644074,1,1,2) [2025-03-09 18:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644074', 'tblTempUsageDetail_20' ) start [2025-03-09 18:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644074', 'tblTempUsageDetail_20' ) end [2025-03-09 18:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:41:20] Production.INFO: ==15194== Releasing lock... [2025-03-09 18:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:41:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:42:05 [end_date_ymd] => 2025-03-09 18:42:05 [RateCDR] => 1 ) [2025-03-09 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:42:05' and `end` < '2025-03-09 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:42:17] Production.INFO: count ==1290 [2025-03-09 18:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:42:05 - End Time 2025-03-09 18:42:05 [2025-03-09 18:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644079', 'tblTempUsageDetail_20' ) start [2025-03-09 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644079', 'tblTempUsageDetail_20' ) end [2025-03-09 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644079', 'tblTempVendorCDR_20' ) start [2025-03-09 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644079', 'tblTempVendorCDR_20' ) end [2025-03-09 18:42:17] Production.INFO: ProcessCDR(1,14644079,1,1,2) [2025-03-09 18:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644079', 'tblTempUsageDetail_20' ) start [2025-03-09 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644079', 'tblTempUsageDetail_20' ) end [2025-03-09 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:42:22] Production.INFO: ==15264== Releasing lock... [2025-03-09 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:43:05 [end_date_ymd] => 2025-03-09 18:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:43:05' and `end` < '2025-03-09 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-09 18:43:17] Production.INFO: count ==1288 [2025-03-09 18:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:43:05 - End Time 2025-03-09 18:43:05 [2025-03-09 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644084', 'tblTempUsageDetail_20' ) start [2025-03-09 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644084', 'tblTempUsageDetail_20' ) end [2025-03-09 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644084', 'tblTempVendorCDR_20' ) start [2025-03-09 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644084', 'tblTempVendorCDR_20' ) end [2025-03-09 18:43:18] Production.INFO: ProcessCDR(1,14644084,1,1,2) [2025-03-09 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644084', 'tblTempUsageDetail_20' ) start [2025-03-09 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644084', 'tblTempUsageDetail_20' ) end [2025-03-09 18:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:43:21] Production.INFO: ==15374== Releasing lock... [2025-03-09 18:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:43:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:44:05 [end_date_ymd] => 2025-03-09 18:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:44:05' and `end` < '2025-03-09 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-09 18:44:17] Production.INFO: count ==1288 [2025-03-09 18:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:44:05 - End Time 2025-03-09 18:44:05 [2025-03-09 18:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644089', 'tblTempUsageDetail_20' ) start [2025-03-09 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644089', 'tblTempUsageDetail_20' ) end [2025-03-09 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644089', 'tblTempVendorCDR_20' ) start [2025-03-09 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644089', 'tblTempVendorCDR_20' ) end [2025-03-09 18:44:17] Production.INFO: ProcessCDR(1,14644089,1,1,2) [2025-03-09 18:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644089', 'tblTempUsageDetail_20' ) start [2025-03-09 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644089', 'tblTempUsageDetail_20' ) end [2025-03-09 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:44:22] Production.INFO: ==15443== Releasing lock... [2025-03-09 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:44:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:45:05 [end_date_ymd] => 2025-03-09 18:45:05 [RateCDR] => 1 ) [2025-03-09 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:45:05' and `end` < '2025-03-09 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:45:17] Production.INFO: count ==1296 [2025-03-09 18:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:45:05 - End Time 2025-03-09 18:45:05 [2025-03-09 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644094', 'tblTempUsageDetail_20' ) start [2025-03-09 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644094', 'tblTempUsageDetail_20' ) end [2025-03-09 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644094', 'tblTempVendorCDR_20' ) start [2025-03-09 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644094', 'tblTempVendorCDR_20' ) end [2025-03-09 18:45:18] Production.INFO: ProcessCDR(1,14644094,1,1,2) [2025-03-09 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644094', 'tblTempUsageDetail_20' ) start [2025-03-09 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644094', 'tblTempUsageDetail_20' ) end [2025-03-09 18:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:45:22] Production.INFO: ==15519== Releasing lock... [2025-03-09 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:45:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:46:05 [end_date_ymd] => 2025-03-09 18:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:46:05' and `end` < '2025-03-09 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-09 18:46:17] Production.INFO: count ==1297 [2025-03-09 18:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:46:05 - End Time 2025-03-09 18:46:05 [2025-03-09 18:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644099', 'tblTempUsageDetail_20' ) start [2025-03-09 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644099', 'tblTempUsageDetail_20' ) end [2025-03-09 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644099', 'tblTempVendorCDR_20' ) start [2025-03-09 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644099', 'tblTempVendorCDR_20' ) end [2025-03-09 18:46:17] Production.INFO: ProcessCDR(1,14644099,1,1,2) [2025-03-09 18:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644099', 'tblTempUsageDetail_20' ) start [2025-03-09 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644099', 'tblTempUsageDetail_20' ) end [2025-03-09 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:46:22] Production.INFO: ==15588== Releasing lock... [2025-03-09 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:46:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:47:05 [end_date_ymd] => 2025-03-09 18:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:47:05' and `end` < '2025-03-09 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-09 18:47:17] Production.INFO: count ==1285 [2025-03-09 18:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:47:05 - End Time 2025-03-09 18:47:05 [2025-03-09 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644104', 'tblTempUsageDetail_20' ) start [2025-03-09 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644104', 'tblTempUsageDetail_20' ) end [2025-03-09 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644104', 'tblTempVendorCDR_20' ) start [2025-03-09 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644104', 'tblTempVendorCDR_20' ) end [2025-03-09 18:47:18] Production.INFO: ProcessCDR(1,14644104,1,1,2) [2025-03-09 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644104', 'tblTempUsageDetail_20' ) start [2025-03-09 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644104', 'tblTempUsageDetail_20' ) end [2025-03-09 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:47:22] Production.INFO: ==15665== Releasing lock... [2025-03-09 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:47:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:48:05 [end_date_ymd] => 2025-03-09 18:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:48:05' and `end` < '2025-03-09 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-09 18:48:17] Production.INFO: count ==1289 [2025-03-09 18:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:48:05 - End Time 2025-03-09 18:48:05 [2025-03-09 18:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644109', 'tblTempUsageDetail_20' ) start [2025-03-09 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644109', 'tblTempUsageDetail_20' ) end [2025-03-09 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644109', 'tblTempVendorCDR_20' ) start [2025-03-09 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644109', 'tblTempVendorCDR_20' ) end [2025-03-09 18:48:17] Production.INFO: ProcessCDR(1,14644109,1,1,2) [2025-03-09 18:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644109', 'tblTempUsageDetail_20' ) start [2025-03-09 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644109', 'tblTempUsageDetail_20' ) end [2025-03-09 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:48:22] Production.INFO: ==15738== Releasing lock... [2025-03-09 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:49:05 [end_date_ymd] => 2025-03-09 18:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:49:05' and `end` < '2025-03-09 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-09 18:49:17] Production.INFO: count ==1288 [2025-03-09 18:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:49:05 - End Time 2025-03-09 18:49:05 [2025-03-09 18:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644114', 'tblTempUsageDetail_20' ) start [2025-03-09 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644114', 'tblTempUsageDetail_20' ) end [2025-03-09 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644114', 'tblTempVendorCDR_20' ) start [2025-03-09 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644114', 'tblTempVendorCDR_20' ) end [2025-03-09 18:49:17] Production.INFO: ProcessCDR(1,14644114,1,1,2) [2025-03-09 18:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644114', 'tblTempUsageDetail_20' ) start [2025-03-09 18:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644114', 'tblTempUsageDetail_20' ) end [2025-03-09 18:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:49:20] Production.INFO: ==15818== Releasing lock... [2025-03-09 18:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:49:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:50:06 [end_date_ymd] => 2025-03-09 18:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 15:50:06' and `end` < '2025-03-09 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-09 18:50:18] Production.INFO: count ==1284 [2025-03-09 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-09 15:50:06 - End Time 2025-03-09 18:50:06 [2025-03-09 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644120', 'tblTempUsageDetail_20' ) start [2025-03-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644120', 'tblTempUsageDetail_20' ) end [2025-03-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644120', 'tblTempVendorCDR_20' ) start [2025-03-09 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644120', 'tblTempVendorCDR_20' ) end [2025-03-09 18:50:19] Production.INFO: ProcessCDR(1,14644120,1,1,2) [2025-03-09 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644120', 'tblTempUsageDetail_20' ) start [2025-03-09 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644120', 'tblTempUsageDetail_20' ) end [2025-03-09 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:50:22] Production.INFO: ==15896== Releasing lock... [2025-03-09 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:50:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:51:05 [end_date_ymd] => 2025-03-09 18:51:05 [RateCDR] => 1 ) [2025-03-09 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:51:05' and `end` < '2025-03-09 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:51:17] Production.INFO: count ==1292 [2025-03-09 18:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:51:05 - End Time 2025-03-09 18:51:05 [2025-03-09 18:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644125', 'tblTempUsageDetail_20' ) start [2025-03-09 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644125', 'tblTempUsageDetail_20' ) end [2025-03-09 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644125', 'tblTempVendorCDR_20' ) start [2025-03-09 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644125', 'tblTempVendorCDR_20' ) end [2025-03-09 18:51:17] Production.INFO: ProcessCDR(1,14644125,1,1,2) [2025-03-09 18:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644125', 'tblTempUsageDetail_20' ) start [2025-03-09 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644125', 'tblTempUsageDetail_20' ) end [2025-03-09 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:51:22] Production.INFO: ==15971== Releasing lock... [2025-03-09 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:52:05 [end_date_ymd] => 2025-03-09 18:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:52:05' and `end` < '2025-03-09 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-09 18:52:17] Production.INFO: count ==1287 [2025-03-09 18:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:52:05 - End Time 2025-03-09 18:52:05 [2025-03-09 18:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644130', 'tblTempUsageDetail_20' ) start [2025-03-09 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644130', 'tblTempUsageDetail_20' ) end [2025-03-09 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644130', 'tblTempVendorCDR_20' ) start [2025-03-09 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644130', 'tblTempVendorCDR_20' ) end [2025-03-09 18:52:17] Production.INFO: ProcessCDR(1,14644130,1,1,2) [2025-03-09 18:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644130', 'tblTempUsageDetail_20' ) start [2025-03-09 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644130', 'tblTempUsageDetail_20' ) end [2025-03-09 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:52:22] Production.INFO: ==16043== Releasing lock... [2025-03-09 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:52:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:53:05 [end_date_ymd] => 2025-03-09 18:53:05 [RateCDR] => 1 ) [2025-03-09 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:53:05' and `end` < '2025-03-09 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:53:17] Production.INFO: count ==1285 [2025-03-09 18:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:53:05 - End Time 2025-03-09 18:53:05 [2025-03-09 18:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644135', 'tblTempUsageDetail_20' ) start [2025-03-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644135', 'tblTempUsageDetail_20' ) end [2025-03-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644135', 'tblTempVendorCDR_20' ) start [2025-03-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644135', 'tblTempVendorCDR_20' ) end [2025-03-09 18:53:18] Production.INFO: ProcessCDR(1,14644135,1,1,2) [2025-03-09 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644135', 'tblTempUsageDetail_20' ) start [2025-03-09 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644135', 'tblTempUsageDetail_20' ) end [2025-03-09 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:53:22] Production.INFO: ==16116== Releasing lock... [2025-03-09 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:54:05 [end_date_ymd] => 2025-03-09 18:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:54:05' and `end` < '2025-03-09 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-09 18:54:17] Production.INFO: count ==1283 [2025-03-09 18:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:54:05 - End Time 2025-03-09 18:54:05 [2025-03-09 18:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644136', 'tblTempUsageDetail_20' ) start [2025-03-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644136', 'tblTempUsageDetail_20' ) end [2025-03-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644136', 'tblTempVendorCDR_20' ) start [2025-03-09 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644136', 'tblTempVendorCDR_20' ) end [2025-03-09 18:54:17] Production.INFO: ProcessCDR(1,14644136,1,1,2) [2025-03-09 18:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644136', 'tblTempUsageDetail_20' ) start [2025-03-09 18:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644136', 'tblTempUsageDetail_20' ) end [2025-03-09 18:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:54:20] Production.INFO: ==16186== Releasing lock... [2025-03-09 18:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:54:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:55:05 [end_date_ymd] => 2025-03-09 18:55:05 [RateCDR] => 1 ) [2025-03-09 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:55:05' and `end` < '2025-03-09 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-09 18:55:17] Production.INFO: count ==1279 [2025-03-09 18:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:55:05 - End Time 2025-03-09 18:55:05 [2025-03-09 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644145', 'tblTempUsageDetail_20' ) start [2025-03-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644145', 'tblTempUsageDetail_20' ) end [2025-03-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644145', 'tblTempVendorCDR_20' ) start [2025-03-09 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644145', 'tblTempVendorCDR_20' ) end [2025-03-09 18:55:18] Production.INFO: ProcessCDR(1,14644145,1,1,2) [2025-03-09 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644145', 'tblTempUsageDetail_20' ) start [2025-03-09 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644145', 'tblTempUsageDetail_20' ) end [2025-03-09 18:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:55:21] Production.INFO: ==16259== Releasing lock... [2025-03-09 18:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:56:05 [end_date_ymd] => 2025-03-09 18:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:56:05' and `end` < '2025-03-09 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-09 18:56:17] Production.INFO: count ==1274 [2025-03-09 18:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:56:05 - End Time 2025-03-09 18:56:05 [2025-03-09 18:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644150', 'tblTempUsageDetail_20' ) start [2025-03-09 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644150', 'tblTempUsageDetail_20' ) end [2025-03-09 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644150', 'tblTempVendorCDR_20' ) start [2025-03-09 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644150', 'tblTempVendorCDR_20' ) end [2025-03-09 18:56:17] Production.INFO: ProcessCDR(1,14644150,1,1,2) [2025-03-09 18:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644150', 'tblTempUsageDetail_20' ) start [2025-03-09 18:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644150', 'tblTempUsageDetail_20' ) end [2025-03-09 18:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:56:20] Production.INFO: ==16333== Releasing lock... [2025-03-09 18:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:56:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:57:05 [end_date_ymd] => 2025-03-09 18:57:05 [RateCDR] => 1 ) [2025-03-09 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 15:57:05' and `end` < '2025-03-09 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 18:57:17] Production.INFO: count ==1272 [2025-03-09 18:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:57:05 - End Time 2025-03-09 18:57:05 [2025-03-09 18:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644155', 'tblTempUsageDetail_20' ) start [2025-03-09 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644155', 'tblTempUsageDetail_20' ) end [2025-03-09 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644155', 'tblTempVendorCDR_20' ) start [2025-03-09 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644155', 'tblTempVendorCDR_20' ) end [2025-03-09 18:57:17] Production.INFO: ProcessCDR(1,14644155,1,1,2) [2025-03-09 18:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644155', 'tblTempUsageDetail_20' ) start [2025-03-09 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644155', 'tblTempUsageDetail_20' ) end [2025-03-09 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:57:22] Production.INFO: ==16406== Releasing lock... [2025-03-09 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:58:05 [end_date_ymd] => 2025-03-09 18:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:58:05' and `end` < '2025-03-09 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-09 18:58:17] Production.INFO: count ==1291 [2025-03-09 18:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 15:58:05 - End Time 2025-03-09 18:58:05 [2025-03-09 18:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644160', 'tblTempUsageDetail_20' ) start [2025-03-09 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644160', 'tblTempUsageDetail_20' ) end [2025-03-09 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644160', 'tblTempVendorCDR_20' ) start [2025-03-09 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644160', 'tblTempVendorCDR_20' ) end [2025-03-09 18:58:17] Production.INFO: ProcessCDR(1,14644160,1,1,2) [2025-03-09 18:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644160', 'tblTempUsageDetail_20' ) start [2025-03-09 18:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644160', 'tblTempUsageDetail_20' ) end [2025-03-09 18:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:58:20] Production.INFO: ==16520== Releasing lock... [2025-03-09 18:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:58:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 15:59:05 [end_date_ymd] => 2025-03-09 18:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 15:59:05' and `end` < '2025-03-09 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-09 18:59:17] Production.INFO: count ==1295 [2025-03-09 18:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 15:59:05 - End Time 2025-03-09 18:59:05 [2025-03-09 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644165', 'tblTempUsageDetail_20' ) start [2025-03-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644165', 'tblTempUsageDetail_20' ) end [2025-03-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644165', 'tblTempVendorCDR_20' ) start [2025-03-09 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644165', 'tblTempVendorCDR_20' ) end [2025-03-09 18:59:18] Production.INFO: ProcessCDR(1,14644165,1,1,2) [2025-03-09 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644165', 'tblTempUsageDetail_20' ) start [2025-03-09 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644165', 'tblTempUsageDetail_20' ) end [2025-03-09 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 18:59:23] Production.INFO: ==16591== Releasing lock... [2025-03-09 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 18:59:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:00:06 [end_date_ymd] => 2025-03-09 19:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 16:00:06' and `end` < '2025-03-09 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-09 19:00:18] Production.INFO: count ==1295 [2025-03-09 19:00:19] Production.ERROR: pbx CDR StartTime 2025-03-09 16:00:06 - End Time 2025-03-09 19:00:06 [2025-03-09 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644170', 'tblTempUsageDetail_20' ) start [2025-03-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644170', 'tblTempUsageDetail_20' ) end [2025-03-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644170', 'tblTempVendorCDR_20' ) start [2025-03-09 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644170', 'tblTempVendorCDR_20' ) end [2025-03-09 19:00:19] Production.INFO: ProcessCDR(1,14644170,1,1,2) [2025-03-09 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644170', 'tblTempUsageDetail_20' ) start [2025-03-09 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644170', 'tblTempUsageDetail_20' ) end [2025-03-09 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:00:23] Production.INFO: ==16664== Releasing lock... [2025-03-09 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:00:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:01:06 [end_date_ymd] => 2025-03-09 19:01:06 [RateCDR] => 1 ) [2025-03-09 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:01:06' and `end` < '2025-03-09 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:01:18] Production.INFO: count ==1293 [2025-03-09 19:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:01:06 - End Time 2025-03-09 19:01:06 [2025-03-09 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644176', 'tblTempUsageDetail_20' ) start [2025-03-09 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644176', 'tblTempUsageDetail_20' ) end [2025-03-09 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644176', 'tblTempVendorCDR_20' ) start [2025-03-09 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644176', 'tblTempVendorCDR_20' ) end [2025-03-09 19:01:18] Production.INFO: ProcessCDR(1,14644176,1,1,2) [2025-03-09 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644176', 'tblTempUsageDetail_20' ) start [2025-03-09 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644176', 'tblTempUsageDetail_20' ) end [2025-03-09 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:01:23] Production.INFO: ==16749== Releasing lock... [2025-03-09 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:01:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:02:05 [end_date_ymd] => 2025-03-09 19:02:05 [RateCDR] => 1 ) [2025-03-09 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:02:05' and `end` < '2025-03-09 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:02:17] Production.INFO: count ==1298 [2025-03-09 19:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:02:05 - End Time 2025-03-09 19:02:05 [2025-03-09 19:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644181', 'tblTempUsageDetail_20' ) start [2025-03-09 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644181', 'tblTempUsageDetail_20' ) end [2025-03-09 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644181', 'tblTempVendorCDR_20' ) start [2025-03-09 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644181', 'tblTempVendorCDR_20' ) end [2025-03-09 19:02:17] Production.INFO: ProcessCDR(1,14644181,1,1,2) [2025-03-09 19:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644181', 'tblTempUsageDetail_20' ) start [2025-03-09 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644181', 'tblTempUsageDetail_20' ) end [2025-03-09 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:02:22] Production.INFO: ==16898== Releasing lock... [2025-03-09 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:03:05 [end_date_ymd] => 2025-03-09 19:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:03:05' and `end` < '2025-03-09 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-09 19:03:17] Production.INFO: count ==1298 [2025-03-09 19:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:03:05 - End Time 2025-03-09 19:03:05 [2025-03-09 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644186', 'tblTempUsageDetail_20' ) start [2025-03-09 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644186', 'tblTempUsageDetail_20' ) end [2025-03-09 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644186', 'tblTempVendorCDR_20' ) start [2025-03-09 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644186', 'tblTempVendorCDR_20' ) end [2025-03-09 19:03:18] Production.INFO: ProcessCDR(1,14644186,1,1,2) [2025-03-09 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644186', 'tblTempUsageDetail_20' ) start [2025-03-09 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644186', 'tblTempUsageDetail_20' ) end [2025-03-09 19:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:03:21] Production.INFO: ==16970== Releasing lock... [2025-03-09 19:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:03:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:04:04 [end_date_ymd] => 2025-03-09 19:04:04 [RateCDR] => 1 ) [2025-03-09 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:04:04' and `end` < '2025-03-09 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:04:17] Production.INFO: count ==1300 [2025-03-09 19:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:04:04 - End Time 2025-03-09 19:04:04 [2025-03-09 19:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644191', 'tblTempUsageDetail_20' ) start [2025-03-09 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644191', 'tblTempUsageDetail_20' ) end [2025-03-09 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644191', 'tblTempVendorCDR_20' ) start [2025-03-09 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644191', 'tblTempVendorCDR_20' ) end [2025-03-09 19:04:17] Production.INFO: ProcessCDR(1,14644191,1,1,2) [2025-03-09 19:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644191', 'tblTempUsageDetail_20' ) start [2025-03-09 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644191', 'tblTempUsageDetail_20' ) end [2025-03-09 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:04:22] Production.INFO: ==17041== Releasing lock... [2025-03-09 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:04:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:05:05 [end_date_ymd] => 2025-03-09 19:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:05:05' and `end` < '2025-03-09 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-09 19:05:17] Production.INFO: count ==1303 [2025-03-09 19:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:05:05 - End Time 2025-03-09 19:05:05 [2025-03-09 19:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644196', 'tblTempUsageDetail_20' ) start [2025-03-09 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644196', 'tblTempUsageDetail_20' ) end [2025-03-09 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644196', 'tblTempVendorCDR_20' ) start [2025-03-09 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644196', 'tblTempVendorCDR_20' ) end [2025-03-09 19:05:17] Production.INFO: ProcessCDR(1,14644196,1,1,2) [2025-03-09 19:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644196', 'tblTempUsageDetail_20' ) start [2025-03-09 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644196', 'tblTempUsageDetail_20' ) end [2025-03-09 19:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:05:21] Production.INFO: ==17194== Releasing lock... [2025-03-09 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:05:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:06:05 [end_date_ymd] => 2025-03-09 19:06:05 [RateCDR] => 1 ) [2025-03-09 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:06:05' and `end` < '2025-03-09 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:06:17] Production.INFO: count ==1305 [2025-03-09 19:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:06:05 - End Time 2025-03-09 19:06:05 [2025-03-09 19:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644201', 'tblTempUsageDetail_20' ) start [2025-03-09 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644201', 'tblTempUsageDetail_20' ) end [2025-03-09 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644201', 'tblTempVendorCDR_20' ) start [2025-03-09 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644201', 'tblTempVendorCDR_20' ) end [2025-03-09 19:06:17] Production.INFO: ProcessCDR(1,14644201,1,1,2) [2025-03-09 19:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644201', 'tblTempUsageDetail_20' ) start [2025-03-09 19:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644201', 'tblTempUsageDetail_20' ) end [2025-03-09 19:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:06:20] Production.INFO: ==17264== Releasing lock... [2025-03-09 19:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:06:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:07:05 [end_date_ymd] => 2025-03-09 19:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:07:05' and `end` < '2025-03-09 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-09 19:07:17] Production.INFO: count ==1301 [2025-03-09 19:07:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:07:05 - End Time 2025-03-09 19:07:05 [2025-03-09 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644206', 'tblTempUsageDetail_20' ) start [2025-03-09 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644206', 'tblTempUsageDetail_20' ) end [2025-03-09 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644206', 'tblTempVendorCDR_20' ) start [2025-03-09 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644206', 'tblTempVendorCDR_20' ) end [2025-03-09 19:07:18] Production.INFO: ProcessCDR(1,14644206,1,1,2) [2025-03-09 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644206', 'tblTempUsageDetail_20' ) start [2025-03-09 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644206', 'tblTempUsageDetail_20' ) end [2025-03-09 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:07:21] Production.INFO: ==17346== Releasing lock... [2025-03-09 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:08:05 [end_date_ymd] => 2025-03-09 19:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:08:05' and `end` < '2025-03-09 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-09 19:08:17] Production.INFO: count ==1300 [2025-03-09 19:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:08:05 - End Time 2025-03-09 19:08:05 [2025-03-09 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644211', 'tblTempUsageDetail_20' ) start [2025-03-09 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644211', 'tblTempUsageDetail_20' ) end [2025-03-09 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644211', 'tblTempVendorCDR_20' ) start [2025-03-09 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644211', 'tblTempVendorCDR_20' ) end [2025-03-09 19:08:18] Production.INFO: ProcessCDR(1,14644211,1,1,2) [2025-03-09 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644211', 'tblTempUsageDetail_20' ) start [2025-03-09 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644211', 'tblTempUsageDetail_20' ) end [2025-03-09 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:08:21] Production.INFO: ==17499== Releasing lock... [2025-03-09 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:09:05 [end_date_ymd] => 2025-03-09 19:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:09:05' and `end` < '2025-03-09 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-09 19:09:17] Production.INFO: count ==1303 [2025-03-09 19:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:09:05 - End Time 2025-03-09 19:09:05 [2025-03-09 19:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644216', 'tblTempUsageDetail_20' ) start [2025-03-09 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644216', 'tblTempUsageDetail_20' ) end [2025-03-09 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644216', 'tblTempVendorCDR_20' ) start [2025-03-09 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644216', 'tblTempVendorCDR_20' ) end [2025-03-09 19:09:17] Production.INFO: ProcessCDR(1,14644216,1,1,2) [2025-03-09 19:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644216', 'tblTempUsageDetail_20' ) start [2025-03-09 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644216', 'tblTempUsageDetail_20' ) end [2025-03-09 19:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:09:21] Production.INFO: ==17570== Releasing lock... [2025-03-09 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:09:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:10:05 [end_date_ymd] => 2025-03-09 19:10:05 [RateCDR] => 1 ) [2025-03-09 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:10:05' and `end` < '2025-03-09 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:10:18] Production.INFO: count ==1306 [2025-03-09 19:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:10:05 - End Time 2025-03-09 19:10:05 [2025-03-09 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644221', 'tblTempUsageDetail_20' ) start [2025-03-09 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644221', 'tblTempUsageDetail_20' ) end [2025-03-09 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644221', 'tblTempVendorCDR_20' ) start [2025-03-09 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644221', 'tblTempVendorCDR_20' ) end [2025-03-09 19:10:18] Production.INFO: ProcessCDR(1,14644221,1,1,2) [2025-03-09 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644221', 'tblTempUsageDetail_20' ) start [2025-03-09 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644221', 'tblTempUsageDetail_20' ) end [2025-03-09 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:10:22] Production.INFO: ==17642== Releasing lock... [2025-03-09 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:11:05 [end_date_ymd] => 2025-03-09 19:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:11:05' and `end` < '2025-03-09 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-09 19:11:17] Production.INFO: count ==1350 [2025-03-09 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:11:05 - End Time 2025-03-09 19:11:05 [2025-03-09 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644227', 'tblTempUsageDetail_20' ) start [2025-03-09 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644227', 'tblTempUsageDetail_20' ) end [2025-03-09 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644227', 'tblTempVendorCDR_20' ) start [2025-03-09 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644227', 'tblTempVendorCDR_20' ) end [2025-03-09 19:11:18] Production.INFO: ProcessCDR(1,14644227,1,1,2) [2025-03-09 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644227', 'tblTempUsageDetail_20' ) start [2025-03-09 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644227', 'tblTempUsageDetail_20' ) end [2025-03-09 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:11:23] Production.INFO: ==17715== Releasing lock... [2025-03-09 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:11:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:12:05 [end_date_ymd] => 2025-03-09 19:12:05 [RateCDR] => 1 ) [2025-03-09 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:12:05' and `end` < '2025-03-09 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:12:17] Production.INFO: count ==1353 [2025-03-09 19:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:12:05 - End Time 2025-03-09 19:12:05 [2025-03-09 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644232', 'tblTempUsageDetail_20' ) start [2025-03-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644232', 'tblTempUsageDetail_20' ) end [2025-03-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644232', 'tblTempVendorCDR_20' ) start [2025-03-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644232', 'tblTempVendorCDR_20' ) end [2025-03-09 19:12:18] Production.INFO: ProcessCDR(1,14644232,1,1,2) [2025-03-09 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644232', 'tblTempUsageDetail_20' ) start [2025-03-09 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644232', 'tblTempUsageDetail_20' ) end [2025-03-09 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:12:21] Production.INFO: ==17868== Releasing lock... [2025-03-09 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:12:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:13:05 [end_date_ymd] => 2025-03-09 19:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:13:05' and `end` < '2025-03-09 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-09 19:13:17] Production.INFO: count ==1384 [2025-03-09 19:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:13:05 - End Time 2025-03-09 19:13:05 [2025-03-09 19:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644237', 'tblTempUsageDetail_20' ) start [2025-03-09 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644237', 'tblTempUsageDetail_20' ) end [2025-03-09 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644237', 'tblTempVendorCDR_20' ) start [2025-03-09 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644237', 'tblTempVendorCDR_20' ) end [2025-03-09 19:13:17] Production.INFO: ProcessCDR(1,14644237,1,1,2) [2025-03-09 19:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644237', 'tblTempUsageDetail_20' ) start [2025-03-09 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644237', 'tblTempUsageDetail_20' ) end [2025-03-09 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:13:21] Production.INFO: ==17940== Releasing lock... [2025-03-09 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:13:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:14:05 [end_date_ymd] => 2025-03-09 19:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:14:05' and `end` < '2025-03-09 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-09 19:14:18] Production.INFO: count ==1378 [2025-03-09 19:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:14:05 - End Time 2025-03-09 19:14:05 [2025-03-09 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644242', 'tblTempUsageDetail_20' ) start [2025-03-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644242', 'tblTempUsageDetail_20' ) end [2025-03-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644242', 'tblTempVendorCDR_20' ) start [2025-03-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644242', 'tblTempVendorCDR_20' ) end [2025-03-09 19:14:18] Production.INFO: ProcessCDR(1,14644242,1,1,2) [2025-03-09 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644242', 'tblTempUsageDetail_20' ) start [2025-03-09 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644242', 'tblTempUsageDetail_20' ) end [2025-03-09 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:14:21] Production.INFO: ==18050== Releasing lock... [2025-03-09 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:15:04 [end_date_ymd] => 2025-03-09 19:15:04 [RateCDR] => 1 ) [2025-03-09 19: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-09 16:15:04' and `end` < '2025-03-09 19: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-09 19:15:17] Production.INFO: count ==1377 [2025-03-09 19:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:15:04 - End Time 2025-03-09 19:15:04 [2025-03-09 19:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644247', 'tblTempUsageDetail_20' ) start [2025-03-09 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644247', 'tblTempUsageDetail_20' ) end [2025-03-09 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644247', 'tblTempVendorCDR_20' ) start [2025-03-09 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644247', 'tblTempVendorCDR_20' ) end [2025-03-09 19:15:17] Production.INFO: ProcessCDR(1,14644247,1,1,2) [2025-03-09 19:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644247', 'tblTempUsageDetail_20' ) start [2025-03-09 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644247', 'tblTempUsageDetail_20' ) end [2025-03-09 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:15:22] Production.INFO: ==18201== Releasing lock... [2025-03-09 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:15:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:16:06 [end_date_ymd] => 2025-03-09 19:16:06 [RateCDR] => 1 ) [2025-03-09 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-09 16:16:06' and `end` < '2025-03-09 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-09 19:16:18] Production.INFO: count ==1381 [2025-03-09 19:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:16:06 - End Time 2025-03-09 19:16:06 [2025-03-09 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644252', 'tblTempUsageDetail_20' ) start [2025-03-09 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644252', 'tblTempUsageDetail_20' ) end [2025-03-09 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644252', 'tblTempVendorCDR_20' ) start [2025-03-09 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644252', 'tblTempVendorCDR_20' ) end [2025-03-09 19:16:18] Production.INFO: ProcessCDR(1,14644252,1,1,2) [2025-03-09 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644252', 'tblTempUsageDetail_20' ) start [2025-03-09 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644252', 'tblTempUsageDetail_20' ) end [2025-03-09 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:16:22] Production.INFO: ==18274== Releasing lock... [2025-03-09 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:17:05 [end_date_ymd] => 2025-03-09 19:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:17:05' and `end` < '2025-03-09 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-09 19:17:17] Production.INFO: count ==1381 [2025-03-09 19:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:17:05 - End Time 2025-03-09 19:17:05 [2025-03-09 19:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644257', 'tblTempUsageDetail_20' ) start [2025-03-09 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644257', 'tblTempUsageDetail_20' ) end [2025-03-09 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644257', 'tblTempVendorCDR_20' ) start [2025-03-09 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644257', 'tblTempVendorCDR_20' ) end [2025-03-09 19:17:17] Production.INFO: ProcessCDR(1,14644257,1,1,2) [2025-03-09 19:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644257', 'tblTempUsageDetail_20' ) start [2025-03-09 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644257', 'tblTempUsageDetail_20' ) end [2025-03-09 19:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:17:21] Production.INFO: ==18347== Releasing lock... [2025-03-09 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:17:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:18:06 [end_date_ymd] => 2025-03-09 19:18:06 [RateCDR] => 1 ) [2025-03-09 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:18:06' and `end` < '2025-03-09 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:18:18] Production.INFO: count ==1381 [2025-03-09 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:18:06 - End Time 2025-03-09 19:18:06 [2025-03-09 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644262', 'tblTempUsageDetail_20' ) start [2025-03-09 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644262', 'tblTempUsageDetail_20' ) end [2025-03-09 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644262', 'tblTempVendorCDR_20' ) start [2025-03-09 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644262', 'tblTempVendorCDR_20' ) end [2025-03-09 19:18:18] Production.INFO: ProcessCDR(1,14644262,1,1,2) [2025-03-09 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644262', 'tblTempUsageDetail_20' ) start [2025-03-09 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644262', 'tblTempUsageDetail_20' ) end [2025-03-09 19:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:18:21] Production.INFO: ==18417== Releasing lock... [2025-03-09 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:18:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:19:05 [end_date_ymd] => 2025-03-09 19:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:19:05' and `end` < '2025-03-09 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-09 19:19:17] Production.INFO: count ==1384 [2025-03-09 19:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:19:05 - End Time 2025-03-09 19:19:05 [2025-03-09 19:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644267', 'tblTempUsageDetail_20' ) start [2025-03-09 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644267', 'tblTempUsageDetail_20' ) end [2025-03-09 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644267', 'tblTempVendorCDR_20' ) start [2025-03-09 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644267', 'tblTempVendorCDR_20' ) end [2025-03-09 19:19:17] Production.INFO: ProcessCDR(1,14644267,1,1,2) [2025-03-09 19:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644267', 'tblTempUsageDetail_20' ) start [2025-03-09 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644267', 'tblTempUsageDetail_20' ) end [2025-03-09 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:19:21] Production.INFO: ==18490== Releasing lock... [2025-03-09 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:19:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:20:06 [end_date_ymd] => 2025-03-09 19:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 16:20:06' and `end` < '2025-03-09 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-09 19:20:18] Production.INFO: count ==1394 [2025-03-09 19:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:20:06 - End Time 2025-03-09 19:20:06 [2025-03-09 19:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644272', 'tblTempUsageDetail_20' ) start [2025-03-09 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644272', 'tblTempUsageDetail_20' ) end [2025-03-09 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644272', 'tblTempVendorCDR_20' ) start [2025-03-09 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644272', 'tblTempVendorCDR_20' ) end [2025-03-09 19:20:18] Production.INFO: ProcessCDR(1,14644272,1,1,2) [2025-03-09 19:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644272', 'tblTempUsageDetail_20' ) start [2025-03-09 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644272', 'tblTempUsageDetail_20' ) end [2025-03-09 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:20:22] Production.INFO: ==18565== Releasing lock... [2025-03-09 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:20:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:21:04 [end_date_ymd] => 2025-03-09 19:21:04 [RateCDR] => 1 ) [2025-03-09 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-09 16:21:04' and `end` < '2025-03-09 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-09 19:21:17] Production.INFO: count ==1383 [2025-03-09 19:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:21:04 - End Time 2025-03-09 19:21:04 [2025-03-09 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644278', 'tblTempUsageDetail_20' ) start [2025-03-09 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644278', 'tblTempUsageDetail_20' ) end [2025-03-09 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644278', 'tblTempVendorCDR_20' ) start [2025-03-09 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644278', 'tblTempVendorCDR_20' ) end [2025-03-09 19:21:17] Production.INFO: ProcessCDR(1,14644278,1,1,2) [2025-03-09 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644278', 'tblTempUsageDetail_20' ) start [2025-03-09 19:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644278', 'tblTempUsageDetail_20' ) end [2025-03-09 19:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:21:21] Production.INFO: ==18641== Releasing lock... [2025-03-09 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:21:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:22:06 [end_date_ymd] => 2025-03-09 19:22:06 [RateCDR] => 1 ) [2025-03-09 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:22:06' and `end` < '2025-03-09 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:22:18] Production.INFO: count ==1390 [2025-03-09 19:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:22:06 - End Time 2025-03-09 19:22:06 [2025-03-09 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644283', 'tblTempUsageDetail_20' ) start [2025-03-09 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644283', 'tblTempUsageDetail_20' ) end [2025-03-09 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644283', 'tblTempVendorCDR_20' ) start [2025-03-09 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644283', 'tblTempVendorCDR_20' ) end [2025-03-09 19:22:18] Production.INFO: ProcessCDR(1,14644283,1,1,2) [2025-03-09 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644283', 'tblTempUsageDetail_20' ) start [2025-03-09 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644283', 'tblTempUsageDetail_20' ) end [2025-03-09 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:22:23] Production.INFO: ==18716== Releasing lock... [2025-03-09 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:22:23] Production.INFO: 39 MB #Memory Used# [2025-03-09 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:23:05 [end_date_ymd] => 2025-03-09 19:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:23:05' and `end` < '2025-03-09 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-09 19:23:17] Production.INFO: count ==1387 [2025-03-09 19:23:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:23:05 - End Time 2025-03-09 19:23:05 [2025-03-09 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644288', 'tblTempUsageDetail_20' ) start [2025-03-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644288', 'tblTempUsageDetail_20' ) end [2025-03-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644288', 'tblTempVendorCDR_20' ) start [2025-03-09 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644288', 'tblTempVendorCDR_20' ) end [2025-03-09 19:23:18] Production.INFO: ProcessCDR(1,14644288,1,1,2) [2025-03-09 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644288', 'tblTempUsageDetail_20' ) start [2025-03-09 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644288', 'tblTempUsageDetail_20' ) end [2025-03-09 19:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:23:21] Production.INFO: ==18788== Releasing lock... [2025-03-09 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:23:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:24:05 [end_date_ymd] => 2025-03-09 19:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:24:05' and `end` < '2025-03-09 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-09 19:24:17] Production.INFO: count ==1387 [2025-03-09 19:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:24:05 - End Time 2025-03-09 19:24:05 [2025-03-09 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644293', 'tblTempUsageDetail_20' ) start [2025-03-09 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644293', 'tblTempUsageDetail_20' ) end [2025-03-09 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644293', 'tblTempVendorCDR_20' ) start [2025-03-09 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644293', 'tblTempVendorCDR_20' ) end [2025-03-09 19:24:18] Production.INFO: ProcessCDR(1,14644293,1,1,2) [2025-03-09 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644293', 'tblTempUsageDetail_20' ) start [2025-03-09 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644293', 'tblTempUsageDetail_20' ) end [2025-03-09 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:24:21] Production.INFO: ==18859== Releasing lock... [2025-03-09 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:25:05 [end_date_ymd] => 2025-03-09 19:25:05 [RateCDR] => 1 ) [2025-03-09 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:25:05' and `end` < '2025-03-09 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:25:17] Production.INFO: count ==1383 [2025-03-09 19:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:25:05 - End Time 2025-03-09 19:25:05 [2025-03-09 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644298', 'tblTempUsageDetail_20' ) start [2025-03-09 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644298', 'tblTempUsageDetail_20' ) end [2025-03-09 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644298', 'tblTempVendorCDR_20' ) start [2025-03-09 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644298', 'tblTempVendorCDR_20' ) end [2025-03-09 19:25:17] Production.INFO: ProcessCDR(1,14644298,1,1,2) [2025-03-09 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644298', 'tblTempUsageDetail_20' ) start [2025-03-09 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644298', 'tblTempUsageDetail_20' ) end [2025-03-09 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:25:21] Production.INFO: ==18934== Releasing lock... [2025-03-09 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:26:05 [end_date_ymd] => 2025-03-09 19:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:26:05' and `end` < '2025-03-09 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-09 19:26:17] Production.INFO: count ==1380 [2025-03-09 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:26:05 - End Time 2025-03-09 19:26:05 [2025-03-09 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644303', 'tblTempUsageDetail_20' ) start [2025-03-09 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644303', 'tblTempUsageDetail_20' ) end [2025-03-09 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644303', 'tblTempVendorCDR_20' ) start [2025-03-09 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644303', 'tblTempVendorCDR_20' ) end [2025-03-09 19:26:18] Production.INFO: ProcessCDR(1,14644303,1,1,2) [2025-03-09 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644303', 'tblTempUsageDetail_20' ) start [2025-03-09 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644303', 'tblTempUsageDetail_20' ) end [2025-03-09 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:26:21] Production.INFO: ==19013== Releasing lock... [2025-03-09 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:26:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:27:05 [end_date_ymd] => 2025-03-09 19:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:27:05' and `end` < '2025-03-09 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:27:18] Production.INFO: count ==1387 [2025-03-09 19:27:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:27:05 - End Time 2025-03-09 19:27:05 [2025-03-09 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644308', 'tblTempUsageDetail_20' ) start [2025-03-09 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644308', 'tblTempUsageDetail_20' ) end [2025-03-09 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644308', 'tblTempVendorCDR_20' ) start [2025-03-09 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644308', 'tblTempVendorCDR_20' ) end [2025-03-09 19:27:18] Production.INFO: ProcessCDR(1,14644308,1,1,2) [2025-03-09 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644308', 'tblTempUsageDetail_20' ) start [2025-03-09 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644308', 'tblTempUsageDetail_20' ) end [2025-03-09 19:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:27:21] Production.INFO: ==19089== Releasing lock... [2025-03-09 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:28:05 [end_date_ymd] => 2025-03-09 19:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:28:05' and `end` < '2025-03-09 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-09 19:28:17] Production.INFO: count ==1381 [2025-03-09 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:28:05 - End Time 2025-03-09 19:28:05 [2025-03-09 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644313', 'tblTempUsageDetail_20' ) start [2025-03-09 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644313', 'tblTempUsageDetail_20' ) end [2025-03-09 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644313', 'tblTempVendorCDR_20' ) start [2025-03-09 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644313', 'tblTempVendorCDR_20' ) end [2025-03-09 19:28:18] Production.INFO: ProcessCDR(1,14644313,1,1,2) [2025-03-09 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644313', 'tblTempUsageDetail_20' ) start [2025-03-09 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644313', 'tblTempUsageDetail_20' ) end [2025-03-09 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:28:21] Production.INFO: ==19161== Releasing lock... [2025-03-09 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:29:06 [end_date_ymd] => 2025-03-09 19:29:06 [RateCDR] => 1 ) [2025-03-09 19: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-09 16:29:06' and `end` < '2025-03-09 19: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-09 19:29:18] Production.INFO: count ==1381 [2025-03-09 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:29:06 - End Time 2025-03-09 19:29:06 [2025-03-09 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644318', 'tblTempUsageDetail_20' ) start [2025-03-09 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644318', 'tblTempUsageDetail_20' ) end [2025-03-09 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644318', 'tblTempVendorCDR_20' ) start [2025-03-09 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644318', 'tblTempVendorCDR_20' ) end [2025-03-09 19:29:18] Production.INFO: ProcessCDR(1,14644318,1,1,2) [2025-03-09 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644318', 'tblTempUsageDetail_20' ) start [2025-03-09 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644318', 'tblTempUsageDetail_20' ) end [2025-03-09 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:29:23] Production.INFO: ==19271== Releasing lock... [2025-03-09 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:29:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:30:05 [end_date_ymd] => 2025-03-09 19:30:05 [RateCDR] => 1 ) [2025-03-09 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:30:05' and `end` < '2025-03-09 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:30:18] Production.INFO: count ==1366 [2025-03-09 19:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:30:05 - End Time 2025-03-09 19:30:05 [2025-03-09 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644324', 'tblTempUsageDetail_20' ) start [2025-03-09 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644324', 'tblTempUsageDetail_20' ) end [2025-03-09 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644324', 'tblTempVendorCDR_20' ) start [2025-03-09 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644324', 'tblTempVendorCDR_20' ) end [2025-03-09 19:30:18] Production.INFO: ProcessCDR(1,14644324,1,1,2) [2025-03-09 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644324', 'tblTempUsageDetail_20' ) start [2025-03-09 19:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644324', 'tblTempUsageDetail_20' ) end [2025-03-09 19:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:30:21] Production.INFO: ==19346== Releasing lock... [2025-03-09 19:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:30:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:31:05 [end_date_ymd] => 2025-03-09 19:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:31:05' and `end` < '2025-03-09 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-09 19:31:17] Production.INFO: count ==1386 [2025-03-09 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:31:05 - End Time 2025-03-09 19:31:05 [2025-03-09 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644329', 'tblTempUsageDetail_20' ) start [2025-03-09 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644329', 'tblTempUsageDetail_20' ) end [2025-03-09 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644329', 'tblTempVendorCDR_20' ) start [2025-03-09 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644329', 'tblTempVendorCDR_20' ) end [2025-03-09 19:31:18] Production.INFO: ProcessCDR(1,14644329,1,1,2) [2025-03-09 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644329', 'tblTempUsageDetail_20' ) start [2025-03-09 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644329', 'tblTempUsageDetail_20' ) end [2025-03-09 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:31:21] Production.INFO: ==19419== Releasing lock... [2025-03-09 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:31:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:32:05 [end_date_ymd] => 2025-03-09 19:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:32:05' and `end` < '2025-03-09 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-09 19:32:17] Production.INFO: count ==1391 [2025-03-09 19:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:32:05 - End Time 2025-03-09 19:32:05 [2025-03-09 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644334', 'tblTempUsageDetail_20' ) start [2025-03-09 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644334', 'tblTempUsageDetail_20' ) end [2025-03-09 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644334', 'tblTempVendorCDR_20' ) start [2025-03-09 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644334', 'tblTempVendorCDR_20' ) end [2025-03-09 19:32:18] Production.INFO: ProcessCDR(1,14644334,1,1,2) [2025-03-09 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644334', 'tblTempUsageDetail_20' ) start [2025-03-09 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644334', 'tblTempUsageDetail_20' ) end [2025-03-09 19:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:32:21] Production.INFO: ==19488== Releasing lock... [2025-03-09 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:32:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:33:05 [end_date_ymd] => 2025-03-09 19:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:33:05' and `end` < '2025-03-09 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-09 19:33:17] Production.INFO: count ==1396 [2025-03-09 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:33:05 - End Time 2025-03-09 19:33:05 [2025-03-09 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644339', 'tblTempUsageDetail_20' ) start [2025-03-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644339', 'tblTempUsageDetail_20' ) end [2025-03-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644339', 'tblTempVendorCDR_20' ) start [2025-03-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644339', 'tblTempVendorCDR_20' ) end [2025-03-09 19:33:18] Production.INFO: ProcessCDR(1,14644339,1,1,2) [2025-03-09 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644339', 'tblTempUsageDetail_20' ) start [2025-03-09 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644339', 'tblTempUsageDetail_20' ) end [2025-03-09 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:33:21] Production.INFO: ==19561== Releasing lock... [2025-03-09 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:33:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:34:05 [end_date_ymd] => 2025-03-09 19:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:34:05' and `end` < '2025-03-09 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-09 19:34:17] Production.INFO: count ==1400 [2025-03-09 19:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:34:05 - End Time 2025-03-09 19:34:05 [2025-03-09 19:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644344', 'tblTempUsageDetail_20' ) start [2025-03-09 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644344', 'tblTempUsageDetail_20' ) end [2025-03-09 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644344', 'tblTempVendorCDR_20' ) start [2025-03-09 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644344', 'tblTempVendorCDR_20' ) end [2025-03-09 19:34:17] Production.INFO: ProcessCDR(1,14644344,1,1,2) [2025-03-09 19:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644344', 'tblTempUsageDetail_20' ) start [2025-03-09 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644344', 'tblTempUsageDetail_20' ) end [2025-03-09 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:34:21] Production.INFO: ==19645== Releasing lock... [2025-03-09 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:34:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:35:05 [end_date_ymd] => 2025-03-09 19:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:35:05' and `end` < '2025-03-09 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-09 19:35:17] Production.INFO: count ==1406 [2025-03-09 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:35:05 - End Time 2025-03-09 19:35:05 [2025-03-09 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644349', 'tblTempUsageDetail_20' ) start [2025-03-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644349', 'tblTempUsageDetail_20' ) end [2025-03-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644349', 'tblTempVendorCDR_20' ) start [2025-03-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644349', 'tblTempVendorCDR_20' ) end [2025-03-09 19:35:18] Production.INFO: ProcessCDR(1,14644349,1,1,2) [2025-03-09 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644349', 'tblTempUsageDetail_20' ) start [2025-03-09 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644349', 'tblTempUsageDetail_20' ) end [2025-03-09 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:35:21] Production.INFO: ==19724== Releasing lock... [2025-03-09 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:35:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:36:05 [end_date_ymd] => 2025-03-09 19:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:36:05' and `end` < '2025-03-09 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-09 19:36:18] Production.INFO: count ==1427 [2025-03-09 19:36:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:36:05 - End Time 2025-03-09 19:36:05 [2025-03-09 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644354', 'tblTempUsageDetail_20' ) start [2025-03-09 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644354', 'tblTempUsageDetail_20' ) end [2025-03-09 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644354', 'tblTempVendorCDR_20' ) start [2025-03-09 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644354', 'tblTempVendorCDR_20' ) end [2025-03-09 19:36:18] Production.INFO: ProcessCDR(1,14644354,1,1,2) [2025-03-09 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644354', 'tblTempUsageDetail_20' ) start [2025-03-09 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644354', 'tblTempUsageDetail_20' ) end [2025-03-09 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:36:21] Production.INFO: ==19803== Releasing lock... [2025-03-09 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:36:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:37:05 [end_date_ymd] => 2025-03-09 19:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:37:05' and `end` < '2025-03-09 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-09 19:37:17] Production.INFO: count ==1427 [2025-03-09 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:37:05 - End Time 2025-03-09 19:37:05 [2025-03-09 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644359', 'tblTempUsageDetail_20' ) start [2025-03-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644359', 'tblTempUsageDetail_20' ) end [2025-03-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644359', 'tblTempVendorCDR_20' ) start [2025-03-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644359', 'tblTempVendorCDR_20' ) end [2025-03-09 19:37:18] Production.INFO: ProcessCDR(1,14644359,1,1,2) [2025-03-09 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644359', 'tblTempUsageDetail_20' ) start [2025-03-09 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644359', 'tblTempUsageDetail_20' ) end [2025-03-09 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:37:21] Production.INFO: ==19879== Releasing lock... [2025-03-09 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:37:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:38:05 [end_date_ymd] => 2025-03-09 19:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:38:05' and `end` < '2025-03-09 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-09 19:38:17] Production.INFO: count ==1427 [2025-03-09 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:38:05 - End Time 2025-03-09 19:38:05 [2025-03-09 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644364', 'tblTempUsageDetail_20' ) start [2025-03-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644364', 'tblTempUsageDetail_20' ) end [2025-03-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644364', 'tblTempVendorCDR_20' ) start [2025-03-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644364', 'tblTempVendorCDR_20' ) end [2025-03-09 19:38:18] Production.INFO: ProcessCDR(1,14644364,1,1,2) [2025-03-09 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644364', 'tblTempUsageDetail_20' ) start [2025-03-09 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644364', 'tblTempUsageDetail_20' ) end [2025-03-09 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:38:21] Production.INFO: ==19959== Releasing lock... [2025-03-09 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:38:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:39:05 [end_date_ymd] => 2025-03-09 19:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:39:05' and `end` < '2025-03-09 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-09 19:39:17] Production.INFO: count ==1428 [2025-03-09 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:39:05 - End Time 2025-03-09 19:39:05 [2025-03-09 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644369', 'tblTempUsageDetail_20' ) start [2025-03-09 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644369', 'tblTempUsageDetail_20' ) end [2025-03-09 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644369', 'tblTempVendorCDR_20' ) start [2025-03-09 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644369', 'tblTempVendorCDR_20' ) end [2025-03-09 19:39:18] Production.INFO: ProcessCDR(1,14644369,1,1,2) [2025-03-09 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644369', 'tblTempUsageDetail_20' ) start [2025-03-09 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644369', 'tblTempUsageDetail_20' ) end [2025-03-09 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:39:22] Production.INFO: ==20040== Releasing lock... [2025-03-09 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:40:06 [end_date_ymd] => 2025-03-09 19:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 16:40:06' and `end` < '2025-03-09 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-09 19:40:18] Production.INFO: count ==1426 [2025-03-09 19:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:40:06 - End Time 2025-03-09 19:40:06 [2025-03-09 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644375', 'tblTempUsageDetail_20' ) start [2025-03-09 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644375', 'tblTempUsageDetail_20' ) end [2025-03-09 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644375', 'tblTempVendorCDR_20' ) start [2025-03-09 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644375', 'tblTempVendorCDR_20' ) end [2025-03-09 19:40:18] Production.INFO: ProcessCDR(1,14644375,1,1,2) [2025-03-09 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644375', 'tblTempUsageDetail_20' ) start [2025-03-09 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644375', 'tblTempUsageDetail_20' ) end [2025-03-09 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:40:22] Production.INFO: ==20120== Releasing lock... [2025-03-09 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:40:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:41:05 [end_date_ymd] => 2025-03-09 19:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:41:05' and `end` < '2025-03-09 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-09 19:41:17] Production.INFO: count ==1389 [2025-03-09 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:41:05 - End Time 2025-03-09 19:41:05 [2025-03-09 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644380', 'tblTempUsageDetail_20' ) start [2025-03-09 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644380', 'tblTempUsageDetail_20' ) end [2025-03-09 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644380', 'tblTempVendorCDR_20' ) start [2025-03-09 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644380', 'tblTempVendorCDR_20' ) end [2025-03-09 19:41:18] Production.INFO: ProcessCDR(1,14644380,1,1,2) [2025-03-09 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644380', 'tblTempUsageDetail_20' ) start [2025-03-09 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644380', 'tblTempUsageDetail_20' ) end [2025-03-09 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:41:21] Production.INFO: ==20209== Releasing lock... [2025-03-09 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:41:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:42:05 [end_date_ymd] => 2025-03-09 19:42:05 [RateCDR] => 1 ) [2025-03-09 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:42:05' and `end` < '2025-03-09 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:42:17] Production.INFO: count ==1390 [2025-03-09 19:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:42:05 - End Time 2025-03-09 19:42:05 [2025-03-09 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644385', 'tblTempUsageDetail_20' ) start [2025-03-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644385', 'tblTempUsageDetail_20' ) end [2025-03-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644385', 'tblTempVendorCDR_20' ) start [2025-03-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644385', 'tblTempVendorCDR_20' ) end [2025-03-09 19:42:18] Production.INFO: ProcessCDR(1,14644385,1,1,2) [2025-03-09 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644385', 'tblTempUsageDetail_20' ) start [2025-03-09 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644385', 'tblTempUsageDetail_20' ) end [2025-03-09 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:42:21] Production.INFO: ==20286== Releasing lock... [2025-03-09 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:42:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:43:06 [end_date_ymd] => 2025-03-09 19:43:06 [RateCDR] => 1 ) [2025-03-09 19:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:43:06' and `end` < '2025-03-09 19:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:43:18] Production.INFO: count ==1393 [2025-03-09 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:43:06 - End Time 2025-03-09 19:43:06 [2025-03-09 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644390', 'tblTempUsageDetail_20' ) start [2025-03-09 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644390', 'tblTempUsageDetail_20' ) end [2025-03-09 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644390', 'tblTempVendorCDR_20' ) start [2025-03-09 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644390', 'tblTempVendorCDR_20' ) end [2025-03-09 19:43:18] Production.INFO: ProcessCDR(1,14644390,1,1,2) [2025-03-09 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644390', 'tblTempUsageDetail_20' ) start [2025-03-09 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644390', 'tblTempUsageDetail_20' ) end [2025-03-09 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:43:22] Production.INFO: ==20361== Releasing lock... [2025-03-09 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:43:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:44:05 [end_date_ymd] => 2025-03-09 19:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:44:05' and `end` < '2025-03-09 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-09 19:44:17] Production.INFO: count ==1389 [2025-03-09 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:44:05 - End Time 2025-03-09 19:44:05 [2025-03-09 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644395', 'tblTempUsageDetail_20' ) start [2025-03-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644395', 'tblTempUsageDetail_20' ) end [2025-03-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644395', 'tblTempVendorCDR_20' ) start [2025-03-09 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644395', 'tblTempVendorCDR_20' ) end [2025-03-09 19:44:18] Production.INFO: ProcessCDR(1,14644395,1,1,2) [2025-03-09 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644395', 'tblTempUsageDetail_20' ) start [2025-03-09 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644395', 'tblTempUsageDetail_20' ) end [2025-03-09 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:44:21] Production.INFO: ==20475== Releasing lock... [2025-03-09 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:44:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:45:06 [end_date_ymd] => 2025-03-09 19:45:06 [RateCDR] => 1 ) [2025-03-09 19:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:45:06' and `end` < '2025-03-09 19: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-09 19:45:18] Production.INFO: count ==1388 [2025-03-09 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:45:06 - End Time 2025-03-09 19:45:06 [2025-03-09 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644400', 'tblTempUsageDetail_20' ) start [2025-03-09 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644400', 'tblTempUsageDetail_20' ) end [2025-03-09 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644400', 'tblTempVendorCDR_20' ) start [2025-03-09 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644400', 'tblTempVendorCDR_20' ) end [2025-03-09 19:45:18] Production.INFO: ProcessCDR(1,14644400,1,1,2) [2025-03-09 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644400', 'tblTempUsageDetail_20' ) start [2025-03-09 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644400', 'tblTempUsageDetail_20' ) end [2025-03-09 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:45:22] Production.INFO: ==20568== Releasing lock... [2025-03-09 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:45:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:46:05 [end_date_ymd] => 2025-03-09 19:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:46:05' and `end` < '2025-03-09 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-09 19:46:17] Production.INFO: count ==1388 [2025-03-09 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:46:05 - End Time 2025-03-09 19:46:05 [2025-03-09 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644405', 'tblTempUsageDetail_20' ) start [2025-03-09 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644405', 'tblTempUsageDetail_20' ) end [2025-03-09 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644405', 'tblTempVendorCDR_20' ) start [2025-03-09 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644405', 'tblTempVendorCDR_20' ) end [2025-03-09 19:46:18] Production.INFO: ProcessCDR(1,14644405,1,1,2) [2025-03-09 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644405', 'tblTempUsageDetail_20' ) start [2025-03-09 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644405', 'tblTempUsageDetail_20' ) end [2025-03-09 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:46:22] Production.INFO: ==20647== Releasing lock... [2025-03-09 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:47:06 [end_date_ymd] => 2025-03-09 19:47:06 [RateCDR] => 1 ) [2025-03-09 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-09 16:47:06' and `end` < '2025-03-09 19: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-09 19:47:18] Production.INFO: count ==1387 [2025-03-09 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:47:06 - End Time 2025-03-09 19:47:06 [2025-03-09 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644410', 'tblTempUsageDetail_20' ) start [2025-03-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644410', 'tblTempUsageDetail_20' ) end [2025-03-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644410', 'tblTempVendorCDR_20' ) start [2025-03-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644410', 'tblTempVendorCDR_20' ) end [2025-03-09 19:47:18] Production.INFO: ProcessCDR(1,14644410,1,1,2) [2025-03-09 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644410', 'tblTempUsageDetail_20' ) start [2025-03-09 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644410', 'tblTempUsageDetail_20' ) end [2025-03-09 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:47:21] Production.INFO: ==20726== Releasing lock... [2025-03-09 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:47:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:48:05 [end_date_ymd] => 2025-03-09 19:48:05 [RateCDR] => 1 ) [2025-03-09 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:48:05' and `end` < '2025-03-09 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:48:17] Production.INFO: count ==1387 [2025-03-09 19:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:48:05 - End Time 2025-03-09 19:48:05 [2025-03-09 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644415', 'tblTempUsageDetail_20' ) start [2025-03-09 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644415', 'tblTempUsageDetail_20' ) end [2025-03-09 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644415', 'tblTempVendorCDR_20' ) start [2025-03-09 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644415', 'tblTempVendorCDR_20' ) end [2025-03-09 19:48:17] Production.INFO: ProcessCDR(1,14644415,1,1,2) [2025-03-09 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644415', 'tblTempUsageDetail_20' ) start [2025-03-09 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644415', 'tblTempUsageDetail_20' ) end [2025-03-09 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:48:21] Production.INFO: ==20805== Releasing lock... [2025-03-09 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:48:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:49:06 [end_date_ymd] => 2025-03-09 19:49:06 [RateCDR] => 1 ) [2025-03-09 19: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-09 16:49:06' and `end` < '2025-03-09 19: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-09 19:49:18] Production.INFO: count ==1385 [2025-03-09 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:49:06 - End Time 2025-03-09 19:49:06 [2025-03-09 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644420', 'tblTempUsageDetail_20' ) start [2025-03-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644420', 'tblTempUsageDetail_20' ) end [2025-03-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644420', 'tblTempVendorCDR_20' ) start [2025-03-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644420', 'tblTempVendorCDR_20' ) end [2025-03-09 19:49:18] Production.INFO: ProcessCDR(1,14644420,1,1,2) [2025-03-09 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644420', 'tblTempUsageDetail_20' ) start [2025-03-09 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644420', 'tblTempUsageDetail_20' ) end [2025-03-09 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:49:22] Production.INFO: ==20885== Releasing lock... [2025-03-09 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:50:05 [end_date_ymd] => 2025-03-09 19:50:05 [RateCDR] => 1 ) [2025-03-09 19: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-09 16:50:05' and `end` < '2025-03-09 19: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-09 19:50:17] Production.INFO: count ==1389 [2025-03-09 19:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:50:05 - End Time 2025-03-09 19:50:05 [2025-03-09 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644425', 'tblTempUsageDetail_20' ) start [2025-03-09 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644425', 'tblTempUsageDetail_20' ) end [2025-03-09 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644425', 'tblTempVendorCDR_20' ) start [2025-03-09 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644425', 'tblTempVendorCDR_20' ) end [2025-03-09 19:50:18] Production.INFO: ProcessCDR(1,14644425,1,1,2) [2025-03-09 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644425', 'tblTempUsageDetail_20' ) start [2025-03-09 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644425', 'tblTempUsageDetail_20' ) end [2025-03-09 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:50:23] Production.INFO: ==20967== Releasing lock... [2025-03-09 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:50:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:51:05 [end_date_ymd] => 2025-03-09 19:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:51:05' and `end` < '2025-03-09 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-09 19:51:17] Production.INFO: count ==1412 [2025-03-09 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:51:05 - End Time 2025-03-09 19:51:05 [2025-03-09 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644431', 'tblTempUsageDetail_20' ) start [2025-03-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644431', 'tblTempUsageDetail_20' ) end [2025-03-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644431', 'tblTempVendorCDR_20' ) start [2025-03-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644431', 'tblTempVendorCDR_20' ) end [2025-03-09 19:51:18] Production.INFO: ProcessCDR(1,14644431,1,1,2) [2025-03-09 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644431', 'tblTempUsageDetail_20' ) start [2025-03-09 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644431', 'tblTempUsageDetail_20' ) end [2025-03-09 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:51:21] Production.INFO: ==21044== Releasing lock... [2025-03-09 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:51:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:52:04 [end_date_ymd] => 2025-03-09 19:52:04 [RateCDR] => 1 ) [2025-03-09 19: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-09 16:52:04' and `end` < '2025-03-09 19: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-09 19:52:17] Production.INFO: count ==1416 [2025-03-09 19:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:52:04 - End Time 2025-03-09 19:52:04 [2025-03-09 19:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644436', 'tblTempUsageDetail_20' ) start [2025-03-09 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644436', 'tblTempUsageDetail_20' ) end [2025-03-09 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644436', 'tblTempVendorCDR_20' ) start [2025-03-09 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644436', 'tblTempVendorCDR_20' ) end [2025-03-09 19:52:17] Production.INFO: ProcessCDR(1,14644436,1,1,2) [2025-03-09 19:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644436', 'tblTempUsageDetail_20' ) start [2025-03-09 19:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644436', 'tblTempUsageDetail_20' ) end [2025-03-09 19:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:52:20] Production.INFO: ==21122== Releasing lock... [2025-03-09 19:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:52:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:53:05 [end_date_ymd] => 2025-03-09 19:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:53:05' and `end` < '2025-03-09 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-09 19:53:18] Production.INFO: count ==1409 [2025-03-09 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:53:05 - End Time 2025-03-09 19:53:05 [2025-03-09 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644441', 'tblTempUsageDetail_20' ) start [2025-03-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644441', 'tblTempUsageDetail_20' ) end [2025-03-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644441', 'tblTempVendorCDR_20' ) start [2025-03-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644441', 'tblTempVendorCDR_20' ) end [2025-03-09 19:53:18] Production.INFO: ProcessCDR(1,14644441,1,1,2) [2025-03-09 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644441', 'tblTempUsageDetail_20' ) start [2025-03-09 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644441', 'tblTempUsageDetail_20' ) end [2025-03-09 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:53:21] Production.INFO: ==21206== Releasing lock... [2025-03-09 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:54:05 [end_date_ymd] => 2025-03-09 19:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:54:05' and `end` < '2025-03-09 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-09 19:54:17] Production.INFO: count ==1409 [2025-03-09 19:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:54:05 - End Time 2025-03-09 19:54:05 [2025-03-09 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644446', 'tblTempUsageDetail_20' ) start [2025-03-09 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644446', 'tblTempUsageDetail_20' ) end [2025-03-09 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644446', 'tblTempVendorCDR_20' ) start [2025-03-09 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644446', 'tblTempVendorCDR_20' ) end [2025-03-09 19:54:17] Production.INFO: ProcessCDR(1,14644446,1,1,2) [2025-03-09 19:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644446', 'tblTempUsageDetail_20' ) start [2025-03-09 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644446', 'tblTempUsageDetail_20' ) end [2025-03-09 19:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:54:20] Production.INFO: ==21280== Releasing lock... [2025-03-09 19:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:54:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:55:06 [end_date_ymd] => 2025-03-09 19:55:06 [RateCDR] => 1 ) [2025-03-09 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:55:06' and `end` < '2025-03-09 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:55:18] Production.INFO: count ==1406 [2025-03-09 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:55:06 - End Time 2025-03-09 19:55:06 [2025-03-09 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644451', 'tblTempUsageDetail_20' ) start [2025-03-09 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644451', 'tblTempUsageDetail_20' ) end [2025-03-09 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644451', 'tblTempVendorCDR_20' ) start [2025-03-09 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644451', 'tblTempVendorCDR_20' ) end [2025-03-09 19:55:18] Production.INFO: ProcessCDR(1,14644451,1,1,2) [2025-03-09 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644451', 'tblTempUsageDetail_20' ) start [2025-03-09 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644451', 'tblTempUsageDetail_20' ) end [2025-03-09 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:55:22] Production.INFO: ==21362== Releasing lock... [2025-03-09 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:56:05 [end_date_ymd] => 2025-03-09 19:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:56:05' and `end` < '2025-03-09 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-09 19:56:18] Production.INFO: count ==1405 [2025-03-09 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:56:05 - End Time 2025-03-09 19:56:05 [2025-03-09 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644456', 'tblTempUsageDetail_20' ) start [2025-03-09 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644456', 'tblTempUsageDetail_20' ) end [2025-03-09 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644456', 'tblTempVendorCDR_20' ) start [2025-03-09 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644456', 'tblTempVendorCDR_20' ) end [2025-03-09 19:56:18] Production.INFO: ProcessCDR(1,14644456,1,1,2) [2025-03-09 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644456', 'tblTempUsageDetail_20' ) start [2025-03-09 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644456', 'tblTempUsageDetail_20' ) end [2025-03-09 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:56:21] Production.INFO: ==21441== Releasing lock... [2025-03-09 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:56:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:57:05 [end_date_ymd] => 2025-03-09 19:57:05 [RateCDR] => 1 ) [2025-03-09 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 16:57:05' and `end` < '2025-03-09 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 19:57:18] Production.INFO: count ==1404 [2025-03-09 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 16:57:05 - End Time 2025-03-09 19:57:05 [2025-03-09 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644461', 'tblTempUsageDetail_20' ) start [2025-03-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644461', 'tblTempUsageDetail_20' ) end [2025-03-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644461', 'tblTempVendorCDR_20' ) start [2025-03-09 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644461', 'tblTempVendorCDR_20' ) end [2025-03-09 19:57:18] Production.INFO: ProcessCDR(1,14644461,1,1,2) [2025-03-09 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644461', 'tblTempUsageDetail_20' ) start [2025-03-09 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644461', 'tblTempUsageDetail_20' ) end [2025-03-09 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:57:22] Production.INFO: ==21518== Releasing lock... [2025-03-09 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:57:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:58:05 [end_date_ymd] => 2025-03-09 19:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:58:05' and `end` < '2025-03-09 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-09 19:58:17] Production.INFO: count ==1409 [2025-03-09 19:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:58:05 - End Time 2025-03-09 19:58:05 [2025-03-09 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644466', 'tblTempUsageDetail_20' ) start [2025-03-09 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644466', 'tblTempUsageDetail_20' ) end [2025-03-09 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644466', 'tblTempVendorCDR_20' ) start [2025-03-09 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644466', 'tblTempVendorCDR_20' ) end [2025-03-09 19:58:17] Production.INFO: ProcessCDR(1,14644466,1,1,2) [2025-03-09 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644466', 'tblTempUsageDetail_20' ) start [2025-03-09 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644466', 'tblTempUsageDetail_20' ) end [2025-03-09 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:58:22] Production.INFO: ==21595== Releasing lock... [2025-03-09 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:58:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 16:59:05 [end_date_ymd] => 2025-03-09 19:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 16:59:05' and `end` < '2025-03-09 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-09 19:59:17] Production.INFO: count ==1406 [2025-03-09 19:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 16:59:05 - End Time 2025-03-09 19:59:05 [2025-03-09 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644471', 'tblTempUsageDetail_20' ) start [2025-03-09 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644471', 'tblTempUsageDetail_20' ) end [2025-03-09 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644471', 'tblTempVendorCDR_20' ) start [2025-03-09 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644471', 'tblTempVendorCDR_20' ) end [2025-03-09 19:59:18] Production.INFO: ProcessCDR(1,14644471,1,1,2) [2025-03-09 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644471', 'tblTempUsageDetail_20' ) start [2025-03-09 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644471', 'tblTempUsageDetail_20' ) end [2025-03-09 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 19:59:21] Production.INFO: ==21666== Releasing lock... [2025-03-09 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 19:59:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:00:06 [end_date_ymd] => 2025-03-09 20:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 17:00:06' and `end` < '2025-03-09 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-09 20:00:18] Production.INFO: count ==1405 [2025-03-09 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-09 17:00:06 - End Time 2025-03-09 20:00:06 [2025-03-09 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644477', 'tblTempUsageDetail_20' ) start [2025-03-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644477', 'tblTempUsageDetail_20' ) end [2025-03-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644477', 'tblTempVendorCDR_20' ) start [2025-03-09 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644477', 'tblTempVendorCDR_20' ) end [2025-03-09 20:00:19] Production.INFO: ProcessCDR(1,14644477,1,1,2) [2025-03-09 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644477', 'tblTempUsageDetail_20' ) start [2025-03-09 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644477', 'tblTempUsageDetail_20' ) end [2025-03-09 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:00:24] Production.INFO: ==21796== Releasing lock... [2025-03-09 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:00:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:01:05 [end_date_ymd] => 2025-03-09 20:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:01:05' and `end` < '2025-03-09 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-09 20:01:17] Production.INFO: count ==1388 [2025-03-09 20:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:01:05 - End Time 2025-03-09 20:01:05 [2025-03-09 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644482', 'tblTempUsageDetail_20' ) start [2025-03-09 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644482', 'tblTempUsageDetail_20' ) end [2025-03-09 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644482', 'tblTempVendorCDR_20' ) start [2025-03-09 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644482', 'tblTempVendorCDR_20' ) end [2025-03-09 20:01:17] Production.INFO: ProcessCDR(1,14644482,1,1,2) [2025-03-09 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644482', 'tblTempUsageDetail_20' ) start [2025-03-09 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644482', 'tblTempUsageDetail_20' ) end [2025-03-09 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:01:22] Production.INFO: ==21934== Releasing lock... [2025-03-09 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:01:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:02:05 [end_date_ymd] => 2025-03-09 20:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:02:05' and `end` < '2025-03-09 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-09 20:02:17] Production.INFO: count ==1387 [2025-03-09 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:02:05 - End Time 2025-03-09 20:02:05 [2025-03-09 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644487', 'tblTempUsageDetail_20' ) start [2025-03-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644487', 'tblTempUsageDetail_20' ) end [2025-03-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644487', 'tblTempVendorCDR_20' ) start [2025-03-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644487', 'tblTempVendorCDR_20' ) end [2025-03-09 20:02:18] Production.INFO: ProcessCDR(1,14644487,1,1,2) [2025-03-09 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644487', 'tblTempUsageDetail_20' ) start [2025-03-09 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644487', 'tblTempUsageDetail_20' ) end [2025-03-09 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:02:22] Production.INFO: ==22011== Releasing lock... [2025-03-09 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:03:05 [end_date_ymd] => 2025-03-09 20:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:03:05' and `end` < '2025-03-09 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-09 20:03:17] Production.INFO: count ==1386 [2025-03-09 20:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:03:05 - End Time 2025-03-09 20:03:05 [2025-03-09 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644492', 'tblTempUsageDetail_20' ) start [2025-03-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644492', 'tblTempUsageDetail_20' ) end [2025-03-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644492', 'tblTempVendorCDR_20' ) start [2025-03-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644492', 'tblTempVendorCDR_20' ) end [2025-03-09 20:03:18] Production.INFO: ProcessCDR(1,14644492,1,1,2) [2025-03-09 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644492', 'tblTempUsageDetail_20' ) start [2025-03-09 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644492', 'tblTempUsageDetail_20' ) end [2025-03-09 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:03:22] Production.INFO: ==22090== Releasing lock... [2025-03-09 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:03:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:04:05 [end_date_ymd] => 2025-03-09 20:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:04:05' and `end` < '2025-03-09 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-09 20:04:18] Production.INFO: count ==1390 [2025-03-09 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:04:05 - End Time 2025-03-09 20:04:05 [2025-03-09 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644497', 'tblTempUsageDetail_20' ) start [2025-03-09 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644497', 'tblTempUsageDetail_20' ) end [2025-03-09 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644497', 'tblTempVendorCDR_20' ) start [2025-03-09 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644497', 'tblTempVendorCDR_20' ) end [2025-03-09 20:04:18] Production.INFO: ProcessCDR(1,14644497,1,1,2) [2025-03-09 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644497', 'tblTempUsageDetail_20' ) start [2025-03-09 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644497', 'tblTempUsageDetail_20' ) end [2025-03-09 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:04:21] Production.INFO: ==22171== Releasing lock... [2025-03-09 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:04:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:05:05 [end_date_ymd] => 2025-03-09 20:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:05:05' and `end` < '2025-03-09 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-09 20:05:17] Production.INFO: count ==1390 [2025-03-09 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:05:05 - End Time 2025-03-09 20:05:05 [2025-03-09 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644502', 'tblTempUsageDetail_20' ) start [2025-03-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644502', 'tblTempUsageDetail_20' ) end [2025-03-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644502', 'tblTempVendorCDR_20' ) start [2025-03-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644502', 'tblTempVendorCDR_20' ) end [2025-03-09 20:05:18] Production.INFO: ProcessCDR(1,14644502,1,1,2) [2025-03-09 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644502', 'tblTempUsageDetail_20' ) start [2025-03-09 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644502', 'tblTempUsageDetail_20' ) end [2025-03-09 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:05:21] Production.INFO: ==22255== Releasing lock... [2025-03-09 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:05:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:06:05 [end_date_ymd] => 2025-03-09 20:06:05 [RateCDR] => 1 ) [2025-03-09 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:06:05' and `end` < '2025-03-09 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:06:17] Production.INFO: count ==1390 [2025-03-09 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:06:05 - End Time 2025-03-09 20:06:05 [2025-03-09 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644507', 'tblTempUsageDetail_20' ) start [2025-03-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644507', 'tblTempUsageDetail_20' ) end [2025-03-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644507', 'tblTempVendorCDR_20' ) start [2025-03-09 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644507', 'tblTempVendorCDR_20' ) end [2025-03-09 20:06:18] Production.INFO: ProcessCDR(1,14644507,1,1,2) [2025-03-09 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644507', 'tblTempUsageDetail_20' ) start [2025-03-09 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644507', 'tblTempUsageDetail_20' ) end [2025-03-09 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:06:23] Production.INFO: ==22332== Releasing lock... [2025-03-09 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:06:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:07:05 [end_date_ymd] => 2025-03-09 20:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:07:05' and `end` < '2025-03-09 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-09 20:07:17] Production.INFO: count ==1396 [2025-03-09 20:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:07:05 - End Time 2025-03-09 20:07:05 [2025-03-09 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644512', 'tblTempUsageDetail_20' ) start [2025-03-09 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644512', 'tblTempUsageDetail_20' ) end [2025-03-09 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644512', 'tblTempVendorCDR_20' ) start [2025-03-09 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644512', 'tblTempVendorCDR_20' ) end [2025-03-09 20:07:17] Production.INFO: ProcessCDR(1,14644512,1,1,2) [2025-03-09 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644512', 'tblTempUsageDetail_20' ) start [2025-03-09 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644512', 'tblTempUsageDetail_20' ) end [2025-03-09 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:07:22] Production.INFO: ==22410== Releasing lock... [2025-03-09 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:08:05 [end_date_ymd] => 2025-03-09 20:08:05 [RateCDR] => 1 ) [2025-03-09 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:08:05' and `end` < '2025-03-09 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:08:17] Production.INFO: count ==1396 [2025-03-09 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:08:05 - End Time 2025-03-09 20:08:05 [2025-03-09 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644517', 'tblTempUsageDetail_20' ) start [2025-03-09 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644517', 'tblTempUsageDetail_20' ) end [2025-03-09 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644517', 'tblTempVendorCDR_20' ) start [2025-03-09 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644517', 'tblTempVendorCDR_20' ) end [2025-03-09 20:08:18] Production.INFO: ProcessCDR(1,14644517,1,1,2) [2025-03-09 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644517', 'tblTempUsageDetail_20' ) start [2025-03-09 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644517', 'tblTempUsageDetail_20' ) end [2025-03-09 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:08:21] Production.INFO: ==22490== Releasing lock... [2025-03-09 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:08:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:09:05 [end_date_ymd] => 2025-03-09 20:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:09:05' and `end` < '2025-03-09 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-09 20:09:18] Production.INFO: count ==1389 [2025-03-09 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:09:05 - End Time 2025-03-09 20:09:05 [2025-03-09 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644522', 'tblTempUsageDetail_20' ) start [2025-03-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644522', 'tblTempUsageDetail_20' ) end [2025-03-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644522', 'tblTempVendorCDR_20' ) start [2025-03-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644522', 'tblTempVendorCDR_20' ) end [2025-03-09 20:09:18] Production.INFO: ProcessCDR(1,14644522,1,1,2) [2025-03-09 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644522', 'tblTempUsageDetail_20' ) start [2025-03-09 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644522', 'tblTempUsageDetail_20' ) end [2025-03-09 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:09:21] Production.INFO: ==22567== Releasing lock... [2025-03-09 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:09:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:10:06 [end_date_ymd] => 2025-03-09 20:10:06 [RateCDR] => 1 ) [2025-03-09 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:10:06' and `end` < '2025-03-09 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:10:18] Production.INFO: count ==1382 [2025-03-09 20:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:10:06 - End Time 2025-03-09 20:10:06 [2025-03-09 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644528', 'tblTempUsageDetail_20' ) start [2025-03-09 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644528', 'tblTempUsageDetail_20' ) end [2025-03-09 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644528', 'tblTempVendorCDR_20' ) start [2025-03-09 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644528', 'tblTempVendorCDR_20' ) end [2025-03-09 20:10:18] Production.INFO: ProcessCDR(1,14644528,1,1,2) [2025-03-09 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644528', 'tblTempUsageDetail_20' ) start [2025-03-09 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644528', 'tblTempUsageDetail_20' ) end [2025-03-09 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:10:22] Production.INFO: ==22642== Releasing lock... [2025-03-09 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:10:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:11:04 [end_date_ymd] => 2025-03-09 20:11:04 [RateCDR] => 1 ) [2025-03-09 20: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-09 17:11:04' and `end` < '2025-03-09 20: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-09 20:11:17] Production.INFO: count ==1380 [2025-03-09 20:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:11:04 - End Time 2025-03-09 20:11:04 [2025-03-09 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644533', 'tblTempUsageDetail_20' ) start [2025-03-09 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644533', 'tblTempUsageDetail_20' ) end [2025-03-09 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644533', 'tblTempVendorCDR_20' ) start [2025-03-09 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644533', 'tblTempVendorCDR_20' ) end [2025-03-09 20:11:17] Production.INFO: ProcessCDR(1,14644533,1,1,2) [2025-03-09 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644533', 'tblTempUsageDetail_20' ) start [2025-03-09 20:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644533', 'tblTempUsageDetail_20' ) end [2025-03-09 20:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:11:20] Production.INFO: ==22722== Releasing lock... [2025-03-09 20:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:11:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:12:05 [end_date_ymd] => 2025-03-09 20:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:12:05' and `end` < '2025-03-09 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-09 20:12:17] Production.INFO: count ==1381 [2025-03-09 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:12:05 - End Time 2025-03-09 20:12:05 [2025-03-09 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644538', 'tblTempUsageDetail_20' ) start [2025-03-09 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644538', 'tblTempUsageDetail_20' ) end [2025-03-09 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644538', 'tblTempVendorCDR_20' ) start [2025-03-09 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644538', 'tblTempVendorCDR_20' ) end [2025-03-09 20:12:18] Production.INFO: ProcessCDR(1,14644538,1,1,2) [2025-03-09 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644538', 'tblTempUsageDetail_20' ) start [2025-03-09 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644538', 'tblTempUsageDetail_20' ) end [2025-03-09 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:12:23] Production.INFO: ==22797== Releasing lock... [2025-03-09 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:12:23] Production.INFO: 39 MB #Memory Used# [2025-03-09 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:13:05 [end_date_ymd] => 2025-03-09 20:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:13:05' and `end` < '2025-03-09 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-09 20:13:17] Production.INFO: count ==1387 [2025-03-09 20:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:13:05 - End Time 2025-03-09 20:13:05 [2025-03-09 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644543', 'tblTempUsageDetail_20' ) start [2025-03-09 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644543', 'tblTempUsageDetail_20' ) end [2025-03-09 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644543', 'tblTempVendorCDR_20' ) start [2025-03-09 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644543', 'tblTempVendorCDR_20' ) end [2025-03-09 20:13:17] Production.INFO: ProcessCDR(1,14644543,1,1,2) [2025-03-09 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644543', 'tblTempUsageDetail_20' ) start [2025-03-09 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644543', 'tblTempUsageDetail_20' ) end [2025-03-09 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:13:22] Production.INFO: ==22869== Releasing lock... [2025-03-09 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:13:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:14:05 [end_date_ymd] => 2025-03-09 20:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:14:05' and `end` < '2025-03-09 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-09 20:14:18] Production.INFO: count ==1382 [2025-03-09 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:14:05 - End Time 2025-03-09 20:14:05 [2025-03-09 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644548', 'tblTempUsageDetail_20' ) start [2025-03-09 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644548', 'tblTempUsageDetail_20' ) end [2025-03-09 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644548', 'tblTempVendorCDR_20' ) start [2025-03-09 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644548', 'tblTempVendorCDR_20' ) end [2025-03-09 20:14:18] Production.INFO: ProcessCDR(1,14644548,1,1,2) [2025-03-09 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644548', 'tblTempUsageDetail_20' ) start [2025-03-09 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644548', 'tblTempUsageDetail_20' ) end [2025-03-09 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:14:21] Production.INFO: ==22945== Releasing lock... [2025-03-09 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:15:06 [end_date_ymd] => 2025-03-09 20:15:06 [RateCDR] => 1 ) [2025-03-09 20: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-09 17:15:06' and `end` < '2025-03-09 20: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-09 20:15:18] Production.INFO: count ==1384 [2025-03-09 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:15:06 - End Time 2025-03-09 20:15:06 [2025-03-09 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644553', 'tblTempUsageDetail_20' ) start [2025-03-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644553', 'tblTempUsageDetail_20' ) end [2025-03-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644553', 'tblTempVendorCDR_20' ) start [2025-03-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644553', 'tblTempVendorCDR_20' ) end [2025-03-09 20:15:18] Production.INFO: ProcessCDR(1,14644553,1,1,2) [2025-03-09 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644553', 'tblTempUsageDetail_20' ) start [2025-03-09 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644553', 'tblTempUsageDetail_20' ) end [2025-03-09 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:15:21] Production.INFO: ==23060== Releasing lock... [2025-03-09 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:16:05 [end_date_ymd] => 2025-03-09 20:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:16:05' and `end` < '2025-03-09 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-09 20:16:18] Production.INFO: count ==1384 [2025-03-09 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:16:05 - End Time 2025-03-09 20:16:05 [2025-03-09 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644558', 'tblTempUsageDetail_20' ) start [2025-03-09 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644558', 'tblTempUsageDetail_20' ) end [2025-03-09 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644558', 'tblTempVendorCDR_20' ) start [2025-03-09 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644558', 'tblTempVendorCDR_20' ) end [2025-03-09 20:16:18] Production.INFO: ProcessCDR(1,14644558,1,1,2) [2025-03-09 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644558', 'tblTempUsageDetail_20' ) start [2025-03-09 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644558', 'tblTempUsageDetail_20' ) end [2025-03-09 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:16:23] Production.INFO: ==23131== Releasing lock... [2025-03-09 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:16:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:17:06 [end_date_ymd] => 2025-03-09 20:17:06 [RateCDR] => 1 ) [2025-03-09 20: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-09 17:17:06' and `end` < '2025-03-09 20: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-09 20:17:18] Production.INFO: count ==1378 [2025-03-09 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:17:06 - End Time 2025-03-09 20:17:06 [2025-03-09 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644563', 'tblTempUsageDetail_20' ) start [2025-03-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644563', 'tblTempUsageDetail_20' ) end [2025-03-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644563', 'tblTempVendorCDR_20' ) start [2025-03-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644563', 'tblTempVendorCDR_20' ) end [2025-03-09 20:17:18] Production.INFO: ProcessCDR(1,14644563,1,1,2) [2025-03-09 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644563', 'tblTempUsageDetail_20' ) start [2025-03-09 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644563', 'tblTempUsageDetail_20' ) end [2025-03-09 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:17:22] Production.INFO: ==23201== Releasing lock... [2025-03-09 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:17:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:18:05 [end_date_ymd] => 2025-03-09 20:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:18:05' and `end` < '2025-03-09 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-09 20:18:17] Production.INFO: count ==1381 [2025-03-09 20:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:18:05 - End Time 2025-03-09 20:18:05 [2025-03-09 20:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644568', 'tblTempUsageDetail_20' ) start [2025-03-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644568', 'tblTempUsageDetail_20' ) end [2025-03-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644568', 'tblTempVendorCDR_20' ) start [2025-03-09 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644568', 'tblTempVendorCDR_20' ) end [2025-03-09 20:18:18] Production.INFO: ProcessCDR(1,14644568,1,1,2) [2025-03-09 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644568', 'tblTempUsageDetail_20' ) start [2025-03-09 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644568', 'tblTempUsageDetail_20' ) end [2025-03-09 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:18:21] Production.INFO: ==23276== Releasing lock... [2025-03-09 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:18:21] Production.INFO: 39 MB #Memory Used# [2025-03-09 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:19:06 [end_date_ymd] => 2025-03-09 20:19:06 [RateCDR] => 1 ) [2025-03-09 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-09 17:19:06' and `end` < '2025-03-09 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-09 20:19:18] Production.INFO: count ==1377 [2025-03-09 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:19:06 - End Time 2025-03-09 20:19:06 [2025-03-09 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644573', 'tblTempUsageDetail_20' ) start [2025-03-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644573', 'tblTempUsageDetail_20' ) end [2025-03-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644573', 'tblTempVendorCDR_20' ) start [2025-03-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644573', 'tblTempVendorCDR_20' ) end [2025-03-09 20:19:18] Production.INFO: ProcessCDR(1,14644573,1,1,2) [2025-03-09 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644573', 'tblTempUsageDetail_20' ) start [2025-03-09 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644573', 'tblTempUsageDetail_20' ) end [2025-03-09 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:19:23] Production.INFO: ==23351== Releasing lock... [2025-03-09 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:19:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:20:06 [end_date_ymd] => 2025-03-09 20:20:06 [RateCDR] => 1 ) [2025-03-09 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:20:06' and `end` < '2025-03-09 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:20:18] Production.INFO: count ==1378 [2025-03-09 20:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:20:06 - End Time 2025-03-09 20:20:06 [2025-03-09 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644579', 'tblTempUsageDetail_20' ) start [2025-03-09 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644579', 'tblTempUsageDetail_20' ) end [2025-03-09 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644579', 'tblTempVendorCDR_20' ) start [2025-03-09 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644579', 'tblTempVendorCDR_20' ) end [2025-03-09 20:20:18] Production.INFO: ProcessCDR(1,14644579,1,1,2) [2025-03-09 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644579', 'tblTempUsageDetail_20' ) start [2025-03-09 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644579', 'tblTempUsageDetail_20' ) end [2025-03-09 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:20:22] Production.INFO: ==23425== Releasing lock... [2025-03-09 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:20:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:21:05 [end_date_ymd] => 2025-03-09 20:21:05 [RateCDR] => 1 ) [2025-03-09 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:21:05' and `end` < '2025-03-09 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:21:18] Production.INFO: count ==1390 [2025-03-09 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:21:05 - End Time 2025-03-09 20:21:05 [2025-03-09 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644584', 'tblTempUsageDetail_20' ) start [2025-03-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644584', 'tblTempUsageDetail_20' ) end [2025-03-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644584', 'tblTempVendorCDR_20' ) start [2025-03-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644584', 'tblTempVendorCDR_20' ) end [2025-03-09 20:21:18] Production.INFO: ProcessCDR(1,14644584,1,1,2) [2025-03-09 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644584', 'tblTempUsageDetail_20' ) start [2025-03-09 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644584', 'tblTempUsageDetail_20' ) end [2025-03-09 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:21:21] Production.INFO: ==23499== Releasing lock... [2025-03-09 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:21:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:22:05 [end_date_ymd] => 2025-03-09 20:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:22:05' and `end` < '2025-03-09 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-09 20:22:18] Production.INFO: count ==1393 [2025-03-09 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:22:05 - End Time 2025-03-09 20:22:05 [2025-03-09 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644589', 'tblTempUsageDetail_20' ) start [2025-03-09 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644589', 'tblTempUsageDetail_20' ) end [2025-03-09 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644589', 'tblTempVendorCDR_20' ) start [2025-03-09 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644589', 'tblTempVendorCDR_20' ) end [2025-03-09 20:22:18] Production.INFO: ProcessCDR(1,14644589,1,1,2) [2025-03-09 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644589', 'tblTempUsageDetail_20' ) start [2025-03-09 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644589', 'tblTempUsageDetail_20' ) end [2025-03-09 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:22:21] Production.INFO: ==23569== Releasing lock... [2025-03-09 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:22:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-09 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:23:05 [end_date_ymd] => 2025-03-09 20:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:23:05' and `end` < '2025-03-09 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-09 20:23:17] Production.INFO: count ==1386 [2025-03-09 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:23:05 - End Time 2025-03-09 20:23:05 [2025-03-09 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644594', 'tblTempUsageDetail_20' ) start [2025-03-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644594', 'tblTempUsageDetail_20' ) end [2025-03-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644594', 'tblTempVendorCDR_20' ) start [2025-03-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644594', 'tblTempVendorCDR_20' ) end [2025-03-09 20:23:18] Production.INFO: ProcessCDR(1,14644594,1,1,2) [2025-03-09 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644594', 'tblTempUsageDetail_20' ) start [2025-03-09 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644594', 'tblTempUsageDetail_20' ) end [2025-03-09 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:23:23] Production.INFO: ==23643== Releasing lock... [2025-03-09 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:23:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:24:05 [end_date_ymd] => 2025-03-09 20:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:24:05' and `end` < '2025-03-09 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-09 20:24:17] Production.INFO: count ==1391 [2025-03-09 20:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:24:05 - End Time 2025-03-09 20:24:05 [2025-03-09 20:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644599', 'tblTempUsageDetail_20' ) start [2025-03-09 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644599', 'tblTempUsageDetail_20' ) end [2025-03-09 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644599', 'tblTempVendorCDR_20' ) start [2025-03-09 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644599', 'tblTempVendorCDR_20' ) end [2025-03-09 20:24:17] Production.INFO: ProcessCDR(1,14644599,1,1,2) [2025-03-09 20:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644599', 'tblTempUsageDetail_20' ) start [2025-03-09 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644599', 'tblTempUsageDetail_20' ) end [2025-03-09 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:24:21] Production.INFO: ==23719== Releasing lock... [2025-03-09 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:24:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:25:05 [end_date_ymd] => 2025-03-09 20:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:25:05' and `end` < '2025-03-09 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-09 20:25:17] Production.INFO: count ==1386 [2025-03-09 20:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:25:05 - End Time 2025-03-09 20:25:05 [2025-03-09 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644604', 'tblTempUsageDetail_20' ) start [2025-03-09 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644604', 'tblTempUsageDetail_20' ) end [2025-03-09 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644604', 'tblTempVendorCDR_20' ) start [2025-03-09 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644604', 'tblTempVendorCDR_20' ) end [2025-03-09 20:25:17] Production.INFO: ProcessCDR(1,14644604,1,1,2) [2025-03-09 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644604', 'tblTempUsageDetail_20' ) start [2025-03-09 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644604', 'tblTempUsageDetail_20' ) end [2025-03-09 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:25:21] Production.INFO: ==23792== Releasing lock... [2025-03-09 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:25:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:26:04 [end_date_ymd] => 2025-03-09 20:26:04 [RateCDR] => 1 ) [2025-03-09 20:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:26:04' and `end` < '2025-03-09 20:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:26:17] Production.INFO: count ==1379 [2025-03-09 20:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:26:04 - End Time 2025-03-09 20:26:04 [2025-03-09 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644609', 'tblTempUsageDetail_20' ) start [2025-03-09 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644609', 'tblTempUsageDetail_20' ) end [2025-03-09 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644609', 'tblTempVendorCDR_20' ) start [2025-03-09 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644609', 'tblTempVendorCDR_20' ) end [2025-03-09 20:26:17] Production.INFO: ProcessCDR(1,14644609,1,1,2) [2025-03-09 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644609', 'tblTempUsageDetail_20' ) start [2025-03-09 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644609', 'tblTempUsageDetail_20' ) end [2025-03-09 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:26:22] Production.INFO: ==23864== Releasing lock... [2025-03-09 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:27:06 [end_date_ymd] => 2025-03-09 20:27:06 [RateCDR] => 1 ) [2025-03-09 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-09 17:27:06' and `end` < '2025-03-09 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-09 20:27:18] Production.INFO: count ==1378 [2025-03-09 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:27:06 - End Time 2025-03-09 20:27:06 [2025-03-09 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644614', 'tblTempUsageDetail_20' ) start [2025-03-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644614', 'tblTempUsageDetail_20' ) end [2025-03-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644614', 'tblTempVendorCDR_20' ) start [2025-03-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644614', 'tblTempVendorCDR_20' ) end [2025-03-09 20:27:18] Production.INFO: ProcessCDR(1,14644614,1,1,2) [2025-03-09 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644614', 'tblTempUsageDetail_20' ) start [2025-03-09 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644614', 'tblTempUsageDetail_20' ) end [2025-03-09 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:27:21] Production.INFO: ==23937== Releasing lock... [2025-03-09 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:27:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:28:04 [end_date_ymd] => 2025-03-09 20:28:04 [RateCDR] => 1 ) [2025-03-09 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:28:04' and `end` < '2025-03-09 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:28:17] Production.INFO: count ==1376 [2025-03-09 20:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:28:04 - End Time 2025-03-09 20:28:04 [2025-03-09 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644619', 'tblTempUsageDetail_20' ) start [2025-03-09 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644619', 'tblTempUsageDetail_20' ) end [2025-03-09 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644619', 'tblTempVendorCDR_20' ) start [2025-03-09 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644619', 'tblTempVendorCDR_20' ) end [2025-03-09 20:28:17] Production.INFO: ProcessCDR(1,14644619,1,1,2) [2025-03-09 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644619', 'tblTempUsageDetail_20' ) start [2025-03-09 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644619', 'tblTempUsageDetail_20' ) end [2025-03-09 20:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:28:20] Production.INFO: ==24014== Releasing lock... [2025-03-09 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:28:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:29:05 [end_date_ymd] => 2025-03-09 20:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:29:05' and `end` < '2025-03-09 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-09 20:29:17] Production.INFO: count ==1374 [2025-03-09 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:29:05 - End Time 2025-03-09 20:29:05 [2025-03-09 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644624', 'tblTempUsageDetail_20' ) start [2025-03-09 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644624', 'tblTempUsageDetail_20' ) end [2025-03-09 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644624', 'tblTempVendorCDR_20' ) start [2025-03-09 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644624', 'tblTempVendorCDR_20' ) end [2025-03-09 20:29:18] Production.INFO: ProcessCDR(1,14644624,1,1,2) [2025-03-09 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644624', 'tblTempUsageDetail_20' ) start [2025-03-09 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644624', 'tblTempUsageDetail_20' ) end [2025-03-09 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:29:21] Production.INFO: ==24085== Releasing lock... [2025-03-09 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:29:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:30:05 [end_date_ymd] => 2025-03-09 20:30:05 [RateCDR] => 1 ) [2025-03-09 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:30:05' and `end` < '2025-03-09 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:30:17] Production.INFO: count ==1372 [2025-03-09 20:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:30:05 - End Time 2025-03-09 20:30:05 [2025-03-09 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644629', 'tblTempUsageDetail_20' ) start [2025-03-09 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644629', 'tblTempUsageDetail_20' ) end [2025-03-09 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644629', 'tblTempVendorCDR_20' ) start [2025-03-09 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644629', 'tblTempVendorCDR_20' ) end [2025-03-09 20:30:18] Production.INFO: ProcessCDR(1,14644629,1,1,2) [2025-03-09 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644629', 'tblTempUsageDetail_20' ) start [2025-03-09 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644629', 'tblTempUsageDetail_20' ) end [2025-03-09 20:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:30:21] Production.INFO: ==24159== Releasing lock... [2025-03-09 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:30:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:31:05 [end_date_ymd] => 2025-03-09 20:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:31:05' and `end` < '2025-03-09 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-09 20:31:17] Production.INFO: count ==1378 [2025-03-09 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:31:05 - End Time 2025-03-09 20:31:05 [2025-03-09 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644635', 'tblTempUsageDetail_20' ) start [2025-03-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644635', 'tblTempUsageDetail_20' ) end [2025-03-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644635', 'tblTempVendorCDR_20' ) start [2025-03-09 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644635', 'tblTempVendorCDR_20' ) end [2025-03-09 20:31:18] Production.INFO: ProcessCDR(1,14644635,1,1,2) [2025-03-09 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644635', 'tblTempUsageDetail_20' ) start [2025-03-09 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644635', 'tblTempUsageDetail_20' ) end [2025-03-09 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:31:21] Production.INFO: ==24274== Releasing lock... [2025-03-09 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:31:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:32:05 [end_date_ymd] => 2025-03-09 20:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:32:05' and `end` < '2025-03-09 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-09 20:32:17] Production.INFO: count ==1375 [2025-03-09 20:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:32:05 - End Time 2025-03-09 20:32:05 [2025-03-09 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644640', 'tblTempUsageDetail_20' ) start [2025-03-09 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644640', 'tblTempUsageDetail_20' ) end [2025-03-09 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644640', 'tblTempVendorCDR_20' ) start [2025-03-09 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644640', 'tblTempVendorCDR_20' ) end [2025-03-09 20:32:17] Production.INFO: ProcessCDR(1,14644640,1,1,2) [2025-03-09 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644640', 'tblTempUsageDetail_20' ) start [2025-03-09 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644640', 'tblTempUsageDetail_20' ) end [2025-03-09 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:32:21] Production.INFO: ==24348== Releasing lock... [2025-03-09 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:32:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:33:05 [end_date_ymd] => 2025-03-09 20:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:33:05' and `end` < '2025-03-09 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-09 20:33:17] Production.INFO: count ==1376 [2025-03-09 20:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:33:05 - End Time 2025-03-09 20:33:05 [2025-03-09 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644645', 'tblTempUsageDetail_20' ) start [2025-03-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644645', 'tblTempUsageDetail_20' ) end [2025-03-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644645', 'tblTempVendorCDR_20' ) start [2025-03-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644645', 'tblTempVendorCDR_20' ) end [2025-03-09 20:33:18] Production.INFO: ProcessCDR(1,14644645,1,1,2) [2025-03-09 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644645', 'tblTempUsageDetail_20' ) start [2025-03-09 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644645', 'tblTempUsageDetail_20' ) end [2025-03-09 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:33:21] Production.INFO: ==24426== Releasing lock... [2025-03-09 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:33:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:34:04 [end_date_ymd] => 2025-03-09 20:34:04 [RateCDR] => 1 ) [2025-03-09 20: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-09 17:34:04' and `end` < '2025-03-09 20: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-09 20:34:16] Production.INFO: count ==1376 [2025-03-09 20:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:34:04 - End Time 2025-03-09 20:34:04 [2025-03-09 20:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644650', 'tblTempUsageDetail_20' ) start [2025-03-09 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644650', 'tblTempUsageDetail_20' ) end [2025-03-09 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644650', 'tblTempVendorCDR_20' ) start [2025-03-09 20:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644650', 'tblTempVendorCDR_20' ) end [2025-03-09 20:34:17] Production.INFO: ProcessCDR(1,14644650,1,1,2) [2025-03-09 20:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644650', 'tblTempUsageDetail_20' ) start [2025-03-09 20:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644650', 'tblTempUsageDetail_20' ) end [2025-03-09 20:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:34:20] Production.INFO: ==24502== Releasing lock... [2025-03-09 20:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:34:20] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:35:05 [end_date_ymd] => 2025-03-09 20:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:35:05' and `end` < '2025-03-09 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-09 20:35:17] Production.INFO: count ==1376 [2025-03-09 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:35:05 - End Time 2025-03-09 20:35:05 [2025-03-09 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644655', 'tblTempUsageDetail_20' ) start [2025-03-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644655', 'tblTempUsageDetail_20' ) end [2025-03-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644655', 'tblTempVendorCDR_20' ) start [2025-03-09 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644655', 'tblTempVendorCDR_20' ) end [2025-03-09 20:35:18] Production.INFO: ProcessCDR(1,14644655,1,1,2) [2025-03-09 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644655', 'tblTempUsageDetail_20' ) start [2025-03-09 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644655', 'tblTempUsageDetail_20' ) end [2025-03-09 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:35:21] Production.INFO: ==24574== Releasing lock... [2025-03-09 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:35:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:36:05 [end_date_ymd] => 2025-03-09 20:36:05 [RateCDR] => 1 ) [2025-03-09 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:36:05' and `end` < '2025-03-09 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:36:17] Production.INFO: count ==1375 [2025-03-09 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:36:05 - End Time 2025-03-09 20:36:05 [2025-03-09 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644660', 'tblTempUsageDetail_20' ) start [2025-03-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644660', 'tblTempUsageDetail_20' ) end [2025-03-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644660', 'tblTempVendorCDR_20' ) start [2025-03-09 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644660', 'tblTempVendorCDR_20' ) end [2025-03-09 20:36:18] Production.INFO: ProcessCDR(1,14644660,1,1,2) [2025-03-09 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644660', 'tblTempUsageDetail_20' ) start [2025-03-09 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644660', 'tblTempUsageDetail_20' ) end [2025-03-09 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:36:21] Production.INFO: ==24646== Releasing lock... [2025-03-09 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:36:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:37:06 [end_date_ymd] => 2025-03-09 20:37:06 [RateCDR] => 1 ) [2025-03-09 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:37:06' and `end` < '2025-03-09 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:37:18] Production.INFO: count ==1376 [2025-03-09 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:37:06 - End Time 2025-03-09 20:37:06 [2025-03-09 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644665', 'tblTempUsageDetail_20' ) start [2025-03-09 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644665', 'tblTempUsageDetail_20' ) end [2025-03-09 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644665', 'tblTempVendorCDR_20' ) start [2025-03-09 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644665', 'tblTempVendorCDR_20' ) end [2025-03-09 20:37:18] Production.INFO: ProcessCDR(1,14644665,1,1,2) [2025-03-09 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644665', 'tblTempUsageDetail_20' ) start [2025-03-09 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644665', 'tblTempUsageDetail_20' ) end [2025-03-09 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:37:23] Production.INFO: ==24722== Releasing lock... [2025-03-09 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:37:23] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:38:05 [end_date_ymd] => 2025-03-09 20:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:38:05' and `end` < '2025-03-09 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-09 20:38:18] Production.INFO: count ==1374 [2025-03-09 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:38:05 - End Time 2025-03-09 20:38:05 [2025-03-09 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644670', 'tblTempUsageDetail_20' ) start [2025-03-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644670', 'tblTempUsageDetail_20' ) end [2025-03-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644670', 'tblTempVendorCDR_20' ) start [2025-03-09 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644670', 'tblTempVendorCDR_20' ) end [2025-03-09 20:38:18] Production.INFO: ProcessCDR(1,14644670,1,1,2) [2025-03-09 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644670', 'tblTempUsageDetail_20' ) start [2025-03-09 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644670', 'tblTempUsageDetail_20' ) end [2025-03-09 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:38:23] Production.INFO: ==24792== Releasing lock... [2025-03-09 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:38:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:39:05 [end_date_ymd] => 2025-03-09 20:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:39:05' and `end` < '2025-03-09 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-09 20:39:18] Production.INFO: count ==1377 [2025-03-09 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:39:05 - End Time 2025-03-09 20:39:05 [2025-03-09 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644675', 'tblTempUsageDetail_20' ) start [2025-03-09 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644675', 'tblTempUsageDetail_20' ) end [2025-03-09 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644675', 'tblTempVendorCDR_20' ) start [2025-03-09 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644675', 'tblTempVendorCDR_20' ) end [2025-03-09 20:39:18] Production.INFO: ProcessCDR(1,14644675,1,1,2) [2025-03-09 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644675', 'tblTempUsageDetail_20' ) start [2025-03-09 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644675', 'tblTempUsageDetail_20' ) end [2025-03-09 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:39:21] Production.INFO: ==24864== Releasing lock... [2025-03-09 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:39:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:40:06 [end_date_ymd] => 2025-03-09 20:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 17:40:06' and `end` < '2025-03-09 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-09 20:40:18] Production.INFO: count ==1378 [2025-03-09 20:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:40:06 - End Time 2025-03-09 20:40:06 [2025-03-09 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644681', 'tblTempUsageDetail_20' ) start [2025-03-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644681', 'tblTempUsageDetail_20' ) end [2025-03-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644681', 'tblTempVendorCDR_20' ) start [2025-03-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644681', 'tblTempVendorCDR_20' ) end [2025-03-09 20:40:18] Production.INFO: ProcessCDR(1,14644681,1,1,2) [2025-03-09 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644681', 'tblTempUsageDetail_20' ) start [2025-03-09 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644681', 'tblTempUsageDetail_20' ) end [2025-03-09 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:40:22] Production.INFO: ==24937== Releasing lock... [2025-03-09 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:41:05 [end_date_ymd] => 2025-03-09 20:41:05 [RateCDR] => 1 ) [2025-03-09 20:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:41:05' and `end` < '2025-03-09 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-09 20:41:18] Production.INFO: count ==1355 [2025-03-09 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:41:05 - End Time 2025-03-09 20:41:05 [2025-03-09 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644686', 'tblTempUsageDetail_20' ) start [2025-03-09 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644686', 'tblTempUsageDetail_20' ) end [2025-03-09 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644686', 'tblTempVendorCDR_20' ) start [2025-03-09 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644686', 'tblTempVendorCDR_20' ) end [2025-03-09 20:41:18] Production.INFO: ProcessCDR(1,14644686,1,1,2) [2025-03-09 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644686', 'tblTempUsageDetail_20' ) start [2025-03-09 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644686', 'tblTempUsageDetail_20' ) end [2025-03-09 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:41:22] Production.INFO: ==25017== Releasing lock... [2025-03-09 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:41:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:42:05 [end_date_ymd] => 2025-03-09 20:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:42:05' and `end` < '2025-03-09 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-09 20:42:18] Production.INFO: count ==1354 [2025-03-09 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:42:05 - End Time 2025-03-09 20:42:05 [2025-03-09 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644691', 'tblTempUsageDetail_20' ) start [2025-03-09 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644691', 'tblTempUsageDetail_20' ) end [2025-03-09 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644691', 'tblTempVendorCDR_20' ) start [2025-03-09 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644691', 'tblTempVendorCDR_20' ) end [2025-03-09 20:42:18] Production.INFO: ProcessCDR(1,14644691,1,1,2) [2025-03-09 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644691', 'tblTempUsageDetail_20' ) start [2025-03-09 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644691', 'tblTempUsageDetail_20' ) end [2025-03-09 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:42:23] Production.INFO: ==25089== Releasing lock... [2025-03-09 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:42:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-09 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:43:05 [end_date_ymd] => 2025-03-09 20:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:43:05' and `end` < '2025-03-09 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-09 20:43:18] Production.INFO: count ==1353 [2025-03-09 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:43:05 - End Time 2025-03-09 20:43:05 [2025-03-09 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644696', 'tblTempUsageDetail_20' ) start [2025-03-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644696', 'tblTempUsageDetail_20' ) end [2025-03-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644696', 'tblTempVendorCDR_20' ) start [2025-03-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644696', 'tblTempVendorCDR_20' ) end [2025-03-09 20:43:18] Production.INFO: ProcessCDR(1,14644696,1,1,2) [2025-03-09 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644696', 'tblTempUsageDetail_20' ) start [2025-03-09 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644696', 'tblTempUsageDetail_20' ) end [2025-03-09 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:43:21] Production.INFO: ==25160== Releasing lock... [2025-03-09 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:43:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:44:05 [end_date_ymd] => 2025-03-09 20:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:44:05' and `end` < '2025-03-09 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-09 20:44:17] Production.INFO: count ==1349 [2025-03-09 20:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:44:05 - End Time 2025-03-09 20:44:05 [2025-03-09 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644701', 'tblTempUsageDetail_20' ) start [2025-03-09 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644701', 'tblTempUsageDetail_20' ) end [2025-03-09 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644701', 'tblTempVendorCDR_20' ) start [2025-03-09 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644701', 'tblTempVendorCDR_20' ) end [2025-03-09 20:44:17] Production.INFO: ProcessCDR(1,14644701,1,1,2) [2025-03-09 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644701', 'tblTempUsageDetail_20' ) start [2025-03-09 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644701', 'tblTempUsageDetail_20' ) end [2025-03-09 20:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:44:20] Production.INFO: ==25240== Releasing lock... [2025-03-09 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:44:20] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:45:05 [end_date_ymd] => 2025-03-09 20:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:45:05' and `end` < '2025-03-09 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-09 20:45:18] Production.INFO: count ==1349 [2025-03-09 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:45:05 - End Time 2025-03-09 20:45:05 [2025-03-09 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644706', 'tblTempUsageDetail_20' ) start [2025-03-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644706', 'tblTempUsageDetail_20' ) end [2025-03-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644706', 'tblTempVendorCDR_20' ) start [2025-03-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644706', 'tblTempVendorCDR_20' ) end [2025-03-09 20:45:18] Production.INFO: ProcessCDR(1,14644706,1,1,2) [2025-03-09 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644706', 'tblTempUsageDetail_20' ) start [2025-03-09 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644706', 'tblTempUsageDetail_20' ) end [2025-03-09 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:45:21] Production.INFO: ==25313== Releasing lock... [2025-03-09 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:45:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:46:05 [end_date_ymd] => 2025-03-09 20:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:46:05' and `end` < '2025-03-09 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-09 20:46:17] Production.INFO: count ==1349 [2025-03-09 20:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:46:05 - End Time 2025-03-09 20:46:05 [2025-03-09 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644711', 'tblTempUsageDetail_20' ) start [2025-03-09 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644711', 'tblTempUsageDetail_20' ) end [2025-03-09 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644711', 'tblTempVendorCDR_20' ) start [2025-03-09 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644711', 'tblTempVendorCDR_20' ) end [2025-03-09 20:46:17] Production.INFO: ProcessCDR(1,14644711,1,1,2) [2025-03-09 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644711', 'tblTempUsageDetail_20' ) start [2025-03-09 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644711', 'tblTempUsageDetail_20' ) end [2025-03-09 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:46:21] Production.INFO: ==25424== Releasing lock... [2025-03-09 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:46:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:47:06 [end_date_ymd] => 2025-03-09 20:47:06 [RateCDR] => 1 ) [2025-03-09 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-09 17:47:06' and `end` < '2025-03-09 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-09 20:47:18] Production.INFO: count ==1353 [2025-03-09 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:47:06 - End Time 2025-03-09 20:47:06 [2025-03-09 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644716', 'tblTempUsageDetail_20' ) start [2025-03-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644716', 'tblTempUsageDetail_20' ) end [2025-03-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644716', 'tblTempVendorCDR_20' ) start [2025-03-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644716', 'tblTempVendorCDR_20' ) end [2025-03-09 20:47:18] Production.INFO: ProcessCDR(1,14644716,1,1,2) [2025-03-09 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644716', 'tblTempUsageDetail_20' ) start [2025-03-09 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644716', 'tblTempUsageDetail_20' ) end [2025-03-09 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:47:23] Production.INFO: ==25496== Releasing lock... [2025-03-09 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:47:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:48:05 [end_date_ymd] => 2025-03-09 20:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:48:05' and `end` < '2025-03-09 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-09 20:48:17] Production.INFO: count ==1352 [2025-03-09 20:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:48:05 - End Time 2025-03-09 20:48:05 [2025-03-09 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644721', 'tblTempUsageDetail_20' ) start [2025-03-09 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644721', 'tblTempUsageDetail_20' ) end [2025-03-09 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644721', 'tblTempVendorCDR_20' ) start [2025-03-09 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644721', 'tblTempVendorCDR_20' ) end [2025-03-09 20:48:17] Production.INFO: ProcessCDR(1,14644721,1,1,2) [2025-03-09 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644721', 'tblTempUsageDetail_20' ) start [2025-03-09 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644721', 'tblTempUsageDetail_20' ) end [2025-03-09 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:48:22] Production.INFO: ==25566== Releasing lock... [2025-03-09 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:49:06 [end_date_ymd] => 2025-03-09 20:49:06 [RateCDR] => 1 ) [2025-03-09 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-09 17:49:06' and `end` < '2025-03-09 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-09 20:49:18] Production.INFO: count ==1348 [2025-03-09 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:49:06 - End Time 2025-03-09 20:49:06 [2025-03-09 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644724', 'tblTempUsageDetail_20' ) start [2025-03-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644724', 'tblTempUsageDetail_20' ) end [2025-03-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644724', 'tblTempVendorCDR_20' ) start [2025-03-09 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644724', 'tblTempVendorCDR_20' ) end [2025-03-09 20:49:18] Production.INFO: ProcessCDR(1,14644724,1,1,2) [2025-03-09 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644724', 'tblTempUsageDetail_20' ) start [2025-03-09 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644724', 'tblTempUsageDetail_20' ) end [2025-03-09 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:49:21] Production.INFO: ==25638== Releasing lock... [2025-03-09 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:49:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:50:05 [end_date_ymd] => 2025-03-09 20:50:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:50:05' and `end` < '2025-03-09 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-09 20:50:18] Production.INFO: count ==1346 [2025-03-09 20:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:50:05 - End Time 2025-03-09 20:50:05 [2025-03-09 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644731', 'tblTempUsageDetail_20' ) start [2025-03-09 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644731', 'tblTempUsageDetail_20' ) end [2025-03-09 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644731', 'tblTempVendorCDR_20' ) start [2025-03-09 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644731', 'tblTempVendorCDR_20' ) end [2025-03-09 20:50:18] Production.INFO: ProcessCDR(1,14644731,1,1,2) [2025-03-09 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644731', 'tblTempUsageDetail_20' ) start [2025-03-09 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644731', 'tblTempUsageDetail_20' ) end [2025-03-09 20:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:50:21] Production.INFO: ==25710== Releasing lock... [2025-03-09 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:50:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:51:05 [end_date_ymd] => 2025-03-09 20:51:05 [RateCDR] => 1 ) [2025-03-09 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:51:05' and `end` < '2025-03-09 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:51:18] Production.INFO: count ==1348 [2025-03-09 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:51:05 - End Time 2025-03-09 20:51:05 [2025-03-09 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644737', 'tblTempUsageDetail_20' ) start [2025-03-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644737', 'tblTempUsageDetail_20' ) end [2025-03-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644737', 'tblTempVendorCDR_20' ) start [2025-03-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644737', 'tblTempVendorCDR_20' ) end [2025-03-09 20:51:18] Production.INFO: ProcessCDR(1,14644737,1,1,2) [2025-03-09 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644737', 'tblTempUsageDetail_20' ) start [2025-03-09 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644737', 'tblTempUsageDetail_20' ) end [2025-03-09 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:51:23] Production.INFO: ==25784== Releasing lock... [2025-03-09 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:51:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:52:05 [end_date_ymd] => 2025-03-09 20:52:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:52:05' and `end` < '2025-03-09 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-09 20:52:17] Production.INFO: count ==1345 [2025-03-09 20:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:52:05 - End Time 2025-03-09 20:52:05 [2025-03-09 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644742', 'tblTempUsageDetail_20' ) start [2025-03-09 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644742', 'tblTempUsageDetail_20' ) end [2025-03-09 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644742', 'tblTempVendorCDR_20' ) start [2025-03-09 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644742', 'tblTempVendorCDR_20' ) end [2025-03-09 20:52:17] Production.INFO: ProcessCDR(1,14644742,1,1,2) [2025-03-09 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644742', 'tblTempUsageDetail_20' ) start [2025-03-09 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644742', 'tblTempUsageDetail_20' ) end [2025-03-09 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:52:21] Production.INFO: ==25858== Releasing lock... [2025-03-09 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:52:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-09 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:53:05 [end_date_ymd] => 2025-03-09 20:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:53:05' and `end` < '2025-03-09 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-09 20:53:17] Production.INFO: count ==1341 [2025-03-09 20:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:53:05 - End Time 2025-03-09 20:53:05 [2025-03-09 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644747', 'tblTempUsageDetail_20' ) start [2025-03-09 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644747', 'tblTempUsageDetail_20' ) end [2025-03-09 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644747', 'tblTempVendorCDR_20' ) start [2025-03-09 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644747', 'tblTempVendorCDR_20' ) end [2025-03-09 20:53:17] Production.INFO: ProcessCDR(1,14644747,1,1,2) [2025-03-09 20:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644747', 'tblTempUsageDetail_20' ) start [2025-03-09 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644747', 'tblTempUsageDetail_20' ) end [2025-03-09 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:53:22] Production.INFO: ==25931== Releasing lock... [2025-03-09 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:53:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:54:04 [end_date_ymd] => 2025-03-09 20:54:04 [RateCDR] => 1 ) [2025-03-09 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-09 17:54:04' and `end` < '2025-03-09 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-09 20:54:17] Production.INFO: count ==1341 [2025-03-09 20:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:54:04 - End Time 2025-03-09 20:54:04 [2025-03-09 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644752', 'tblTempUsageDetail_20' ) start [2025-03-09 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644752', 'tblTempUsageDetail_20' ) end [2025-03-09 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644752', 'tblTempVendorCDR_20' ) start [2025-03-09 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644752', 'tblTempVendorCDR_20' ) end [2025-03-09 20:54:17] Production.INFO: ProcessCDR(1,14644752,1,1,2) [2025-03-09 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644752', 'tblTempUsageDetail_20' ) start [2025-03-09 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644752', 'tblTempUsageDetail_20' ) end [2025-03-09 20:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:54:20] Production.INFO: ==26005== Releasing lock... [2025-03-09 20:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:54:20] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:55:05 [end_date_ymd] => 2025-03-09 20:55:05 [RateCDR] => 1 ) [2025-03-09 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:55:05' and `end` < '2025-03-09 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-09 20:55:17] Production.INFO: count ==1341 [2025-03-09 20:55:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:55:05 - End Time 2025-03-09 20:55:05 [2025-03-09 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644757', 'tblTempUsageDetail_20' ) start [2025-03-09 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644757', 'tblTempUsageDetail_20' ) end [2025-03-09 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644757', 'tblTempVendorCDR_20' ) start [2025-03-09 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644757', 'tblTempVendorCDR_20' ) end [2025-03-09 20:55:17] Production.INFO: ProcessCDR(1,14644757,1,1,2) [2025-03-09 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644757', 'tblTempUsageDetail_20' ) start [2025-03-09 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644757', 'tblTempUsageDetail_20' ) end [2025-03-09 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:55:21] Production.INFO: ==26081== Releasing lock... [2025-03-09 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:55:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:56:05 [end_date_ymd] => 2025-03-09 20:56:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:56:05' and `end` < '2025-03-09 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-09 20:56:17] Production.INFO: count ==1340 [2025-03-09 20:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:56:05 - End Time 2025-03-09 20:56:05 [2025-03-09 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644762', 'tblTempUsageDetail_20' ) start [2025-03-09 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644762', 'tblTempUsageDetail_20' ) end [2025-03-09 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644762', 'tblTempVendorCDR_20' ) start [2025-03-09 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644762', 'tblTempVendorCDR_20' ) end [2025-03-09 20:56:17] Production.INFO: ProcessCDR(1,14644762,1,1,2) [2025-03-09 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644762', 'tblTempUsageDetail_20' ) start [2025-03-09 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644762', 'tblTempUsageDetail_20' ) end [2025-03-09 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:56:22] Production.INFO: ==26170== Releasing lock... [2025-03-09 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:56:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:57:05 [end_date_ymd] => 2025-03-09 20:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:57:05' and `end` < '2025-03-09 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-09 20:57:17] Production.INFO: count ==1331 [2025-03-09 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:57:05 - End Time 2025-03-09 20:57:05 [2025-03-09 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644767', 'tblTempUsageDetail_20' ) start [2025-03-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644767', 'tblTempUsageDetail_20' ) end [2025-03-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644767', 'tblTempVendorCDR_20' ) start [2025-03-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644767', 'tblTempVendorCDR_20' ) end [2025-03-09 20:57:18] Production.INFO: ProcessCDR(1,14644767,1,1,2) [2025-03-09 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644767', 'tblTempUsageDetail_20' ) start [2025-03-09 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644767', 'tblTempUsageDetail_20' ) end [2025-03-09 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:57:22] Production.INFO: ==26248== Releasing lock... [2025-03-09 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:57:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:58:05 [end_date_ymd] => 2025-03-09 20:58:05 [RateCDR] => 1 ) [2025-03-09 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 17:58:05' and `end` < '2025-03-09 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 20:58:17] Production.INFO: count ==1331 [2025-03-09 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 17:58:05 - End Time 2025-03-09 20:58:05 [2025-03-09 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644772', 'tblTempUsageDetail_20' ) start [2025-03-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644772', 'tblTempUsageDetail_20' ) end [2025-03-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644772', 'tblTempVendorCDR_20' ) start [2025-03-09 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644772', 'tblTempVendorCDR_20' ) end [2025-03-09 20:58:18] Production.INFO: ProcessCDR(1,14644772,1,1,2) [2025-03-09 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644772', 'tblTempUsageDetail_20' ) start [2025-03-09 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644772', 'tblTempUsageDetail_20' ) end [2025-03-09 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:58:21] Production.INFO: ==26321== Releasing lock... [2025-03-09 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:58:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 17:59:05 [end_date_ymd] => 2025-03-09 20:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 17:59:05' and `end` < '2025-03-09 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-09 20:59:17] Production.INFO: count ==1328 [2025-03-09 20:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 17:59:05 - End Time 2025-03-09 20:59:05 [2025-03-09 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644777', 'tblTempUsageDetail_20' ) start [2025-03-09 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644777', 'tblTempUsageDetail_20' ) end [2025-03-09 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644777', 'tblTempVendorCDR_20' ) start [2025-03-09 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644777', 'tblTempVendorCDR_20' ) end [2025-03-09 20:59:17] Production.INFO: ProcessCDR(1,14644777,1,1,2) [2025-03-09 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644777', 'tblTempUsageDetail_20' ) start [2025-03-09 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644777', 'tblTempUsageDetail_20' ) end [2025-03-09 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 20:59:21] Production.INFO: ==26390== Releasing lock... [2025-03-09 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 20:59:21] Production.INFO: 38 MB #Memory Used# [2025-03-09 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:00:07 [end_date_ymd] => 2025-03-09 21:00:07 [RateCDR] => 1 ) [2025-03-09 21: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-09 18:00:07' and `end` < '2025-03-09 21: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-09 21:00:19] Production.INFO: count ==1331 [2025-03-09 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-09 18:00:07 - End Time 2025-03-09 21:00:07 [2025-03-09 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644782', 'tblTempUsageDetail_20' ) start [2025-03-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644782', 'tblTempUsageDetail_20' ) end [2025-03-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644782', 'tblTempVendorCDR_20' ) start [2025-03-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644782', 'tblTempVendorCDR_20' ) end [2025-03-09 21:00:19] Production.INFO: ProcessCDR(1,14644782,1,1,2) [2025-03-09 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644782', 'tblTempUsageDetail_20' ) start [2025-03-09 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644782', 'tblTempUsageDetail_20' ) end [2025-03-09 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:00:24] Production.INFO: ==26465== Releasing lock... [2025-03-09 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:00:24] Production.INFO: 38 MB #Memory Used# [2025-03-09 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:01:05 [end_date_ymd] => 2025-03-09 21:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:01:05' and `end` < '2025-03-09 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-09 21:01:17] Production.INFO: count ==1326 [2025-03-09 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:01:05 - End Time 2025-03-09 21:01:05 [2025-03-09 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644788', 'tblTempUsageDetail_20' ) start [2025-03-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644788', 'tblTempUsageDetail_20' ) end [2025-03-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644788', 'tblTempVendorCDR_20' ) start [2025-03-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644788', 'tblTempVendorCDR_20' ) end [2025-03-09 21:01:18] Production.INFO: ProcessCDR(1,14644788,1,1,2) [2025-03-09 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644788', 'tblTempUsageDetail_20' ) start [2025-03-09 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644788', 'tblTempUsageDetail_20' ) end [2025-03-09 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:01:23] Production.INFO: ==26551== Releasing lock... [2025-03-09 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:01:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:02:05 [end_date_ymd] => 2025-03-09 21:02:05 [RateCDR] => 1 ) [2025-03-09 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:02:05' and `end` < '2025-03-09 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:02:17] Production.INFO: count ==1328 [2025-03-09 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:02:05 - End Time 2025-03-09 21:02:05 [2025-03-09 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644793', 'tblTempUsageDetail_20' ) start [2025-03-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644793', 'tblTempUsageDetail_20' ) end [2025-03-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644793', 'tblTempVendorCDR_20' ) start [2025-03-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644793', 'tblTempVendorCDR_20' ) end [2025-03-09 21:02:18] Production.INFO: ProcessCDR(1,14644793,1,1,2) [2025-03-09 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644793', 'tblTempUsageDetail_20' ) start [2025-03-09 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644793', 'tblTempUsageDetail_20' ) end [2025-03-09 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:02:23] Production.INFO: ==26661== Releasing lock... [2025-03-09 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:02:23] Production.INFO: 38 MB #Memory Used# [2025-03-09 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:03:05 [end_date_ymd] => 2025-03-09 21:03:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:03:05' and `end` < '2025-03-09 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-09 21:03:17] Production.INFO: count ==1324 [2025-03-09 21:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:03:05 - End Time 2025-03-09 21:03:05 [2025-03-09 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644798', 'tblTempUsageDetail_20' ) start [2025-03-09 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644798', 'tblTempUsageDetail_20' ) end [2025-03-09 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644798', 'tblTempVendorCDR_20' ) start [2025-03-09 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644798', 'tblTempVendorCDR_20' ) end [2025-03-09 21:03:17] Production.INFO: ProcessCDR(1,14644798,1,1,2) [2025-03-09 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644798', 'tblTempUsageDetail_20' ) start [2025-03-09 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644798', 'tblTempUsageDetail_20' ) end [2025-03-09 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:03:22] Production.INFO: ==26735== Releasing lock... [2025-03-09 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:04:05 [end_date_ymd] => 2025-03-09 21:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:04:05' and `end` < '2025-03-09 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-09 21:04:17] Production.INFO: count ==1319 [2025-03-09 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:04:05 - End Time 2025-03-09 21:04:05 [2025-03-09 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644803', 'tblTempUsageDetail_20' ) start [2025-03-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644803', 'tblTempUsageDetail_20' ) end [2025-03-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644803', 'tblTempVendorCDR_20' ) start [2025-03-09 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644803', 'tblTempVendorCDR_20' ) end [2025-03-09 21:04:18] Production.INFO: ProcessCDR(1,14644803,1,1,2) [2025-03-09 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644803', 'tblTempUsageDetail_20' ) start [2025-03-09 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644803', 'tblTempUsageDetail_20' ) end [2025-03-09 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:04:22] Production.INFO: ==26808== Releasing lock... [2025-03-09 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:04:22] Production.INFO: 38 MB #Memory Used# [2025-03-09 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:05:05 [end_date_ymd] => 2025-03-09 21:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:05:05' and `end` < '2025-03-09 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-09 21:05:17] Production.INFO: count ==1316 [2025-03-09 21:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:05:05 - End Time 2025-03-09 21:05:05 [2025-03-09 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644808', 'tblTempUsageDetail_20' ) start [2025-03-09 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644808', 'tblTempUsageDetail_20' ) end [2025-03-09 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644808', 'tblTempVendorCDR_20' ) start [2025-03-09 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644808', 'tblTempVendorCDR_20' ) end [2025-03-09 21:05:17] Production.INFO: ProcessCDR(1,14644808,1,1,2) [2025-03-09 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644808', 'tblTempUsageDetail_20' ) start [2025-03-09 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644808', 'tblTempUsageDetail_20' ) end [2025-03-09 21:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:05:20] Production.INFO: ==26882== Releasing lock... [2025-03-09 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:05:20] Production.INFO: 38 MB #Memory Used# [2025-03-09 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:06:05 [end_date_ymd] => 2025-03-09 21:06:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:06:05' and `end` < '2025-03-09 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-09 21:06:18] Production.INFO: count ==1314 [2025-03-09 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:06:05 - End Time 2025-03-09 21:06:05 [2025-03-09 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644813', 'tblTempUsageDetail_20' ) start [2025-03-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644813', 'tblTempUsageDetail_20' ) end [2025-03-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644813', 'tblTempVendorCDR_20' ) start [2025-03-09 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644813', 'tblTempVendorCDR_20' ) end [2025-03-09 21:06:18] Production.INFO: ProcessCDR(1,14644813,1,1,2) [2025-03-09 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644813', 'tblTempUsageDetail_20' ) start [2025-03-09 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644813', 'tblTempUsageDetail_20' ) end [2025-03-09 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:06:21] Production.INFO: ==26952== Releasing lock... [2025-03-09 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:06:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:07:05 [end_date_ymd] => 2025-03-09 21:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:07:05' and `end` < '2025-03-09 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-09 21:07:17] Production.INFO: count ==1313 [2025-03-09 21:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:07:05 - End Time 2025-03-09 21:07:05 [2025-03-09 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644818', 'tblTempUsageDetail_20' ) start [2025-03-09 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644818', 'tblTempUsageDetail_20' ) end [2025-03-09 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644818', 'tblTempVendorCDR_20' ) start [2025-03-09 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644818', 'tblTempVendorCDR_20' ) end [2025-03-09 21:07:17] Production.INFO: ProcessCDR(1,14644818,1,1,2) [2025-03-09 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644818', 'tblTempUsageDetail_20' ) start [2025-03-09 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644818', 'tblTempUsageDetail_20' ) end [2025-03-09 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:07:21] Production.INFO: ==27024== Releasing lock... [2025-03-09 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:08:05 [end_date_ymd] => 2025-03-09 21:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:08:05' and `end` < '2025-03-09 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-09 21:08:18] Production.INFO: count ==1310 [2025-03-09 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:08:05 - End Time 2025-03-09 21:08:05 [2025-03-09 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644823', 'tblTempUsageDetail_20' ) start [2025-03-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644823', 'tblTempUsageDetail_20' ) end [2025-03-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644823', 'tblTempVendorCDR_20' ) start [2025-03-09 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644823', 'tblTempVendorCDR_20' ) end [2025-03-09 21:08:18] Production.INFO: ProcessCDR(1,14644823,1,1,2) [2025-03-09 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644823', 'tblTempUsageDetail_20' ) start [2025-03-09 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644823', 'tblTempUsageDetail_20' ) end [2025-03-09 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:08:21] Production.INFO: ==27101== Releasing lock... [2025-03-09 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:09:05 [end_date_ymd] => 2025-03-09 21:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:09:05' and `end` < '2025-03-09 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-09 21:09:17] Production.INFO: count ==1290 [2025-03-09 21:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:09:05 - End Time 2025-03-09 21:09:05 [2025-03-09 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644828', 'tblTempUsageDetail_20' ) start [2025-03-09 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644828', 'tblTempUsageDetail_20' ) end [2025-03-09 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644828', 'tblTempVendorCDR_20' ) start [2025-03-09 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644828', 'tblTempVendorCDR_20' ) end [2025-03-09 21:09:17] Production.INFO: ProcessCDR(1,14644828,1,1,2) [2025-03-09 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644828', 'tblTempUsageDetail_20' ) start [2025-03-09 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644828', 'tblTempUsageDetail_20' ) end [2025-03-09 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:09:22] Production.INFO: ==27174== Releasing lock... [2025-03-09 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:09:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-09 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:10:06 [end_date_ymd] => 2025-03-09 21:10:06 [RateCDR] => 1 ) [2025-03-09 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-09 18:10:06' and `end` < '2025-03-09 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-09 21:10:18] Production.INFO: count ==1290 [2025-03-09 21:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:10:06 - End Time 2025-03-09 21:10:06 [2025-03-09 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644833', 'tblTempUsageDetail_20' ) start [2025-03-09 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644833', 'tblTempUsageDetail_20' ) end [2025-03-09 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644833', 'tblTempVendorCDR_20' ) start [2025-03-09 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644833', 'tblTempVendorCDR_20' ) end [2025-03-09 21:10:18] Production.INFO: ProcessCDR(1,14644833,1,1,2) [2025-03-09 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644833', 'tblTempUsageDetail_20' ) start [2025-03-09 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644833', 'tblTempUsageDetail_20' ) end [2025-03-09 21:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:10:21] Production.INFO: ==27250== Releasing lock... [2025-03-09 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:10:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-09 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:11:05 [end_date_ymd] => 2025-03-09 21:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:11:05' and `end` < '2025-03-09 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-09 21:11:17] Production.INFO: count ==1211 [2025-03-09 21:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:11:05 - End Time 2025-03-09 21:11:05 [2025-03-09 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644839', 'tblTempUsageDetail_20' ) start [2025-03-09 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644839', 'tblTempUsageDetail_20' ) end [2025-03-09 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644839', 'tblTempVendorCDR_20' ) start [2025-03-09 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644839', 'tblTempVendorCDR_20' ) end [2025-03-09 21:11:17] Production.INFO: ProcessCDR(1,14644839,1,1,2) [2025-03-09 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644839', 'tblTempUsageDetail_20' ) start [2025-03-09 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644839', 'tblTempUsageDetail_20' ) end [2025-03-09 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:11:21] Production.INFO: ==27333== Releasing lock... [2025-03-09 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:11:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:12:06 [end_date_ymd] => 2025-03-09 21:12:06 [RateCDR] => 1 ) [2025-03-09 21:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:12:06' and `end` < '2025-03-09 21:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:12:18] Production.INFO: count ==1211 [2025-03-09 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:12:06 - End Time 2025-03-09 21:12:06 [2025-03-09 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644844', 'tblTempUsageDetail_20' ) start [2025-03-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644844', 'tblTempUsageDetail_20' ) end [2025-03-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644844', 'tblTempVendorCDR_20' ) start [2025-03-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644844', 'tblTempVendorCDR_20' ) end [2025-03-09 21:12:18] Production.INFO: ProcessCDR(1,14644844,1,1,2) [2025-03-09 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644844', 'tblTempUsageDetail_20' ) start [2025-03-09 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644844', 'tblTempUsageDetail_20' ) end [2025-03-09 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:12:23] Production.INFO: ==27405== Releasing lock... [2025-03-09 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:12:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:13:05 [end_date_ymd] => 2025-03-09 21:13:05 [RateCDR] => 1 ) [2025-03-09 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:13:05' and `end` < '2025-03-09 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:13:17] Production.INFO: count ==1203 [2025-03-09 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:13:05 - End Time 2025-03-09 21:13:05 [2025-03-09 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644849', 'tblTempUsageDetail_20' ) start [2025-03-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644849', 'tblTempUsageDetail_20' ) end [2025-03-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644849', 'tblTempVendorCDR_20' ) start [2025-03-09 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644849', 'tblTempVendorCDR_20' ) end [2025-03-09 21:13:18] Production.INFO: ProcessCDR(1,14644849,1,1,2) [2025-03-09 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644849', 'tblTempUsageDetail_20' ) start [2025-03-09 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644849', 'tblTempUsageDetail_20' ) end [2025-03-09 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:13:23] Production.INFO: ==27475== Releasing lock... [2025-03-09 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:13:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:14:05 [end_date_ymd] => 2025-03-09 21:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:14:05' and `end` < '2025-03-09 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-09 21:14:17] Production.INFO: count ==1206 [2025-03-09 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:14:05 - End Time 2025-03-09 21:14:05 [2025-03-09 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644854', 'tblTempUsageDetail_20' ) start [2025-03-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644854', 'tblTempUsageDetail_20' ) end [2025-03-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644854', 'tblTempVendorCDR_20' ) start [2025-03-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644854', 'tblTempVendorCDR_20' ) end [2025-03-09 21:14:18] Production.INFO: ProcessCDR(1,14644854,1,1,2) [2025-03-09 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644854', 'tblTempUsageDetail_20' ) start [2025-03-09 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644854', 'tblTempUsageDetail_20' ) end [2025-03-09 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:14:21] Production.INFO: ==27547== Releasing lock... [2025-03-09 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:14:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:15:06 [end_date_ymd] => 2025-03-09 21:15:06 [RateCDR] => 1 ) [2025-03-09 21:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:15:06' and `end` < '2025-03-09 21:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:15:18] Production.INFO: count ==1201 [2025-03-09 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:15:06 - End Time 2025-03-09 21:15:06 [2025-03-09 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644859', 'tblTempUsageDetail_20' ) start [2025-03-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644859', 'tblTempUsageDetail_20' ) end [2025-03-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644859', 'tblTempVendorCDR_20' ) start [2025-03-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644859', 'tblTempVendorCDR_20' ) end [2025-03-09 21:15:18] Production.INFO: ProcessCDR(1,14644859,1,1,2) [2025-03-09 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644859', 'tblTempUsageDetail_20' ) start [2025-03-09 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644859', 'tblTempUsageDetail_20' ) end [2025-03-09 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:15:21] Production.INFO: ==27619== Releasing lock... [2025-03-09 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:15:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:16:05 [end_date_ymd] => 2025-03-09 21:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:16:05' and `end` < '2025-03-09 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-09 21:16:17] Production.INFO: count ==1202 [2025-03-09 21:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:16:05 - End Time 2025-03-09 21:16:05 [2025-03-09 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644864', 'tblTempUsageDetail_20' ) start [2025-03-09 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644864', 'tblTempUsageDetail_20' ) end [2025-03-09 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644864', 'tblTempVendorCDR_20' ) start [2025-03-09 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644864', 'tblTempVendorCDR_20' ) end [2025-03-09 21:16:17] Production.INFO: ProcessCDR(1,14644864,1,1,2) [2025-03-09 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644864', 'tblTempUsageDetail_20' ) start [2025-03-09 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644864', 'tblTempUsageDetail_20' ) end [2025-03-09 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:16:21] Production.INFO: ==27691== Releasing lock... [2025-03-09 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:16:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:17:06 [end_date_ymd] => 2025-03-09 21:17:06 [RateCDR] => 1 ) [2025-03-09 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:17:06' and `end` < '2025-03-09 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:17:18] Production.INFO: count ==1202 [2025-03-09 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:17:06 - End Time 2025-03-09 21:17:06 [2025-03-09 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644869', 'tblTempUsageDetail_20' ) start [2025-03-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644869', 'tblTempUsageDetail_20' ) end [2025-03-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644869', 'tblTempVendorCDR_20' ) start [2025-03-09 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644869', 'tblTempVendorCDR_20' ) end [2025-03-09 21:17:18] Production.INFO: ProcessCDR(1,14644869,1,1,2) [2025-03-09 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644869', 'tblTempUsageDetail_20' ) start [2025-03-09 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644869', 'tblTempUsageDetail_20' ) end [2025-03-09 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:17:22] Production.INFO: ==27834== Releasing lock... [2025-03-09 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:17:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:18:05 [end_date_ymd] => 2025-03-09 21:18:05 [RateCDR] => 1 ) [2025-03-09 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:18:05' and `end` < '2025-03-09 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:18:17] Production.INFO: count ==1203 [2025-03-09 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:18:05 - End Time 2025-03-09 21:18:05 [2025-03-09 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644874', 'tblTempUsageDetail_20' ) start [2025-03-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644874', 'tblTempUsageDetail_20' ) end [2025-03-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644874', 'tblTempVendorCDR_20' ) start [2025-03-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644874', 'tblTempVendorCDR_20' ) end [2025-03-09 21:18:18] Production.INFO: ProcessCDR(1,14644874,1,1,2) [2025-03-09 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644874', 'tblTempUsageDetail_20' ) start [2025-03-09 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644874', 'tblTempUsageDetail_20' ) end [2025-03-09 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:18:22] Production.INFO: ==27914== Releasing lock... [2025-03-09 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:19:06 [end_date_ymd] => 2025-03-09 21:19:06 [RateCDR] => 1 ) [2025-03-09 21:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:19:06' and `end` < '2025-03-09 21:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:19:18] Production.INFO: count ==1202 [2025-03-09 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:19:06 - End Time 2025-03-09 21:19:06 [2025-03-09 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644879', 'tblTempUsageDetail_20' ) start [2025-03-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644879', 'tblTempUsageDetail_20' ) end [2025-03-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644879', 'tblTempVendorCDR_20' ) start [2025-03-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644879', 'tblTempVendorCDR_20' ) end [2025-03-09 21:19:18] Production.INFO: ProcessCDR(1,14644879,1,1,2) [2025-03-09 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644879', 'tblTempUsageDetail_20' ) start [2025-03-09 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644879', 'tblTempUsageDetail_20' ) end [2025-03-09 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:19:23] Production.INFO: ==27988== Releasing lock... [2025-03-09 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:19:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:20:06 [end_date_ymd] => 2025-03-09 21:20:06 [RateCDR] => 1 ) [2025-03-09 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-09 18:20:06' and `end` < '2025-03-09 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-09 21:20:18] Production.INFO: count ==1203 [2025-03-09 21:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:20:06 - End Time 2025-03-09 21:20:06 [2025-03-09 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644885', 'tblTempUsageDetail_20' ) start [2025-03-09 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644885', 'tblTempUsageDetail_20' ) end [2025-03-09 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644885', 'tblTempVendorCDR_20' ) start [2025-03-09 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644885', 'tblTempVendorCDR_20' ) end [2025-03-09 21:20:18] Production.INFO: ProcessCDR(1,14644885,1,1,2) [2025-03-09 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644885', 'tblTempUsageDetail_20' ) start [2025-03-09 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644885', 'tblTempUsageDetail_20' ) end [2025-03-09 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:20:23] Production.INFO: ==28061== Releasing lock... [2025-03-09 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:20:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:21:05 [end_date_ymd] => 2025-03-09 21:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:21:05' and `end` < '2025-03-09 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-09 21:21:17] Production.INFO: count ==1195 [2025-03-09 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:21:05 - End Time 2025-03-09 21:21:05 [2025-03-09 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644890', 'tblTempUsageDetail_20' ) start [2025-03-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644890', 'tblTempUsageDetail_20' ) end [2025-03-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644890', 'tblTempVendorCDR_20' ) start [2025-03-09 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644890', 'tblTempVendorCDR_20' ) end [2025-03-09 21:21:18] Production.INFO: ProcessCDR(1,14644890,1,1,2) [2025-03-09 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644890', 'tblTempUsageDetail_20' ) start [2025-03-09 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644890', 'tblTempUsageDetail_20' ) end [2025-03-09 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:21:21] Production.INFO: ==28137== Releasing lock... [2025-03-09 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:21:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:22:05 [end_date_ymd] => 2025-03-09 21:22:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:22:05' and `end` < '2025-03-09 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-09 21:22:17] Production.INFO: count ==1193 [2025-03-09 21:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:22:05 - End Time 2025-03-09 21:22:05 [2025-03-09 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644895', 'tblTempUsageDetail_20' ) start [2025-03-09 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644895', 'tblTempUsageDetail_20' ) end [2025-03-09 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644895', 'tblTempVendorCDR_20' ) start [2025-03-09 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644895', 'tblTempVendorCDR_20' ) end [2025-03-09 21:22:17] Production.INFO: ProcessCDR(1,14644895,1,1,2) [2025-03-09 21:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644895', 'tblTempUsageDetail_20' ) start [2025-03-09 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644895', 'tblTempUsageDetail_20' ) end [2025-03-09 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:22:21] Production.INFO: ==28215== Releasing lock... [2025-03-09 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:22:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:23:05 [end_date_ymd] => 2025-03-09 21:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:23:05' and `end` < '2025-03-09 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-09 21:23:18] Production.INFO: count ==1195 [2025-03-09 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:23:05 - End Time 2025-03-09 21:23:05 [2025-03-09 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644900', 'tblTempUsageDetail_20' ) start [2025-03-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644900', 'tblTempUsageDetail_20' ) end [2025-03-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644900', 'tblTempVendorCDR_20' ) start [2025-03-09 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644900', 'tblTempVendorCDR_20' ) end [2025-03-09 21:23:18] Production.INFO: ProcessCDR(1,14644900,1,1,2) [2025-03-09 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644900', 'tblTempUsageDetail_20' ) start [2025-03-09 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644900', 'tblTempUsageDetail_20' ) end [2025-03-09 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:23:23] Production.INFO: ==28291== Releasing lock... [2025-03-09 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:23:23] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:24:05 [end_date_ymd] => 2025-03-09 21:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:24:05' and `end` < '2025-03-09 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-09 21:24:17] Production.INFO: count ==1194 [2025-03-09 21:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:24:05 - End Time 2025-03-09 21:24:05 [2025-03-09 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644905', 'tblTempUsageDetail_20' ) start [2025-03-09 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644905', 'tblTempUsageDetail_20' ) end [2025-03-09 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644905', 'tblTempVendorCDR_20' ) start [2025-03-09 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644905', 'tblTempVendorCDR_20' ) end [2025-03-09 21:24:17] Production.INFO: ProcessCDR(1,14644905,1,1,2) [2025-03-09 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644905', 'tblTempUsageDetail_20' ) start [2025-03-09 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644905', 'tblTempUsageDetail_20' ) end [2025-03-09 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:24:22] Production.INFO: ==28371== Releasing lock... [2025-03-09 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:24:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:25:05 [end_date_ymd] => 2025-03-09 21:25:05 [RateCDR] => 1 ) [2025-03-09 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:25:05' and `end` < '2025-03-09 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:25:18] Production.INFO: count ==1191 [2025-03-09 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:25:05 - End Time 2025-03-09 21:25:05 [2025-03-09 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644910', 'tblTempUsageDetail_20' ) start [2025-03-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644910', 'tblTempUsageDetail_20' ) end [2025-03-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644910', 'tblTempVendorCDR_20' ) start [2025-03-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644910', 'tblTempVendorCDR_20' ) end [2025-03-09 21:25:18] Production.INFO: ProcessCDR(1,14644910,1,1,2) [2025-03-09 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644910', 'tblTempUsageDetail_20' ) start [2025-03-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644910', 'tblTempUsageDetail_20' ) end [2025-03-09 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:25:21] Production.INFO: ==28443== Releasing lock... [2025-03-09 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:25:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:26:05 [end_date_ymd] => 2025-03-09 21:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:26:05' and `end` < '2025-03-09 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-09 21:26:17] Production.INFO: count ==1191 [2025-03-09 21:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:26:05 - End Time 2025-03-09 21:26:05 [2025-03-09 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644915', 'tblTempUsageDetail_20' ) start [2025-03-09 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644915', 'tblTempUsageDetail_20' ) end [2025-03-09 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644915', 'tblTempVendorCDR_20' ) start [2025-03-09 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644915', 'tblTempVendorCDR_20' ) end [2025-03-09 21:26:17] Production.INFO: ProcessCDR(1,14644915,1,1,2) [2025-03-09 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644915', 'tblTempUsageDetail_20' ) start [2025-03-09 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644915', 'tblTempUsageDetail_20' ) end [2025-03-09 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:26:21] Production.INFO: ==28517== Releasing lock... [2025-03-09 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:26:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:27:06 [end_date_ymd] => 2025-03-09 21:27:06 [RateCDR] => 1 ) [2025-03-09 21:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:27:06' and `end` < '2025-03-09 21: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-09 21:27:18] Production.INFO: count ==1190 [2025-03-09 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:27:06 - End Time 2025-03-09 21:27:06 [2025-03-09 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644920', 'tblTempUsageDetail_20' ) start [2025-03-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644920', 'tblTempUsageDetail_20' ) end [2025-03-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644920', 'tblTempVendorCDR_20' ) start [2025-03-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644920', 'tblTempVendorCDR_20' ) end [2025-03-09 21:27:18] Production.INFO: ProcessCDR(1,14644920,1,1,2) [2025-03-09 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644920', 'tblTempUsageDetail_20' ) start [2025-03-09 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644920', 'tblTempUsageDetail_20' ) end [2025-03-09 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:27:22] Production.INFO: ==28590== Releasing lock... [2025-03-09 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:27:22] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:28:05 [end_date_ymd] => 2025-03-09 21:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:28:05' and `end` < '2025-03-09 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-09 21:28:17] Production.INFO: count ==1187 [2025-03-09 21:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:28:05 - End Time 2025-03-09 21:28:05 [2025-03-09 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644925', 'tblTempUsageDetail_20' ) start [2025-03-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644925', 'tblTempUsageDetail_20' ) end [2025-03-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644925', 'tblTempVendorCDR_20' ) start [2025-03-09 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644925', 'tblTempVendorCDR_20' ) end [2025-03-09 21:28:18] Production.INFO: ProcessCDR(1,14644925,1,1,2) [2025-03-09 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644925', 'tblTempUsageDetail_20' ) start [2025-03-09 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644925', 'tblTempUsageDetail_20' ) end [2025-03-09 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:28:21] Production.INFO: ==28660== Releasing lock... [2025-03-09 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:28:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:29:05 [end_date_ymd] => 2025-03-09 21:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:29:05' and `end` < '2025-03-09 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-09 21:29:18] Production.INFO: count ==1189 [2025-03-09 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:29:05 - End Time 2025-03-09 21:29:05 [2025-03-09 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644930', 'tblTempUsageDetail_20' ) start [2025-03-09 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644930', 'tblTempUsageDetail_20' ) end [2025-03-09 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644930', 'tblTempVendorCDR_20' ) start [2025-03-09 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644930', 'tblTempVendorCDR_20' ) end [2025-03-09 21:29:18] Production.INFO: ProcessCDR(1,14644930,1,1,2) [2025-03-09 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644930', 'tblTempUsageDetail_20' ) start [2025-03-09 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644930', 'tblTempUsageDetail_20' ) end [2025-03-09 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:29:23] Production.INFO: ==28729== Releasing lock... [2025-03-09 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:29:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-09 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:30:05 [end_date_ymd] => 2025-03-09 21:30:05 [RateCDR] => 1 ) [2025-03-09 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:30:05' and `end` < '2025-03-09 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:30:18] Production.INFO: count ==1189 [2025-03-09 21:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:30:05 - End Time 2025-03-09 21:30:05 [2025-03-09 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644934', 'tblTempUsageDetail_20' ) start [2025-03-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644934', 'tblTempUsageDetail_20' ) end [2025-03-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644934', 'tblTempVendorCDR_20' ) start [2025-03-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644934', 'tblTempVendorCDR_20' ) end [2025-03-09 21:30:18] Production.INFO: ProcessCDR(1,14644934,1,1,2) [2025-03-09 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644934', 'tblTempUsageDetail_20' ) start [2025-03-09 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644934', 'tblTempUsageDetail_20' ) end [2025-03-09 21:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:30:21] Production.INFO: ==28805== Releasing lock... [2025-03-09 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:30:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:31:06 [end_date_ymd] => 2025-03-09 21:31:06 [RateCDR] => 1 ) [2025-03-09 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:31:06' and `end` < '2025-03-09 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:31:18] Production.INFO: count ==1157 [2025-03-09 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:31:06 - End Time 2025-03-09 21:31:06 [2025-03-09 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644941', 'tblTempUsageDetail_20' ) start [2025-03-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644941', 'tblTempUsageDetail_20' ) end [2025-03-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644941', 'tblTempVendorCDR_20' ) start [2025-03-09 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644941', 'tblTempVendorCDR_20' ) end [2025-03-09 21:31:18] Production.INFO: ProcessCDR(1,14644941,1,1,2) [2025-03-09 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644941', 'tblTempUsageDetail_20' ) start [2025-03-09 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644941', 'tblTempUsageDetail_20' ) end [2025-03-09 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:31:21] Production.INFO: ==28877== Releasing lock... [2025-03-09 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:31:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:32:05 [end_date_ymd] => 2025-03-09 21:32:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:32:05' and `end` < '2025-03-09 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-09 21:32:18] Production.INFO: count ==1162 [2025-03-09 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:32:05 - End Time 2025-03-09 21:32:05 [2025-03-09 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644946', 'tblTempUsageDetail_20' ) start [2025-03-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644946', 'tblTempUsageDetail_20' ) end [2025-03-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644946', 'tblTempVendorCDR_20' ) start [2025-03-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644946', 'tblTempVendorCDR_20' ) end [2025-03-09 21:32:18] Production.INFO: ProcessCDR(1,14644946,1,1,2) [2025-03-09 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644946', 'tblTempUsageDetail_20' ) start [2025-03-09 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644946', 'tblTempUsageDetail_20' ) end [2025-03-09 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:32:23] Production.INFO: ==28946== Releasing lock... [2025-03-09 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:32:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:33:05 [end_date_ymd] => 2025-03-09 21:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:33:05' and `end` < '2025-03-09 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-09 21:33:18] Production.INFO: count ==1165 [2025-03-09 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:33:05 - End Time 2025-03-09 21:33:05 [2025-03-09 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644951', 'tblTempUsageDetail_20' ) start [2025-03-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644951', 'tblTempUsageDetail_20' ) end [2025-03-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644951', 'tblTempVendorCDR_20' ) start [2025-03-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644951', 'tblTempVendorCDR_20' ) end [2025-03-09 21:33:18] Production.INFO: ProcessCDR(1,14644951,1,1,2) [2025-03-09 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644951', 'tblTempUsageDetail_20' ) start [2025-03-09 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644951', 'tblTempUsageDetail_20' ) end [2025-03-09 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:33:23] Production.INFO: ==29057== Releasing lock... [2025-03-09 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:33:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:34:05 [end_date_ymd] => 2025-03-09 21:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:34:05' and `end` < '2025-03-09 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-09 21:34:17] Production.INFO: count ==1166 [2025-03-09 21:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:34:05 - End Time 2025-03-09 21:34:05 [2025-03-09 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644956', 'tblTempUsageDetail_20' ) start [2025-03-09 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644956', 'tblTempUsageDetail_20' ) end [2025-03-09 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644956', 'tblTempVendorCDR_20' ) start [2025-03-09 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644956', 'tblTempVendorCDR_20' ) end [2025-03-09 21:34:17] Production.INFO: ProcessCDR(1,14644956,1,1,2) [2025-03-09 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644956', 'tblTempUsageDetail_20' ) start [2025-03-09 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644956', 'tblTempUsageDetail_20' ) end [2025-03-09 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:34:21] Production.INFO: ==29133== Releasing lock... [2025-03-09 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:34:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:35:05 [end_date_ymd] => 2025-03-09 21:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:35:05' and `end` < '2025-03-09 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-09 21:35:17] Production.INFO: count ==1169 [2025-03-09 21:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:35:05 - End Time 2025-03-09 21:35:05 [2025-03-09 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644961', 'tblTempUsageDetail_20' ) start [2025-03-09 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644961', 'tblTempUsageDetail_20' ) end [2025-03-09 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644961', 'tblTempVendorCDR_20' ) start [2025-03-09 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644961', 'tblTempVendorCDR_20' ) end [2025-03-09 21:35:17] Production.INFO: ProcessCDR(1,14644961,1,1,2) [2025-03-09 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644961', 'tblTempUsageDetail_20' ) start [2025-03-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644961', 'tblTempUsageDetail_20' ) end [2025-03-09 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:35:21] Production.INFO: ==29211== Releasing lock... [2025-03-09 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:35:21] Production.INFO: 37 MB #Memory Used# [2025-03-09 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:36:05 [end_date_ymd] => 2025-03-09 21:36:05 [RateCDR] => 1 ) [2025-03-09 21: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-09 18:36:05' and `end` < '2025-03-09 21: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-09 21:36:17] Production.INFO: count ==1166 [2025-03-09 21:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:36:05 - End Time 2025-03-09 21:36:05 [2025-03-09 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644966', 'tblTempUsageDetail_20' ) start [2025-03-09 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644966', 'tblTempUsageDetail_20' ) end [2025-03-09 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644966', 'tblTempVendorCDR_20' ) start [2025-03-09 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644966', 'tblTempVendorCDR_20' ) end [2025-03-09 21:36:17] Production.INFO: ProcessCDR(1,14644966,1,1,2) [2025-03-09 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644966', 'tblTempUsageDetail_20' ) start [2025-03-09 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644966', 'tblTempUsageDetail_20' ) end [2025-03-09 21:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:36:20] Production.INFO: ==29282== Releasing lock... [2025-03-09 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:36:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:37:06 [end_date_ymd] => 2025-03-09 21:37:06 [RateCDR] => 1 ) [2025-03-09 21: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-09 18:37:06' and `end` < '2025-03-09 21: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-09 21:37:18] Production.INFO: count ==1165 [2025-03-09 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:37:06 - End Time 2025-03-09 21:37:06 [2025-03-09 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644971', 'tblTempUsageDetail_20' ) start [2025-03-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644971', 'tblTempUsageDetail_20' ) end [2025-03-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644971', 'tblTempVendorCDR_20' ) start [2025-03-09 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644971', 'tblTempVendorCDR_20' ) end [2025-03-09 21:37:18] Production.INFO: ProcessCDR(1,14644971,1,1,2) [2025-03-09 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644971', 'tblTempUsageDetail_20' ) start [2025-03-09 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644971', 'tblTempUsageDetail_20' ) end [2025-03-09 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:37:23] Production.INFO: ==29360== Releasing lock... [2025-03-09 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:37:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:38:05 [end_date_ymd] => 2025-03-09 21:38:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:38:05' and `end` < '2025-03-09 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-09 21:38:17] Production.INFO: count ==1163 [2025-03-09 21:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:38:05 - End Time 2025-03-09 21:38:05 [2025-03-09 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644976', 'tblTempUsageDetail_20' ) start [2025-03-09 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644976', 'tblTempUsageDetail_20' ) end [2025-03-09 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644976', 'tblTempVendorCDR_20' ) start [2025-03-09 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644976', 'tblTempVendorCDR_20' ) end [2025-03-09 21:38:18] Production.INFO: ProcessCDR(1,14644976,1,1,2) [2025-03-09 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644976', 'tblTempUsageDetail_20' ) start [2025-03-09 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644976', 'tblTempUsageDetail_20' ) end [2025-03-09 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:38:21] Production.INFO: ==29436== Releasing lock... [2025-03-09 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:38:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:39:06 [end_date_ymd] => 2025-03-09 21:39:06 [RateCDR] => 1 ) [2025-03-09 21: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-09 18:39:06' and `end` < '2025-03-09 21: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-09 21:39:18] Production.INFO: count ==1160 [2025-03-09 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:39:06 - End Time 2025-03-09 21:39:06 [2025-03-09 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644981', 'tblTempUsageDetail_20' ) start [2025-03-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644981', 'tblTempUsageDetail_20' ) end [2025-03-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644981', 'tblTempVendorCDR_20' ) start [2025-03-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644981', 'tblTempVendorCDR_20' ) end [2025-03-09 21:39:18] Production.INFO: ProcessCDR(1,14644981,1,1,2) [2025-03-09 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644981', 'tblTempUsageDetail_20' ) start [2025-03-09 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644981', 'tblTempUsageDetail_20' ) end [2025-03-09 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:39:21] Production.INFO: ==29511== Releasing lock... [2025-03-09 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:39:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:40:05 [end_date_ymd] => 2025-03-09 21:40:05 [RateCDR] => 1 ) [2025-03-09 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:40:05' and `end` < '2025-03-09 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:40:18] Production.INFO: count ==1169 [2025-03-09 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:40:05 - End Time 2025-03-09 21:40:05 [2025-03-09 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644987', 'tblTempUsageDetail_20' ) start [2025-03-09 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644987', 'tblTempUsageDetail_20' ) end [2025-03-09 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644987', 'tblTempVendorCDR_20' ) start [2025-03-09 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644987', 'tblTempVendorCDR_20' ) end [2025-03-09 21:40:18] Production.INFO: ProcessCDR(1,14644987,1,1,2) [2025-03-09 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644987', 'tblTempUsageDetail_20' ) start [2025-03-09 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644987', 'tblTempUsageDetail_20' ) end [2025-03-09 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:40:23] Production.INFO: ==29590== Releasing lock... [2025-03-09 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:40:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:41:05 [end_date_ymd] => 2025-03-09 21:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:41:05' and `end` < '2025-03-09 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-09 21:41:17] Production.INFO: count ==1177 [2025-03-09 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:41:05 - End Time 2025-03-09 21:41:05 [2025-03-09 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644992', 'tblTempUsageDetail_20' ) start [2025-03-09 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644992', 'tblTempUsageDetail_20' ) end [2025-03-09 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644992', 'tblTempVendorCDR_20' ) start [2025-03-09 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644992', 'tblTempVendorCDR_20' ) end [2025-03-09 21:41:17] Production.INFO: ProcessCDR(1,14644992,1,1,2) [2025-03-09 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644992', 'tblTempUsageDetail_20' ) start [2025-03-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644992', 'tblTempUsageDetail_20' ) end [2025-03-09 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:41:22] Production.INFO: ==29666== Releasing lock... [2025-03-09 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:42:05 [end_date_ymd] => 2025-03-09 21:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:42:05' and `end` < '2025-03-09 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-09 21:42:17] Production.INFO: count ==1169 [2025-03-09 21:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:42:05 - End Time 2025-03-09 21:42:05 [2025-03-09 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644997', 'tblTempUsageDetail_20' ) start [2025-03-09 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14644997', 'tblTempUsageDetail_20' ) end [2025-03-09 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644997', 'tblTempVendorCDR_20' ) start [2025-03-09 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14644997', 'tblTempVendorCDR_20' ) end [2025-03-09 21:42:17] Production.INFO: ProcessCDR(1,14644997,1,1,2) [2025-03-09 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14644997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14644997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14644997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14644997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644997', 'tblTempUsageDetail_20' ) start [2025-03-09 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14644997', 'tblTempUsageDetail_20' ) end [2025-03-09 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:42:21] Production.INFO: ==29750== Releasing lock... [2025-03-09 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:42:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:43:05 [end_date_ymd] => 2025-03-09 21:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:43:05' and `end` < '2025-03-09 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-09 21:43:18] Production.INFO: count ==1167 [2025-03-09 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:43:05 - End Time 2025-03-09 21:43:05 [2025-03-09 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645002', 'tblTempUsageDetail_20' ) start [2025-03-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645002', 'tblTempUsageDetail_20' ) end [2025-03-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645002', 'tblTempVendorCDR_20' ) start [2025-03-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645002', 'tblTempVendorCDR_20' ) end [2025-03-09 21:43:18] Production.INFO: ProcessCDR(1,14645002,1,1,2) [2025-03-09 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645002', 'tblTempUsageDetail_20' ) start [2025-03-09 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645002', 'tblTempUsageDetail_20' ) end [2025-03-09 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:43:21] Production.INFO: ==29829== Releasing lock... [2025-03-09 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:43:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:44:05 [end_date_ymd] => 2025-03-09 21:44:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:44:05' and `end` < '2025-03-09 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-09 21:44:17] Production.INFO: count ==1164 [2025-03-09 21:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:44:05 - End Time 2025-03-09 21:44:05 [2025-03-09 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645007', 'tblTempUsageDetail_20' ) start [2025-03-09 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645007', 'tblTempUsageDetail_20' ) end [2025-03-09 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645007', 'tblTempVendorCDR_20' ) start [2025-03-09 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645007', 'tblTempVendorCDR_20' ) end [2025-03-09 21:44:17] Production.INFO: ProcessCDR(1,14645007,1,1,2) [2025-03-09 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645007', 'tblTempUsageDetail_20' ) start [2025-03-09 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645007', 'tblTempUsageDetail_20' ) end [2025-03-09 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:44:21] Production.INFO: ==29908== Releasing lock... [2025-03-09 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:44:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:45:05 [end_date_ymd] => 2025-03-09 21:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:45:05' and `end` < '2025-03-09 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-09 21:45:17] Production.INFO: count ==1166 [2025-03-09 21:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:45:05 - End Time 2025-03-09 21:45:05 [2025-03-09 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645012', 'tblTempUsageDetail_20' ) start [2025-03-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645012', 'tblTempUsageDetail_20' ) end [2025-03-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645012', 'tblTempVendorCDR_20' ) start [2025-03-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645012', 'tblTempVendorCDR_20' ) end [2025-03-09 21:45:17] Production.INFO: ProcessCDR(1,14645012,1,1,2) [2025-03-09 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645012', 'tblTempUsageDetail_20' ) start [2025-03-09 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645012', 'tblTempUsageDetail_20' ) end [2025-03-09 21:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:45:20] Production.INFO: ==29985== Releasing lock... [2025-03-09 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:45:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:46:06 [end_date_ymd] => 2025-03-09 21:46:06 [RateCDR] => 1 ) [2025-03-09 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:46:06' and `end` < '2025-03-09 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:46:18] Production.INFO: count ==1165 [2025-03-09 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:46:06 - End Time 2025-03-09 21:46:06 [2025-03-09 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645017', 'tblTempUsageDetail_20' ) start [2025-03-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645017', 'tblTempUsageDetail_20' ) end [2025-03-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645017', 'tblTempVendorCDR_20' ) start [2025-03-09 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645017', 'tblTempVendorCDR_20' ) end [2025-03-09 21:46:18] Production.INFO: ProcessCDR(1,14645017,1,1,2) [2025-03-09 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645017', 'tblTempUsageDetail_20' ) start [2025-03-09 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645017', 'tblTempUsageDetail_20' ) end [2025-03-09 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:46:21] Production.INFO: ==30067== Releasing lock... [2025-03-09 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:46:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:47:05 [end_date_ymd] => 2025-03-09 21:47:05 [RateCDR] => 1 ) [2025-03-09 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:47:05' and `end` < '2025-03-09 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:47:17] Production.INFO: count ==1162 [2025-03-09 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:47:05 - End Time 2025-03-09 21:47:05 [2025-03-09 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645022', 'tblTempUsageDetail_20' ) start [2025-03-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645022', 'tblTempUsageDetail_20' ) end [2025-03-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645022', 'tblTempVendorCDR_20' ) start [2025-03-09 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645022', 'tblTempVendorCDR_20' ) end [2025-03-09 21:47:18] Production.INFO: ProcessCDR(1,14645022,1,1,2) [2025-03-09 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645022', 'tblTempUsageDetail_20' ) start [2025-03-09 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645022', 'tblTempUsageDetail_20' ) end [2025-03-09 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:47:21] Production.INFO: ==30146== Releasing lock... [2025-03-09 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:48:05 [end_date_ymd] => 2025-03-09 21:48:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:48:05' and `end` < '2025-03-09 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-09 21:48:17] Production.INFO: count ==1159 [2025-03-09 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:48:05 - End Time 2025-03-09 21:48:05 [2025-03-09 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645027', 'tblTempUsageDetail_20' ) start [2025-03-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645027', 'tblTempUsageDetail_20' ) end [2025-03-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645027', 'tblTempVendorCDR_20' ) start [2025-03-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645027', 'tblTempVendorCDR_20' ) end [2025-03-09 21:48:18] Production.INFO: ProcessCDR(1,14645027,1,1,2) [2025-03-09 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645027', 'tblTempUsageDetail_20' ) start [2025-03-09 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645027', 'tblTempUsageDetail_20' ) end [2025-03-09 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:48:21] Production.INFO: ==30265== Releasing lock... [2025-03-09 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:49:05 [end_date_ymd] => 2025-03-09 21:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:49:05' and `end` < '2025-03-09 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-09 21:49:17] Production.INFO: count ==1164 [2025-03-09 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:49:05 - End Time 2025-03-09 21:49:05 [2025-03-09 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645032', 'tblTempUsageDetail_20' ) start [2025-03-09 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645032', 'tblTempUsageDetail_20' ) end [2025-03-09 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645032', 'tblTempVendorCDR_20' ) start [2025-03-09 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645032', 'tblTempVendorCDR_20' ) end [2025-03-09 21:49:17] Production.INFO: ProcessCDR(1,14645032,1,1,2) [2025-03-09 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645032', 'tblTempUsageDetail_20' ) start [2025-03-09 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645032', 'tblTempUsageDetail_20' ) end [2025-03-09 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:49:21] Production.INFO: ==30349== Releasing lock... [2025-03-09 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:49:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:50:06 [end_date_ymd] => 2025-03-09 21:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 18:50:06' and `end` < '2025-03-09 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-09 21:50:18] Production.INFO: count ==1164 [2025-03-09 21:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:50:06 - End Time 2025-03-09 21:50:06 [2025-03-09 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645038', 'tblTempUsageDetail_20' ) start [2025-03-09 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645038', 'tblTempUsageDetail_20' ) end [2025-03-09 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645038', 'tblTempVendorCDR_20' ) start [2025-03-09 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645038', 'tblTempVendorCDR_20' ) end [2025-03-09 21:50:18] Production.INFO: ProcessCDR(1,14645038,1,1,2) [2025-03-09 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645038', 'tblTempUsageDetail_20' ) start [2025-03-09 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645038', 'tblTempUsageDetail_20' ) end [2025-03-09 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:50:21] Production.INFO: ==30433== Releasing lock... [2025-03-09 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:50:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:51:05 [end_date_ymd] => 2025-03-09 21:51:05 [RateCDR] => 1 ) [2025-03-09 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:51:05' and `end` < '2025-03-09 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:51:17] Production.INFO: count ==1151 [2025-03-09 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:51:05 - End Time 2025-03-09 21:51:05 [2025-03-09 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645043', 'tblTempUsageDetail_20' ) start [2025-03-09 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645043', 'tblTempUsageDetail_20' ) end [2025-03-09 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645043', 'tblTempVendorCDR_20' ) start [2025-03-09 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645043', 'tblTempVendorCDR_20' ) end [2025-03-09 21:51:17] Production.INFO: ProcessCDR(1,14645043,1,1,2) [2025-03-09 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645043', 'tblTempUsageDetail_20' ) start [2025-03-09 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645043', 'tblTempUsageDetail_20' ) end [2025-03-09 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:51:21] Production.INFO: ==30514== Releasing lock... [2025-03-09 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:52:06 [end_date_ymd] => 2025-03-09 21:52:06 [RateCDR] => 1 ) [2025-03-09 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:52:06' and `end` < '2025-03-09 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:52:18] Production.INFO: count ==1150 [2025-03-09 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:52:06 - End Time 2025-03-09 21:52:06 [2025-03-09 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645048', 'tblTempUsageDetail_20' ) start [2025-03-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645048', 'tblTempUsageDetail_20' ) end [2025-03-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645048', 'tblTempVendorCDR_20' ) start [2025-03-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645048', 'tblTempVendorCDR_20' ) end [2025-03-09 21:52:18] Production.INFO: ProcessCDR(1,14645048,1,1,2) [2025-03-09 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645048', 'tblTempUsageDetail_20' ) start [2025-03-09 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645048', 'tblTempUsageDetail_20' ) end [2025-03-09 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:52:21] Production.INFO: ==30598== Releasing lock... [2025-03-09 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:53:05 [end_date_ymd] => 2025-03-09 21:53:05 [RateCDR] => 1 ) [2025-03-09 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:53:05' and `end` < '2025-03-09 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:53:17] Production.INFO: count ==1149 [2025-03-09 21:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:53:05 - End Time 2025-03-09 21:53:05 [2025-03-09 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645053', 'tblTempUsageDetail_20' ) start [2025-03-09 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645053', 'tblTempUsageDetail_20' ) end [2025-03-09 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645053', 'tblTempVendorCDR_20' ) start [2025-03-09 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645053', 'tblTempVendorCDR_20' ) end [2025-03-09 21:53:17] Production.INFO: ProcessCDR(1,14645053,1,1,2) [2025-03-09 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645053', 'tblTempUsageDetail_20' ) start [2025-03-09 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645053', 'tblTempUsageDetail_20' ) end [2025-03-09 21:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:53:20] Production.INFO: ==30678== Releasing lock... [2025-03-09 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:53:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:54:05 [end_date_ymd] => 2025-03-09 21:54:05 [RateCDR] => 1 ) [2025-03-09 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:54:05' and `end` < '2025-03-09 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:54:17] Production.INFO: count ==1145 [2025-03-09 21:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:54:05 - End Time 2025-03-09 21:54:05 [2025-03-09 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645058', 'tblTempUsageDetail_20' ) start [2025-03-09 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645058', 'tblTempUsageDetail_20' ) end [2025-03-09 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645058', 'tblTempVendorCDR_20' ) start [2025-03-09 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645058', 'tblTempVendorCDR_20' ) end [2025-03-09 21:54:18] Production.INFO: ProcessCDR(1,14645058,1,1,2) [2025-03-09 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645058', 'tblTempUsageDetail_20' ) start [2025-03-09 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645058', 'tblTempUsageDetail_20' ) end [2025-03-09 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:54:21] Production.INFO: ==30769== Releasing lock... [2025-03-09 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:54:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-09 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:55:05 [end_date_ymd] => 2025-03-09 21:55:05 [RateCDR] => 1 ) [2025-03-09 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:55:05' and `end` < '2025-03-09 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:55:18] Production.INFO: count ==1137 [2025-03-09 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:55:05 - End Time 2025-03-09 21:55:05 [2025-03-09 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645063', 'tblTempUsageDetail_20' ) start [2025-03-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645063', 'tblTempUsageDetail_20' ) end [2025-03-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645063', 'tblTempVendorCDR_20' ) start [2025-03-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645063', 'tblTempVendorCDR_20' ) end [2025-03-09 21:55:18] Production.INFO: ProcessCDR(1,14645063,1,1,2) [2025-03-09 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645063', 'tblTempUsageDetail_20' ) start [2025-03-09 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645063', 'tblTempUsageDetail_20' ) end [2025-03-09 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:55:21] Production.INFO: ==30884== Releasing lock... [2025-03-09 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:56:05 [end_date_ymd] => 2025-03-09 21:56:05 [RateCDR] => 1 ) [2025-03-09 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:56:05' and `end` < '2025-03-09 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:56:17] Production.INFO: count ==1139 [2025-03-09 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:56:05 - End Time 2025-03-09 21:56:05 [2025-03-09 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645068', 'tblTempUsageDetail_20' ) start [2025-03-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645068', 'tblTempUsageDetail_20' ) end [2025-03-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645068', 'tblTempVendorCDR_20' ) start [2025-03-09 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645068', 'tblTempVendorCDR_20' ) end [2025-03-09 21:56:18] Production.INFO: ProcessCDR(1,14645068,1,1,2) [2025-03-09 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645068', 'tblTempUsageDetail_20' ) start [2025-03-09 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645068', 'tblTempUsageDetail_20' ) end [2025-03-09 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:56:23] Production.INFO: ==31003== Releasing lock... [2025-03-09 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:56:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:57:05 [end_date_ymd] => 2025-03-09 21:57:05 [RateCDR] => 1 ) [2025-03-09 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 18:57:05' and `end` < '2025-03-09 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 21:57:17] Production.INFO: count ==1138 [2025-03-09 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:57:05 - End Time 2025-03-09 21:57:05 [2025-03-09 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645073', 'tblTempUsageDetail_20' ) start [2025-03-09 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645073', 'tblTempUsageDetail_20' ) end [2025-03-09 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645073', 'tblTempVendorCDR_20' ) start [2025-03-09 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645073', 'tblTempVendorCDR_20' ) end [2025-03-09 21:57:17] Production.INFO: ProcessCDR(1,14645073,1,1,2) [2025-03-09 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645073', 'tblTempUsageDetail_20' ) start [2025-03-09 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645073', 'tblTempUsageDetail_20' ) end [2025-03-09 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:57:21] Production.INFO: ==31097== Releasing lock... [2025-03-09 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:57:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:58:05 [end_date_ymd] => 2025-03-09 21:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:58:05' and `end` < '2025-03-09 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-09 21:58:18] Production.INFO: count ==1141 [2025-03-09 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-09 18:58:05 - End Time 2025-03-09 21:58:05 [2025-03-09 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645078', 'tblTempUsageDetail_20' ) start [2025-03-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645078', 'tblTempUsageDetail_20' ) end [2025-03-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645078', 'tblTempVendorCDR_20' ) start [2025-03-09 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645078', 'tblTempVendorCDR_20' ) end [2025-03-09 21:58:18] Production.INFO: ProcessCDR(1,14645078,1,1,2) [2025-03-09 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645078', 'tblTempUsageDetail_20' ) start [2025-03-09 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645078', 'tblTempUsageDetail_20' ) end [2025-03-09 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:58:21] Production.INFO: ==31177== Releasing lock... [2025-03-09 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:58:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 18:59:05 [end_date_ymd] => 2025-03-09 21:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 18:59:05' and `end` < '2025-03-09 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-09 21:59:17] Production.INFO: count ==1138 [2025-03-09 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 18:59:05 - End Time 2025-03-09 21:59:05 [2025-03-09 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645083', 'tblTempUsageDetail_20' ) start [2025-03-09 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645083', 'tblTempUsageDetail_20' ) end [2025-03-09 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645083', 'tblTempVendorCDR_20' ) start [2025-03-09 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645083', 'tblTempVendorCDR_20' ) end [2025-03-09 21:59:17] Production.INFO: ProcessCDR(1,14645083,1,1,2) [2025-03-09 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645083', 'tblTempUsageDetail_20' ) start [2025-03-09 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645083', 'tblTempUsageDetail_20' ) end [2025-03-09 21:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 21:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 21:59:20] Production.INFO: ==31256== Releasing lock... [2025-03-09 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 21:59:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:00:06 [end_date_ymd] => 2025-03-09 22:00:06 [RateCDR] => 1 ) [2025-03-09 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-09 19:00:06' and `end` < '2025-03-09 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-09 22:00:18] Production.INFO: count ==1135 [2025-03-09 22:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:00:06 - End Time 2025-03-09 22:00:06 [2025-03-09 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645088', 'tblTempUsageDetail_20' ) start [2025-03-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645088', 'tblTempUsageDetail_20' ) end [2025-03-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645088', 'tblTempVendorCDR_20' ) start [2025-03-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645088', 'tblTempVendorCDR_20' ) end [2025-03-09 22:00:18] Production.INFO: ProcessCDR(1,14645088,1,1,2) [2025-03-09 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645088', 'tblTempUsageDetail_20' ) start [2025-03-09 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645088', 'tblTempUsageDetail_20' ) end [2025-03-09 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:00:22] Production.INFO: ==31338== Releasing lock... [2025-03-09 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:00:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-09 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:01:05 [end_date_ymd] => 2025-03-09 22:01:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:01:05' and `end` < '2025-03-09 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-09 22:01:17] Production.INFO: count ==1105 [2025-03-09 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:01:05 - End Time 2025-03-09 22:01:05 [2025-03-09 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645094', 'tblTempUsageDetail_20' ) start [2025-03-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645094', 'tblTempUsageDetail_20' ) end [2025-03-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645094', 'tblTempVendorCDR_20' ) start [2025-03-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645094', 'tblTempVendorCDR_20' ) end [2025-03-09 22:01:18] Production.INFO: ProcessCDR(1,14645094,1,1,2) [2025-03-09 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645094', 'tblTempUsageDetail_20' ) start [2025-03-09 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645094', 'tblTempUsageDetail_20' ) end [2025-03-09 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:01:21] Production.INFO: ==31436== Releasing lock... [2025-03-09 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:01:21] Production.INFO: 36 MB #Memory Used# [2025-03-09 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:02:05 [end_date_ymd] => 2025-03-09 22:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:02:05' and `end` < '2025-03-09 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-09 22:02:17] Production.INFO: count ==1102 [2025-03-09 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:02:05 - End Time 2025-03-09 22:02:05 [2025-03-09 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645099', 'tblTempUsageDetail_20' ) start [2025-03-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645099', 'tblTempUsageDetail_20' ) end [2025-03-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645099', 'tblTempVendorCDR_20' ) start [2025-03-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645099', 'tblTempVendorCDR_20' ) end [2025-03-09 22:02:18] Production.INFO: ProcessCDR(1,14645099,1,1,2) [2025-03-09 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645099', 'tblTempUsageDetail_20' ) start [2025-03-09 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645099', 'tblTempUsageDetail_20' ) end [2025-03-09 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:02:21] Production.INFO: ==31516== Releasing lock... [2025-03-09 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:02:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:03:05 [end_date_ymd] => 2025-03-09 22:03:05 [RateCDR] => 1 ) [2025-03-09 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:03:05' and `end` < '2025-03-09 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:03:18] Production.INFO: count ==1105 [2025-03-09 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:03:05 - End Time 2025-03-09 22:03:05 [2025-03-09 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645104', 'tblTempUsageDetail_20' ) start [2025-03-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645104', 'tblTempUsageDetail_20' ) end [2025-03-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645104', 'tblTempVendorCDR_20' ) start [2025-03-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645104', 'tblTempVendorCDR_20' ) end [2025-03-09 22:03:18] Production.INFO: ProcessCDR(1,14645104,1,1,2) [2025-03-09 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645104', 'tblTempUsageDetail_20' ) start [2025-03-09 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645104', 'tblTempUsageDetail_20' ) end [2025-03-09 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:03:23] Production.INFO: ==31615== Releasing lock... [2025-03-09 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:03:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:04:05 [end_date_ymd] => 2025-03-09 22:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:04:05' and `end` < '2025-03-09 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-09 22:04:17] Production.INFO: count ==1106 [2025-03-09 22:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:04:05 - End Time 2025-03-09 22:04:05 [2025-03-09 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645109', 'tblTempUsageDetail_20' ) start [2025-03-09 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645109', 'tblTempUsageDetail_20' ) end [2025-03-09 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645109', 'tblTempVendorCDR_20' ) start [2025-03-09 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645109', 'tblTempVendorCDR_20' ) end [2025-03-09 22:04:17] Production.INFO: ProcessCDR(1,14645109,1,1,2) [2025-03-09 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645109', 'tblTempUsageDetail_20' ) start [2025-03-09 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645109', 'tblTempUsageDetail_20' ) end [2025-03-09 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:04:22] Production.INFO: ==31719== Releasing lock... [2025-03-09 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:04:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:05:05 [end_date_ymd] => 2025-03-09 22:05:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:05:05' and `end` < '2025-03-09 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-09 22:05:18] Production.INFO: count ==1105 [2025-03-09 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:05:05 - End Time 2025-03-09 22:05:05 [2025-03-09 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645114', 'tblTempUsageDetail_20' ) start [2025-03-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645114', 'tblTempUsageDetail_20' ) end [2025-03-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645114', 'tblTempVendorCDR_20' ) start [2025-03-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645114', 'tblTempVendorCDR_20' ) end [2025-03-09 22:05:18] Production.INFO: ProcessCDR(1,14645114,1,1,2) [2025-03-09 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645114', 'tblTempUsageDetail_20' ) start [2025-03-09 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645114', 'tblTempUsageDetail_20' ) end [2025-03-09 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:05:21] Production.INFO: ==31800== Releasing lock... [2025-03-09 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:06:05 [end_date_ymd] => 2025-03-09 22:06:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:06:05' and `end` < '2025-03-09 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-09 22:06:17] Production.INFO: count ==1105 [2025-03-09 22:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:06:05 - End Time 2025-03-09 22:06:05 [2025-03-09 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645119', 'tblTempUsageDetail_20' ) start [2025-03-09 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645119', 'tblTempUsageDetail_20' ) end [2025-03-09 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645119', 'tblTempVendorCDR_20' ) start [2025-03-09 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645119', 'tblTempVendorCDR_20' ) end [2025-03-09 22:06:17] Production.INFO: ProcessCDR(1,14645119,1,1,2) [2025-03-09 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645119', 'tblTempUsageDetail_20' ) start [2025-03-09 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645119', 'tblTempUsageDetail_20' ) end [2025-03-09 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:06:22] Production.INFO: ==31876== Releasing lock... [2025-03-09 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:07:06 [end_date_ymd] => 2025-03-09 22:07:06 [RateCDR] => 1 ) [2025-03-09 22:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:07:06' and `end` < '2025-03-09 22:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:07:18] Production.INFO: count ==1108 [2025-03-09 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:07:06 - End Time 2025-03-09 22:07:06 [2025-03-09 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645124', 'tblTempUsageDetail_20' ) start [2025-03-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645124', 'tblTempUsageDetail_20' ) end [2025-03-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645124', 'tblTempVendorCDR_20' ) start [2025-03-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645124', 'tblTempVendorCDR_20' ) end [2025-03-09 22:07:18] Production.INFO: ProcessCDR(1,14645124,1,1,2) [2025-03-09 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645124', 'tblTempUsageDetail_20' ) start [2025-03-09 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645124', 'tblTempUsageDetail_20' ) end [2025-03-09 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:07:21] Production.INFO: ==31960== Releasing lock... [2025-03-09 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:07:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:08:05 [end_date_ymd] => 2025-03-09 22:08:05 [RateCDR] => 1 ) [2025-03-09 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:08:05' and `end` < '2025-03-09 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:08:17] Production.INFO: count ==1111 [2025-03-09 22:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:08:05 - End Time 2025-03-09 22:08:05 [2025-03-09 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645129', 'tblTempUsageDetail_20' ) start [2025-03-09 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645129', 'tblTempUsageDetail_20' ) end [2025-03-09 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645129', 'tblTempVendorCDR_20' ) start [2025-03-09 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645129', 'tblTempVendorCDR_20' ) end [2025-03-09 22:08:17] Production.INFO: ProcessCDR(1,14645129,1,1,2) [2025-03-09 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645129', 'tblTempUsageDetail_20' ) start [2025-03-09 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645129', 'tblTempUsageDetail_20' ) end [2025-03-09 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:08:21] Production.INFO: ==32038== Releasing lock... [2025-03-09 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:08:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:09:05 [end_date_ymd] => 2025-03-09 22:09:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:09:05' and `end` < '2025-03-09 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-09 22:09:17] Production.INFO: count ==1109 [2025-03-09 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:09:05 - End Time 2025-03-09 22:09:05 [2025-03-09 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645134', 'tblTempUsageDetail_20' ) start [2025-03-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645134', 'tblTempUsageDetail_20' ) end [2025-03-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645134', 'tblTempVendorCDR_20' ) start [2025-03-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645134', 'tblTempVendorCDR_20' ) end [2025-03-09 22:09:17] Production.INFO: ProcessCDR(1,14645134,1,1,2) [2025-03-09 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645134', 'tblTempUsageDetail_20' ) start [2025-03-09 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645134', 'tblTempUsageDetail_20' ) end [2025-03-09 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:09:21] Production.INFO: ==32124== Releasing lock... [2025-03-09 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:09:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-09 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:10:06 [end_date_ymd] => 2025-03-09 22:10:06 [RateCDR] => 1 ) [2025-03-09 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:10:06' and `end` < '2025-03-09 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:10:18] Production.INFO: count ==1095 [2025-03-09 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:10:06 - End Time 2025-03-09 22:10:06 [2025-03-09 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645140', 'tblTempUsageDetail_20' ) start [2025-03-09 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645140', 'tblTempUsageDetail_20' ) end [2025-03-09 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645140', 'tblTempVendorCDR_20' ) start [2025-03-09 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645140', 'tblTempVendorCDR_20' ) end [2025-03-09 22:10:18] Production.INFO: ProcessCDR(1,14645140,1,1,2) [2025-03-09 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645140', 'tblTempUsageDetail_20' ) start [2025-03-09 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645140', 'tblTempUsageDetail_20' ) end [2025-03-09 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:10:22] Production.INFO: ==32206== Releasing lock... [2025-03-09 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:10:22] Production.INFO: 36 MB #Memory Used# [2025-03-09 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:11:05 [end_date_ymd] => 2025-03-09 22:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:11:05' and `end` < '2025-03-09 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-09 22:11:17] Production.INFO: count ==1044 [2025-03-09 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:11:05 - End Time 2025-03-09 22:11:05 [2025-03-09 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645145', 'tblTempUsageDetail_20' ) start [2025-03-09 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645145', 'tblTempUsageDetail_20' ) end [2025-03-09 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645145', 'tblTempVendorCDR_20' ) start [2025-03-09 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645145', 'tblTempVendorCDR_20' ) end [2025-03-09 22:11:17] Production.INFO: ProcessCDR(1,14645145,1,1,2) [2025-03-09 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645145', 'tblTempUsageDetail_20' ) start [2025-03-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645145', 'tblTempUsageDetail_20' ) end [2025-03-09 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:11:22] Production.INFO: ==32285== Releasing lock... [2025-03-09 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:12:05 [end_date_ymd] => 2025-03-09 22:12:05 [RateCDR] => 1 ) [2025-03-09 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:12:05' and `end` < '2025-03-09 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:12:17] Production.INFO: count ==1038 [2025-03-09 22:12:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:12:05 - End Time 2025-03-09 22:12:05 [2025-03-09 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645150', 'tblTempUsageDetail_20' ) start [2025-03-09 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645150', 'tblTempUsageDetail_20' ) end [2025-03-09 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645150', 'tblTempVendorCDR_20' ) start [2025-03-09 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645150', 'tblTempVendorCDR_20' ) end [2025-03-09 22:12:17] Production.INFO: ProcessCDR(1,14645150,1,1,2) [2025-03-09 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645150', 'tblTempUsageDetail_20' ) start [2025-03-09 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645150', 'tblTempUsageDetail_20' ) end [2025-03-09 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:12:21] Production.INFO: ==32362== Releasing lock... [2025-03-09 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:12:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:13:05 [end_date_ymd] => 2025-03-09 22:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:13:05' and `end` < '2025-03-09 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-09 22:13:17] Production.INFO: count ==1024 [2025-03-09 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:13:05 - End Time 2025-03-09 22:13:05 [2025-03-09 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645155', 'tblTempUsageDetail_20' ) start [2025-03-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645155', 'tblTempUsageDetail_20' ) end [2025-03-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645155', 'tblTempVendorCDR_20' ) start [2025-03-09 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645155', 'tblTempVendorCDR_20' ) end [2025-03-09 22:13:18] Production.INFO: ProcessCDR(1,14645155,1,1,2) [2025-03-09 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645155', 'tblTempUsageDetail_20' ) start [2025-03-09 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645155', 'tblTempUsageDetail_20' ) end [2025-03-09 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:13:23] Production.INFO: ==32444== Releasing lock... [2025-03-09 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:13:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:14:05 [end_date_ymd] => 2025-03-09 22:14:05 [RateCDR] => 1 ) [2025-03-09 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:14:05' and `end` < '2025-03-09 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:14:17] Production.INFO: count ==1021 [2025-03-09 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:14:05 - End Time 2025-03-09 22:14:05 [2025-03-09 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645160', 'tblTempUsageDetail_20' ) start [2025-03-09 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645160', 'tblTempUsageDetail_20' ) end [2025-03-09 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645160', 'tblTempVendorCDR_20' ) start [2025-03-09 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645160', 'tblTempVendorCDR_20' ) end [2025-03-09 22:14:17] Production.INFO: ProcessCDR(1,14645160,1,1,2) [2025-03-09 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645160', 'tblTempUsageDetail_20' ) start [2025-03-09 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645160', 'tblTempUsageDetail_20' ) end [2025-03-09 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:14:21] Production.INFO: ==32527== Releasing lock... [2025-03-09 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:14:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:15:05 [end_date_ymd] => 2025-03-09 22:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:15:05' and `end` < '2025-03-09 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-09 22:15:17] Production.INFO: count ==1016 [2025-03-09 22:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:15:05 - End Time 2025-03-09 22:15:05 [2025-03-09 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645165', 'tblTempUsageDetail_20' ) start [2025-03-09 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645165', 'tblTempUsageDetail_20' ) end [2025-03-09 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645165', 'tblTempVendorCDR_20' ) start [2025-03-09 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645165', 'tblTempVendorCDR_20' ) end [2025-03-09 22:15:17] Production.INFO: ProcessCDR(1,14645165,1,1,2) [2025-03-09 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645165', 'tblTempUsageDetail_20' ) start [2025-03-09 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645165', 'tblTempUsageDetail_20' ) end [2025-03-09 22:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:15:20] Production.INFO: ==32614== Releasing lock... [2025-03-09 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:15:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:16:05 [end_date_ymd] => 2025-03-09 22:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:16:05' and `end` < '2025-03-09 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-09 22:16:17] Production.INFO: count ==1016 [2025-03-09 22:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:16:05 - End Time 2025-03-09 22:16:05 [2025-03-09 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645170', 'tblTempUsageDetail_20' ) start [2025-03-09 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645170', 'tblTempUsageDetail_20' ) end [2025-03-09 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645170', 'tblTempVendorCDR_20' ) start [2025-03-09 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645170', 'tblTempVendorCDR_20' ) end [2025-03-09 22:16:17] Production.INFO: ProcessCDR(1,14645170,1,1,2) [2025-03-09 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645170', 'tblTempUsageDetail_20' ) start [2025-03-09 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645170', 'tblTempUsageDetail_20' ) end [2025-03-09 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:16:21] Production.INFO: ==32694== Releasing lock... [2025-03-09 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:16:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-09 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:17:05 [end_date_ymd] => 2025-03-09 22:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:17:05' and `end` < '2025-03-09 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-09 22:17:17] Production.INFO: count ==1015 [2025-03-09 22:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:17:05 - End Time 2025-03-09 22:17:05 [2025-03-09 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645175', 'tblTempUsageDetail_20' ) start [2025-03-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645175', 'tblTempUsageDetail_20' ) end [2025-03-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645175', 'tblTempVendorCDR_20' ) start [2025-03-09 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645175', 'tblTempVendorCDR_20' ) end [2025-03-09 22:17:17] Production.INFO: ProcessCDR(1,14645175,1,1,2) [2025-03-09 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645175', 'tblTempUsageDetail_20' ) start [2025-03-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645175', 'tblTempUsageDetail_20' ) end [2025-03-09 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:17:21] Production.INFO: ==331== Releasing lock... [2025-03-09 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:17:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:18:05 [end_date_ymd] => 2025-03-09 22:18:05 [RateCDR] => 1 ) [2025-03-09 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:18:05' and `end` < '2025-03-09 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:18:17] Production.INFO: count ==1015 [2025-03-09 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:18:05 - End Time 2025-03-09 22:18:05 [2025-03-09 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645180', 'tblTempUsageDetail_20' ) start [2025-03-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645180', 'tblTempUsageDetail_20' ) end [2025-03-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645180', 'tblTempVendorCDR_20' ) start [2025-03-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645180', 'tblTempVendorCDR_20' ) end [2025-03-09 22:18:18] Production.INFO: ProcessCDR(1,14645180,1,1,2) [2025-03-09 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645180', 'tblTempUsageDetail_20' ) start [2025-03-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645180', 'tblTempUsageDetail_20' ) end [2025-03-09 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:18:21] Production.INFO: ==421== Releasing lock... [2025-03-09 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:18:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:19:05 [end_date_ymd] => 2025-03-09 22:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:19:05' and `end` < '2025-03-09 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-09 22:19:17] Production.INFO: count ==1011 [2025-03-09 22:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:19:05 - End Time 2025-03-09 22:19:05 [2025-03-09 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645185', 'tblTempUsageDetail_20' ) start [2025-03-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645185', 'tblTempUsageDetail_20' ) end [2025-03-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645185', 'tblTempVendorCDR_20' ) start [2025-03-09 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645185', 'tblTempVendorCDR_20' ) end [2025-03-09 22:19:17] Production.INFO: ProcessCDR(1,14645185,1,1,2) [2025-03-09 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645185', 'tblTempUsageDetail_20' ) start [2025-03-09 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645185', 'tblTempUsageDetail_20' ) end [2025-03-09 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:19:20] Production.INFO: ==538== Releasing lock... [2025-03-09 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:19:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-09 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:20:06 [end_date_ymd] => 2025-03-09 22:20:06 [RateCDR] => 1 ) [2025-03-09 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:20:06' and `end` < '2025-03-09 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:20:18] Production.INFO: count ==996 [2025-03-09 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-09 19:20:06 - End Time 2025-03-09 22:20:06 [2025-03-09 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645191', 'tblTempUsageDetail_20' ) start [2025-03-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645191', 'tblTempUsageDetail_20' ) end [2025-03-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645191', 'tblTempVendorCDR_20' ) start [2025-03-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645191', 'tblTempVendorCDR_20' ) end [2025-03-09 22:20:19] Production.INFO: ProcessCDR(1,14645191,1,1,2) [2025-03-09 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645191', 'tblTempUsageDetail_20' ) start [2025-03-09 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645191', 'tblTempUsageDetail_20' ) end [2025-03-09 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:20:22] Production.INFO: ==625== Releasing lock... [2025-03-09 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:21:05 [end_date_ymd] => 2025-03-09 22:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:21:05' and `end` < '2025-03-09 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-09 22:21:17] Production.INFO: count ==961 [2025-03-09 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:21:05 - End Time 2025-03-09 22:21:05 [2025-03-09 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645196', 'tblTempUsageDetail_20' ) start [2025-03-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645196', 'tblTempUsageDetail_20' ) end [2025-03-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645196', 'tblTempVendorCDR_20' ) start [2025-03-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645196', 'tblTempVendorCDR_20' ) end [2025-03-09 22:21:17] Production.INFO: ProcessCDR(1,14645196,1,1,2) [2025-03-09 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645196', 'tblTempUsageDetail_20' ) start [2025-03-09 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645196', 'tblTempUsageDetail_20' ) end [2025-03-09 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:21:22] Production.INFO: ==728== Releasing lock... [2025-03-09 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:22:06 [end_date_ymd] => 2025-03-09 22:22:06 [RateCDR] => 1 ) [2025-03-09 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-09 19:22:06' and `end` < '2025-03-09 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-09 22:22:18] Production.INFO: count ==954 [2025-03-09 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:22:06 - End Time 2025-03-09 22:22:06 [2025-03-09 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645201', 'tblTempUsageDetail_20' ) start [2025-03-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645201', 'tblTempUsageDetail_20' ) end [2025-03-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645201', 'tblTempVendorCDR_20' ) start [2025-03-09 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645201', 'tblTempVendorCDR_20' ) end [2025-03-09 22:22:18] Production.INFO: ProcessCDR(1,14645201,1,1,2) [2025-03-09 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645201', 'tblTempUsageDetail_20' ) start [2025-03-09 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645201', 'tblTempUsageDetail_20' ) end [2025-03-09 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:22:22] Production.INFO: ==804== Releasing lock... [2025-03-09 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:22:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:23:05 [end_date_ymd] => 2025-03-09 22:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:23:05' and `end` < '2025-03-09 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-09 22:23:17] Production.INFO: count ==951 [2025-03-09 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:23:05 - End Time 2025-03-09 22:23:05 [2025-03-09 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645206', 'tblTempUsageDetail_20' ) start [2025-03-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645206', 'tblTempUsageDetail_20' ) end [2025-03-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645206', 'tblTempVendorCDR_20' ) start [2025-03-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645206', 'tblTempVendorCDR_20' ) end [2025-03-09 22:23:17] Production.INFO: ProcessCDR(1,14645206,1,1,2) [2025-03-09 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645206', 'tblTempUsageDetail_20' ) start [2025-03-09 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645206', 'tblTempUsageDetail_20' ) end [2025-03-09 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:23:20] Production.INFO: ==878== Releasing lock... [2025-03-09 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:23:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:24:05 [end_date_ymd] => 2025-03-09 22:24:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:24:05' and `end` < '2025-03-09 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-09 22:24:17] Production.INFO: count ==952 [2025-03-09 22:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:24:05 - End Time 2025-03-09 22:24:05 [2025-03-09 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645211', 'tblTempUsageDetail_20' ) start [2025-03-09 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645211', 'tblTempUsageDetail_20' ) end [2025-03-09 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645211', 'tblTempVendorCDR_20' ) start [2025-03-09 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645211', 'tblTempVendorCDR_20' ) end [2025-03-09 22:24:17] Production.INFO: ProcessCDR(1,14645211,1,1,2) [2025-03-09 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645211', 'tblTempUsageDetail_20' ) start [2025-03-09 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645211', 'tblTempUsageDetail_20' ) end [2025-03-09 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:24:22] Production.INFO: ==950== Releasing lock... [2025-03-09 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:24:22] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:25:05 [end_date_ymd] => 2025-03-09 22:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:25:05' and `end` < '2025-03-09 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-09 22:25:17] Production.INFO: count ==953 [2025-03-09 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:25:05 - End Time 2025-03-09 22:25:05 [2025-03-09 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645216', 'tblTempUsageDetail_20' ) start [2025-03-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645216', 'tblTempUsageDetail_20' ) end [2025-03-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645216', 'tblTempVendorCDR_20' ) start [2025-03-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645216', 'tblTempVendorCDR_20' ) end [2025-03-09 22:25:17] Production.INFO: ProcessCDR(1,14645216,1,1,2) [2025-03-09 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645216', 'tblTempUsageDetail_20' ) start [2025-03-09 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645216', 'tblTempUsageDetail_20' ) end [2025-03-09 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:25:22] Production.INFO: ==1021== Releasing lock... [2025-03-09 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-09 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:26:05 [end_date_ymd] => 2025-03-09 22:26:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:26:05' and `end` < '2025-03-09 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-09 22:26:17] Production.INFO: count ==955 [2025-03-09 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:26:05 - End Time 2025-03-09 22:26:05 [2025-03-09 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645221', 'tblTempUsageDetail_20' ) start [2025-03-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645221', 'tblTempUsageDetail_20' ) end [2025-03-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645221', 'tblTempVendorCDR_20' ) start [2025-03-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645221', 'tblTempVendorCDR_20' ) end [2025-03-09 22:26:18] Production.INFO: ProcessCDR(1,14645221,1,1,2) [2025-03-09 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645221', 'tblTempUsageDetail_20' ) start [2025-03-09 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645221', 'tblTempUsageDetail_20' ) end [2025-03-09 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:26:21] Production.INFO: ==1095== Releasing lock... [2025-03-09 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:26:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:27:05 [end_date_ymd] => 2025-03-09 22:27:05 [RateCDR] => 1 ) [2025-03-09 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:27:05' and `end` < '2025-03-09 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:27:17] Production.INFO: count ==946 [2025-03-09 22:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:27:05 - End Time 2025-03-09 22:27:05 [2025-03-09 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645226', 'tblTempUsageDetail_20' ) start [2025-03-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645226', 'tblTempUsageDetail_20' ) end [2025-03-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645226', 'tblTempVendorCDR_20' ) start [2025-03-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645226', 'tblTempVendorCDR_20' ) end [2025-03-09 22:27:18] Production.INFO: ProcessCDR(1,14645226,1,1,2) [2025-03-09 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645226', 'tblTempUsageDetail_20' ) start [2025-03-09 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645226', 'tblTempUsageDetail_20' ) end [2025-03-09 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:27:21] Production.INFO: ==1172== Releasing lock... [2025-03-09 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:27:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:28:06 [end_date_ymd] => 2025-03-09 22:28:06 [RateCDR] => 1 ) [2025-03-09 22: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-09 19:28:06' and `end` < '2025-03-09 22: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-09 22:28:18] Production.INFO: count ==942 [2025-03-09 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:28:06 - End Time 2025-03-09 22:28:06 [2025-03-09 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645231', 'tblTempUsageDetail_20' ) start [2025-03-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645231', 'tblTempUsageDetail_20' ) end [2025-03-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645231', 'tblTempVendorCDR_20' ) start [2025-03-09 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645231', 'tblTempVendorCDR_20' ) end [2025-03-09 22:28:18] Production.INFO: ProcessCDR(1,14645231,1,1,2) [2025-03-09 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645231', 'tblTempUsageDetail_20' ) start [2025-03-09 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645231', 'tblTempUsageDetail_20' ) end [2025-03-09 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:28:21] Production.INFO: ==1263== Releasing lock... [2025-03-09 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-09 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:29:05 [end_date_ymd] => 2025-03-09 22:29:05 [RateCDR] => 1 ) [2025-03-09 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:29:05' and `end` < '2025-03-09 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:29:17] Production.INFO: count ==941 [2025-03-09 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:29:05 - End Time 2025-03-09 22:29:05 [2025-03-09 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645236', 'tblTempUsageDetail_20' ) start [2025-03-09 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645236', 'tblTempUsageDetail_20' ) end [2025-03-09 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645236', 'tblTempVendorCDR_20' ) start [2025-03-09 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645236', 'tblTempVendorCDR_20' ) end [2025-03-09 22:29:17] Production.INFO: ProcessCDR(1,14645236,1,1,2) [2025-03-09 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645236', 'tblTempUsageDetail_20' ) start [2025-03-09 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645236', 'tblTempUsageDetail_20' ) end [2025-03-09 22:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:29:20] Production.INFO: ==1336== Releasing lock... [2025-03-09 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:29:20] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:30:06 [end_date_ymd] => 2025-03-09 22:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 19:30:06' and `end` < '2025-03-09 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-09 22:30:18] Production.INFO: count ==940 [2025-03-09 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:30:06 - End Time 2025-03-09 22:30:06 [2025-03-09 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645242', 'tblTempUsageDetail_20' ) start [2025-03-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645242', 'tblTempUsageDetail_20' ) end [2025-03-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645242', 'tblTempVendorCDR_20' ) start [2025-03-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645242', 'tblTempVendorCDR_20' ) end [2025-03-09 22:30:18] Production.INFO: ProcessCDR(1,14645242,1,1,2) [2025-03-09 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645242', 'tblTempUsageDetail_20' ) start [2025-03-09 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645242', 'tblTempUsageDetail_20' ) end [2025-03-09 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:30:21] Production.INFO: ==1411== Releasing lock... [2025-03-09 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:30:21] Production.INFO: 35 MB #Memory Used# [2025-03-09 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:31:05 [end_date_ymd] => 2025-03-09 22:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:31:05' and `end` < '2025-03-09 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-09 22:31:17] Production.INFO: count ==912 [2025-03-09 22:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:31:05 - End Time 2025-03-09 22:31:05 [2025-03-09 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645247', 'tblTempUsageDetail_20' ) start [2025-03-09 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645247', 'tblTempUsageDetail_20' ) end [2025-03-09 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645247', 'tblTempVendorCDR_20' ) start [2025-03-09 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645247', 'tblTempVendorCDR_20' ) end [2025-03-09 22:31:17] Production.INFO: ProcessCDR(1,14645247,1,1,2) [2025-03-09 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645247', 'tblTempUsageDetail_20' ) start [2025-03-09 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645247', 'tblTempUsageDetail_20' ) end [2025-03-09 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:31:21] Production.INFO: ==1486== Releasing lock... [2025-03-09 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:32:06 [end_date_ymd] => 2025-03-09 22:32:06 [RateCDR] => 1 ) [2025-03-09 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:32:06' and `end` < '2025-03-09 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:32:18] Production.INFO: count ==902 [2025-03-09 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-09 19:32:06 - End Time 2025-03-09 22:32:06 [2025-03-09 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645252', 'tblTempUsageDetail_20' ) start [2025-03-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645252', 'tblTempUsageDetail_20' ) end [2025-03-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645252', 'tblTempVendorCDR_20' ) start [2025-03-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645252', 'tblTempVendorCDR_20' ) end [2025-03-09 22:32:19] Production.INFO: ProcessCDR(1,14645252,1,1,2) [2025-03-09 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645252', 'tblTempUsageDetail_20' ) start [2025-03-09 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645252', 'tblTempUsageDetail_20' ) end [2025-03-09 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:32:22] Production.INFO: ==1597== Releasing lock... [2025-03-09 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:32:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:33:05 [end_date_ymd] => 2025-03-09 22:33:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:33:05' and `end` < '2025-03-09 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-09 22:33:17] Production.INFO: count ==895 [2025-03-09 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:33:05 - End Time 2025-03-09 22:33:05 [2025-03-09 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645257', 'tblTempUsageDetail_20' ) start [2025-03-09 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645257', 'tblTempUsageDetail_20' ) end [2025-03-09 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645257', 'tblTempVendorCDR_20' ) start [2025-03-09 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645257', 'tblTempVendorCDR_20' ) end [2025-03-09 22:33:17] Production.INFO: ProcessCDR(1,14645257,1,1,2) [2025-03-09 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645257', 'tblTempUsageDetail_20' ) start [2025-03-09 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645257', 'tblTempUsageDetail_20' ) end [2025-03-09 22:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:33:20] Production.INFO: ==1671== Releasing lock... [2025-03-09 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:33:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:34:06 [end_date_ymd] => 2025-03-09 22:34:06 [RateCDR] => 1 ) [2025-03-09 22:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:34:06' and `end` < '2025-03-09 22:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:34:18] Production.INFO: count ==899 [2025-03-09 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:34:06 - End Time 2025-03-09 22:34:06 [2025-03-09 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645262', 'tblTempUsageDetail_20' ) start [2025-03-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645262', 'tblTempUsageDetail_20' ) end [2025-03-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645262', 'tblTempVendorCDR_20' ) start [2025-03-09 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645262', 'tblTempVendorCDR_20' ) end [2025-03-09 22:34:18] Production.INFO: ProcessCDR(1,14645262,1,1,2) [2025-03-09 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645262', 'tblTempUsageDetail_20' ) start [2025-03-09 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645262', 'tblTempUsageDetail_20' ) end [2025-03-09 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:34:21] Production.INFO: ==1784== Releasing lock... [2025-03-09 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:34:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:35:05 [end_date_ymd] => 2025-03-09 22:35:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:35:05' and `end` < '2025-03-09 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-09 22:35:17] Production.INFO: count ==890 [2025-03-09 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:35:05 - End Time 2025-03-09 22:35:05 [2025-03-09 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645267', 'tblTempUsageDetail_20' ) start [2025-03-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645267', 'tblTempUsageDetail_20' ) end [2025-03-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645267', 'tblTempVendorCDR_20' ) start [2025-03-09 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645267', 'tblTempVendorCDR_20' ) end [2025-03-09 22:35:18] Production.INFO: ProcessCDR(1,14645267,1,1,2) [2025-03-09 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645267', 'tblTempUsageDetail_20' ) start [2025-03-09 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645267', 'tblTempUsageDetail_20' ) end [2025-03-09 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:35:21] Production.INFO: ==1860== Releasing lock... [2025-03-09 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-09 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:36:05 [end_date_ymd] => 2025-03-09 22:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:36:05' and `end` < '2025-03-09 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-09 22:36:18] Production.INFO: count ==888 [2025-03-09 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:36:05 - End Time 2025-03-09 22:36:05 [2025-03-09 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645272', 'tblTempUsageDetail_20' ) start [2025-03-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645272', 'tblTempUsageDetail_20' ) end [2025-03-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645272', 'tblTempVendorCDR_20' ) start [2025-03-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645272', 'tblTempVendorCDR_20' ) end [2025-03-09 22:36:18] Production.INFO: ProcessCDR(1,14645272,1,1,2) [2025-03-09 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645272', 'tblTempUsageDetail_20' ) start [2025-03-09 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645272', 'tblTempUsageDetail_20' ) end [2025-03-09 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:36:21] Production.INFO: ==1932== Releasing lock... [2025-03-09 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:37:05 [end_date_ymd] => 2025-03-09 22:37:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:37:05' and `end` < '2025-03-09 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-09 22:37:17] Production.INFO: count ==891 [2025-03-09 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:37:05 - End Time 2025-03-09 22:37:05 [2025-03-09 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645277', 'tblTempUsageDetail_20' ) start [2025-03-09 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645277', 'tblTempUsageDetail_20' ) end [2025-03-09 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645277', 'tblTempVendorCDR_20' ) start [2025-03-09 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645277', 'tblTempVendorCDR_20' ) end [2025-03-09 22:37:17] Production.INFO: ProcessCDR(1,14645277,1,1,2) [2025-03-09 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645277', 'tblTempUsageDetail_20' ) start [2025-03-09 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645277', 'tblTempUsageDetail_20' ) end [2025-03-09 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:37:21] Production.INFO: ==2005== Releasing lock... [2025-03-09 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:38:05 [end_date_ymd] => 2025-03-09 22:38:05 [RateCDR] => 1 ) [2025-03-09 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:38:05' and `end` < '2025-03-09 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:38:18] Production.INFO: count ==891 [2025-03-09 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:38:05 - End Time 2025-03-09 22:38:05 [2025-03-09 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645282', 'tblTempUsageDetail_20' ) start [2025-03-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645282', 'tblTempUsageDetail_20' ) end [2025-03-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645282', 'tblTempVendorCDR_20' ) start [2025-03-09 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645282', 'tblTempVendorCDR_20' ) end [2025-03-09 22:38:18] Production.INFO: ProcessCDR(1,14645282,1,1,2) [2025-03-09 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645282', 'tblTempUsageDetail_20' ) start [2025-03-09 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645282', 'tblTempUsageDetail_20' ) end [2025-03-09 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:38:21] Production.INFO: ==2079== Releasing lock... [2025-03-09 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:39:05 [end_date_ymd] => 2025-03-09 22:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:39:05' and `end` < '2025-03-09 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-09 22:39:17] Production.INFO: count ==890 [2025-03-09 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:39:05 - End Time 2025-03-09 22:39:05 [2025-03-09 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645287', 'tblTempUsageDetail_20' ) start [2025-03-09 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645287', 'tblTempUsageDetail_20' ) end [2025-03-09 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645287', 'tblTempVendorCDR_20' ) start [2025-03-09 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645287', 'tblTempVendorCDR_20' ) end [2025-03-09 22:39:17] Production.INFO: ProcessCDR(1,14645287,1,1,2) [2025-03-09 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645287', 'tblTempUsageDetail_20' ) start [2025-03-09 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645287', 'tblTempUsageDetail_20' ) end [2025-03-09 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:39:20] Production.INFO: ==2150== Releasing lock... [2025-03-09 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:39:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:40:06 [end_date_ymd] => 2025-03-09 22:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 19:40:06' and `end` < '2025-03-09 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-09 22:40:18] Production.INFO: count ==881 [2025-03-09 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-09 19:40:06 - End Time 2025-03-09 22:40:06 [2025-03-09 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645293', 'tblTempUsageDetail_20' ) start [2025-03-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645293', 'tblTempUsageDetail_20' ) end [2025-03-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645293', 'tblTempVendorCDR_20' ) start [2025-03-09 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645293', 'tblTempVendorCDR_20' ) end [2025-03-09 22:40:19] Production.INFO: ProcessCDR(1,14645293,1,1,2) [2025-03-09 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645293', 'tblTempUsageDetail_20' ) start [2025-03-09 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645293', 'tblTempUsageDetail_20' ) end [2025-03-09 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:40:24] Production.INFO: ==2234== Releasing lock... [2025-03-09 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:40:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:41:05 [end_date_ymd] => 2025-03-09 22:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:41:05' and `end` < '2025-03-09 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-09 22:41:17] Production.INFO: count ==861 [2025-03-09 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:41:05 - End Time 2025-03-09 22:41:05 [2025-03-09 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645298', 'tblTempUsageDetail_20' ) start [2025-03-09 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645298', 'tblTempUsageDetail_20' ) end [2025-03-09 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645298', 'tblTempVendorCDR_20' ) start [2025-03-09 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645298', 'tblTempVendorCDR_20' ) end [2025-03-09 22:41:17] Production.INFO: ProcessCDR(1,14645298,1,1,2) [2025-03-09 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645298', 'tblTempUsageDetail_20' ) start [2025-03-09 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645298', 'tblTempUsageDetail_20' ) end [2025-03-09 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:41:20] Production.INFO: ==2311== Releasing lock... [2025-03-09 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:41:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:42:05 [end_date_ymd] => 2025-03-09 22:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:42:05' and `end` < '2025-03-09 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-09 22:42:17] Production.INFO: count ==860 [2025-03-09 22:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:42:05 - End Time 2025-03-09 22:42:05 [2025-03-09 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645303', 'tblTempUsageDetail_20' ) start [2025-03-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645303', 'tblTempUsageDetail_20' ) end [2025-03-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645303', 'tblTempVendorCDR_20' ) start [2025-03-09 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645303', 'tblTempVendorCDR_20' ) end [2025-03-09 22:42:18] Production.INFO: ProcessCDR(1,14645303,1,1,2) [2025-03-09 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645303', 'tblTempUsageDetail_20' ) start [2025-03-09 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645303', 'tblTempUsageDetail_20' ) end [2025-03-09 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:42:21] Production.INFO: ==2386== Releasing lock... [2025-03-09 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:42:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:43:05 [end_date_ymd] => 2025-03-09 22:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:43:05' and `end` < '2025-03-09 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-09 22:43:17] Production.INFO: count ==857 [2025-03-09 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:43:05 - End Time 2025-03-09 22:43:05 [2025-03-09 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645308', 'tblTempUsageDetail_20' ) start [2025-03-09 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645308', 'tblTempUsageDetail_20' ) end [2025-03-09 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645308', 'tblTempVendorCDR_20' ) start [2025-03-09 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645308', 'tblTempVendorCDR_20' ) end [2025-03-09 22:43:17] Production.INFO: ProcessCDR(1,14645308,1,1,2) [2025-03-09 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645308', 'tblTempUsageDetail_20' ) start [2025-03-09 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645308', 'tblTempUsageDetail_20' ) end [2025-03-09 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:43:20] Production.INFO: ==2457== Releasing lock... [2025-03-09 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:43:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:44:06 [end_date_ymd] => 2025-03-09 22:44:06 [RateCDR] => 1 ) [2025-03-09 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:44:06' and `end` < '2025-03-09 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:44:18] Production.INFO: count ==858 [2025-03-09 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:44:06 - End Time 2025-03-09 22:44:06 [2025-03-09 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645313', 'tblTempUsageDetail_20' ) start [2025-03-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645313', 'tblTempUsageDetail_20' ) end [2025-03-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645313', 'tblTempVendorCDR_20' ) start [2025-03-09 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645313', 'tblTempVendorCDR_20' ) end [2025-03-09 22:44:18] Production.INFO: ProcessCDR(1,14645313,1,1,2) [2025-03-09 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645313', 'tblTempUsageDetail_20' ) start [2025-03-09 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645313', 'tblTempUsageDetail_20' ) end [2025-03-09 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:44:23] Production.INFO: ==2527== Releasing lock... [2025-03-09 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:44:23] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:45:05 [end_date_ymd] => 2025-03-09 22:45:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:45:05' and `end` < '2025-03-09 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-09 22:45:17] Production.INFO: count ==858 [2025-03-09 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:45:05 - End Time 2025-03-09 22:45:05 [2025-03-09 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645318', 'tblTempUsageDetail_20' ) start [2025-03-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645318', 'tblTempUsageDetail_20' ) end [2025-03-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645318', 'tblTempVendorCDR_20' ) start [2025-03-09 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645318', 'tblTempVendorCDR_20' ) end [2025-03-09 22:45:17] Production.INFO: ProcessCDR(1,14645318,1,1,2) [2025-03-09 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645318', 'tblTempUsageDetail_20' ) start [2025-03-09 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645318', 'tblTempUsageDetail_20' ) end [2025-03-09 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:45:21] Production.INFO: ==2600== Releasing lock... [2025-03-09 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:45:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:46:05 [end_date_ymd] => 2025-03-09 22:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:46:05' and `end` < '2025-03-09 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-09 22:46:17] Production.INFO: count ==857 [2025-03-09 22:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:46:05 - End Time 2025-03-09 22:46:05 [2025-03-09 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645323', 'tblTempUsageDetail_20' ) start [2025-03-09 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645323', 'tblTempUsageDetail_20' ) end [2025-03-09 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645323', 'tblTempVendorCDR_20' ) start [2025-03-09 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645323', 'tblTempVendorCDR_20' ) end [2025-03-09 22:46:17] Production.INFO: ProcessCDR(1,14645323,1,1,2) [2025-03-09 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645323', 'tblTempUsageDetail_20' ) start [2025-03-09 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645323', 'tblTempUsageDetail_20' ) end [2025-03-09 22:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:46:20] Production.INFO: ==2671== Releasing lock... [2025-03-09 22:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:46:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:47:05 [end_date_ymd] => 2025-03-09 22:47:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:47:05' and `end` < '2025-03-09 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-09 22:47:17] Production.INFO: count ==857 [2025-03-09 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:47:05 - End Time 2025-03-09 22:47:05 [2025-03-09 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645328', 'tblTempUsageDetail_20' ) start [2025-03-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645328', 'tblTempUsageDetail_20' ) end [2025-03-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645328', 'tblTempVendorCDR_20' ) start [2025-03-09 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645328', 'tblTempVendorCDR_20' ) end [2025-03-09 22:47:17] Production.INFO: ProcessCDR(1,14645328,1,1,2) [2025-03-09 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645328', 'tblTempUsageDetail_20' ) start [2025-03-09 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645328', 'tblTempUsageDetail_20' ) end [2025-03-09 22:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:47:20] Production.INFO: ==2745== Releasing lock... [2025-03-09 22:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:47:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:48:05 [end_date_ymd] => 2025-03-09 22:48:05 [RateCDR] => 1 ) [2025-03-09 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:48:05' and `end` < '2025-03-09 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:48:17] Production.INFO: count ==857 [2025-03-09 22:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:48:05 - End Time 2025-03-09 22:48:05 [2025-03-09 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645333', 'tblTempUsageDetail_20' ) start [2025-03-09 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645333', 'tblTempUsageDetail_20' ) end [2025-03-09 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645333', 'tblTempVendorCDR_20' ) start [2025-03-09 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645333', 'tblTempVendorCDR_20' ) end [2025-03-09 22:48:17] Production.INFO: ProcessCDR(1,14645333,1,1,2) [2025-03-09 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645333', 'tblTempUsageDetail_20' ) start [2025-03-09 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645333', 'tblTempUsageDetail_20' ) end [2025-03-09 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:48:21] Production.INFO: ==2818== Releasing lock... [2025-03-09 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:48:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:49:05 [end_date_ymd] => 2025-03-09 22:49:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:49:05' and `end` < '2025-03-09 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-09 22:49:17] Production.INFO: count ==857 [2025-03-09 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:49:05 - End Time 2025-03-09 22:49:05 [2025-03-09 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645338', 'tblTempUsageDetail_20' ) start [2025-03-09 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645338', 'tblTempUsageDetail_20' ) end [2025-03-09 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645338', 'tblTempVendorCDR_20' ) start [2025-03-09 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645338', 'tblTempVendorCDR_20' ) end [2025-03-09 22:49:17] Production.INFO: ProcessCDR(1,14645338,1,1,2) [2025-03-09 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645338', 'tblTempUsageDetail_20' ) start [2025-03-09 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645338', 'tblTempUsageDetail_20' ) end [2025-03-09 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:49:20] Production.INFO: ==2891== Releasing lock... [2025-03-09 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:49:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-09 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:50:06 [end_date_ymd] => 2025-03-09 22:50:06 [RateCDR] => 1 ) [2025-03-09 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-09 19:50:06' and `end` < '2025-03-09 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-09 22:50:18] Production.INFO: count ==850 [2025-03-09 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:50:06 - End Time 2025-03-09 22:50:06 [2025-03-09 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645344', 'tblTempUsageDetail_20' ) start [2025-03-09 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645344', 'tblTempUsageDetail_20' ) end [2025-03-09 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645344', 'tblTempVendorCDR_20' ) start [2025-03-09 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645344', 'tblTempVendorCDR_20' ) end [2025-03-09 22:50:18] Production.INFO: ProcessCDR(1,14645344,1,1,2) [2025-03-09 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645344', 'tblTempUsageDetail_20' ) start [2025-03-09 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645344', 'tblTempUsageDetail_20' ) end [2025-03-09 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:50:22] Production.INFO: ==3001== Releasing lock... [2025-03-09 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:51:05 [end_date_ymd] => 2025-03-09 22:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:51:05' and `end` < '2025-03-09 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-09 22:51:17] Production.INFO: count ==833 [2025-03-09 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:51:05 - End Time 2025-03-09 22:51:05 [2025-03-09 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645349', 'tblTempUsageDetail_20' ) start [2025-03-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645349', 'tblTempUsageDetail_20' ) end [2025-03-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645349', 'tblTempVendorCDR_20' ) start [2025-03-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645349', 'tblTempVendorCDR_20' ) end [2025-03-09 22:51:17] Production.INFO: ProcessCDR(1,14645349,1,1,2) [2025-03-09 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645349', 'tblTempUsageDetail_20' ) start [2025-03-09 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645349', 'tblTempUsageDetail_20' ) end [2025-03-09 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:51:20] Production.INFO: ==3074== Releasing lock... [2025-03-09 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:51:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:52:05 [end_date_ymd] => 2025-03-09 22:52:05 [RateCDR] => 1 ) [2025-03-09 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:52:05' and `end` < '2025-03-09 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:52:17] Production.INFO: count ==832 [2025-03-09 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:52:05 - End Time 2025-03-09 22:52:05 [2025-03-09 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645354', 'tblTempUsageDetail_20' ) start [2025-03-09 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645354', 'tblTempUsageDetail_20' ) end [2025-03-09 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645354', 'tblTempVendorCDR_20' ) start [2025-03-09 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645354', 'tblTempVendorCDR_20' ) end [2025-03-09 22:52:17] Production.INFO: ProcessCDR(1,14645354,1,1,2) [2025-03-09 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645354', 'tblTempUsageDetail_20' ) start [2025-03-09 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645354', 'tblTempUsageDetail_20' ) end [2025-03-09 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:52:21] Production.INFO: ==3145== Releasing lock... [2025-03-09 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:52:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:53:05 [end_date_ymd] => 2025-03-09 22:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:53:05' and `end` < '2025-03-09 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-09 22:53:17] Production.INFO: count ==833 [2025-03-09 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:53:05 - End Time 2025-03-09 22:53:05 [2025-03-09 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645359', 'tblTempUsageDetail_20' ) start [2025-03-09 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645359', 'tblTempUsageDetail_20' ) end [2025-03-09 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645359', 'tblTempVendorCDR_20' ) start [2025-03-09 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645359', 'tblTempVendorCDR_20' ) end [2025-03-09 22:53:17] Production.INFO: ProcessCDR(1,14645359,1,1,2) [2025-03-09 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645359', 'tblTempUsageDetail_20' ) start [2025-03-09 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645359', 'tblTempUsageDetail_20' ) end [2025-03-09 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:53:22] Production.INFO: ==3219== Releasing lock... [2025-03-09 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:54:05 [end_date_ymd] => 2025-03-09 22:54:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:54:05' and `end` < '2025-03-09 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-09 22:54:17] Production.INFO: count ==837 [2025-03-09 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:54:05 - End Time 2025-03-09 22:54:05 [2025-03-09 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645364', 'tblTempUsageDetail_20' ) start [2025-03-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645364', 'tblTempUsageDetail_20' ) end [2025-03-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645364', 'tblTempVendorCDR_20' ) start [2025-03-09 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645364', 'tblTempVendorCDR_20' ) end [2025-03-09 22:54:18] Production.INFO: ProcessCDR(1,14645364,1,1,2) [2025-03-09 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645364', 'tblTempUsageDetail_20' ) start [2025-03-09 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645364', 'tblTempUsageDetail_20' ) end [2025-03-09 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:54:21] Production.INFO: ==3289== Releasing lock... [2025-03-09 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:54:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:55:04 [end_date_ymd] => 2025-03-09 22:55:04 [RateCDR] => 1 ) [2025-03-09 22: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-09 19:55:04' and `end` < '2025-03-09 22: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-09 22:55:16] Production.INFO: count ==845 [2025-03-09 22:55:16] Production.ERROR: pbx CDR StartTime 2025-03-09 19:55:04 - End Time 2025-03-09 22:55:04 [2025-03-09 22:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645369', 'tblTempUsageDetail_20' ) start [2025-03-09 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645369', 'tblTempUsageDetail_20' ) end [2025-03-09 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645369', 'tblTempVendorCDR_20' ) start [2025-03-09 22:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645369', 'tblTempVendorCDR_20' ) end [2025-03-09 22:55:16] Production.INFO: ProcessCDR(1,14645369,1,1,2) [2025-03-09 22:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645369', 'tblTempUsageDetail_20' ) start [2025-03-09 22:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645369', 'tblTempUsageDetail_20' ) end [2025-03-09 22:55:19] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:55:19] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:55:20] Production.INFO: ==3360== Releasing lock... [2025-03-09 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:55:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:56:05 [end_date_ymd] => 2025-03-09 22:56:05 [RateCDR] => 1 ) [2025-03-09 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:56:05' and `end` < '2025-03-09 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:56:17] Production.INFO: count ==847 [2025-03-09 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:56:05 - End Time 2025-03-09 22:56:05 [2025-03-09 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645374', 'tblTempUsageDetail_20' ) start [2025-03-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645374', 'tblTempUsageDetail_20' ) end [2025-03-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645374', 'tblTempVendorCDR_20' ) start [2025-03-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645374', 'tblTempVendorCDR_20' ) end [2025-03-09 22:56:17] Production.INFO: ProcessCDR(1,14645374,1,1,2) [2025-03-09 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645374', 'tblTempUsageDetail_20' ) start [2025-03-09 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645374', 'tblTempUsageDetail_20' ) end [2025-03-09 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:56:21] Production.INFO: ==3434== Releasing lock... [2025-03-09 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:56:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:57:05 [end_date_ymd] => 2025-03-09 22:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:57:05' and `end` < '2025-03-09 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-09 22:57:17] Production.INFO: count ==846 [2025-03-09 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:57:05 - End Time 2025-03-09 22:57:05 [2025-03-09 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645379', 'tblTempUsageDetail_20' ) start [2025-03-09 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645379', 'tblTempUsageDetail_20' ) end [2025-03-09 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645379', 'tblTempVendorCDR_20' ) start [2025-03-09 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645379', 'tblTempVendorCDR_20' ) end [2025-03-09 22:57:17] Production.INFO: ProcessCDR(1,14645379,1,1,2) [2025-03-09 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645379', 'tblTempUsageDetail_20' ) start [2025-03-09 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645379', 'tblTempUsageDetail_20' ) end [2025-03-09 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:57:21] Production.INFO: ==3508== Releasing lock... [2025-03-09 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:57:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:58:05 [end_date_ymd] => 2025-03-09 22:58:05 [RateCDR] => 1 ) [2025-03-09 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-09 19:58:05' and `end` < '2025-03-09 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-09 22:58:17] Production.INFO: count ==847 [2025-03-09 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 19:58:05 - End Time 2025-03-09 22:58:05 [2025-03-09 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645384', 'tblTempUsageDetail_20' ) start [2025-03-09 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645384', 'tblTempUsageDetail_20' ) end [2025-03-09 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645384', 'tblTempVendorCDR_20' ) start [2025-03-09 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645384', 'tblTempVendorCDR_20' ) end [2025-03-09 22:58:17] Production.INFO: ProcessCDR(1,14645384,1,1,2) [2025-03-09 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645384', 'tblTempUsageDetail_20' ) start [2025-03-09 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645384', 'tblTempUsageDetail_20' ) end [2025-03-09 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:58:22] Production.INFO: ==3579== Releasing lock... [2025-03-09 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:58:22] Production.INFO: 34 MB #Memory Used# [2025-03-09 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 19:59:05 [end_date_ymd] => 2025-03-09 22:59:05 [RateCDR] => 1 ) [2025-03-09 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 19:59:05' and `end` < '2025-03-09 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 22:59:18] Production.INFO: count ==847 [2025-03-09 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 19:59:05 - End Time 2025-03-09 22:59:05 [2025-03-09 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645389', 'tblTempUsageDetail_20' ) start [2025-03-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645389', 'tblTempUsageDetail_20' ) end [2025-03-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645389', 'tblTempVendorCDR_20' ) start [2025-03-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645389', 'tblTempVendorCDR_20' ) end [2025-03-09 22:59:18] Production.INFO: ProcessCDR(1,14645389,1,1,2) [2025-03-09 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645389', 'tblTempUsageDetail_20' ) start [2025-03-09 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645389', 'tblTempUsageDetail_20' ) end [2025-03-09 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 22:59:21] Production.INFO: ==3656== Releasing lock... [2025-03-09 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 22:59:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:00:06 [end_date_ymd] => 2025-03-09 23:00:06 [RateCDR] => 1 ) [2025-03-09 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:00:06' and `end` < '2025-03-09 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:00:18] Production.INFO: count ==846 [2025-03-09 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:00:06 - End Time 2025-03-09 23:00:06 [2025-03-09 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645395', 'tblTempUsageDetail_20' ) start [2025-03-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645395', 'tblTempUsageDetail_20' ) end [2025-03-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645395', 'tblTempVendorCDR_20' ) start [2025-03-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645395', 'tblTempVendorCDR_20' ) end [2025-03-09 23:00:18] Production.INFO: ProcessCDR(1,14645395,1,1,2) [2025-03-09 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645395', 'tblTempUsageDetail_20' ) start [2025-03-09 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645395', 'tblTempUsageDetail_20' ) end [2025-03-09 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:00:23] Production.INFO: ==3730== Releasing lock... [2025-03-09 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:00:23] Production.INFO: 34 MB #Memory Used# [2025-03-09 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:01:05 [end_date_ymd] => 2025-03-09 23:01:05 [RateCDR] => 1 ) [2025-03-09 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:01:05' and `end` < '2025-03-09 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:01:18] Production.INFO: count ==812 [2025-03-09 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:01:05 - End Time 2025-03-09 23:01:05 [2025-03-09 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645400', 'tblTempUsageDetail_20' ) start [2025-03-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645400', 'tblTempUsageDetail_20' ) end [2025-03-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645400', 'tblTempVendorCDR_20' ) start [2025-03-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645400', 'tblTempVendorCDR_20' ) end [2025-03-09 23:01:18] Production.INFO: ProcessCDR(1,14645400,1,1,2) [2025-03-09 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645400', 'tblTempUsageDetail_20' ) start [2025-03-09 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645400', 'tblTempUsageDetail_20' ) end [2025-03-09 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:01:21] Production.INFO: ==3815== Releasing lock... [2025-03-09 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:02:05 [end_date_ymd] => 2025-03-09 23:02:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:02:05' and `end` < '2025-03-09 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-09 23:02:18] Production.INFO: count ==809 [2025-03-09 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:02:05 - End Time 2025-03-09 23:02:05 [2025-03-09 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645405', 'tblTempUsageDetail_20' ) start [2025-03-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645405', 'tblTempUsageDetail_20' ) end [2025-03-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645405', 'tblTempVendorCDR_20' ) start [2025-03-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645405', 'tblTempVendorCDR_20' ) end [2025-03-09 23:02:18] Production.INFO: ProcessCDR(1,14645405,1,1,2) [2025-03-09 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645405', 'tblTempUsageDetail_20' ) start [2025-03-09 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645405', 'tblTempUsageDetail_20' ) end [2025-03-09 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:02:22] Production.INFO: ==3966== Releasing lock... [2025-03-09 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:03:05 [end_date_ymd] => 2025-03-09 23:03:05 [RateCDR] => 1 ) [2025-03-09 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:03:05' and `end` < '2025-03-09 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:03:17] Production.INFO: count ==809 [2025-03-09 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:03:05 - End Time 2025-03-09 23:03:05 [2025-03-09 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645410', 'tblTempUsageDetail_20' ) start [2025-03-09 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645410', 'tblTempUsageDetail_20' ) end [2025-03-09 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645410', 'tblTempVendorCDR_20' ) start [2025-03-09 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645410', 'tblTempVendorCDR_20' ) end [2025-03-09 23:03:17] Production.INFO: ProcessCDR(1,14645410,1,1,2) [2025-03-09 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645410', 'tblTempUsageDetail_20' ) start [2025-03-09 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645410', 'tblTempUsageDetail_20' ) end [2025-03-09 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:03:21] Production.INFO: ==4045== Releasing lock... [2025-03-09 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:03:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:04:05 [end_date_ymd] => 2025-03-09 23:04:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:04:05' and `end` < '2025-03-09 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-09 23:04:17] Production.INFO: count ==806 [2025-03-09 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:04:05 - End Time 2025-03-09 23:04:05 [2025-03-09 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645415', 'tblTempUsageDetail_20' ) start [2025-03-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645415', 'tblTempUsageDetail_20' ) end [2025-03-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645415', 'tblTempVendorCDR_20' ) start [2025-03-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645415', 'tblTempVendorCDR_20' ) end [2025-03-09 23:04:18] Production.INFO: ProcessCDR(1,14645415,1,1,2) [2025-03-09 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645415', 'tblTempUsageDetail_20' ) start [2025-03-09 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645415', 'tblTempUsageDetail_20' ) end [2025-03-09 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:04:21] Production.INFO: ==4122== Releasing lock... [2025-03-09 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:05:06 [end_date_ymd] => 2025-03-09 23:05:06 [RateCDR] => 1 ) [2025-03-09 23: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-09 20:05:06' and `end` < '2025-03-09 23: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-09 23:05:18] Production.INFO: count ==804 [2025-03-09 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:05:06 - End Time 2025-03-09 23:05:06 [2025-03-09 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645420', 'tblTempUsageDetail_20' ) start [2025-03-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645420', 'tblTempUsageDetail_20' ) end [2025-03-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645420', 'tblTempVendorCDR_20' ) start [2025-03-09 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645420', 'tblTempVendorCDR_20' ) end [2025-03-09 23:05:18] Production.INFO: ProcessCDR(1,14645420,1,1,2) [2025-03-09 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645420', 'tblTempUsageDetail_20' ) start [2025-03-09 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645420', 'tblTempUsageDetail_20' ) end [2025-03-09 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:05:21] Production.INFO: ==4313== Releasing lock... [2025-03-09 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:06:05 [end_date_ymd] => 2025-03-09 23:06:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:06:05' and `end` < '2025-03-09 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-09 23:06:17] Production.INFO: count ==798 [2025-03-09 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:06:05 - End Time 2025-03-09 23:06:05 [2025-03-09 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645425', 'tblTempUsageDetail_20' ) start [2025-03-09 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645425', 'tblTempUsageDetail_20' ) end [2025-03-09 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645425', 'tblTempVendorCDR_20' ) start [2025-03-09 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645425', 'tblTempVendorCDR_20' ) end [2025-03-09 23:06:17] Production.INFO: ProcessCDR(1,14645425,1,1,2) [2025-03-09 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645425', 'tblTempUsageDetail_20' ) start [2025-03-09 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645425', 'tblTempUsageDetail_20' ) end [2025-03-09 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:06:21] Production.INFO: ==4384== Releasing lock... [2025-03-09 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:06:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-09 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:07:05 [end_date_ymd] => 2025-03-09 23:07:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:07:05' and `end` < '2025-03-09 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-09 23:07:17] Production.INFO: count ==792 [2025-03-09 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:07:05 - End Time 2025-03-09 23:07:05 [2025-03-09 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645430', 'tblTempUsageDetail_20' ) start [2025-03-09 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645430', 'tblTempUsageDetail_20' ) end [2025-03-09 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645430', 'tblTempVendorCDR_20' ) start [2025-03-09 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645430', 'tblTempVendorCDR_20' ) end [2025-03-09 23:07:17] Production.INFO: ProcessCDR(1,14645430,1,1,2) [2025-03-09 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645430', 'tblTempUsageDetail_20' ) start [2025-03-09 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645430', 'tblTempUsageDetail_20' ) end [2025-03-09 23:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:07:20] Production.INFO: ==4459== Releasing lock... [2025-03-09 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:07:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:08:05 [end_date_ymd] => 2025-03-09 23:08:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:08:05' and `end` < '2025-03-09 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-09 23:08:17] Production.INFO: count ==792 [2025-03-09 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:08:05 - End Time 2025-03-09 23:08:05 [2025-03-09 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645435', 'tblTempUsageDetail_20' ) start [2025-03-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645435', 'tblTempUsageDetail_20' ) end [2025-03-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645435', 'tblTempVendorCDR_20' ) start [2025-03-09 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645435', 'tblTempVendorCDR_20' ) end [2025-03-09 23:08:18] Production.INFO: ProcessCDR(1,14645435,1,1,2) [2025-03-09 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645435', 'tblTempUsageDetail_20' ) start [2025-03-09 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645435', 'tblTempUsageDetail_20' ) end [2025-03-09 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:08:21] Production.INFO: ==4615== Releasing lock... [2025-03-09 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:09:04 [end_date_ymd] => 2025-03-09 23:09:04 [RateCDR] => 1 ) [2025-03-09 23: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-09 20:09:04' and `end` < '2025-03-09 23: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-09 23:09:16] Production.INFO: count ==792 [2025-03-09 23:09:16] Production.ERROR: pbx CDR StartTime 2025-03-09 20:09:04 - End Time 2025-03-09 23:09:04 [2025-03-09 23:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645440', 'tblTempUsageDetail_20' ) start [2025-03-09 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645440', 'tblTempUsageDetail_20' ) end [2025-03-09 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645440', 'tblTempVendorCDR_20' ) start [2025-03-09 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645440', 'tblTempVendorCDR_20' ) end [2025-03-09 23:09:16] Production.INFO: ProcessCDR(1,14645440,1,1,2) [2025-03-09 23:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645440', 'tblTempUsageDetail_20' ) start [2025-03-09 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645440', 'tblTempUsageDetail_20' ) end [2025-03-09 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:09:20] Production.INFO: ==4688== Releasing lock... [2025-03-09 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:09:20] Production.INFO: 34 MB #Memory Used# [2025-03-09 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:10:06 [end_date_ymd] => 2025-03-09 23:10:06 [RateCDR] => 1 ) [2025-03-09 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:10:06' and `end` < '2025-03-09 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:10:18] Production.INFO: count ==791 [2025-03-09 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:10:06 - End Time 2025-03-09 23:10:06 [2025-03-09 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645445', 'tblTempUsageDetail_20' ) start [2025-03-09 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645445', 'tblTempUsageDetail_20' ) end [2025-03-09 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645445', 'tblTempVendorCDR_20' ) start [2025-03-09 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645445', 'tblTempVendorCDR_20' ) end [2025-03-09 23:10:18] Production.INFO: ProcessCDR(1,14645445,1,1,2) [2025-03-09 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645445', 'tblTempUsageDetail_20' ) start [2025-03-09 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645445', 'tblTempUsageDetail_20' ) end [2025-03-09 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:10:21] Production.INFO: ==4764== Releasing lock... [2025-03-09 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:10:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:11:05 [end_date_ymd] => 2025-03-09 23:11:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:11:05' and `end` < '2025-03-09 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-09 23:11:17] Production.INFO: count ==767 [2025-03-09 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:11:05 - End Time 2025-03-09 23:11:05 [2025-03-09 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645451', 'tblTempUsageDetail_20' ) start [2025-03-09 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645451', 'tblTempUsageDetail_20' ) end [2025-03-09 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645451', 'tblTempVendorCDR_20' ) start [2025-03-09 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645451', 'tblTempVendorCDR_20' ) end [2025-03-09 23:11:17] Production.INFO: ProcessCDR(1,14645451,1,1,2) [2025-03-09 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645451', 'tblTempUsageDetail_20' ) start [2025-03-09 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645451', 'tblTempUsageDetail_20' ) end [2025-03-09 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:11:22] Production.INFO: ==4843== Releasing lock... [2025-03-09 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:11:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:12:05 [end_date_ymd] => 2025-03-09 23:12:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:12:05' and `end` < '2025-03-09 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-09 23:12:18] Production.INFO: count ==761 [2025-03-09 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:12:05 - End Time 2025-03-09 23:12:05 [2025-03-09 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645456', 'tblTempUsageDetail_20' ) start [2025-03-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645456', 'tblTempUsageDetail_20' ) end [2025-03-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645456', 'tblTempVendorCDR_20' ) start [2025-03-09 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645456', 'tblTempVendorCDR_20' ) end [2025-03-09 23:12:18] Production.INFO: ProcessCDR(1,14645456,1,1,2) [2025-03-09 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645456', 'tblTempUsageDetail_20' ) start [2025-03-09 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645456', 'tblTempUsageDetail_20' ) end [2025-03-09 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:12:21] Production.INFO: ==4995== Releasing lock... [2025-03-09 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:13:05 [end_date_ymd] => 2025-03-09 23:13:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:13:05' and `end` < '2025-03-09 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-09 23:13:17] Production.INFO: count ==760 [2025-03-09 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:13:05 - End Time 2025-03-09 23:13:05 [2025-03-09 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645461', 'tblTempUsageDetail_20' ) start [2025-03-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645461', 'tblTempUsageDetail_20' ) end [2025-03-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645461', 'tblTempVendorCDR_20' ) start [2025-03-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645461', 'tblTempVendorCDR_20' ) end [2025-03-09 23:13:18] Production.INFO: ProcessCDR(1,14645461,1,1,2) [2025-03-09 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645461', 'tblTempUsageDetail_20' ) start [2025-03-09 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645461', 'tblTempUsageDetail_20' ) end [2025-03-09 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:13:22] Production.INFO: ==5068== Releasing lock... [2025-03-09 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:14:05 [end_date_ymd] => 2025-03-09 23:14:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:14:05' and `end` < '2025-03-09 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-09 23:14:17] Production.INFO: count ==761 [2025-03-09 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:14:05 - End Time 2025-03-09 23:14:05 [2025-03-09 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645466', 'tblTempUsageDetail_20' ) start [2025-03-09 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645466', 'tblTempUsageDetail_20' ) end [2025-03-09 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645466', 'tblTempVendorCDR_20' ) start [2025-03-09 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645466', 'tblTempVendorCDR_20' ) end [2025-03-09 23:14:17] Production.INFO: ProcessCDR(1,14645466,1,1,2) [2025-03-09 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645466', 'tblTempUsageDetail_20' ) start [2025-03-09 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645466', 'tblTempUsageDetail_20' ) end [2025-03-09 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:14:22] Production.INFO: ==5140== Releasing lock... [2025-03-09 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:14:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:15:05 [end_date_ymd] => 2025-03-09 23:15:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:15:05' and `end` < '2025-03-09 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-09 23:15:18] Production.INFO: count ==761 [2025-03-09 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:15:05 - End Time 2025-03-09 23:15:05 [2025-03-09 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645471', 'tblTempUsageDetail_20' ) start [2025-03-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645471', 'tblTempUsageDetail_20' ) end [2025-03-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645471', 'tblTempVendorCDR_20' ) start [2025-03-09 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645471', 'tblTempVendorCDR_20' ) end [2025-03-09 23:15:18] Production.INFO: ProcessCDR(1,14645471,1,1,2) [2025-03-09 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645471', 'tblTempUsageDetail_20' ) start [2025-03-09 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645471', 'tblTempUsageDetail_20' ) end [2025-03-09 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:15:21] Production.INFO: ==5289== Releasing lock... [2025-03-09 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:16:05 [end_date_ymd] => 2025-03-09 23:16:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:16:05' and `end` < '2025-03-09 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-09 23:16:17] Production.INFO: count ==760 [2025-03-09 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:16:05 - End Time 2025-03-09 23:16:05 [2025-03-09 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645476', 'tblTempUsageDetail_20' ) start [2025-03-09 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645476', 'tblTempUsageDetail_20' ) end [2025-03-09 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645476', 'tblTempVendorCDR_20' ) start [2025-03-09 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645476', 'tblTempVendorCDR_20' ) end [2025-03-09 23:16:17] Production.INFO: ProcessCDR(1,14645476,1,1,2) [2025-03-09 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645476', 'tblTempUsageDetail_20' ) start [2025-03-09 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645476', 'tblTempUsageDetail_20' ) end [2025-03-09 23:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:16:20] Production.INFO: ==5358== Releasing lock... [2025-03-09 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:16:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:17:05 [end_date_ymd] => 2025-03-09 23:17:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:17:05' and `end` < '2025-03-09 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-09 23:17:17] Production.INFO: count ==763 [2025-03-09 23:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:17:05 - End Time 2025-03-09 23:17:05 [2025-03-09 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645481', 'tblTempUsageDetail_20' ) start [2025-03-09 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645481', 'tblTempUsageDetail_20' ) end [2025-03-09 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645481', 'tblTempVendorCDR_20' ) start [2025-03-09 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645481', 'tblTempVendorCDR_20' ) end [2025-03-09 23:17:17] Production.INFO: ProcessCDR(1,14645481,1,1,2) [2025-03-09 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645481', 'tblTempUsageDetail_20' ) start [2025-03-09 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645481', 'tblTempUsageDetail_20' ) end [2025-03-09 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:17:21] Production.INFO: ==5432== Releasing lock... [2025-03-09 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:18:05 [end_date_ymd] => 2025-03-09 23:18:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:18:05' and `end` < '2025-03-09 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-09 23:18:17] Production.INFO: count ==766 [2025-03-09 23:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:18:05 - End Time 2025-03-09 23:18:05 [2025-03-09 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645486', 'tblTempUsageDetail_20' ) start [2025-03-09 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645486', 'tblTempUsageDetail_20' ) end [2025-03-09 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645486', 'tblTempVendorCDR_20' ) start [2025-03-09 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645486', 'tblTempVendorCDR_20' ) end [2025-03-09 23:18:17] Production.INFO: ProcessCDR(1,14645486,1,1,2) [2025-03-09 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645486', 'tblTempUsageDetail_20' ) start [2025-03-09 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645486', 'tblTempUsageDetail_20' ) end [2025-03-09 23:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:18:20] Production.INFO: ==5510== Releasing lock... [2025-03-09 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:18:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:19:05 [end_date_ymd] => 2025-03-09 23:19:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:19:05' and `end` < '2025-03-09 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-09 23:19:17] Production.INFO: count ==767 [2025-03-09 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:19:05 - End Time 2025-03-09 23:19:05 [2025-03-09 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645491', 'tblTempUsageDetail_20' ) start [2025-03-09 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645491', 'tblTempUsageDetail_20' ) end [2025-03-09 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645491', 'tblTempVendorCDR_20' ) start [2025-03-09 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645491', 'tblTempVendorCDR_20' ) end [2025-03-09 23:19:17] Production.INFO: ProcessCDR(1,14645491,1,1,2) [2025-03-09 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645491', 'tblTempUsageDetail_20' ) start [2025-03-09 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645491', 'tblTempUsageDetail_20' ) end [2025-03-09 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:19:21] Production.INFO: ==5582== Releasing lock... [2025-03-09 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:20:06 [end_date_ymd] => 2025-03-09 23:20:06 [RateCDR] => 1 ) [2025-03-09 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:20:06' and `end` < '2025-03-09 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:20:18] Production.INFO: count ==763 [2025-03-09 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:20:06 - End Time 2025-03-09 23:20:06 [2025-03-09 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645497', 'tblTempUsageDetail_20' ) start [2025-03-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645497', 'tblTempUsageDetail_20' ) end [2025-03-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645497', 'tblTempVendorCDR_20' ) start [2025-03-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645497', 'tblTempVendorCDR_20' ) end [2025-03-09 23:20:18] Production.INFO: ProcessCDR(1,14645497,1,1,2) [2025-03-09 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645497', 'tblTempUsageDetail_20' ) start [2025-03-09 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645497', 'tblTempUsageDetail_20' ) end [2025-03-09 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:20:22] Production.INFO: ==5657== Releasing lock... [2025-03-09 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:21:05 [end_date_ymd] => 2025-03-09 23:21:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:21:05' and `end` < '2025-03-09 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-09 23:21:17] Production.INFO: count ==728 [2025-03-09 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:21:05 - End Time 2025-03-09 23:21:05 [2025-03-09 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645502', 'tblTempUsageDetail_20' ) start [2025-03-09 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645502', 'tblTempUsageDetail_20' ) end [2025-03-09 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645502', 'tblTempVendorCDR_20' ) start [2025-03-09 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645502', 'tblTempVendorCDR_20' ) end [2025-03-09 23:21:17] Production.INFO: ProcessCDR(1,14645502,1,1,2) [2025-03-09 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645502', 'tblTempUsageDetail_20' ) start [2025-03-09 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645502', 'tblTempUsageDetail_20' ) end [2025-03-09 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:21:20] Production.INFO: ==5767== Releasing lock... [2025-03-09 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:21:20] Production.INFO: 33 MB #Memory Used# [2025-03-09 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:22:05 [end_date_ymd] => 2025-03-09 23:22:05 [RateCDR] => 1 ) [2025-03-09 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:22:05' and `end` < '2025-03-09 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:22:18] Production.INFO: count ==732 [2025-03-09 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:22:05 - End Time 2025-03-09 23:22:05 [2025-03-09 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645507', 'tblTempUsageDetail_20' ) start [2025-03-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645507', 'tblTempUsageDetail_20' ) end [2025-03-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645507', 'tblTempVendorCDR_20' ) start [2025-03-09 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645507', 'tblTempVendorCDR_20' ) end [2025-03-09 23:22:18] Production.INFO: ProcessCDR(1,14645507,1,1,2) [2025-03-09 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645507', 'tblTempUsageDetail_20' ) start [2025-03-09 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645507', 'tblTempUsageDetail_20' ) end [2025-03-09 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:22:21] Production.INFO: ==5842== Releasing lock... [2025-03-09 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:23:05 [end_date_ymd] => 2025-03-09 23:23:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:23:05' and `end` < '2025-03-09 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-09 23:23:17] Production.INFO: count ==729 [2025-03-09 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:23:05 - End Time 2025-03-09 23:23:05 [2025-03-09 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645512', 'tblTempUsageDetail_20' ) start [2025-03-09 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645512', 'tblTempUsageDetail_20' ) end [2025-03-09 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645512', 'tblTempVendorCDR_20' ) start [2025-03-09 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645512', 'tblTempVendorCDR_20' ) end [2025-03-09 23:23:17] Production.INFO: ProcessCDR(1,14645512,1,1,2) [2025-03-09 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645512', 'tblTempUsageDetail_20' ) start [2025-03-09 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645512', 'tblTempUsageDetail_20' ) end [2025-03-09 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:23:21] Production.INFO: ==5914== Releasing lock... [2025-03-09 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:24:06 [end_date_ymd] => 2025-03-09 23:24:06 [RateCDR] => 1 ) [2025-03-09 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-09 20:24:06' and `end` < '2025-03-09 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-09 23:24:18] Production.INFO: count ==720 [2025-03-09 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:24:06 - End Time 2025-03-09 23:24:06 [2025-03-09 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645517', 'tblTempUsageDetail_20' ) start [2025-03-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645517', 'tblTempUsageDetail_20' ) end [2025-03-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645517', 'tblTempVendorCDR_20' ) start [2025-03-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645517', 'tblTempVendorCDR_20' ) end [2025-03-09 23:24:18] Production.INFO: ProcessCDR(1,14645517,1,1,2) [2025-03-09 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645517', 'tblTempUsageDetail_20' ) start [2025-03-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645517', 'tblTempUsageDetail_20' ) end [2025-03-09 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:24:21] Production.INFO: ==5985== Releasing lock... [2025-03-09 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:25:05 [end_date_ymd] => 2025-03-09 23:25:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:25:05' and `end` < '2025-03-09 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-09 23:25:17] Production.INFO: count ==724 [2025-03-09 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:25:05 - End Time 2025-03-09 23:25:05 [2025-03-09 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645522', 'tblTempUsageDetail_20' ) start [2025-03-09 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645522', 'tblTempUsageDetail_20' ) end [2025-03-09 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645522', 'tblTempVendorCDR_20' ) start [2025-03-09 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645522', 'tblTempVendorCDR_20' ) end [2025-03-09 23:25:17] Production.INFO: ProcessCDR(1,14645522,1,1,2) [2025-03-09 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645522', 'tblTempUsageDetail_20' ) start [2025-03-09 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645522', 'tblTempUsageDetail_20' ) end [2025-03-09 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:25:21] Production.INFO: ==6059== Releasing lock... [2025-03-09 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:25:21] Production.INFO: 33 MB #Memory Used# [2025-03-09 23:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:26:04 [end_date_ymd] => 2025-03-09 23:26:04 [RateCDR] => 1 ) [2025-03-09 23:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:26:04' and `end` < '2025-03-09 23:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:26:16] Production.INFO: count ==723 [2025-03-09 23:26:16] Production.ERROR: pbx CDR StartTime 2025-03-09 20:26:04 - End Time 2025-03-09 23:26:04 [2025-03-09 23:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645527', 'tblTempUsageDetail_20' ) start [2025-03-09 23:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645527', 'tblTempUsageDetail_20' ) end [2025-03-09 23:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645527', 'tblTempVendorCDR_20' ) start [2025-03-09 23:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645527', 'tblTempVendorCDR_20' ) end [2025-03-09 23:26:16] Production.INFO: ProcessCDR(1,14645527,1,1,2) [2025-03-09 23:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645527', 'tblTempUsageDetail_20' ) start [2025-03-09 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645527', 'tblTempUsageDetail_20' ) end [2025-03-09 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:26:20] Production.INFO: ==6129== Releasing lock... [2025-03-09 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:26:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:27:05 [end_date_ymd] => 2025-03-09 23:27:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:27:05' and `end` < '2025-03-09 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-09 23:27:17] Production.INFO: count ==724 [2025-03-09 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:27:05 - End Time 2025-03-09 23:27:05 [2025-03-09 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645532', 'tblTempUsageDetail_20' ) start [2025-03-09 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645532', 'tblTempUsageDetail_20' ) end [2025-03-09 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645532', 'tblTempVendorCDR_20' ) start [2025-03-09 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645532', 'tblTempVendorCDR_20' ) end [2025-03-09 23:27:17] Production.INFO: ProcessCDR(1,14645532,1,1,2) [2025-03-09 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645532', 'tblTempUsageDetail_20' ) start [2025-03-09 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645532', 'tblTempUsageDetail_20' ) end [2025-03-09 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:27:22] Production.INFO: ==6200== Releasing lock... [2025-03-09 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:28:05 [end_date_ymd] => 2025-03-09 23:28:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:28:05' and `end` < '2025-03-09 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-09 23:28:17] Production.INFO: count ==724 [2025-03-09 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:28:05 - End Time 2025-03-09 23:28:05 [2025-03-09 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645537', 'tblTempUsageDetail_20' ) start [2025-03-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645537', 'tblTempUsageDetail_20' ) end [2025-03-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645537', 'tblTempVendorCDR_20' ) start [2025-03-09 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645537', 'tblTempVendorCDR_20' ) end [2025-03-09 23:28:18] Production.INFO: ProcessCDR(1,14645537,1,1,2) [2025-03-09 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645537', 'tblTempUsageDetail_20' ) start [2025-03-09 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645537', 'tblTempUsageDetail_20' ) end [2025-03-09 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:28:21] Production.INFO: ==6272== Releasing lock... [2025-03-09 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:28:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:29:05 [end_date_ymd] => 2025-03-09 23:29:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:29:05' and `end` < '2025-03-09 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-09 23:29:17] Production.INFO: count ==724 [2025-03-09 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:29:05 - End Time 2025-03-09 23:29:05 [2025-03-09 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645542', 'tblTempUsageDetail_20' ) start [2025-03-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645542', 'tblTempUsageDetail_20' ) end [2025-03-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645542', 'tblTempVendorCDR_20' ) start [2025-03-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645542', 'tblTempVendorCDR_20' ) end [2025-03-09 23:29:17] Production.INFO: ProcessCDR(1,14645542,1,1,2) [2025-03-09 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645542', 'tblTempUsageDetail_20' ) start [2025-03-09 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645542', 'tblTempUsageDetail_20' ) end [2025-03-09 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:29:20] Production.INFO: ==6341== Releasing lock... [2025-03-09 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:29:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:30:06 [end_date_ymd] => 2025-03-09 23:30:06 [RateCDR] => 1 ) [2025-03-09 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-09 20:30:06' and `end` < '2025-03-09 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-09 23:30:18] Production.INFO: count ==727 [2025-03-09 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:30:06 - End Time 2025-03-09 23:30:06 [2025-03-09 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645548', 'tblTempUsageDetail_20' ) start [2025-03-09 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645548', 'tblTempUsageDetail_20' ) end [2025-03-09 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645548', 'tblTempVendorCDR_20' ) start [2025-03-09 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645548', 'tblTempVendorCDR_20' ) end [2025-03-09 23:30:18] Production.INFO: ProcessCDR(1,14645548,1,1,2) [2025-03-09 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645548', 'tblTempUsageDetail_20' ) start [2025-03-09 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645548', 'tblTempUsageDetail_20' ) end [2025-03-09 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:30:21] Production.INFO: ==6416== Releasing lock... [2025-03-09 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:30:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:31:05 [end_date_ymd] => 2025-03-09 23:31:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:31:05' and `end` < '2025-03-09 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-09 23:31:17] Production.INFO: count ==708 [2025-03-09 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:31:05 - End Time 2025-03-09 23:31:05 [2025-03-09 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645553', 'tblTempUsageDetail_20' ) start [2025-03-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645553', 'tblTempUsageDetail_20' ) end [2025-03-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645553', 'tblTempVendorCDR_20' ) start [2025-03-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645553', 'tblTempVendorCDR_20' ) end [2025-03-09 23:31:17] Production.INFO: ProcessCDR(1,14645553,1,1,2) [2025-03-09 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645553', 'tblTempUsageDetail_20' ) start [2025-03-09 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645553', 'tblTempUsageDetail_20' ) end [2025-03-09 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:31:20] Production.INFO: ==6487== Releasing lock... [2025-03-09 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:31:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:32:05 [end_date_ymd] => 2025-03-09 23:32:05 [RateCDR] => 1 ) [2025-03-09 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:32:05' and `end` < '2025-03-09 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:32:18] Production.INFO: count ==708 [2025-03-09 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:32:05 - End Time 2025-03-09 23:32:05 [2025-03-09 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645558', 'tblTempUsageDetail_20' ) start [2025-03-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645558', 'tblTempUsageDetail_20' ) end [2025-03-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645558', 'tblTempVendorCDR_20' ) start [2025-03-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645558', 'tblTempVendorCDR_20' ) end [2025-03-09 23:32:18] Production.INFO: ProcessCDR(1,14645558,1,1,2) [2025-03-09 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645558', 'tblTempUsageDetail_20' ) start [2025-03-09 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645558', 'tblTempUsageDetail_20' ) end [2025-03-09 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:32:21] Production.INFO: ==6560== Releasing lock... [2025-03-09 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:33:05 [end_date_ymd] => 2025-03-09 23:33:05 [RateCDR] => 1 ) [2025-03-09 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:33:05' and `end` < '2025-03-09 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:33:17] Production.INFO: count ==713 [2025-03-09 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:33:05 - End Time 2025-03-09 23:33:05 [2025-03-09 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645563', 'tblTempUsageDetail_20' ) start [2025-03-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645563', 'tblTempUsageDetail_20' ) end [2025-03-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645563', 'tblTempVendorCDR_20' ) start [2025-03-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645563', 'tblTempVendorCDR_20' ) end [2025-03-09 23:33:17] Production.INFO: ProcessCDR(1,14645563,1,1,2) [2025-03-09 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645563', 'tblTempUsageDetail_20' ) start [2025-03-09 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645563', 'tblTempUsageDetail_20' ) end [2025-03-09 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:33:21] Production.INFO: ==6633== Releasing lock... [2025-03-09 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:33:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:34:05 [end_date_ymd] => 2025-03-09 23:34:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:34:05' and `end` < '2025-03-09 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-09 23:34:17] Production.INFO: count ==713 [2025-03-09 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:34:05 - End Time 2025-03-09 23:34:05 [2025-03-09 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645568', 'tblTempUsageDetail_20' ) start [2025-03-09 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645568', 'tblTempUsageDetail_20' ) end [2025-03-09 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645568', 'tblTempVendorCDR_20' ) start [2025-03-09 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645568', 'tblTempVendorCDR_20' ) end [2025-03-09 23:34:17] Production.INFO: ProcessCDR(1,14645568,1,1,2) [2025-03-09 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645568', 'tblTempUsageDetail_20' ) start [2025-03-09 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645568', 'tblTempUsageDetail_20' ) end [2025-03-09 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:34:20] Production.INFO: ==6711== Releasing lock... [2025-03-09 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:34:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:35:04 [end_date_ymd] => 2025-03-09 23:35:04 [RateCDR] => 1 ) [2025-03-09 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:35:04' and `end` < '2025-03-09 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:35:17] Production.INFO: count ==717 [2025-03-09 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:35:04 - End Time 2025-03-09 23:35:04 [2025-03-09 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645573', 'tblTempUsageDetail_20' ) start [2025-03-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645573', 'tblTempUsageDetail_20' ) end [2025-03-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645573', 'tblTempVendorCDR_20' ) start [2025-03-09 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645573', 'tblTempVendorCDR_20' ) end [2025-03-09 23:35:17] Production.INFO: ProcessCDR(1,14645573,1,1,2) [2025-03-09 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645573', 'tblTempUsageDetail_20' ) start [2025-03-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645573', 'tblTempUsageDetail_20' ) end [2025-03-09 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:35:22] Production.INFO: ==6783== Releasing lock... [2025-03-09 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:36:05 [end_date_ymd] => 2025-03-09 23:36:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:36:05' and `end` < '2025-03-09 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-09 23:36:17] Production.INFO: count ==718 [2025-03-09 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:36:05 - End Time 2025-03-09 23:36:05 [2025-03-09 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645578', 'tblTempUsageDetail_20' ) start [2025-03-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645578', 'tblTempUsageDetail_20' ) end [2025-03-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645578', 'tblTempVendorCDR_20' ) start [2025-03-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645578', 'tblTempVendorCDR_20' ) end [2025-03-09 23:36:18] Production.INFO: ProcessCDR(1,14645578,1,1,2) [2025-03-09 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645578', 'tblTempUsageDetail_20' ) start [2025-03-09 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645578', 'tblTempUsageDetail_20' ) end [2025-03-09 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:36:22] Production.INFO: ==6892== Releasing lock... [2025-03-09 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:37:05 [end_date_ymd] => 2025-03-09 23:37:05 [RateCDR] => 1 ) [2025-03-09 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:37:05' and `end` < '2025-03-09 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:37:17] Production.INFO: count ==721 [2025-03-09 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:37:05 - End Time 2025-03-09 23:37:05 [2025-03-09 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645583', 'tblTempUsageDetail_20' ) start [2025-03-09 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645583', 'tblTempUsageDetail_20' ) end [2025-03-09 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645583', 'tblTempVendorCDR_20' ) start [2025-03-09 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645583', 'tblTempVendorCDR_20' ) end [2025-03-09 23:37:17] Production.INFO: ProcessCDR(1,14645583,1,1,2) [2025-03-09 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645583', 'tblTempUsageDetail_20' ) start [2025-03-09 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645583', 'tblTempUsageDetail_20' ) end [2025-03-09 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:37:21] Production.INFO: ==6965== Releasing lock... [2025-03-09 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:37:21] Production.INFO: 34 MB #Memory Used# [2025-03-09 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:38:05 [end_date_ymd] => 2025-03-09 23:38:05 [RateCDR] => 1 ) [2025-03-09 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:38:05' and `end` < '2025-03-09 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:38:17] Production.INFO: count ==720 [2025-03-09 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:38:05 - End Time 2025-03-09 23:38:05 [2025-03-09 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645588', 'tblTempUsageDetail_20' ) start [2025-03-09 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645588', 'tblTempUsageDetail_20' ) end [2025-03-09 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645588', 'tblTempVendorCDR_20' ) start [2025-03-09 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645588', 'tblTempVendorCDR_20' ) end [2025-03-09 23:38:17] Production.INFO: ProcessCDR(1,14645588,1,1,2) [2025-03-09 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645588', 'tblTempUsageDetail_20' ) start [2025-03-09 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645588', 'tblTempUsageDetail_20' ) end [2025-03-09 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:38:21] Production.INFO: ==7044== Releasing lock... [2025-03-09 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:39:05 [end_date_ymd] => 2025-03-09 23:39:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:39:05' and `end` < '2025-03-09 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-09 23:39:17] Production.INFO: count ==720 [2025-03-09 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:39:05 - End Time 2025-03-09 23:39:05 [2025-03-09 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645593', 'tblTempUsageDetail_20' ) start [2025-03-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645593', 'tblTempUsageDetail_20' ) end [2025-03-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645593', 'tblTempVendorCDR_20' ) start [2025-03-09 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645593', 'tblTempVendorCDR_20' ) end [2025-03-09 23:39:17] Production.INFO: ProcessCDR(1,14645593,1,1,2) [2025-03-09 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645593', 'tblTempUsageDetail_20' ) start [2025-03-09 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645593', 'tblTempUsageDetail_20' ) end [2025-03-09 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:39:20] Production.INFO: ==7116== Releasing lock... [2025-03-09 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:39:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:40:06 [end_date_ymd] => 2025-03-09 23:40:06 [RateCDR] => 1 ) [2025-03-09 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-09 20:40:06' and `end` < '2025-03-09 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-09 23:40:18] Production.INFO: count ==719 [2025-03-09 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:40:06 - End Time 2025-03-09 23:40:06 [2025-03-09 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645599', 'tblTempUsageDetail_20' ) start [2025-03-09 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645599', 'tblTempUsageDetail_20' ) end [2025-03-09 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645599', 'tblTempVendorCDR_20' ) start [2025-03-09 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645599', 'tblTempVendorCDR_20' ) end [2025-03-09 23:40:18] Production.INFO: ProcessCDR(1,14645599,1,1,2) [2025-03-09 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645599', 'tblTempUsageDetail_20' ) start [2025-03-09 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645599', 'tblTempUsageDetail_20' ) end [2025-03-09 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:40:21] Production.INFO: ==7190== Releasing lock... [2025-03-09 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-09 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:41:05 [end_date_ymd] => 2025-03-09 23:41:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:41:05' and `end` < '2025-03-09 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-09 23:41:17] Production.INFO: count ==689 [2025-03-09 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:41:05 - End Time 2025-03-09 23:41:05 [2025-03-09 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645604', 'tblTempUsageDetail_20' ) start [2025-03-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645604', 'tblTempUsageDetail_20' ) end [2025-03-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645604', 'tblTempVendorCDR_20' ) start [2025-03-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645604', 'tblTempVendorCDR_20' ) end [2025-03-09 23:41:17] Production.INFO: ProcessCDR(1,14645604,1,1,2) [2025-03-09 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645604', 'tblTempUsageDetail_20' ) start [2025-03-09 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645604', 'tblTempUsageDetail_20' ) end [2025-03-09 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:41:21] Production.INFO: ==7265== Releasing lock... [2025-03-09 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:42:05 [end_date_ymd] => 2025-03-09 23:42:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:42:05' and `end` < '2025-03-09 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-09 23:42:17] Production.INFO: count ==688 [2025-03-09 23:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:42:05 - End Time 2025-03-09 23:42:05 [2025-03-09 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645609', 'tblTempUsageDetail_20' ) start [2025-03-09 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645609', 'tblTempUsageDetail_20' ) end [2025-03-09 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645609', 'tblTempVendorCDR_20' ) start [2025-03-09 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645609', 'tblTempVendorCDR_20' ) end [2025-03-09 23:42:17] Production.INFO: ProcessCDR(1,14645609,1,1,2) [2025-03-09 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645609', 'tblTempUsageDetail_20' ) start [2025-03-09 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645609', 'tblTempUsageDetail_20' ) end [2025-03-09 23:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:42:20] Production.INFO: ==7335== Releasing lock... [2025-03-09 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:42:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:43:05 [end_date_ymd] => 2025-03-09 23:43:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:43:05' and `end` < '2025-03-09 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-09 23:43:18] Production.INFO: count ==688 [2025-03-09 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:43:05 - End Time 2025-03-09 23:43:05 [2025-03-09 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645614', 'tblTempUsageDetail_20' ) start [2025-03-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645614', 'tblTempUsageDetail_20' ) end [2025-03-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645614', 'tblTempVendorCDR_20' ) start [2025-03-09 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645614', 'tblTempVendorCDR_20' ) end [2025-03-09 23:43:18] Production.INFO: ProcessCDR(1,14645614,1,1,2) [2025-03-09 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645614', 'tblTempUsageDetail_20' ) start [2025-03-09 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645614', 'tblTempUsageDetail_20' ) end [2025-03-09 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:43:21] Production.INFO: ==7407== Releasing lock... [2025-03-09 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:44:05 [end_date_ymd] => 2025-03-09 23:44:05 [RateCDR] => 1 ) [2025-03-09 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:44:05' and `end` < '2025-03-09 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:44:17] Production.INFO: count ==688 [2025-03-09 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:44:05 - End Time 2025-03-09 23:44:05 [2025-03-09 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645619', 'tblTempUsageDetail_20' ) start [2025-03-09 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645619', 'tblTempUsageDetail_20' ) end [2025-03-09 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645619', 'tblTempVendorCDR_20' ) start [2025-03-09 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645619', 'tblTempVendorCDR_20' ) end [2025-03-09 23:44:17] Production.INFO: ProcessCDR(1,14645619,1,1,2) [2025-03-09 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645619', 'tblTempUsageDetail_20' ) start [2025-03-09 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645619', 'tblTempUsageDetail_20' ) end [2025-03-09 23:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:44:20] Production.INFO: ==7476== Releasing lock... [2025-03-09 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:44:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:45:06 [end_date_ymd] => 2025-03-09 23:45:06 [RateCDR] => 1 ) [2025-03-09 23: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-09 20:45:06' and `end` < '2025-03-09 23: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-09 23:45:18] Production.INFO: count ==688 [2025-03-09 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:45:06 - End Time 2025-03-09 23:45:06 [2025-03-09 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645624', 'tblTempUsageDetail_20' ) start [2025-03-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645624', 'tblTempUsageDetail_20' ) end [2025-03-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645624', 'tblTempVendorCDR_20' ) start [2025-03-09 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645624', 'tblTempVendorCDR_20' ) end [2025-03-09 23:45:18] Production.INFO: ProcessCDR(1,14645624,1,1,2) [2025-03-09 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645624', 'tblTempUsageDetail_20' ) start [2025-03-09 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645624', 'tblTempUsageDetail_20' ) end [2025-03-09 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:45:21] Production.INFO: ==7549== Releasing lock... [2025-03-09 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:45:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:46:05 [end_date_ymd] => 2025-03-09 23:46:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:46:05' and `end` < '2025-03-09 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-09 23:46:17] Production.INFO: count ==688 [2025-03-09 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:46:05 - End Time 2025-03-09 23:46:05 [2025-03-09 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645629', 'tblTempUsageDetail_20' ) start [2025-03-09 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645629', 'tblTempUsageDetail_20' ) end [2025-03-09 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645629', 'tblTempVendorCDR_20' ) start [2025-03-09 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645629', 'tblTempVendorCDR_20' ) end [2025-03-09 23:46:17] Production.INFO: ProcessCDR(1,14645629,1,1,2) [2025-03-09 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645629', 'tblTempUsageDetail_20' ) start [2025-03-09 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645629', 'tblTempUsageDetail_20' ) end [2025-03-09 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:46:20] Production.INFO: ==7623== Releasing lock... [2025-03-09 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:46:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:47:06 [end_date_ymd] => 2025-03-09 23:47:06 [RateCDR] => 1 ) [2025-03-09 23: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-09 20:47:06' and `end` < '2025-03-09 23: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-09 23:47:18] Production.INFO: count ==681 [2025-03-09 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:47:06 - End Time 2025-03-09 23:47:06 [2025-03-09 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645634', 'tblTempUsageDetail_20' ) start [2025-03-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645634', 'tblTempUsageDetail_20' ) end [2025-03-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645634', 'tblTempVendorCDR_20' ) start [2025-03-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645634', 'tblTempVendorCDR_20' ) end [2025-03-09 23:47:18] Production.INFO: ProcessCDR(1,14645634,1,1,2) [2025-03-09 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645634', 'tblTempUsageDetail_20' ) start [2025-03-09 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645634', 'tblTempUsageDetail_20' ) end [2025-03-09 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:47:21] Production.INFO: ==7693== Releasing lock... [2025-03-09 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:48:04 [end_date_ymd] => 2025-03-09 23:48:04 [RateCDR] => 1 ) [2025-03-09 23: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-09 20:48:04' and `end` < '2025-03-09 23: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-09 23:48:17] Production.INFO: count ==680 [2025-03-09 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:48:04 - End Time 2025-03-09 23:48:04 [2025-03-09 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645638', 'tblTempUsageDetail_20' ) start [2025-03-09 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645638', 'tblTempUsageDetail_20' ) end [2025-03-09 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645638', 'tblTempVendorCDR_20' ) start [2025-03-09 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645638', 'tblTempVendorCDR_20' ) end [2025-03-09 23:48:17] Production.INFO: ProcessCDR(1,14645638,1,1,2) [2025-03-09 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645638', 'tblTempUsageDetail_20' ) start [2025-03-09 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645638', 'tblTempUsageDetail_20' ) end [2025-03-09 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:48:20] Production.INFO: ==7762== Releasing lock... [2025-03-09 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:48:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:49:06 [end_date_ymd] => 2025-03-09 23:49:06 [RateCDR] => 1 ) [2025-03-09 23: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-09 20:49:06' and `end` < '2025-03-09 23: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-09 23:49:18] Production.INFO: count ==676 [2025-03-09 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:49:06 - End Time 2025-03-09 23:49:06 [2025-03-09 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645644', 'tblTempUsageDetail_20' ) start [2025-03-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645644', 'tblTempUsageDetail_20' ) end [2025-03-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645644', 'tblTempVendorCDR_20' ) start [2025-03-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645644', 'tblTempVendorCDR_20' ) end [2025-03-09 23:49:18] Production.INFO: ProcessCDR(1,14645644,1,1,2) [2025-03-09 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645644', 'tblTempUsageDetail_20' ) start [2025-03-09 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645644', 'tblTempUsageDetail_20' ) end [2025-03-09 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:49:22] Production.INFO: ==7835== Releasing lock... [2025-03-09 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-09 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:50:05 [end_date_ymd] => 2025-03-09 23:50:05 [RateCDR] => 1 ) [2025-03-09 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:50:05' and `end` < '2025-03-09 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:50:17] Production.INFO: count ==675 [2025-03-09 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:50:05 - End Time 2025-03-09 23:50:05 [2025-03-09 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645650', 'tblTempUsageDetail_20' ) start [2025-03-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645650', 'tblTempUsageDetail_20' ) end [2025-03-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645650', 'tblTempVendorCDR_20' ) start [2025-03-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645650', 'tblTempVendorCDR_20' ) end [2025-03-09 23:50:18] Production.INFO: ProcessCDR(1,14645650,1,1,2) [2025-03-09 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645650', 'tblTempUsageDetail_20' ) start [2025-03-09 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645650', 'tblTempUsageDetail_20' ) end [2025-03-09 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:50:21] Production.INFO: ==7908== Releasing lock... [2025-03-09 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:51:05 [end_date_ymd] => 2025-03-09 23:51:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:51:05' and `end` < '2025-03-09 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-09 23:51:17] Production.INFO: count ==640 [2025-03-09 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:51:05 - End Time 2025-03-09 23:51:05 [2025-03-09 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645655', 'tblTempUsageDetail_20' ) start [2025-03-09 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645655', 'tblTempUsageDetail_20' ) end [2025-03-09 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645655', 'tblTempVendorCDR_20' ) start [2025-03-09 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645655', 'tblTempVendorCDR_20' ) end [2025-03-09 23:51:17] Production.INFO: ProcessCDR(1,14645655,1,1,2) [2025-03-09 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645655', 'tblTempUsageDetail_20' ) start [2025-03-09 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645655', 'tblTempUsageDetail_20' ) end [2025-03-09 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:51:21] Production.INFO: ==7983== Releasing lock... [2025-03-09 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:52:05 [end_date_ymd] => 2025-03-09 23:52:05 [RateCDR] => 1 ) [2025-03-09 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:52:05' and `end` < '2025-03-09 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:52:17] Production.INFO: count ==640 [2025-03-09 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:52:05 - End Time 2025-03-09 23:52:05 [2025-03-09 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645660', 'tblTempUsageDetail_20' ) start [2025-03-09 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645660', 'tblTempUsageDetail_20' ) end [2025-03-09 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645660', 'tblTempVendorCDR_20' ) start [2025-03-09 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645660', 'tblTempVendorCDR_20' ) end [2025-03-09 23:52:17] Production.INFO: ProcessCDR(1,14645660,1,1,2) [2025-03-09 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645660', 'tblTempUsageDetail_20' ) start [2025-03-09 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645660', 'tblTempUsageDetail_20' ) end [2025-03-09 23:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:52:20] Production.INFO: ==8099== Releasing lock... [2025-03-09 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:52:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:53:05 [end_date_ymd] => 2025-03-09 23:53:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:53:05' and `end` < '2025-03-09 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-09 23:53:18] Production.INFO: count ==639 [2025-03-09 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:53:05 - End Time 2025-03-09 23:53:05 [2025-03-09 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645665', 'tblTempUsageDetail_20' ) start [2025-03-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645665', 'tblTempUsageDetail_20' ) end [2025-03-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645665', 'tblTempVendorCDR_20' ) start [2025-03-09 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645665', 'tblTempVendorCDR_20' ) end [2025-03-09 23:53:18] Production.INFO: ProcessCDR(1,14645665,1,1,2) [2025-03-09 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645665', 'tblTempUsageDetail_20' ) start [2025-03-09 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645665', 'tblTempUsageDetail_20' ) end [2025-03-09 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:53:21] Production.INFO: ==8178== Releasing lock... [2025-03-09 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:54:05 [end_date_ymd] => 2025-03-09 23:54:05 [RateCDR] => 1 ) [2025-03-09 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:54:05' and `end` < '2025-03-09 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:54:17] Production.INFO: count ==641 [2025-03-09 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:54:05 - End Time 2025-03-09 23:54:05 [2025-03-09 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645670', 'tblTempUsageDetail_20' ) start [2025-03-09 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645670', 'tblTempUsageDetail_20' ) end [2025-03-09 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645670', 'tblTempVendorCDR_20' ) start [2025-03-09 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645670', 'tblTempVendorCDR_20' ) end [2025-03-09 23:54:17] Production.INFO: ProcessCDR(1,14645670,1,1,2) [2025-03-09 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645670', 'tblTempUsageDetail_20' ) start [2025-03-09 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645670', 'tblTempUsageDetail_20' ) end [2025-03-09 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:54:22] Production.INFO: ==8250== Releasing lock... [2025-03-09 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:55:06 [end_date_ymd] => 2025-03-09 23:55:06 [RateCDR] => 1 ) [2025-03-09 23:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:55:06' and `end` < '2025-03-09 23:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:55:18] Production.INFO: count ==645 [2025-03-09 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 20:55:06 - End Time 2025-03-09 23:55:06 [2025-03-09 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645675', 'tblTempUsageDetail_20' ) start [2025-03-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645675', 'tblTempUsageDetail_20' ) end [2025-03-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645675', 'tblTempVendorCDR_20' ) start [2025-03-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645675', 'tblTempVendorCDR_20' ) end [2025-03-09 23:55:18] Production.INFO: ProcessCDR(1,14645675,1,1,2) [2025-03-09 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645675', 'tblTempUsageDetail_20' ) start [2025-03-09 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645675', 'tblTempUsageDetail_20' ) end [2025-03-09 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:55:22] Production.INFO: ==8323== Releasing lock... [2025-03-09 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:56:05 [end_date_ymd] => 2025-03-09 23:56:05 [RateCDR] => 1 ) [2025-03-09 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 20:56:05' and `end` < '2025-03-09 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:56:17] Production.INFO: count ==642 [2025-03-09 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:56:05 - End Time 2025-03-09 23:56:05 [2025-03-09 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645680', 'tblTempUsageDetail_20' ) start [2025-03-09 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645680', 'tblTempUsageDetail_20' ) end [2025-03-09 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645680', 'tblTempVendorCDR_20' ) start [2025-03-09 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645680', 'tblTempVendorCDR_20' ) end [2025-03-09 23:56:17] Production.INFO: ProcessCDR(1,14645680,1,1,2) [2025-03-09 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645680', 'tblTempUsageDetail_20' ) start [2025-03-09 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645680', 'tblTempUsageDetail_20' ) end [2025-03-09 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:56:21] Production.INFO: ==8394== Releasing lock... [2025-03-09 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-09 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:57:05 [end_date_ymd] => 2025-03-09 23:57:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:57:05' and `end` < '2025-03-09 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-09 23:57:17] Production.INFO: count ==641 [2025-03-09 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:57:05 - End Time 2025-03-09 23:57:05 [2025-03-09 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645685', 'tblTempUsageDetail_20' ) start [2025-03-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645685', 'tblTempUsageDetail_20' ) end [2025-03-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645685', 'tblTempVendorCDR_20' ) start [2025-03-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645685', 'tblTempVendorCDR_20' ) end [2025-03-09 23:57:17] Production.INFO: ProcessCDR(1,14645685,1,1,2) [2025-03-09 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645685', 'tblTempUsageDetail_20' ) start [2025-03-09 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645685', 'tblTempUsageDetail_20' ) end [2025-03-09 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:57:20] Production.INFO: ==8468== Releasing lock... [2025-03-09 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:57:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:58:04 [end_date_ymd] => 2025-03-09 23:58:04 [RateCDR] => 1 ) [2025-03-09 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-09 20:58:04' and `end` < '2025-03-09 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-09 23:58:17] Production.INFO: count ==637 [2025-03-09 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:58:04 - End Time 2025-03-09 23:58:04 [2025-03-09 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645690', 'tblTempUsageDetail_20' ) start [2025-03-09 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645690', 'tblTempUsageDetail_20' ) end [2025-03-09 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645690', 'tblTempVendorCDR_20' ) start [2025-03-09 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645690', 'tblTempVendorCDR_20' ) end [2025-03-09 23:58:17] Production.INFO: ProcessCDR(1,14645690,1,1,2) [2025-03-09 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645690', 'tblTempUsageDetail_20' ) start [2025-03-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645690', 'tblTempUsageDetail_20' ) end [2025-03-09 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:58:22] Production.INFO: ==8538== Releasing lock... [2025-03-09 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-09 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 20:59:05 [end_date_ymd] => 2025-03-09 23:59:05 [RateCDR] => 1 ) [2025-03-09 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-09 20:59:05' and `end` < '2025-03-09 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-09 23:59:17] Production.INFO: count ==634 [2025-03-09 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 20:59:05 - End Time 2025-03-09 23:59:05 [2025-03-09 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-09 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645695', 'tblTempUsageDetail_20' ) start [2025-03-09 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645695', 'tblTempUsageDetail_20' ) end [2025-03-09 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645695', 'tblTempVendorCDR_20' ) start [2025-03-09 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645695', 'tblTempVendorCDR_20' ) end [2025-03-09 23:59:17] Production.INFO: ProcessCDR(1,14645695,1,1,2) [2025-03-09 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-09 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645695', 'tblTempUsageDetail_20' ) start [2025-03-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645695', 'tblTempUsageDetail_20' ) end [2025-03-09 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-09 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-09 23:59:21] Production.INFO: ==8612== Releasing lock... [2025-03-09 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-09 23:59:21] Production.INFO: 33.25 MB #Memory Used#